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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin993
RA = 152.014, Dec = 6.3475
tmin = 496713601, tmax = 496972801
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='685344', job_status='RUN', time_executed='2021-09-01 11:24:48.146496', time_epoch_executed='1630520688.15' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='993'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685344

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685344/ft1_4FGL_J1008.0+0620_daily_bin993.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685344/ft2_4FGL_J1008.0+0620_daily_bin993.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685344/ft1_4FGL_J1008.0+0620_daily_bin993.fits outfile=/scratch/kocevski/685344/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin993.fits ra=152.014 dec=6.3475 rad=12.0 tmin=496713601.0 tmax=496972801.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 5.56
user 4.77
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/685344/ft2_4FGL_J1008.0+0620_daily_bin993.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/685344/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin993.fits evtable="EVENTS" outfile="/scratch/kocevski/685344/ft1_filtered_4FGL_J1008.0+0620_daily_bin993.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 1.32
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685344/ft1_filtered_4FGL_J1008.0+0620_daily_bin993.fits" evtable="EVENTS" scfile=/scratch/kocevski/685344/ft2_4FGL_J1008.0+0620_daily_bin993.fits sctable="SC_DATA" outfile=/scratch/kocevski/685344/ltcube_496713601_496972801_4FGL_J1008.0+0620_daily_bin993.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/685344/ft2_4FGL_J1008.0+0620_daily_bin993.fits
.....................!
real 12.66
user 11.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685344/ft1_filtered_4FGL_J1008.0+0620_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/685344/ft2_4FGL_J1008.0+0620_daily_bin993.fits sctable="SC_DATA" expcube=/scratch/kocevski/685344/ltcube_496713601_496972801_4FGL_J1008.0+0620_daily_bin993.fits outfile=/scratch/kocevski/685344/expmap_496713601_496972801_4FGL_J1008.0+0620_daily_bin993.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/685344/ltcube_496713601_496972801_4FGL_J1008.0+0620_daily_bin993.fits
.....................!
real 192.23
user 185.65
sys 4.75

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/685344/ft1_filtered_4FGL_J1008.0+0620_daily_bin993.fits scfile=/scratch/kocevski/685344/ft2_4FGL_J1008.0+0620_daily_bin993.fits outfile=/scratch/kocevski/685344/cmap_496713601_496972801_4FGL_J1008.0+0620_daily_bin993.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 2.13
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/685344/ft1_filtered_4FGL_J1008.0+0620_daily_bin993.fits scfile=/scratch/kocevski/685344/ft2_4FGL_J1008.0+0620_daily_bin993.fits outfile=/scratch/kocevski/685344/cmap_HighResolution_496713601_496972801_4FGL_J1008.0+0620_daily_bin993.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 3.66
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12148E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8138       1.0000         .10000E-03   10000.    
     3 'norm      '    .10650E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3744       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.420       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.902       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18198E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.476       1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.297       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .69811E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.6909       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9647       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.681       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2601       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95992       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=   4464.358     FROM MIGRAD    STATUS=CONVERGED    353 CALLS     1768 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0655       -.68708E-06** at limit **
   2  Prefactor     4.8215        19.457        .10652E-05    .16876E-04
   3  norm          .10000E-03    .71411       -.92916E-06** at limit **
   4  norm          1.3741        .83243        .79201E-07    .52233E-03
   5  Prefactor     11.418        18.417        .17949E-05    .10038E-03
   6  Prefactor     36.950        55.769        .23430E-06    .76508E-04
   7  Prefactor     .10000E-03    39.439        .11600E-05** at limit **
   8  norm          .10000E-03    10.377        .73578E-06** at limit **
   9  Prefactor     .10000E-03    13.093        .29271E-05** at limit **
  10  Prefactor     11.688        195.62       -.58513E-05    .50241E-04
  11  Prefactor     59.234        69.247        .39961E-05    .32774E-03
  12  Prefactor     .10003E-03    56.928       -.23684E-04** at limit **
  13  norm          3.6918        2.5275        .80038E-07    .28613E-03
  14  Prefactor     .10000E-03    4.3380       -.95014E-07** at limit **
  15  Prefactor     7.9641        5.8120        .49842E-06    .20126E-03
  16  Prefactor     10.668        10.735        .39990E-08    .73010E-04
  17  Normalizat    1.2605        .28259       -.99098E-05    .55837E-03
  18  Prefactor     .95959        .22077        .96778E-05    .12317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.82147
  norm       = 0.0001
  norm       = 1.37408
  Prefactor  = 11.4176
  Prefactor  = 36.9502
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6882
  Prefactor  = 59.2337
  Prefactor  = 0.000100033
  norm       = 3.69178
  Prefactor  = 0.0001
  Prefactor  = 7.96413
  Prefactor  = 10.6676
  Normalizat = 1.26051
  Prefactor  = 0.959589
 **********
 **   18 **HESSE 
 **********

 FCN=   4464.358     FROM HESSE     STATUS=OK           244 CALLS     2012 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2287        .26311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8215        19.349        .18336E-03   -1.5269    
   3  norm          .10000E-03    .96968        .10686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3741        .82006        .44930E-04   -1.5474    
   5  Prefactor     11.418        18.320        .11855E-03   -1.5032    
   6  Prefactor     36.950        55.695        .65974E-04   -1.4491    
   7  Prefactor     .10000E-03    39.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.688        194.70        .11826E-03   -1.5024    
  11  Prefactor     59.234        69.819        .52102E-04   -1.4167    
  12  Prefactor     .10003E-03    62.319        .41962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.6918        2.5203        .82655E-04   -1.5324    
  14  Prefactor     .10000E-03    4.3615        .13589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.9641        5.7975        .12749E-03   -1.5143    
  16  Prefactor     10.668        10.723        .12259E-03   -1.5055    
  17  Normalizat    1.2605        .30082        .26788E-03   -.84753    
  18  Prefactor     .95959        .23593        .24803E-03   -.94089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99194e-09
