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


Performing analysis on: 4FGL_J1040.5+0617_daily_bin536
RA = 160.15, Dec = 6.2848
tmin = 378259201, tmax = 378518401
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='64467', job_status='RUN', time_executed='2021-09-02 08:21:15.034777', time_epoch_executed='1630596075.03' WHERE source_name='4FGL J1040.5+0617' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64467

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64467/ft1_4FGL_J1040.5+0617_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64467/ft2_4FGL_J1040.5+0617_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64467/ft1_4FGL_J1040.5+0617_daily_bin536.fits outfile=/scratch/kocevski/64467/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin536.fits ra=160.15 dec=6.2848 rad=12.0 tmin=378259201.0 tmax=378518401.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.66
user 3.43
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64467/ft1_filtered_4FGL_J1040.5+0617_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/64467/ft2_4FGL_J1040.5+0617_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/64467/ltcube_378259201_378518401_4FGL_J1040.5+0617_daily_bin536.fits outfile=/scratch/kocevski/64467/expmap_378259201_378518401_4FGL_J1040.5+0617_daily_bin536.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/64467/ltcube_378259201_378518401_4FGL_J1040.5+0617_daily_bin536.fits
.....................!
real 160.34
user 155.22
sys 4.57

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/64467/ft1_filtered_4FGL_J1040.5+0617_daily_bin536.fits scfile=/scratch/kocevski/64467/ft2_4FGL_J1040.5+0617_daily_bin536.fits outfile=/scratch/kocevski/64467/cmap_378259201_378518401_4FGL_J1040.5+0617_daily_bin536.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.47
user 0.30
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64467/ft1_filtered_4FGL_J1040.5+0617_daily_bin536.fits scfile=/scratch/kocevski/64467/ft2_4FGL_J1040.5+0617_daily_bin536.fits outfile=/scratch/kocevski/64467/cmap_HighResolution_378259201_378518401_4FGL_J1040.5+0617_daily_bin536.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.49
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8906       1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.100       1.0000         .10000E-03   10000.    
     3 'norm      '    6.0220       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.397       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.186       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .73069       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4737       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5124       1.0000         .10000E-03   10000.    
    13 'norm      '    .36549       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3602       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4940       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.288       1.0000         .10000E-03   10000.    
    17 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .59464       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3174       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=   5209.157     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     1879 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8941        14.910       -.13765E-06    .52563E-04
   2  Prefactor     67.097        53.177       -.78852E-07    .83404E-06
   3  norm          6.0164        16.718       -.11683E-06    .16924E-04
   4  Prefactor     .10000E-03    5.9692       -.31810E-05** at limit **
   5  Prefactor     15.352        85.327       -.23072E-05   -.11370E-04
   6  Prefactor     18.140        64.067        .45276E-06   -.13380E-06
   7  Prefactor     .10000E-03    11.406       -.39811E-05** at limit **
   8  norm          .73057        .87128       -.45210E-07   -.54233E-04
   9  Prefactor     .10000E-03    1.7867        .54020E-07** at limit **
  10  Prefactor     9.4737        3.9414       -.91772E-07   -.49009E-04
  11  Prefactor     .10000E-03    9.7142        .15857E-05** at limit **
  12  Prefactor     2.5125        8.1787        .83609E-06   -.26198E-04
  13  norm          .36569        .57490        .15786E-06    .11689E-03
  14  Prefactor     5.3595        8.7497       -.24802E-06    .24146E-05
  15  norm          1.4938        1.4274        .10310E-06   -.10118E-03
  16  Prefactor     11.288        12.746       -.16059E-06   -.13352E-04
  17  norm          .10000E-03    7.8711        .23337E-06** at limit **
  18  Normalizat    .59496        .21408        .31207E-05   -.66004E-04
  19  Prefactor     1.3170        .18607       -.19906E-05    .85117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.89412
  Prefactor  = 67.0971
  norm       = 6.01639
  Prefactor  = 0.0001
  Prefactor  = 15.3516
  Prefactor  = 18.1396
  Prefactor  = 0.0001
  norm       = 0.73057
  Prefactor  = 0.0001
  Prefactor  = 9.47366
  Prefactor  = 0.0001
  Prefactor  = 2.51255
  norm       = 0.365686
  Prefactor  = 5.35947
  norm       = 1.49383
  Prefactor  = 11.2878
  norm       = 0.0001
  Normalizat = 0.594957
  Prefactor  = 1.31703
 **********
 **   18 **HESSE 
 **********

 FCN=   5209.157     FROM HESSE     STATUS=OK           276 CALLS     2155 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8941        14.828        .14274E-03   -1.5146    
   2  Prefactor     67.097        53.130        .48998E-04   -1.4068    
   3  norm          6.0164        16.610        .16362E-03   -1.5217    
   4  Prefactor     .10000E-03    6.0474        .17291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.352        84.548        .10207E-03   -1.4924    
   6  Prefactor     18.140        63.662        .93918E-04   -1.4856    
   7  Prefactor     .10000E-03    11.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .73057        .84101        .71256E-03   -1.5537    
   9  Prefactor     .10000E-03    1.7900        .94204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.4737        3.9296        .86879E-04   -1.5092    
  11  Prefactor     .10000E-03    10.040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5125        8.1058        .25777E-03   -1.5391    
  13  norm          .36569        .54009        .54117E-03   -1.5587    
  14  Prefactor     5.3595        8.7797        .17358E-03   -1.5245    
  15  norm          1.4938        1.4077        .79253E-04   -1.5464    
  16  Prefactor     11.288        12.742        .11924E-03   -1.5036    
  17  norm          .10000E-03    7.8968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .59496        .23129        .31870E-03   -1.0820    
  19  Prefactor     1.3170        .20341        .20375E-03   -.82802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36601e-10
