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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin611
RA = 152.014, Dec = 6.3475
tmin = 397699201, tmax = 397958401
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='682567', job_status='RUN', time_executed='2021-09-01 11:11:33.548435', time_epoch_executed='1630519893.55' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682567

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682567/ft1_4FGL_J1008.0+0620_daily_bin611.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682567/ft2_4FGL_J1008.0+0620_daily_bin611.fits


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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682567/ft1_filtered_4FGL_J1008.0+0620_daily_bin611.fits" evtable="EVENTS" scfile=/scratch/kocevski/682567/ft2_4FGL_J1008.0+0620_daily_bin611.fits sctable="SC_DATA" outfile=/scratch/kocevski/682567/ltcube_397699201_397958401_4FGL_J1008.0+0620_daily_bin611.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/682567/ft2_4FGL_J1008.0+0620_daily_bin611.fits
.....................!
real 12.16
user 11.69
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682567/ft1_filtered_4FGL_J1008.0+0620_daily_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/682567/ft2_4FGL_J1008.0+0620_daily_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/682567/ltcube_397699201_397958401_4FGL_J1008.0+0620_daily_bin611.fits outfile=/scratch/kocevski/682567/expmap_397699201_397958401_4FGL_J1008.0+0620_daily_bin611.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/682567/ltcube_397699201_397958401_4FGL_J1008.0+0620_daily_bin611.fits
.....................!
real 190.58
user 184.85
sys 5.27

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/682567/ft1_filtered_4FGL_J1008.0+0620_daily_bin611.fits scfile=/scratch/kocevski/682567/ft2_4FGL_J1008.0+0620_daily_bin611.fits outfile=/scratch/kocevski/682567/cmap_397699201_397958401_4FGL_J1008.0+0620_daily_bin611.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.57
user 0.41
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682567/ft1_filtered_4FGL_J1008.0+0620_daily_bin611.fits scfile=/scratch/kocevski/682567/ft2_4FGL_J1008.0+0620_daily_bin611.fits outfile=/scratch/kocevski/682567/cmap_HighResolution_397699201_397958401_4FGL_J1008.0+0620_daily_bin611.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.221       1.0000         .10000E-03   10000.    
     3 'norm      '    4.1105       1.0000         .10000E-03   10000.    
     4 'norm      '    .32936       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.133       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.039       1.0000         .10000E-03   10000.    
     8 'norm      '    19.934       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.238       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.803       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11316E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.1325       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1762       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7306       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.084       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .75561       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3487       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=   5782.091     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     1748 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6191        .90712E-02** at limit **
   2  Prefactor     17.220        15.633        .24129E-02   -.64555E-04
   3  norm          4.1106        1.6676        .49709E-02    .14822E-03
   4  norm          .32951        .69423        .10553E-01    .18822E-02
   5  Prefactor     17.132        18.471        .24191E-02    .67064E-03
   6  Prefactor     .10000E-03    24.467        .90712E-02** at limit **
   7  Prefactor     49.039        48.688        .14316E-02   -.41121E-03
   8  norm          19.933        23.716        .22427E-02    .55594E-03
   9  Prefactor     21.241        22.517        .21728E-02   -.13755E-03
  10  Prefactor     .10000E-03    54.871        .90712E-02** at limit **
  11  Prefactor     17.804        66.684        .23731E-02   -.78101E-03
  12  Prefactor     .10000E-03    22.485        .90712E-02** at limit **
  13  norm          7.1326        2.3491        .37550E-02    .51600E-04
  14  Prefactor     9.1762        8.9568        .33076E-02    .16520E-02
  15  Prefactor     3.7306        3.2398        .52265E-02    .18319E-03
  16  Prefactor     19.085        12.093        .22921E-02    .82254E-03
  17  Normalizat    .75554        .22165        .75933E-01    .26891E-04
  18  Prefactor     1.3487        .18533        .51695E-01    .27937E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.2203
  norm       = 4.11063
  norm       = 0.329512
  Prefactor  = 17.1315
  Prefactor  = 0.0001
  Prefactor  = 49.039
  norm       = 19.9335
  Prefactor  = 21.2414
  Prefactor  = 0.0001
  Prefactor  = 17.8037
  Prefactor  = 0.0001
  norm       = 7.13257
  Prefactor  = 9.17618
  Prefactor  = 3.73055
  Prefactor  = 19.0845
  Normalizat = 0.755541
  Prefactor  = 1.34875
 **********
 **   18 **HESSE 
 **********

 FCN=   5782.091     FROM HESSE     STATUS=OK           248 CALLS     1996 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7399        .24029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.220        15.598        .96514E-04   -1.4878    
   3  norm          4.1106        1.6681        .59246E-04   -1.5302    
   4  norm          .32951        .68379        .84986E-04   -1.5593    
   5  Prefactor     17.132        18.477        .96763E-04   -1.4880    
   6  Prefactor     .10000E-03    24.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.039        48.688        .57264E-04   -1.4306    
   8  norm          19.933        23.701        .89710E-04   -1.4815    
   9  Prefactor     21.241        22.480        .86913E-04   -1.4786    
  10  Prefactor     .10000E-03    54.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.804        66.373        .94924E-04   -1.4864    
  12  Prefactor     .10000E-03    22.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.1326        2.3484        .63542E-04   -1.5174    
  14  Prefactor     9.1762        8.9489        .66153E-03   -1.5102    
  15  Prefactor     3.7306        3.2300        .11984E-03   -1.5322    
  16  Prefactor     19.085        12.082        .45842E-03   -1.4834    
  17  Normalizat    .75554        .25609        .33612E-03   -1.0174    
  18  Prefactor     1.3487        .21625        .22853E-03   -.81869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54937e-08
