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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin959
RA = 152.014, Dec = 6.3475
tmin = 487900801, tmax = 488160001
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='684141', job_status='RUN', time_executed='2021-09-01 11:17:57.900067', time_epoch_executed='1630520277.9' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684141

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684141/ft1_4FGL_J1008.0+0620_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684141/ft2_4FGL_J1008.0+0620_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684141/ft1_4FGL_J1008.0+0620_daily_bin959.fits outfile=/scratch/kocevski/684141/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin959.fits ra=152.014 dec=6.3475 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.07
user 5.76
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/684141/ft2_4FGL_J1008.0+0620_daily_bin959.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/684141/ft2_4FGL_J1008.0+0620_daily_bin959.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/684141/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/684141/ft1_filtered_4FGL_J1008.0+0620_daily_bin959.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684141/ft1_filtered_4FGL_J1008.0+0620_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/684141/ft2_4FGL_J1008.0+0620_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/684141/ltcube_487900801_488160001_4FGL_J1008.0+0620_daily_bin959.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/684141/ft2_4FGL_J1008.0+0620_daily_bin959.fits
.....................!
real 14.58
user 14.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684141/ft1_filtered_4FGL_J1008.0+0620_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/684141/ft2_4FGL_J1008.0+0620_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/684141/ltcube_487900801_488160001_4FGL_J1008.0+0620_daily_bin959.fits outfile=/scratch/kocevski/684141/expmap_487900801_488160001_4FGL_J1008.0+0620_daily_bin959.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/684141/ltcube_487900801_488160001_4FGL_J1008.0+0620_daily_bin959.fits
.....................!
real 191.81
user 186.41
sys 4.64

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

Setting source of interest to:
4FGL J1008.0+0620 @ 152.014 6.3475

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/684141/ft1_filtered_4FGL_J1008.0+0620_daily_bin959.fits scfile=/scratch/kocevski/684141/ft2_4FGL_J1008.0+0620_daily_bin959.fits outfile=/scratch/kocevski/684141/cmap_487900801_488160001_4FGL_J1008.0+0620_daily_bin959.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=152.014 yref=6.3475 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 1.38
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684141/ft1_filtered_4FGL_J1008.0+0620_daily_bin959.fits scfile=/scratch/kocevski/684141/ft2_4FGL_J1008.0+0620_daily_bin959.fits outfile=/scratch/kocevski/684141/cmap_HighResolution_487900801_488160001_4FGL_J1008.0+0620_daily_bin959.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=152.014 yref=6.3475 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 1.37
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/684141/ft1_filtered_4FGL_J1008.0+0620_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/684141/ft2_4FGL_J1008.0+0620_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/684141/Model_4FGL_J1008.0+0620_daily_bin959.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/684141/ft1_filtered_4FGL_J1008.0+0620_daily_bin959.fits.....................!
real 51.16
user 46.37
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/684141/ft1_filtered_4FGL_J1008.0+0620_daily_bin959.fits', '/scratch/kocevski/684141/ft2_4FGL_J1008.0+0620_daily_bin959.fits', expMap='/scratch/kocevski/684141/expmap_487900801_488160001_4FGL_J1008.0+0620_daily_bin959.fits', expCube='/scratch/kocevski/684141/ltcube_487900801_488160001_4FGL_J1008.0+0620_daily_bin959.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/684141/Model_4FGL_J1008.0+0620_daily_bin959.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1008.0+0620'

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  6.323e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/684141/ft1_filtered_4FGL_J1008.0+0620_daily_bin959.fits
Spacecraft file(s): /scratch/kocevski/684141/ft2_4FGL_J1008.0+0620_daily_bin959.fits
Exposure map: /scratch/kocevski/684141/expmap_487900801_488160001_4FGL_J1008.0+0620_daily_bin959.fits
Exposure cube: /scratch/kocevski/684141/ltcube_487900801_488160001_4FGL_J1008.0+0620_daily_bin959.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/684141/Model_4FGL_J1008.0+0620_daily_bin959.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) = 4505.12369833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2424       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.256       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2622       1.0000         .10000E-03   10000.    
     4 'norm      '    .88377E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9102       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.550       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2605       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.731       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4947       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.608       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0632       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4505.107     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1778 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2430        5.0506        .17656E-05   -.11356E-02
   2  Prefactor     40.241        24.563       -.32026E-05   -.70563E-03
   3  norm          1.2624        1.3210        .10449E-06   -.12447E-03
   4  norm          .88543E-01    .71079        .64692E-06   -.75537E-03
   5  Prefactor     .10000E-03    8.5175       -.25768E-06** at limit **
   6  Prefactor     .10000E-03    22.945        .18138E-06** at limit **
   7  Prefactor     .10000E-03    20.429       -.11155E-05** at limit **
   8  norm          2.9065        18.179        .73021E-05   -.45756E-03
   9  Prefactor     .10000E-03    7.3519       -.43503E-06** at limit **
  10  Prefactor     42.582        61.283        .10946E-04    .31583E-03
  11  Prefactor     .10000E-03    40.289        .51401E-06** at limit **
  12  Prefactor     .10000E-03    18.312        .78594E-06** at limit **
  13  norm          2.2606        1.6664        .36585E-07   -.53323E-04
  14  Prefactor     10.732        9.3911        .80549E-06   -.33004E-03
  15  Prefactor     1.4960        3.6558        .37862E-06   -.13557E-03
  16  Prefactor     16.610        13.530        .69520E-07   -.44325E-04
  17  Normalizat    1.0630        .22448       -.24894E-05   -.13782E-03
  18  Prefactor     .97824        .17892        .14739E-06   -.27548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.24299
  Prefactor  = 40.2407
  norm       = 1.26238
  norm       = 0.088543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.90653
  Prefactor  = 0.0001
  Prefactor  = 42.5822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.2606
  Prefactor  = 10.7325
  Prefactor  = 1.49596
  Prefactor  = 16.6096
  Normalizat = 1.06295
  Prefactor  = 0.978237
 **********
 **   18 **HESSE 
 **********

 FCN=   4505.107     FROM HESSE     STATUS=OK           246 CALLS     2024 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2430        5.1641        .72754E-03   -1.5250    
   2  Prefactor     40.241        24.954        .63176E-04   -1.4438    
   3  norm          1.2624        1.3009        .74768E-04   -1.5483    
   4  norm          .88543E-01    1.5122        .10059E-02   -1.5648    
   5  Prefactor     .10000E-03    8.5812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9065        23.412        .11908E-02   -1.5367    
   9  Prefactor     .10000E-03    7.4185        .17782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.582        66.723        .61456E-04   -1.4402    
  11  Prefactor     .10000E-03    40.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2606        1.6647        .71179E-04   -1.5407    
  14  Prefactor     10.732        9.4222        .61152E-03   -1.5053    
  15  Prefactor     1.4960        3.5866        .18438E-03   -1.5463    
  16  Prefactor     16.610        13.443        .98278E-04   -1.4893    
  17  Normalizat    1.0630        .26178        .26220E-03   -.90950    
  18  Prefactor     .97824        .21020        .22955E-03   -.93459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15601e-09
