/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 137 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7419
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1304.0+3704_daily_bin650
RA = 196.008, Dec = 37.071
tmin = 407808001, tmax = 408067201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='189574', job_status='RUN', time_executed='2021-09-06 19:48:48.418781', time_epoch_executed='1630982928.42' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189574

Creating custom pfile directory:
/scratch/kocevski/189574/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=407808001.0 && nMetStart<408067201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=407808001.0 && nMetStart<408067201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189574/ft1_4FGL_J1304.0+3704_daily_bin650.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=407808001.0 && nMetStart<408067201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189574/ft2_4FGL_J1304.0+3704_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189574/ft1_4FGL_J1304.0+3704_daily_bin650.fits outfile=/scratch/kocevski/189574/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin650.fits ra=196.008 dec=37.071 rad=12.0 tmin=407808001.0 tmax=408067201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.18
user 3.93
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/189574/ft2_4FGL_J1304.0+3704_daily_bin650.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189574/ft2_4FGL_J1304.0+3704_daily_bin650.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/189574/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/189574/ft1_filtered_4FGL_J1304.0+3704_daily_bin650.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.56
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189574/ft1_filtered_4FGL_J1304.0+3704_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/189574/ft2_4FGL_J1304.0+3704_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/189574/ltcube_407808001_408067201_4FGL_J1304.0+3704_daily_bin650.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/189574/ft2_4FGL_J1304.0+3704_daily_bin650.fits
.....................!
real 17.74
user 17.41
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189574/ft1_filtered_4FGL_J1304.0+3704_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/189574/ft2_4FGL_J1304.0+3704_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/189574/ltcube_407808001_408067201_4FGL_J1304.0+3704_daily_bin650.fits outfile=/scratch/kocevski/189574/expmap_407808001_408067201_4FGL_J1304.0+3704_daily_bin650.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/189574/ltcube_407808001_408067201_4FGL_J1304.0+3704_daily_bin650.fits
.....................!
real 193.22
user 187.21
sys 5.18

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1304.0+3704 @ 196.008 37.071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/189574/ft1_filtered_4FGL_J1304.0+3704_daily_bin650.fits scfile=/scratch/kocevski/189574/ft2_4FGL_J1304.0+3704_daily_bin650.fits outfile=/scratch/kocevski/189574/cmap_407808001_408067201_4FGL_J1304.0+3704_daily_bin650.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=196.008 yref=37.071 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189574/ft1_filtered_4FGL_J1304.0+3704_daily_bin650.fits scfile=/scratch/kocevski/189574/ft2_4FGL_J1304.0+3704_daily_bin650.fits outfile=/scratch/kocevski/189574/cmap_HighResolution_407808001_408067201_4FGL_J1304.0+3704_daily_bin650.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=196.008 yref=37.071 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/189574/ft1_filtered_4FGL_J1304.0+3704_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/189574/ft2_4FGL_J1304.0+3704_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/189574/Model_4FGL_J1304.0+3704_daily_bin650.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/189574/ft1_filtered_4FGL_J1304.0+3704_daily_bin650.fits.....................!
real 47.55
user 46.13
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/189574/ft1_filtered_4FGL_J1304.0+3704_daily_bin650.fits', '/scratch/kocevski/189574/ft2_4FGL_J1304.0+3704_daily_bin650.fits', expMap='/scratch/kocevski/189574/expmap_407808001_408067201_4FGL_J1304.0+3704_daily_bin650.fits', expCube='/scratch/kocevski/189574/ltcube_407808001_408067201_4FGL_J1304.0+3704_daily_bin650.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/189574/Model_4FGL_J1304.0+3704_daily_bin650.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.0+3704'

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.111e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/189574/ft1_filtered_4FGL_J1304.0+3704_daily_bin650.fits
Spacecraft file(s): /scratch/kocevski/189574/ft2_4FGL_J1304.0+3704_daily_bin650.fits
Exposure map: /scratch/kocevski/189574/expmap_407808001_408067201_4FGL_J1304.0+3704_daily_bin650.fits
Exposure cube: /scratch/kocevski/189574/ltcube_407808001_408067201_4FGL_J1304.0+3704_daily_bin650.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/189574/Model_4FGL_J1304.0+3704_daily_bin650.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5164.93529796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5164.83120167

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3117       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1993       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33505E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.783       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    53.915       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.127       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.428       1.0000         .10000E-03   10000.    
    13 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    22.905       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.157       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.825       1.0000         .10000E-03   10000.    
    24 'Prefactor '    39.409       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.087       1.0000         .10000E-03   10000.    
    26 'norm      '    15.822       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.2640       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4877       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .59531       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5164.831     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3991 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3126        4.1453        .73634E-07    .16692E-03
   2  Prefactor     .10000E-03    6.1131       -.80944E-06** at limit **
   3  Prefactor     1.1995        1.4694        .42473E-07    .17596E-03
   4  Prefactor     .10019E-03    7.8509       -.11776E-05** at limit **
   5  Prefactor     11.804        54.275        .42368E-04   -.12878E-04
   6  Prefactor     .10000E-03    8.7341        .70018E-06** at limit **
   7  Prefactor     53.936        92.110        .26711E-04    .71966E-06
   8  Prefactor     .10000E-03    3.2201       -.31176E-06** at limit **
   9  norm          .10000E-03    3.2386        .37640E-06** at limit **
  10  Prefactor     .10000E-03    27.060       -.13824E-04** at limit **
  11  Prefactor     52.119        38.684       -.57343E-05   -.52429E-04
  12  Prefactor     19.426        20.490        .90865E-06   -.32383E-04
  13  norm          .10000E-03    3.7015       -.36598E-07** at limit **
  14  norm          22.905        18.025       -.57523E-07   -.60794E-05
  15  norm          .10000E-03    1.2484        .66532E-07** at limit **
  16  norm          .10000E-03    2.0271        .10919E-07** at limit **
  17  norm          .10000E-03    6.7878        .23908E-05** at limit **
  18  Prefactor     .10000E-03    2.7731        .26084E-06** at limit **
  19  Prefactor     12.146        16.377        .10313E-05   -.14178E-03
  20  Prefactor     .10000E-03    38.445        .10755E-04** at limit **
  21  Prefactor     .10000E-03    35.249        .13679E-05** at limit **
  22  Prefactor     .10000E-03    22.402        .67984E-05** at limit **
  23  Prefactor     28.817        47.587       -.10371E-04   -.42049E-04
  24  Prefactor     39.399        32.351       -.71902E-05   -.63037E-04
  25  Prefactor     22.083        44.866       -.54541E-05   -.53630E-05
  26  norm          15.822        3.4992        .20054E-06   -.72141E-04
  27  Prefactor     8.2618        9.0840        .14275E-05   -.19642E-03
  28  norm          .10000E-03    7.8014       -.25395E-05** at limit **
  29  Normalizat    1.4879        .21861       -.19820E-05    .62674E-04
  30  Prefactor     .59523        .24621        .72151E-07   -.88821E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.31259
  Prefactor  = 0.0001
  Prefactor  = 1.1995
  Prefactor  = 0.000100187
  Prefactor  = 11.8038
  Prefactor  = 0.0001
  Prefactor  = 53.9364
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.1191
  Prefactor  = 19.4258
  norm       = 0.0001
  norm       = 22.9048
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8173
  Prefactor  = 39.3986
  Prefactor  = 22.0828
  norm       = 15.8215
  Prefactor  = 8.26179
  norm       = 0.0001
  Normalizat = 1.48786
  Prefactor  = 0.595235
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.831     FROM HESSE     STATUS=OK           580 CALLS     4571 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3126        4.1486        .10625E-03   -1.5167    
   2  Prefactor     .10000E-03    6.1870        .17349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1995        1.4584        .93291E-04   -1.5489    
   4  Prefactor     .10019E-03    71.514        .38646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.804        54.341        .11670E-03   -1.5021    
   6  Prefactor     .10000E-03    8.7376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     53.936        92.016        .54626E-04   -1.4238    
   8  Prefactor     .10000E-03    3.2238        .12587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.2446        .12598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.119        38.734        .55550E-04   -1.4263    
  12  Prefactor     19.426        20.448        .90868E-04   -1.4826    
  13  norm          .10000E-03    3.7225        .13481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          22.905        18.024        .83695E-04   -1.4750    
  15  norm          .10000E-03    1.2534        .78366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0308        .99914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.0720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2056        .21156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.146        15.042        .11489E-03   -1.5011    
  20  Prefactor     .10000E-03    38.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.817        47.684        .74622E-04   -1.4634    
  24  Prefactor     39.399        32.370        .63849E-04   -1.4452    
  25  Prefactor     22.083        44.879        .85229E-04   -1.4768    
  26  norm          15.822        3.5005        .60844E-04   -1.4912    
  27  Prefactor     8.2618        9.0752        .13946E-03   -1.5133    
  28  norm          .10000E-03    7.8049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4879        .25505        .22694E-03   -.78120    
  30  Prefactor     .59523        .28081        .39689E-03   -1.0779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93644e-09
