/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 4 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 = 7471
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1008.0+0620_daily_bin176
RA = 152.014, Dec = 6.3475
tmin = 284947201, tmax = 285206401
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='680621', job_status='RUN', time_executed='2021-09-01 11:06:07.723276', time_epoch_executed='1630519567.72' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='176'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680621/ft1_4FGL_J1008.0+0620_daily_bin176.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680621/ft2_4FGL_J1008.0+0620_daily_bin176.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680621/ft1_4FGL_J1008.0+0620_daily_bin176.fits outfile=/scratch/kocevski/680621/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin176.fits ra=152.014 dec=6.3475 rad=12.0 tmin=284947201.0 tmax=285206401.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.50
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/680621/ft2_4FGL_J1008.0+0620_daily_bin176.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/680621/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin176.fits evtable="EVENTS" outfile="/scratch/kocevski/680621/ft1_filtered_4FGL_J1008.0+0620_daily_bin176.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.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680621/ft1_filtered_4FGL_J1008.0+0620_daily_bin176.fits evtable="EVENTS" scfile=/scratch/kocevski/680621/ft2_4FGL_J1008.0+0620_daily_bin176.fits sctable="SC_DATA" expcube=/scratch/kocevski/680621/ltcube_284947201_285206401_4FGL_J1008.0+0620_daily_bin176.fits outfile=/scratch/kocevski/680621/expmap_284947201_285206401_4FGL_J1008.0+0620_daily_bin176.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/680621/ltcube_284947201_285206401_4FGL_J1008.0+0620_daily_bin176.fits
.....................!
real 192.08
user 185.28
sys 5.72

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/680621/ft1_filtered_4FGL_J1008.0+0620_daily_bin176.fits scfile=/scratch/kocevski/680621/ft2_4FGL_J1008.0+0620_daily_bin176.fits outfile=/scratch/kocevski/680621/cmap_284947201_285206401_4FGL_J1008.0+0620_daily_bin176.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.48
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680621/ft1_filtered_4FGL_J1008.0+0620_daily_bin176.fits scfile=/scratch/kocevski/680621/ft2_4FGL_J1008.0+0620_daily_bin176.fits outfile=/scratch/kocevski/680621/cmap_HighResolution_284947201_285206401_4FGL_J1008.0+0620_daily_bin176.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.33
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/680621/ft1_filtered_4FGL_J1008.0+0620_daily_bin176.fits', '/scratch/kocevski/680621/ft2_4FGL_J1008.0+0620_daily_bin176.fits', expMap='/scratch/kocevski/680621/expmap_284947201_285206401_4FGL_J1008.0+0620_daily_bin176.fits', expCube='/scratch/kocevski/680621/ltcube_284947201_285206401_4FGL_J1008.0+0620_daily_bin176.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/680621/Model_4FGL_J1008.0+0620_daily_bin176.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/680621/ft1_filtered_4FGL_J1008.0+0620_daily_bin176.fits
Spacecraft file(s): /scratch/kocevski/680621/ft2_4FGL_J1008.0+0620_daily_bin176.fits
Exposure map: /scratch/kocevski/680621/expmap_284947201_285206401_4FGL_J1008.0+0620_daily_bin176.fits
Exposure cube: /scratch/kocevski/680621/ltcube_284947201_285206401_4FGL_J1008.0+0620_daily_bin176.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/680621/Model_4FGL_J1008.0+0620_daily_bin176.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) = 6242.87610041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.152       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.974       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2496       1.0000         .10000E-03   10000.    
     4 'norm      '    .27321       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5916       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.6824       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8169       1.0000         .10000E-03   10000.    
    10 'Prefactor '    110.28       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17155E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.919       1.0000         .10000E-03   10000.    
    13 'norm      '    .80620       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6533       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5750       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6824       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .68424       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2251       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=   6242.836     FROM MIGRAD    STATUS=CONVERGED    349 CALLS     1813 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.152        5.1675        .31336E-06    .13385E-03
   2  Prefactor     31.974        17.114        .72592E-07   -.37209E-04
   3  norm          2.2498        1.7291        .21565E-06   -.11553E-03
   4  norm          .27328        .60303        .32403E-06   -.38086E-03
   5  Prefactor     1.5933        18.750       -.32764E-05   -.24396E-03
   6  Prefactor     .10000E-03    11.538        .38663E-06** at limit **
   7  Prefactor     .10000E-03    12.442       -.50655E-06** at limit **
   8  norm          6.6824        10.558       -.77661E-06   -.72689E-04
   9  Prefactor     6.8139        14.567        .50727E-05    .69386E-03
  10  Prefactor     110.28        72.893        .11590E-05    .16319E-03
  11  Prefactor     .10001E-03    89.045       -.45804E-06** at limit **
  12  Prefactor     21.910        28.429       -.88050E-06    .34218E-03
  13  norm          .80589        1.3926        .20804E-06   -.34716E-03
  14  Prefactor     1.6533        2.9055        .13969E-06   -.80951E-04
  15  Prefactor     5.5745        4.0203        .17867E-05   -.21525E-02
  16  Prefactor     3.6835        9.2957       -.11773E-05   -.11491E-03
  17  Normalizat    .68414        .20749       -.27453E-05   -.30355E-04
  18  Prefactor     1.2252        .16140       -.20507E-07   -.11093E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.152
  Prefactor  = 31.974
  norm       = 2.24976
  norm       = 0.273277
  Prefactor  = 1.59329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.68239
  Prefactor  = 6.81389
  Prefactor  = 110.283
  Prefactor  = 0.000100006
  Prefactor  = 21.9102
  norm       = 0.805893
  Prefactor  = 1.65329
  Prefactor  = 5.57451
  Prefactor  = 3.68346
  Normalizat = 0.684137
  Prefactor  = 1.22516
 **********
 **   18 **HESSE 
 **********

 FCN=   6242.836     FROM HESSE     STATUS=OK           250 CALLS     2063 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.152        5.1658        .12254E-03   -1.5071    
   2  Prefactor     31.974        17.066        .70861E-04   -1.4576    
   3  norm          2.2498        1.7209        .83101E-04   -1.5408    
   4  norm          .27328        .60434        .82494E-04   -1.5603    
   5  Prefactor     1.5933        20.246        .33631E-03   -1.5456    
   6  Prefactor     .10000E-03    11.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.6824        10.502        .15523E-03   -1.5191    
   9  Prefactor     6.8139        15.082        .15367E-03   -1.5186    
  10  Prefactor     110.28        73.203        .38303E-04   -1.3604    
  11  Prefactor     .10001E-03    89.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.910        28.201        .85554E-04   -1.4771    
  13  norm          .80589        1.3681        .11527E-03   -1.5528    
  14  Prefactor     1.6533        2.8705        .17352E-03   -1.5451    
  15  Prefactor     5.5745        4.5436        .67646E-03   -1.5236    
  16  Prefactor     3.6835        9.2799        .21047E-03   -1.5324    
  17  Normalizat    .68414        .23110        .32010E-03   -1.0452    
  18  Prefactor     1.2252        .18280        .21039E-03   -.85561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51824e-09
