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


Performing analysis on: 4FGL_J1040.5+0617_daily_bin605
RA = 160.15, Dec = 6.2848
tmin = 396144001, tmax = 396403201
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='65508', job_status='RUN', time_executed='2021-09-02 08:25:03.768394', time_epoch_executed='1630596303.77' WHERE source_name='4FGL J1040.5+0617' and cadence='daily' and bin_id='605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/65508

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/65508/ft1_4FGL_J1040.5+0617_daily_bin605.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/65508/ft2_4FGL_J1040.5+0617_daily_bin605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/65508/ft1_4FGL_J1040.5+0617_daily_bin605.fits outfile=/scratch/kocevski/65508/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin605.fits ra=160.15 dec=6.2848 rad=12.0 tmin=396144001.0 tmax=396403201.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 3.27
user 3.05
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/65508/ft2_4FGL_J1040.5+0617_daily_bin605.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/65508/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin605.fits evtable="EVENTS" outfile="/scratch/kocevski/65508/ft1_filtered_4FGL_J1040.5+0617_daily_bin605.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/65508/ft1_filtered_4FGL_J1040.5+0617_daily_bin605.fits" evtable="EVENTS" scfile=/scratch/kocevski/65508/ft2_4FGL_J1040.5+0617_daily_bin605.fits sctable="SC_DATA" outfile=/scratch/kocevski/65508/ltcube_396144001_396403201_4FGL_J1040.5+0617_daily_bin605.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/65508/ft2_4FGL_J1040.5+0617_daily_bin605.fits
.....................!
real 12.55
user 12.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/65508/ft1_filtered_4FGL_J1040.5+0617_daily_bin605.fits evtable="EVENTS" scfile=/scratch/kocevski/65508/ft2_4FGL_J1040.5+0617_daily_bin605.fits sctable="SC_DATA" expcube=/scratch/kocevski/65508/ltcube_396144001_396403201_4FGL_J1040.5+0617_daily_bin605.fits outfile=/scratch/kocevski/65508/expmap_396144001_396403201_4FGL_J1040.5+0617_daily_bin605.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/65508/ltcube_396144001_396403201_4FGL_J1040.5+0617_daily_bin605.fits
.....................!
real 192.84
user 186.31
sys 5.60

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/65508/ft1_filtered_4FGL_J1040.5+0617_daily_bin605.fits scfile=/scratch/kocevski/65508/ft2_4FGL_J1040.5+0617_daily_bin605.fits outfile=/scratch/kocevski/65508/cmap_396144001_396403201_4FGL_J1040.5+0617_daily_bin605.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/65508/ft1_filtered_4FGL_J1040.5+0617_daily_bin605.fits scfile=/scratch/kocevski/65508/ft2_4FGL_J1040.5+0617_daily_bin605.fits outfile=/scratch/kocevski/65508/cmap_HighResolution_396144001_396403201_4FGL_J1040.5+0617_daily_bin605.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.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/65508/ft1_filtered_4FGL_J1040.5+0617_daily_bin605.fits', '/scratch/kocevski/65508/ft2_4FGL_J1040.5+0617_daily_bin605.fits', expMap='/scratch/kocevski/65508/expmap_396144001_396403201_4FGL_J1040.5+0617_daily_bin605.fits', expCube='/scratch/kocevski/65508/ltcube_396144001_396403201_4FGL_J1040.5+0617_daily_bin605.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/65508/Model_4FGL_J1040.5+0617_daily_bin605.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/65508/ft1_filtered_4FGL_J1040.5+0617_daily_bin605.fits
Spacecraft file(s): /scratch/kocevski/65508/ft2_4FGL_J1040.5+0617_daily_bin605.fits
Exposure map: /scratch/kocevski/65508/expmap_396144001_396403201_4FGL_J1040.5+0617_daily_bin605.fits
Exposure cube: /scratch/kocevski/65508/ltcube_396144001_396403201_4FGL_J1040.5+0617_daily_bin605.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/65508/Model_4FGL_J1040.5+0617_daily_bin605.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) = 5650.5625084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.211       1.0000         .10000E-03   10000.    
     3 'norm      '    16.885       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.928       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.1057       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35540       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5493       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .60964       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.610       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9358       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.275       1.0000         .10000E-03   10000.    
    17 'norm      '    38.516       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .65891       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.4419       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=   5650.513     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1920 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0384       -.16436E-05** at limit **
   2  Prefactor     31.209        50.819       -.19691E-05    .76557E-06
   3  norm          16.882        14.664       -.41410E-05   -.51632E-04
   4  Prefactor     .10000E-03    5.8148        .18125E-05** at limit **
   5  Prefactor     27.968        60.715        .66254E-04   -.27462E-05
   6  Prefactor     .10000E-03    33.109       -.82683E-06** at limit **
   7  Prefactor     .10000E-03    8.9520        .13074E-06** at limit **
   8  norm          5.1055        2.1176        .11509E-06   -.74661E-04
   9  Prefactor     .10000E-03    5.4769       -.13325E-05** at limit **
  10  Prefactor     .35474        2.6162        .12677E-05   -.11246E-02
  11  Prefactor     7.5493        7.4247        .88040E-06   -.29703E-03
  12  Prefactor     .60885        1.1996        .54232E-06   -.27774E-02
  13  norm          .10000E-03    .23576        .59566E-07** at limit **
  14  Prefactor     17.610        10.329        .38936E-06   -.12227E-03
  15  norm          2.9361        1.7059        .29106E-06   -.13860E-03
  16  Prefactor     18.277        22.768        .16277E-05   -.32686E-04
  17  norm          38.515        18.201       -.17695E-08   -.11501E-04
  18  Normalizat    .65859        .23166       -.12194E-04    .80068E-05
  19  Prefactor     1.4422        .19366        .21456E-05   -.42452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.2095
  norm       = 16.8823
  Prefactor  = 0.000100001
  Prefactor  = 27.9684
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 5.10545
  Prefactor  = 0.0001
  Prefactor  = 0.354738
  Prefactor  = 7.54933
  Prefactor  = 0.608854
  norm       = 0.0001
  Prefactor  = 17.6098
  norm       = 2.93611
  Prefactor  = 18.2765
  norm       = 38.5149
  Normalizat = 0.658592
  Prefactor  = 1.44221
 **********
 **   18 **HESSE 
 **********

 FCN=   5650.513     FROM HESSE     STATUS=OK           274 CALLS     2194 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.209        50.809        .71720E-04   -1.4590    
   3  norm          16.882        14.663        .97469E-04   -1.4886    
   4  Prefactor     .10000E-03    5.8354        .17670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.968        60.785        .75808E-04   -1.4650    
   6  Prefactor     .10000E-03    33.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.9664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.1055        2.1164        .66862E-04   -1.5256    
   9  Prefactor     .10000E-03    5.5382        .17166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .35474        5.1635        .22780E-02   -1.5589    
  11  Prefactor     7.5493        7.4404        .72980E-03   -1.5158    
  12  Prefactor     .60885        8.9449        .21248E-02   -1.5552    
  13  norm          .10000E-03    .26000        .68193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.610        9.9486        .95441E-04   -1.4868    
  15  norm          2.9361        1.7024        .70144E-04   -1.5365    
  16  Prefactor     18.277        22.766        .93689E-04   -1.4853    
  17  norm          38.515        18.197        .64583E-04   -1.4466    
  18  Normalizat    .65859        .26631        .35159E-03   -1.0555    
  19  Prefactor     1.4422        .22684        .22049E-03   -.79171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87662e-08
