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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin427
RA = 152.014, Dec = 6.3475
tmin = 350006401, tmax = 350265601
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='681015', job_status='RUN', time_executed='2021-09-01 11:09:58.790500', time_epoch_executed='1630519798.79' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681015

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681015/ft1_4FGL_J1008.0+0620_daily_bin427.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681015/ft2_4FGL_J1008.0+0620_daily_bin427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681015/ft1_4FGL_J1008.0+0620_daily_bin427.fits outfile=/scratch/kocevski/681015/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin427.fits ra=152.014 dec=6.3475 rad=12.0 tmin=350006401.0 tmax=350265601.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 4.27
user 3.74
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681015/ft1_filtered_4FGL_J1008.0+0620_daily_bin427.fits" evtable="EVENTS" scfile=/scratch/kocevski/681015/ft2_4FGL_J1008.0+0620_daily_bin427.fits sctable="SC_DATA" outfile=/scratch/kocevski/681015/ltcube_350006401_350265601_4FGL_J1008.0+0620_daily_bin427.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/681015/ft2_4FGL_J1008.0+0620_daily_bin427.fits
.....................!
real 12.12
user 11.31
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681015/ft1_filtered_4FGL_J1008.0+0620_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/681015/ft2_4FGL_J1008.0+0620_daily_bin427.fits sctable="SC_DATA" expcube=/scratch/kocevski/681015/ltcube_350006401_350265601_4FGL_J1008.0+0620_daily_bin427.fits outfile=/scratch/kocevski/681015/expmap_350006401_350265601_4FGL_J1008.0+0620_daily_bin427.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/681015/ltcube_350006401_350265601_4FGL_J1008.0+0620_daily_bin427.fits
.....................!
real 191.68
user 185.36
sys 5.11

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/681015/ft1_filtered_4FGL_J1008.0+0620_daily_bin427.fits scfile=/scratch/kocevski/681015/ft2_4FGL_J1008.0+0620_daily_bin427.fits outfile=/scratch/kocevski/681015/cmap_350006401_350265601_4FGL_J1008.0+0620_daily_bin427.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.78
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681015/ft1_filtered_4FGL_J1008.0+0620_daily_bin427.fits scfile=/scratch/kocevski/681015/ft2_4FGL_J1008.0+0620_daily_bin427.fits outfile=/scratch/kocevski/681015/cmap_HighResolution_350006401_350265601_4FGL_J1008.0+0620_daily_bin427.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.68
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9875       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.7130       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7622       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10694E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.471       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2861       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6424       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.4973       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.884       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .73215       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.4467       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=   6021.414     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1998 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9886        5.9867        .82961E-06   -.17706E-03
   2  Prefactor     .10000E-03    13.478       -.54288E-06** at limit **
   3  norm          5.7125        2.0780        .30779E-07   -.23639E-04
   4  norm          1.7622        .85959        .14307E-07    .27696E-04
   5  Prefactor     20.969        15.301       -.57246E-06    .85519E-04
   6  Prefactor     .10000E-03    111.71       -.79555E-05** at limit **
   7  Prefactor     .10000E-03    75.465        .99426E-05** at limit **
   8  norm          .10000E-03    9.0474        .13756E-06** at limit **
   9  Prefactor     .10035E-03    9.1008        .14251E-05** at limit **
  10  Prefactor     .10000E-03    20.360        .34269E-06** at limit **
  11  Prefactor     53.481        53.132       -.51580E-05    .19814E-03
  12  Prefactor     .10000E-03    13.062        .95259E-06** at limit **
  13  norm          1.2862        1.3121        .14972E-07    .28590E-04
  14  Prefactor     8.6431        8.1191        .93283E-07   -.18241E-04
  15  Prefactor     8.4969        4.3201        .21296E-07    .14796E-04
  16  Prefactor     11.884        10.676        .58840E-07   -.85134E-05
  17  Normalizat    .73244        .22726       -.81942E-06    .43788E-04
  18  Prefactor     1.4465        .18536       -.82181E-07    .37968E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98864
  Prefactor  = 0.0001
  norm       = 5.71249
  norm       = 1.76219
  Prefactor  = 20.9694
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100352
  Prefactor  = 0.0001
  Prefactor  = 53.4806
  Prefactor  = 0.0001
  norm       = 1.28619
  Prefactor  = 8.64308
  Prefactor  = 8.49685
  Prefactor  = 11.884
  Normalizat = 0.732435
  Prefactor  = 1.44645
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.414     FROM HESSE     STATUS=OK           246 CALLS     2244 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9886        5.9635        .29392E-03   -1.5426    
   2  Prefactor     .10000E-03    13.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.7125        2.0818        .63129E-04   -1.5230    
   4  norm          1.7622        .85302        .47191E-04   -1.5442    
   5  Prefactor     20.969        15.294        .87465E-04   -1.4792    
   6  Prefactor     .10000E-03    112.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    76.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.0608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10035E-03    55.741        .41085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     53.481        53.722        .54851E-04   -1.4244    
  12  Prefactor     .10000E-03    13.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2862        1.2845        .86101E-04   -1.5481    
  14  Prefactor     8.6431        8.1054        .13635E-03   -1.5120    
  15  Prefactor     8.4969        4.3195        .10780E-03   -1.5125    
  16  Prefactor     11.884        10.666        .11620E-03   -1.5018    
  17  Normalizat    .73244        .26054        .35396E-03   -1.0263    
  18  Prefactor     1.4465        .21546        .22526E-03   -.79051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30231e-09