Minuit parameter uncertainties:
  1  5.16602
  2  17.0688
  3  1.72094
  4  0.604353
  5  11.3635
  6  3.96989e-05
  7  4.49329e-05
  8  10.5052
  9  15.0905
  10  73.263
  11  0.00141852
  12  28.2178
  13  1.36812
  14  2.87072
  15  4.54383
  16  9.28349
  17  0.231431
  18  0.182891
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.593e+00  1.136e+01  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:  1.225e+00  1.829e-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:  6.841e-01  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/680621/likelihoodResults_284947201_285206401_4FGL_J1008.0+0620_daily_bin176.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) = 6240.73492985
delta logL = 2.10152996311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6240.67411358
delta logL = 2.16234623498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37733E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4685       1.0000          .0000       10.000    
     3 'Normalizat'    .53167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3105       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=   6240.674     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      330 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37544E-01    .30423        .18440E-02   -.45380E-02
   2  Index         5.4710        2.0356        .78472E-01    .19306E-04
   3  Normalizat    .53135        .56024E-01    .81095E-01   -.25649E-04
   4  Prefactor     1.3107        .47998E-01    .32429E-01   -.25462E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0375444
  Index      = 5.47105
  Normalizat = 0.531354
  Prefactor  = 1.31071
 **********
 **   18 **HESSE 
 **********

 FCN=   6240.674     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      361 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37544E-01    .57873        .82815E-05   -1.5669    
   2  Index         5.4710        3.0299        .31611E-02    .94349E-01
   3  Normalizat    .53135        .19278        .35916E-03   -1.1098    
   4  Prefactor     1.3107        .16263        .20420E-03   -.82989    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.60538e-10
Minuit parameter uncertainties:
  1  0.294418
  2  3.25751
  3  0.193025
  4  0.162693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680621': 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) = 6240.6741107
delta logL = 2.16234911681

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  3.754e-02  2.944e-01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  5.471e+00  3.258e+00  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:  1.311e+00  1.627e-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:  5.314e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.84
Ra Dec: 152.014 6.348
Photon Index (Free Index): 5.47 +/- 3.26
Photon Flux (Free Index): 1.32e-07 +/- 7.37e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.05e-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/680621/cmap_HighResolution_284947201_285206401_4FGL_J1008.0+0620_daily_bin176.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', comment='SUCCESS', energy_flux2='1.70e-05', dlogl='2.16e+00', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-01 11:15:11.149981', photon_index_error2='3.26', photon_index2='5.47', ts='0.02', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='8.10e-08', energy_flux_error2='1.05e-05', EG='0.68', time_epoch_completed='1630520111.15', return_code='0', job_id='680621', GAL2='1.31', EG2='0.53', return_code2='102', photon_flux_error2='7.37e-08', ts2='4.84', photon_index='2.19' WHERE bin_id='176' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:15:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 680621: <4FGL_J1008.0+0620_daily_bin176> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin176> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 11:05:45 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:05:46 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:05:46 2021
Terminated at Wed Sep  1 11:15:12 2021
Results reported at Wed Sep  1 11:15:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin176 152.014 6.3475 284947201 285206401 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 :                                   533.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            567 sec.

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

