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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin629
RA = 152.014, Dec = 6.3475
tmin = 402364801, tmax = 402624001
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='682605', job_status='RUN', time_executed='2021-09-01 11:15:17.270900', time_epoch_executed='1630520117.27' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='629'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682605

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682605/ft1_4FGL_J1008.0+0620_daily_bin629.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682605/ft2_4FGL_J1008.0+0620_daily_bin629.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682605/ft1_4FGL_J1008.0+0620_daily_bin629.fits outfile=/scratch/kocevski/682605/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin629.fits ra=152.014 dec=6.3475 rad=12.0 tmin=402364801.0 tmax=402624001.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.51
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682605/ft1_filtered_4FGL_J1008.0+0620_daily_bin629.fits" evtable="EVENTS" scfile=/scratch/kocevski/682605/ft2_4FGL_J1008.0+0620_daily_bin629.fits sctable="SC_DATA" outfile=/scratch/kocevski/682605/ltcube_402364801_402624001_4FGL_J1008.0+0620_daily_bin629.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/682605/ft2_4FGL_J1008.0+0620_daily_bin629.fits
.....................!
real 12.43
user 12.07
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682605/ft1_filtered_4FGL_J1008.0+0620_daily_bin629.fits evtable="EVENTS" scfile=/scratch/kocevski/682605/ft2_4FGL_J1008.0+0620_daily_bin629.fits sctable="SC_DATA" expcube=/scratch/kocevski/682605/ltcube_402364801_402624001_4FGL_J1008.0+0620_daily_bin629.fits outfile=/scratch/kocevski/682605/expmap_402364801_402624001_4FGL_J1008.0+0620_daily_bin629.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/682605/ltcube_402364801_402624001_4FGL_J1008.0+0620_daily_bin629.fits
.....................!
real 191.61
user 186.51
sys 4.67

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/682605/ft1_filtered_4FGL_J1008.0+0620_daily_bin629.fits scfile=/scratch/kocevski/682605/ft2_4FGL_J1008.0+0620_daily_bin629.fits outfile=/scratch/kocevski/682605/cmap_402364801_402624001_4FGL_J1008.0+0620_daily_bin629.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 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682605/ft1_filtered_4FGL_J1008.0+0620_daily_bin629.fits scfile=/scratch/kocevski/682605/ft2_4FGL_J1008.0+0620_daily_bin629.fits outfile=/scratch/kocevski/682605/cmap_HighResolution_402364801_402624001_4FGL_J1008.0+0620_daily_bin629.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 0.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90495       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .51418E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0654       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5231       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.126       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.641       1.0000         .10000E-03   10000.    
     8 'norm      '    18.939       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    138.02       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.815       1.0000         .10000E-03   10000.    
    13 'norm      '    7.1779       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3938       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9175       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8129       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .71562       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5262.237     FROM MIGRAD    STATUS=CONVERGED     84 CALLS     1468 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90290        4.9341        .62044E-05   -.41756E-05
   2  Prefactor     .10001E-03    169.61       -.64337E-04** at limit **
   3  norm          3.0653        1.4860        .48130E-06    .48006E-04
   4  norm          1.5229        .74456        .85109E-06    .24624E-03
   5  Prefactor     28.125        1.0989       -.27414E-06    .16310E-03
   6  Prefactor     .10000E-03    35.651       -.67008E-05** at limit **
   7  Prefactor     21.622        2.0418       -.11279E-05    .17375E-02
   8  norm          18.936        1.1046       -.19376E-06    .30782E-03
   9  Prefactor     .10000E-03    8.7879        .10855E-05** at limit **
  10  Prefactor     138.01        1.2046       -.19296E-06    .28860E-02
  11  Prefactor     .10000E-03    81.470       -.52139E-05** at limit **
  12  Prefactor     41.806        1.1264       -.91095E-07   -.47434E-03
  13  norm          7.1780        2.3346       -.12604E-06    .13223E-03
  14  Prefactor     6.3948        6.7755        .65269E-05    .47541E-04
  15  Prefactor     5.9183        3.8912       -.11376E-06   -.10996E-03
  16  Prefactor     6.8081        10.095        .95929E-05    .85588E-04
  17  Normalizat    .71564        .22765       -.44797E-05   -.34005E-05
  18  Prefactor     .97589        .18813        .16643E-05   -.73060E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.902905
  Prefactor  = 0.000100006
  norm       = 3.06534
  norm       = 1.52293
  Prefactor  = 28.1251
  Prefactor  = 0.0001
  Prefactor  = 21.6223
  norm       = 18.9365
  Prefactor  = 0.0001
  Prefactor  = 138.012
  Prefactor  = 0.000100001
  Prefactor  = 41.8055
  norm       = 7.17804
  Prefactor  = 6.3948
  Prefactor  = 5.91834
  Prefactor  = 6.80808
  Normalizat = 0.715645
  Prefactor  = 0.975885
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.237     FROM HESSE     STATUS=OK           290 CALLS     1758 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90290        4.9540        .12825E-01   -1.5518    
   2  Prefactor     .10001E-03    18.736        .92770E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0653        1.4880        .57923E-02   -1.5358    
   4  norm          1.5229        .76087        .86527E-02   -1.5461    
   5  Prefactor     28.125        15.803        .18885E-02   -1.4647    
   6  Prefactor     .10000E-03    35.676        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.622        35.290        .21525E-02   -1.4778    
   8  norm          18.936        18.282        .23008E-02   -1.4837    
   9  Prefactor     .10000E-03    8.7594        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     138.01        72.335        .85715E-03   -1.3353    
  11  Prefactor     .10000E-03    81.491        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.806        22.888        .15498E-02   -1.4414    
  13  norm          7.1780        2.3406        .37430E-02   -1.5172    
  14  Prefactor     6.3948        6.7966        .39683E-02   -1.5202    
  15  Prefactor     5.9183        3.9063        .41269E-02   -1.5221    
  16  Prefactor     6.8081        10.155        .38430E-02   -1.5186    
  17  Normalizat    .71564        .20323        .67588E-01   -1.0328    
  18  Prefactor     .97589        .16263        .45965E-01   -.93538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67761e-08