Minuit parameter uncertainties:
  1  2.11985e-05
  2  19.3283
  3  3.06743e-05
  4  0.82007
  5  18.3287
  6  55.7738
  7  0.000113868
  8  1.71855e-05
  9  0.000127617
  10  95.7776
  11  69.9155
  12  0.00286151
  13  2.52037
  14  4.57614e-06
  15  5.79787
  16  10.7253
  17  0.301242
  18  0.236182
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.142e+01  1.833e+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.596e-01  2.362e-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.261e+00  3.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 152.014 6.348
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/685344/likelihoodResults_496713601_496972801_4FGL_J1008.0+0620_daily_bin993.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) = 4463.41490913
delta logL = 0.943022019502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4463.39737087
delta logL = 0.960560280201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2343       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3702       1.0000          .0000       10.000    
     3 'Normalizat'    1.1625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0078       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=   4463.397     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      249 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2366        65.352        .48955E-02    .57817E-03
   2  Index         3.3700        2.9270        .10507        .19397E-03
   3  Normalizat    1.1624        .85762E-01    .62572E-01    .85375E-04
   4  Prefactor     1.0079        .67651E-01    .43677E-01   -.42304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.23658
  Index      = 3.37001
  Normalizat = 1.16238
  Prefactor  = 1.00787
 **********
 **   18 **HESSE 
 **********

 FCN=   4463.397     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2366        11.811        .95473E-04   -1.5296    
   2  Index         3.3700        1.3196        .39300E-02   -.33207    
   3  Normalizat    1.1624        .29324        .27677E-03   -.87773    
   4  Prefactor     1.0079        .23596        .24244E-03   -.92468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66863e-10
Minuit parameter uncertainties:
  1  11.8173
  2  1.33739
  3  0.293659
  4  0.236205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685344': 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) = 4463.3973707
delta logL = 0.960560453954

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  4.237e+00  1.182e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  3.370e+00  1.337e+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.008e+00  2.362e-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.162e+00  2.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.62
Ra Dec: 152.014 6.348
Photon Index (Free Index): 3.37 +/- 1.34
Photon Flux (Free Index): 1.17e-07 +/- 9.20e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.56e-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/685344/cmap_HighResolution_496713601_496972801_4FGL_J1008.0+0620_daily_bin993.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='2.02e-05', dlogl='9.61e-01', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-01 11:33:31.118165', photon_index_error2='1.34', photon_index2='3.37', ts='0.57', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.56e-05', EG='1.26', time_epoch_completed='1630521211.12', return_code='0', job_id='685344', GAL2='1.01', EG2='1.16', return_code2='0', photon_flux_error2='9.20e-08', ts2='2.62', photon_index='2.19' WHERE bin_id='993' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:33:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 685344: <4FGL_J1008.0+0620_daily_bin993> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin993> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 11:20:35 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:20:40 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:20:40 2021
Terminated at Wed Sep  1 11:33:32 2021
Results reported at Wed Sep  1 11:33:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin993 152.014 6.3475 496713601 496972801 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 :                                   473.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             246.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            777 sec.

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