Minuit parameter uncertainties:
  1  5.96532
  2  1.682e-05
  3  2.08187
  4  0.85303
  5  15.2968
  6  0.00074945
  7  0.000927298
  8  1.97796e-05
  9  0.00886936
  10  2.96891e-05
  11  53.7706
  12  5.41189e-05
  13  1.28453
  14  8.10638
  15  4.31965
  16  10.6678
  17  0.260982
  18  0.215595
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.097e+01  1.530e+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.446e+00  2.156e-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.324e-01  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.18
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.31e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.77e-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) = 6021.34739677
delta logL = 0.0669915725293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6021.3437454
delta logL = 0.0706429504371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.703       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0095       1.0000          .0000       10.000    
     3 'Normalizat'    .73896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4418       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=   6021.344     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      265 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.683        519.57        .19754E-02   -.32534E-04
   2  Index         2.0088        5.9823        .16904        .17276E-04
   3  Normalizat    .73898        .10851        .79614E-01   -.66452E-05
   4  Prefactor     1.4419        .85556E-01    .51018E-01   -.36350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.6834
  Index      = 2.00882
  Normalizat = 0.73898
  Prefactor  = 1.4419
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.344     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.683        21.564        .79016E-04   -1.4694    
   2  Index         2.0088        .46839        .62490E-02   -.64130    
   3  Normalizat    .73898        .24776        .35249E-03   -1.0237    
   4  Prefactor     1.4419        .21465        .22554E-03   -.79180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48544e-11
Minuit parameter uncertainties:
  1  21.5703
  2  0.46946
  3  0.248139
  4  0.214786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681015': 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) = 6021.34374225
delta logL = 0.0706461021155

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.568e+01  2.157e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.009e+00  4.695e-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:  1.442e+00  2.148e-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.390e-01  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.31
Ra Dec: 152.014 6.348
Photon Index (Free Index): 2.01 +/- 0.47
Photon Flux (Free Index): 4.79e-08 +/- 3.76e-08
Energy Flux (Free Index): 3.24e-05 +/- 3.52e-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/681015/cmap_HighResolution_350006401_350265601_4FGL_J1008.0+0620_daily_bin427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.31e-08', energy_flux2='3.24e-05', photon_flux_error='3.87e-08', dlogl='7.06e-02', energy_flux='2.43e-05', photon_flux2='4.79e-08', job_status='DONE', time_completed='2021-09-01 11:18:28.651790', photon_index_error2='0.47', photon_index2='2.01', ts='4.18', fit_tolerance='1e-08', GAL='1.45', photon_index_error='0.00', energy_flux_error2='3.52e-05', EG='0.73', time_epoch_completed='1630520308.65', return_code='0', job_id='681015', GAL2='1.44', EG2='0.74', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='3.76e-08', ts2='4.31', photon_index='2.19' WHERE bin_id='427' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:18:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 681015: <4FGL_J1008.0+0620_daily_bin427> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin427> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 11:06:21 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:06:23 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:06:23 2021
Terminated at Wed Sep  1 11:18:29 2021
Results reported at Wed Sep  1 11:18:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin427 152.014 6.3475 350006401 350265601 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 :                                   504.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            728 sec.

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