Minuit parameter uncertainties:
  1  7.63277e-05
  2  50.8794
  3  14.6662
  4  0.000148406
  5  60.9204
  6  0.000579183
  7  0.000144841
  8  2.11642
  9  4.32867e-05
  10  2.7067
  11  7.4413
  12  4.66786
  13  4.02299e-06
  14  9.94952
  15  1.70246
  16  22.7764
  17  18.1997
  18  0.266836
  19  0.226997
Done.

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

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  3.547e-01  2.707e+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.442e+00  2.270e-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:  6.586e-01  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 160.150 6.285
Photon Flux Upper Limit: 9.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/65508/likelihoodResults_396144001_396403201_4FGL_J1040.5+0617_daily_bin605.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): 102
logL (Free Index) = 5650.47981661
delta logL = 0.0334933848326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5650.43304161
delta logL = 0.0802683909942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3759       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8753       1.0000          .0000       10.000    
     3 'Normalizat'    .66334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4338       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5650.433     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      268 TOTAL
                     EDM=   .85E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3770        3.5921        .22190E-03   -.19417E-04
   2  Index         1.8752        .90727        .13584E-01   -.84444E-06
   3  Normalizat    .66324        .24829        .35042E-03    .82080E-05
   4  Prefactor     1.4339        .22391        .22100E-03    .24178E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.37704
  Index      = 1.87523
  Normalizat = 0.663242
  Prefactor  = 1.43389
 **********
 **   18 **HESSE 
 **********

 FCN=   5650.433     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .85E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3770        3.5705        .88761E-05   -1.5473    
   2  Index         1.8752        .90245        .54337E-03   -.67507    
   3  Normalizat    .66324        .24843        .14017E-04   -1.0536    
   4  Prefactor     1.4339        .22402        .88400E-05   -.79408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.53584e-13
Minuit parameter uncertainties:
  1  3.57108
  2  0.910691
  3  0.248854
  4  0.224174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/65508': 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) = 5650.43304145
delta logL = 0.080268544044

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  1.377e+00  3.571e+00  1.000e-04  1.000e+04 ( 1.000e-12)
217        Index:  1.875e+00  9.107e-01  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.434e+00  2.242e-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:  6.632e-01  2.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/65508/cmap_HighResolution_396144001_396403201_4FGL_J1040.5+0617_daily_bin605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.57e-03', job_status='DONE', photon_flux_upper_limit='9.82e-08', time_completed='2021-09-02 08:34:24.780017', job_id='65508', GAL2='1.43', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1630596864.78', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='8.03e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='605' AND source_name='4FGL J1040.5+0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:34:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 65508: <4FGL_J1040.5+0617_daily_bin605> in cluster <slac> Done

Job <4FGL_J1040.5+0617_daily_bin605> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:21:06 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:22:53 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:22:53 2021
Terminated at Thu Sep  2 08:34:25 2021
Results reported at Thu Sep  2 08:34:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1040.5+0617_daily_bin605 160.15 6.2848 396144001 396403201 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 :                                   554.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            799 sec.

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