Minuit parameter uncertainties:
  1  4.14874
  2  1.27468e-05
  3  1.45845
  4  0.00731281
  5  50.7288
  6  5.79331e-06
  7  92.2599
  8  7.23774e-06
  9  1.64449e-06
  10  3.87067e-05
  11  38.7529
  12  20.4551
  13  1.99832e-05
  14  18.0279
  15  6.0824e-06
  16  3.52067e-06
  17  7.27667e-05
  18  3.21755e-05
  19  15.0471
  20  0.000101463
  21  2.22105e-05
  22  0.000204682
  23  47.7474
  24  32.3847
  25  44.9473
  26  3.50053
  27  9.07671
  28  8.48147e-06
  29  0.255267
  30  0.281477
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5164.831178

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.943e+01  2.046e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  5.952e-01  2.815e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.488e+00  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 196.008 37.071
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 4.19e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.31e-05

TS (Fixed Index): 1.29
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189574/likelihoodResults_407808001_408067201_4FGL_J1304.0+3704_daily_bin650.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5164.74162182
delta logL = 0.0895561831276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5164.73970144
delta logL = 0.0914765654252

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.332       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8218       1.0000          .0000       10.000    
     3 'Normalizat'    1.4727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60753       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5164.740     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      301 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.330        25.215        .10970E-03    .46118E-04
   2  Index         2.8217        1.1430        .72831E-02    .26875E-04
   3  Normalizat    1.4725        .24517        .22787E-03   -.32792E-03
   4  Prefactor     .60780        .28132        .39310E-03   -.21925E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3303
  Index      = 2.82171
  Normalizat = 1.47255
  Prefactor  = 0.607798
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.740     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.330        21.326        .43880E-05   -1.4978    
   2  Index         2.8217        .96860        .29133E-03   -.45077    
   3  Normalizat    1.4725        .24475        .45574E-04   -.78553    
   4  Prefactor     .60780        .28077        .15724E-04   -1.0726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64392e-10