Minuit parameter uncertainties:
  1  4.23018
  2  0.000673316
  3  1.48804
  4  0.760879
  5  15.805
  6  4.81384e-05
  7  35.3244
  8  18.287
  9  2.23195e-05
  10  72.3816
  11  0.000564084
  12  22.8927
  13  2.34062
  14  6.79745
  15  3.90644
  16  10.1579
  17  0.203448
  18  0.162714
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.813e+01  1.581e+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:  9.759e-01  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:  7.156e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.94
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.12e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 1.83e-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) = 5262.18372181
delta logL = 0.0528550808713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5262.1721721
delta logL = 0.0644047832193

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.887       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0468       1.0000          .0000       10.000    
     3 'Normalizat'    .72326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97208       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5262.172     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.894        20.145        .70958E-04    .15221E-04
   2  Index         2.0465        .39744        .53156E-02    .26459E-03
   3  Normalizat    .72331        .21933        .29767E-03    .22877E-04
   4  Prefactor     .97206        .18763        .22201E-03   -.26423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.8938
  Index      = 2.04654
  Normalizat = 0.723312
  Prefactor  = 0.972057
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.172     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.894        19.881        .28383E-05   -1.4578    
   2  Index         2.0465        .39214        .10631E-02   -.63192    
   3  Normalizat    .72331        .21949        .11907E-04   -1.0298    
   4  Prefactor     .97206        .18778        .88805E-05   -.93667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2876e-11
Minuit parameter uncertainties:
  1  19.8848
  2  0.392758
  3  0.219754
  4  0.187908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682605': 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) = 5262.17217185
delta logL = 0.0644050408846

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  3.189e+01  1.988e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.047e+00  3.928e-01  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.721e-01  1.879e-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:  7.233e-01  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.12
Ra Dec: 152.014 6.348
Photon Index (Free Index): 2.05 +/- 0.39
Photon Flux (Free Index): 6.32e-08 +/- 4.19e-08
Energy Flux (Free Index): 3.91e-05 +/- 3.04e-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/682605/cmap_HighResolution_402364801_402624001_4FGL_J1008.0+0620_daily_bin629.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.12e-08', energy_flux2='3.91e-05', photon_flux_error='4.00e-08', dlogl='6.44e-02', energy_flux='3.26e-05', photon_flux2='6.32e-08', job_status='DONE', time_completed='2021-09-01 11:22:59.073510', photon_index_error2='0.39', photon_index2='2.05', ts='8.94', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.04e-05', EG='0.72', time_epoch_completed='1630520579.07', return_code='0', job_id='682605', GAL2='0.97', EG2='0.72', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='4.19e-08', ts2='9.12', photon_index='2.19' WHERE bin_id='629' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:22:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 682605: <4FGL_J1008.0+0620_daily_bin629> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin629> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 11:11:18 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:11:19 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:11:19 2021
Terminated at Wed Sep  1 11:22:59 2021
Results reported at Wed Sep  1 11:22:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin629 152.014 6.3475 402364801 402624001 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 :                                   462.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            701 sec.

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