Minuit parameter uncertainties:
  1  2.5723e-07
  2  15.6019
  3  1.6681
  4  0.683802
  5  18.4831
  6  4.74551e-05
  7  48.7271
  8  23.712
  9  22.489
  10  7.97741e-05
  11  66.6498
  12  2.57476e-05
  13  2.3484
  14  8.95024
  15  3.23019
  16  12.0838
  17  0.256493
  18  0.216397
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.713e+01  1.848e+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.349e+00  2.164e-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.555e-01  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 4.34e-08 +/- 4.68e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 2.14e-05

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

Saving results to:
/scratch/kocevski/682567/likelihoodResults_397699201_397958401_4FGL_J1008.0+0620_daily_bin611.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) = 5781.39414345
delta logL = 0.696768126902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5781.38300925
delta logL = 0.707902327781

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2422       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0564       1.0000          .0000       10.000    
     3 'Normalizat'    .68059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3883       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=   5781.383     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      257 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2487        89.065        .37262E-02    .23958E-03
   2  Index         3.0565        2.6288        .11373        .14440E-03
   3  Normalizat    .68128        .75676E-01    .79508E-01    .22395E-04
   4  Prefactor     1.3877        .63193E-01    .51048E-01   -.87214E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24874
  Index      = 3.05655
  Normalizat = 0.681277
  Prefactor  = 1.38775
 **********
 **   18 **HESSE 
 **********

 FCN=   5781.383     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2487        15.979        .12762E-03   -1.5169    
   2  Index         3.0565        1.0886        .40882E-02   -.39921    
   3  Normalizat    .68128        .25427        .35204E-03   -1.0464    
   4  Prefactor     1.3877        .21932        .22567E-03   -.80734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97317e-08
Minuit parameter uncertainties:
  1  15.9889
  2  1.09903
  3  0.254711
  4  0.219471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682567': 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) = 5781.38300246
delta logL = 0.70790911921

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  7.249e+00  1.599e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  3.057e+00  1.099e+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.388e+00  2.195e-01  0.000e+00  1.000e+01 ( 1.000e+00)
482        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
483        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  6.813e-01  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 152.014 6.348
Photon Index (Free Index): 3.06 +/- 1.10
Photon Flux (Free Index): 1.02e-07 +/- 7.24e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.44e-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/682567/cmap_HighResolution_397699201_397958401_4FGL_J1008.0+0620_daily_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='4.34e-08', energy_flux2='1.98e-05', photon_flux_error='4.68e-08', dlogl='7.08e-01', energy_flux='1.99e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-01 11:20:13.015569', photon_index_error2='1.10', photon_index2='3.06', ts='1.83', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.44e-05', EG='0.76', time_epoch_completed='1630520413.02', return_code='0', job_id='682567', GAL2='1.39', EG2='0.68', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='7.24e-08', ts2='3.41', photon_index='2.19' WHERE bin_id='611' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:20:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 682567: <4FGL_J1008.0+0620_daily_bin611> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin611 152.014 6.3475 397699201 397958401 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 :                                   518.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            538 sec.

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

