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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin398
RA = 152.014, Dec = 6.3475
tmin = 342489601, tmax = 342748801
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='680968', job_status='RUN', time_executed='2021-09-01 11:10:15.180786', time_epoch_executed='1630519815.18' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680968

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680968/ft1_4FGL_J1008.0+0620_daily_bin398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680968/ft2_4FGL_J1008.0+0620_daily_bin398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680968/ft1_4FGL_J1008.0+0620_daily_bin398.fits outfile=/scratch/kocevski/680968/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin398.fits ra=152.014 dec=6.3475 rad=12.0 tmin=342489601.0 tmax=342748801.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.62
user 3.32
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680968/ft1_filtered_4FGL_J1008.0+0620_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/680968/ft2_4FGL_J1008.0+0620_daily_bin398.fits sctable="SC_DATA" expcube=/scratch/kocevski/680968/ltcube_342489601_342748801_4FGL_J1008.0+0620_daily_bin398.fits outfile=/scratch/kocevski/680968/expmap_342489601_342748801_4FGL_J1008.0+0620_daily_bin398.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/680968/ltcube_342489601_342748801_4FGL_J1008.0+0620_daily_bin398.fits
.....................!
real 191.72
user 186.53
sys 4.26

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/680968/ft1_filtered_4FGL_J1008.0+0620_daily_bin398.fits scfile=/scratch/kocevski/680968/ft2_4FGL_J1008.0+0620_daily_bin398.fits outfile=/scratch/kocevski/680968/cmap_342489601_342748801_4FGL_J1008.0+0620_daily_bin398.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.59
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4651       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.770       1.0000         .10000E-03   10000.    
     3 'norm      '    .85164E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6198       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.695       1.0000         .10000E-03   10000.    
     6 'Prefactor '    82.091       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69368       1.0000         .10000E-03   10000.    
     8 'norm      '    13.049       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6856       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10270E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.185       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5053       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.597       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .51375       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.4033       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=   5986.089     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1536 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4645        4.5769        .18953E-06   -.28160E-05
   2  Prefactor     15.768        3.7081        .63017E-09   -.24950E-02
   3  norm          .86099E-01    1.3936       -.69007E-06    .14055E-05
   4  norm          1.6197        .74553        .25239E-09    .42417E-04
   5  Prefactor     24.692        4.0284        .76787E-07   -.26375E-03
   6  Prefactor     82.396        52.389       -.17819E-05   -.31485E-04
   7  Prefactor     .10001E-03    6184.6        .44617E-04** at limit **
   8  norm          13.048        8.7467        .13335E-06    .15615E-02
   9  Prefactor     2.6834        7.4808        .59653E-06   -.16322E-03
  10  Prefactor     .10000E-03    23.285       -.26202E-05** at limit **
  11  Prefactor     .10000E-03    16.394       -.29399E-06** at limit **
  12  Prefactor     .10000E-03    5.1923        .40829E-06** at limit **
  13  norm          .10000E-03    1.0938        .36289E-06** at limit **
  14  Prefactor     15.193        9.3122       -.21543E-07   -.87660E-03
  15  Prefactor     9.5046        4.0183        .17606E-06    .27794E-03
  16  Prefactor     13.595        5.9214        .14098E-06   -.37307E-02
  17  Normalizat    .51381        .22648       -.15881E-06    .19397E-04
  18  Prefactor     1.4033        .20005       -.12903E-05    .35730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.46452
  Prefactor  = 15.7677
  norm       = 0.0860992
  norm       = 1.61974
  Prefactor  = 24.6919
  Prefactor  = 82.3959
  Prefactor  = 0.000100007
  norm       = 13.048
  Prefactor  = 2.68344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1926
  Prefactor  = 9.50464
  Prefactor  = 13.595
  Normalizat = 0.513807
  Prefactor  = 1.40332
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.089     FROM HESSE     STATUS=OK           306 CALLS     1842 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4645        4.6292        .54312E-02   -1.5336    
   2  Prefactor     15.768        14.840        .25214E-02   -1.4914    
   3  norm          .86099E-01    .65407        .21234E-01   -1.5649    
   4  norm          1.6197        .75539        .83139E-02   -1.5453    
   5  Prefactor     24.692        13.903        .20152E-02   -1.4714    
   6  Prefactor     82.396        55.319        .11083E-02   -1.3890    
   7  Prefactor     .10001E-03    38.460        .14724       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.048        12.872        .27722E-02   -1.4985    
   9  Prefactor     2.6834        7.6609        .62158E-02   -1.5380    
  10  Prefactor     .10000E-03    23.279        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.393        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .73050        .26373E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.193        9.5328        .25696E-02   -1.4928    
  15  Prefactor     9.5046        4.1009        .32496E-02   -1.5091    
  16  Prefactor     13.595        9.9965        .27156E-02   -1.4970    
  17  Normalizat    .51381        .20624        .81763E-01   -1.1178    
  18  Prefactor     1.4033        .17600        .46687E-01   -.80284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30851e-07