Minuit parameter uncertainties:
  1  21.3382
  2  0.976233
  3  0.244948
  4  0.281422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189574': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5164.73970082
delta logL = 0.0914771771977

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.333e+01  2.134e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.822e+00  9.762e-01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  6.078e-01  2.814e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.473e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 196.008 37.071
Photon Index (Free Index): 2.82 +/- 0.98
Photon Flux (Free Index): 5.31e-08 +/- 5.68e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/189574/cmap_HighResolution_407808001_408067201_4FGL_J1304.0+3704_daily_bin650.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/189574

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='1.17e-05', photon_flux_error='4.19e-08', dlogl='9.15e-02', energy_flux='1.25e-05', photon_flux2='5.31e-08', job_status='DONE', time_completed='2021-09-06 20:02:00.707612', photon_index_error2='0.98', photon_index2='2.82', ts='1.29', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.15e-05', EG='1.49', time_epoch_completed='1630983720.71', return_code='0', job_id='189574', GAL2='0.61', EG2='1.47', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.68e-08', ts2='1.48', photon_index='2.44' WHERE bin_id='650' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:02:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 189574: <4FGL_J1304.0+3704_daily_bin650> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin650> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:45:40 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:46:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 19:46:23 2021
Terminated at Mon Sep  6 20:02:01 2021
Results reported at Mon Sep  6 20:02:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin650 196.008 37.071 407808001 408067201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.0+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   790.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            981 sec.

The output (if any) is above this job summary.

