/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 153 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 = 7554
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1040.5+0617_daily_bin656
RA = 160.15, Dec = 6.2848
tmin = 409363201, tmax = 409622401
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='65582', job_status='RUN', time_executed='2021-09-02 08:26:19.393751', time_epoch_executed='1630596379.39' WHERE source_name='4FGL J1040.5+0617' and cadence='daily' and bin_id='656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/65582

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/65582/ft1_4FGL_J1040.5+0617_daily_bin656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/65582/ft2_4FGL_J1040.5+0617_daily_bin656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/65582/ft1_4FGL_J1040.5+0617_daily_bin656.fits outfile=/scratch/kocevski/65582/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin656.fits ra=160.15 dec=6.2848 rad=12.0 tmin=409363201.0 tmax=409622401.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 5.55
user 5.29
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/65582/ft2_4FGL_J1040.5+0617_daily_bin656.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/65582/ft2_4FGL_J1040.5+0617_daily_bin656.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/65582/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin656.fits evtable="EVENTS" outfile="/scratch/kocevski/65582/ft1_filtered_4FGL_J1040.5+0617_daily_bin656.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/65582/ft1_filtered_4FGL_J1040.5+0617_daily_bin656.fits" evtable="EVENTS" scfile=/scratch/kocevski/65582/ft2_4FGL_J1040.5+0617_daily_bin656.fits sctable="SC_DATA" outfile=/scratch/kocevski/65582/ltcube_409363201_409622401_4FGL_J1040.5+0617_daily_bin656.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/65582/ft2_4FGL_J1040.5+0617_daily_bin656.fits
.....................!
real 12.82
user 12.49
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/65582/ft1_filtered_4FGL_J1040.5+0617_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/65582/ft2_4FGL_J1040.5+0617_daily_bin656.fits sctable="SC_DATA" expcube=/scratch/kocevski/65582/ltcube_409363201_409622401_4FGL_J1040.5+0617_daily_bin656.fits outfile=/scratch/kocevski/65582/expmap_409363201_409622401_4FGL_J1040.5+0617_daily_bin656.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/65582/ltcube_409363201_409622401_4FGL_J1040.5+0617_daily_bin656.fits
.....................!
real 190.21
user 185.70
sys 3.97

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J1040.5+0617 @ 160.15 6.2848

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/65582/ft1_filtered_4FGL_J1040.5+0617_daily_bin656.fits scfile=/scratch/kocevski/65582/ft2_4FGL_J1040.5+0617_daily_bin656.fits outfile=/scratch/kocevski/65582/cmap_409363201_409622401_4FGL_J1040.5+0617_daily_bin656.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=160.15 yref=6.2848 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/65582/ft1_filtered_4FGL_J1040.5+0617_daily_bin656.fits scfile=/scratch/kocevski/65582/ft2_4FGL_J1040.5+0617_daily_bin656.fits outfile=/scratch/kocevski/65582/cmap_HighResolution_409363201_409622401_4FGL_J1040.5+0617_daily_bin656.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=160.15 yref=6.2848 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/65582/ft1_filtered_4FGL_J1040.5+0617_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/65582/ft2_4FGL_J1040.5+0617_daily_bin656.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/65582/Model_4FGL_J1040.5+0617_daily_bin656.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/65582/ft1_filtered_4FGL_J1040.5+0617_daily_bin656.fits.....................!
real 56.74
user 55.33
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/65582/ft1_filtered_4FGL_J1040.5+0617_daily_bin656.fits', '/scratch/kocevski/65582/ft2_4FGL_J1040.5+0617_daily_bin656.fits', expMap='/scratch/kocevski/65582/expmap_409363201_409622401_4FGL_J1040.5+0617_daily_bin656.fits', expCube='/scratch/kocevski/65582/ltcube_409363201_409622401_4FGL_J1040.5+0617_daily_bin656.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/65582/Model_4FGL_J1040.5+0617_daily_bin656.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1040.5+0617'

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  2.877e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
217        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/65582/ft1_filtered_4FGL_J1040.5+0617_daily_bin656.fits
Spacecraft file(s): /scratch/kocevski/65582/ft2_4FGL_J1040.5+0617_daily_bin656.fits
Exposure map: /scratch/kocevski/65582/expmap_409363201_409622401_4FGL_J1040.5+0617_daily_bin656.fits
Exposure cube: /scratch/kocevski/65582/ltcube_409363201_409622401_4FGL_J1040.5+0617_daily_bin656.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/65582/Model_4FGL_J1040.5+0617_daily_bin656.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) = 5699.11486084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    140.60       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21258E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.037       1.0000         .10000E-03   10000.    
     8 'norm      '    4.0062       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .48540E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0899       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6838       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3488       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0726       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12752       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0070       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8274       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1192       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5699.066     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1990 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.753        17.631        .23490E-05    .34800E-04
   2  Prefactor     .10000E-03    26.617       -.44934E-06** at limit **
   3  norm          .10000E-03    11.370        .32909E-06** at limit **
   4  Prefactor     .10000E-03    6.5205        .22232E-06** at limit **
   5  Prefactor     140.55        85.978       -.36293E-04    .25775E-04
   6  Prefactor     .10000E-03    128.01       -.25133E-05** at limit **
   7  Prefactor     25.020        22.367        .58988E-05    .37265E-04
   8  norm          4.0070        1.9613       -.13757E-06    .15249E-03
   9  Prefactor     .10005E-03    6.1100       -.71266E-06** at limit **
  10  Prefactor     3.0927        4.3445       -.98119E-06   -.52191E-03
  11  Prefactor     8.6861        7.8499       -.47772E-05    .58485E-04
  12  Prefactor     2.3459        10.895        .60929E-05   -.22865E-03
  13  norm          2.0728        .78203       -.21283E-06   -.12848E-03
  14  Prefactor     .10000E-03    5.6206       -.12467E-06** at limit **
  15  norm          .12909        1.0758       -.78457E-06   -.48028E-03
  16  Prefactor     4.0039        21.912       -.11516E-05   -.33994E-04
  17  norm          8.8286        13.913        .61771E-06    .44290E-04
  18  Normalizat    1.1190        .22981        .75181E-05   -.49484E-04
  19  Prefactor     1.0189        .18046       -.13681E-05    .37963E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.7533
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 140.545
  Prefactor  = 0.000100001
  Prefactor  = 25.0203
  norm       = 4.00703
  Prefactor  = 0.000100047
  Prefactor  = 3.09267
  Prefactor  = 8.68606
  Prefactor  = 2.34587
  norm       = 2.07284
  Prefactor  = 0.0001
  norm       = 0.129086
  Prefactor  = 4.00388
  norm       = 8.82862
  Normalizat = 1.11898
  Prefactor  = 1.01889
 **********
 **   18 **HESSE 
 **********

 FCN=   5699.066     FROM HESSE     STATUS=OK           284 CALLS     2274 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.753        17.632        .74714E-04   -1.4635    
   2  Prefactor     .10000E-03    26.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     140.55        86.195        .16987E-03   -1.3331    
   6  Prefactor     .10000E-03    128.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.020        22.316        .80057E-04   -1.4707    
   8  norm          4.0070        1.9587        .69812E-04   -1.5308    
   9  Prefactor     .10005E-03    7.0605        .52453E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0927        4.2950        .16816E-03   -1.5356    
  11  Prefactor     8.6861        7.8719        .13602E-03   -1.5118    
  12  Prefactor     2.3459        10.493        .26747E-03   -1.5402    
  13  norm          2.0728        .77977        .38711E-04   -1.5420    
  14  Prefactor     .10000E-03    5.6345        .17464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .12909        2.4976        .14735E-02   -1.5636    
  16  Prefactor     4.0039        21.862        .20147E-03   -1.5308    
  17  norm          8.8286        13.899        .13491E-03   -1.5114    
  18  Normalizat    1.1190        .26727        .28516E-03   -.89145    
  19  Prefactor     1.0189        .20985        .25102E-03   -.92103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40551e-09