Minuit parameter uncertainties:
  1  4.62964
  2  14.844
  3  0.474346
  4  0.755391
  5  13.9048
  6  55.3538
  7  0.00102431
  8  12.8749
  9  7.66367
  10  3.47693e-05
  11  1.20438e-06
  12  1.62604e-06
  13  4.03604e-07
  14  9.53375
  15  4.10102
  16  9.99768
  17  0.206543
  18  0.176071
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.469e+01  1.390e+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.403e+00  1.761e-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.138e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.01
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 2.86e-05 +/- 1.61e-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) = 5986.08118243
delta logL = 0.00755588087304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5986.0760227
delta logL = 0.0127156152103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.388       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1233       1.0000          .0000       10.000    
     3 'Normalizat'    .51749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4011       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=   5986.076     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.388        332.89        .19496E-02   -.44620E-03
   2  Index         2.1242        3.2309        .13625       -.70513E-04
   3  Normalizat    .51735        .11157        .81500E-01    .90534E-04
   4  Prefactor     1.4013        .81092E-01    .46716E-01    .59882E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.3882
  Index      = 2.12418
  Normalizat = 0.517352
  Prefactor  = 1.40134
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.076     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.388        18.265        .77984E-04   -1.4680    
   2  Index         2.1242        .41676        .52212E-02   -.61280    
   3  Normalizat    .51735        .22089        .36097E-03   -1.1162    
   4  Prefactor     1.4013        .19937        .20650E-03   -.80342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15584e-10
Minuit parameter uncertainties:
  1  18.269
  2  0.417488
  3  0.221268
  4  0.199479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680968': 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) = 5986.07601802
delta logL = 0.0127202977446

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.639e+01  1.827e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.124e+00  4.175e-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.401e+00  1.995e-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.174e-01  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.04
Ra Dec: 152.014 6.348
Photon Index (Free Index): 2.12 +/- 0.42
Photon Flux (Free Index): 5.96e-08 +/- 3.75e-08
Energy Flux (Free Index): 3.11e-05 +/- 2.46e-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/680968/cmap_HighResolution_342489601_342748801_4FGL_J1008.0+0620_daily_bin398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='3.11e-05', photon_flux_error='3.52e-08', dlogl='1.27e-02', energy_flux='2.86e-05', photon_flux2='5.96e-08', job_status='DONE', time_completed='2021-09-01 11:18:19.307636', photon_index_error2='0.42', photon_index2='2.12', ts='9.01', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='2.46e-05', EG='0.51', time_epoch_completed='1630520299.31', return_code='0', job_id='680968', GAL2='1.40', EG2='0.52', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='3.75e-08', ts2='9.04', photon_index='2.19' WHERE bin_id='398' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:18:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 680968: <4FGL_J1008.0+0620_daily_bin398> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin398 152.014 6.3475 342489601 342748801 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 :                                   480.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             227.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            723 sec.

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