Minuit parameter uncertainties:
  1  5.16458
  2  24.9608
  3  1.30095
  4  0.731452
  5  6.691e-05
  6  2.41573e-05
  7  0.000118691
  8  16.5068
  9  8.81509e-05
  10  66.8404
  11  0.000132339
  12  4.50768e-05
  13  1.66477
  14  9.42348
  15  3.58715
  16  13.4455
  17  0.2621
  18  0.210379
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  6.691e-05  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  9.782e-01  2.104e-01  0.000e+00  1.000e+01 ( 1.000e+00)
482        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
483        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.063e+00  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 152.014 6.348
Photon Flux Upper Limit: 7.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/684141/likelihoodResults_487900801_488160001_4FGL_J1008.0+0620_daily_bin959.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) = 4505.10774198
delta logL = -0.000554966124582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4505.10718708
delta logL = -6.51061782264e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4505.107     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.474        .90712E-02** at limit **
   2  Index         2.1869        6.0548        .50000        .11905E-05
   3  Normalizat    1.0630        .63725E-02    .59290E-01    .31037E-04
   4  Prefactor     .97824        .54027E-02    .45995E-01    .23618E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18694
  Normalizat = 1.06295
  Prefactor  = 0.978239
 **********
 **   18 **HESSE 
 **********

 FCN=   4505.107     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    96.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1869        5.0311        .50000       -.59754    
   3  Normalizat    1.0630        .18607E-01    .26221E-03   -.90950    
   4  Prefactor     .97824        .15783E-01    .22955E-03   -.93458    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26926e-08
Minuit parameter uncertainties:
  1  8.20421e-06
  2  389.521
  3  0.0186068
  4  0.0157833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684141': 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): 102
logL (Free Index) = 4505.10718701
delta logL = 8.1581674749e-10

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  8.204e-06  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.187e+00  3.895e+02  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  9.782e-01  1.578e-02  0.000e+00  1.000e+01 ( 1.000e+00)
482        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
483        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.063e+00  1.861e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 152.014 6.348

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/684141/cmap_HighResolution_487900801_488160001_4FGL_J1008.0+0620_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.40e-03', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-09-01 11:26:12.385114', job_id='684141', GAL2='0.98', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630520772.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='8.16e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='959' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:26:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 684141: <4FGL_J1008.0+0620_daily_bin959> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin959> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 11:15:52 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:16:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 11:16:05 2021
Terminated at Wed Sep  1 11:26:13 2021
Results reported at Wed Sep  1 11:26:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin959 152.014 6.3475 487900801 488160001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1008.0+0620 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   484.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            621 sec.

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