Minuit parameter uncertainties:
  1  17.6354
  2  4.00812e-05
  3  0.000180416
  4  4.65122e-05
  5  86.2723
  6  0.000624519
  7  22.3235
  8  1.95877
  9  0.00115386
  10  4.29545
  11  7.87283
  12  9.92552
  13  0.779773
  14  3.10533e-05
  15  1.13524
  16  18.7221
  17  13.904
  18  0.26759
  19  0.210021
Done.

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

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  3.093e+00  4.295e+00  1.000e-04  1.000e+04 ( 1.000e-12)
217        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.019e+00  2.100e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.119e+00  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.68
Ra Dec: 160.150 6.285
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/65582/likelihoodResults_409363201_409622401_4FGL_J1040.5+0617_daily_bin656.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) = 5698.97132521
delta logL = 0.0943816458939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5698.96835114
delta logL = 0.0973557116067

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5698.968     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      266 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3333        76.722        .67134E-02    .10094E-02
   2  Index         2.7898        6.3827        .15996        .14874E-03
   3  Normalizat    1.0988        .66877E-01    .64967E-01   -.16038E-04
   4  Prefactor     1.0300        .55811E-01    .41232E-01   -.89725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33328
  Index      = 2.78981
  Normalizat = 1.0988
  Prefactor  = 1.03001
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.968     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3333        4.4777        .12646E-03   -1.5402    
   2  Index         2.7898        1.1626        .87305E-02   -.45787    
   3  Normalizat    1.0988        .25287        .28739E-03   -.89790    
   4  Prefactor     1.0300        .21050        .24981E-03   -.91736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56693e-10
Minuit parameter uncertainties:
  1  4.47838
  2  1.17599
  3  0.253151
  4  0.210667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/65582': 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) = 5698.96834847
delta logL = 0.0973583820196

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  2.333e+00  4.478e+00  1.000e-04  1.000e+04 ( 1.000e-12)
217        Index:  2.790e+00  1.176e+00  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.030e+00  2.107e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.099e+00  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.68
Ra Dec: 160.150 6.285

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/65582/cmap_HighResolution_409363201_409622401_4FGL_J1040.5+0617_daily_bin656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-02 08:35:58.657185', job_id='65582', GAL2='1.03', fit_tolerance='1e-08', EG2='1.10', EG='1.12', time_epoch_completed='1630596958.66', return_code2='0', ts='0.68', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='9.74e-02', ts2='0.89', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='656' AND source_name='4FGL J1040.5+0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:35:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 65582: <4FGL_J1040.5+0617_daily_bin656> in cluster <slac> Done

Job <4FGL_J1040.5+0617_daily_bin656> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:21:10 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:23:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 08:23:36 2021
Terminated at Thu Sep  2 08:35:59 2021
Results reported at Thu Sep  2 08:35:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1040.5+0617_daily_bin656 160.15 6.2848 409363201 409622401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1040.5+0617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   572.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            889 sec.

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