Minuit parameter uncertainties:
  1  14.8349
  2  53.1674
  3  16.6231
  4  1.27057e-05
  5  72.2116
  6  63.9023
  7  4.44092e-06
  8  0.84102
  9  5.47037e-07
  10  3.92969
  11  3.70898e-05
  12  8.1093
  13  0.540102
  14  8.78177
  15  1.40776
  16  12.7454
  17  1.79079e-05
  18  0.231665
  19  0.203535
Done.

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

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  9.474e+00  3.930e+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.317e+00  2.035e-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:  5.950e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.12
Ra Dec: 160.150 6.285
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 4.74e-08
Energy Flux (Fixed Index): 3.92e-05 +/- 1.63e-05

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) = 5206.55884876
delta logL = 2.59841564471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5206.3348295
delta logL = 2.82243490547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.379       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6843       1.0000          .0000       10.000    
     3 'Normalizat'    .64826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2835       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=   5206.335     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      214 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.379        5.6874        .27377E-02   -.90503E-03
   2  Index         1.6843        .24509        .10650       -.29218E-04
   3  Normalizat    .64827        .19211        .69193E-01    .23758E-04
   4  Prefactor     1.2835        .17657        .32904E-01   -.30041E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3787
  Index      = 1.6843
  Normalizat = 0.648271
  Prefactor  = 1.28349
 **********
 **   18 **HESSE 
 **********

 FCN=   5206.335     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.379        5.7510        .10700E-03   -1.4976    
   2  Index         1.6843        .25820        .45193E-02   -.72501    
   3  Normalizat    .64827        .21637        .30623E-03   -1.0597    
   4  Prefactor     1.2835        .19938        .20587E-03   -.83799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15434e-10
Minuit parameter uncertainties:
  1  5.75126
  2  0.258402
  3  0.216654
  4  0.199494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64467': 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) = 5206.33482949
delta logL = 2.82243491486

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  1.338e+01  5.751e+00  1.000e-04  1.000e+04 ( 1.000e-12)
217        Index:  1.684e+00  2.584e-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.283e+00  1.995e-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.483e-01  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.76
Ra Dec: 160.150 6.285
Photon Index (Free Index): 1.68 +/- 0.26
Photon Flux (Free Index): 7.33e-08 +/- 3.74e-08
Energy Flux (Free Index): 1.26e-04 +/- 8.61e-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/64467/cmap_HighResolution_378259201_378518401_4FGL_J1040.5+0617_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='1.26e-04', photon_flux_error='4.74e-08', dlogl='2.82e+00', energy_flux='3.92e-05', photon_flux2='7.33e-08', job_status='DONE', time_completed='2021-09-02 08:28:21.515507', photon_index_error2='0.26', photon_index2='1.68', ts='18.12', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='8.61e-05', EG='0.59', time_epoch_completed='1630596501.52', return_code='0', job_id='64467', GAL2='1.28', EG2='0.65', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='3.74e-08', ts2='23.76', photon_index='2.37' WHERE bin_id='536' AND source_name='4FGL J1040.5+0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:28:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 64467: <4FGL_J1040.5+0617_daily_bin536> in cluster <slac> Done

Job <4FGL_J1040.5+0617_daily_bin536> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 08:16:36 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:19:22 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:19:22 2021
Terminated at Thu Sep  2 08:28:22 2021
Results reported at Thu Sep  2 08:28:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1040.5+0617_daily_bin536 160.15 6.2848 378259201 378518401 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 :                                   423.54 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   539 sec.
    Turnaround time :                            706 sec.

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

