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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin594
RA = 152.014, Dec = 6.3475
tmin = 393292801, tmax = 393552001
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='682533', job_status='RUN', time_executed='2021-09-01 11:14:04.179580', time_epoch_executed='1630520044.18' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682533

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682533/ft1_4FGL_J1008.0+0620_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682533/ft2_4FGL_J1008.0+0620_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682533/ft1_4FGL_J1008.0+0620_daily_bin594.fits outfile=/scratch/kocevski/682533/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin594.fits ra=152.014 dec=6.3475 rad=12.0 tmin=393292801.0 tmax=393552001.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.91
user 4.49
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/682533/ft2_4FGL_J1008.0+0620_daily_bin594.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/682533/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin594.fits evtable="EVENTS" outfile="/scratch/kocevski/682533/ft1_filtered_4FGL_J1008.0+0620_daily_bin594.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.52
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682533/ft1_filtered_4FGL_J1008.0+0620_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/682533/ft2_4FGL_J1008.0+0620_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/682533/ltcube_393292801_393552001_4FGL_J1008.0+0620_daily_bin594.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/682533/ft2_4FGL_J1008.0+0620_daily_bin594.fits
.....................!
real 12.18
user 11.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682533/ft1_filtered_4FGL_J1008.0+0620_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/682533/ft2_4FGL_J1008.0+0620_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/682533/ltcube_393292801_393552001_4FGL_J1008.0+0620_daily_bin594.fits outfile=/scratch/kocevski/682533/expmap_393292801_393552001_4FGL_J1008.0+0620_daily_bin594.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/682533/ltcube_393292801_393552001_4FGL_J1008.0+0620_daily_bin594.fits
.....................!
real 192.38
user 187.47
sys 4.47

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/682533/ft1_filtered_4FGL_J1008.0+0620_daily_bin594.fits scfile=/scratch/kocevski/682533/ft2_4FGL_J1008.0+0620_daily_bin594.fits outfile=/scratch/kocevski/682533/cmap_393292801_393552001_4FGL_J1008.0+0620_daily_bin594.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682533/ft1_filtered_4FGL_J1008.0+0620_daily_bin594.fits scfile=/scratch/kocevski/682533/ft2_4FGL_J1008.0+0620_daily_bin594.fits outfile=/scratch/kocevski/682533/cmap_HighResolution_393292801_393552001_4FGL_J1008.0+0620_daily_bin594.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4831       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.6785       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5931       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.407       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.865       1.0000         .10000E-03   10000.    
     8 'norm      '    15.803       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6059       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    68.099       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10548E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2136       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9574       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .93622       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94321       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5789.144     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2006 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4831        4.9967        .13387E-03    .65391E-05
   2  Prefactor     .10000E-03    12.473        .18142E-02** at limit **
   3  norm          3.6786        1.5100        .56665E-04    .15047E-04
   4  norm          1.5931        .73974        .42389E-04    .61418E-04
   5  Prefactor     17.412        14.141        .95996E-04    .75794E-05
   6  Prefactor     .10000E-03    37.284        .18142E-02** at limit **
   7  Prefactor     29.908        47.908        .73315E-04    .83736E-05
   8  norm          15.812        17.858        .10075E-03    .64317E-05
   9  Prefactor     1.5520        105.29        .33440E-03    .71395E-05
  10  Prefactor     .10000E-03    30.333        .18142E-02** at limit **
  11  Prefactor     68.330        120.35        .24320E-03    .17670E-04
  12  Prefactor     .10000E-03    16.194        .18142E-02** at limit **
  13  norm          .10000E-03    .37553        .45220E-03** at limit **
  14  Prefactor     .10000E-03    5.6551        .17470E-02** at limit **
  15  Prefactor     3.2136        2.7824        .11229E-03   -.11239E-04
  16  Prefactor     1.9580        6.4107        .14827E-02    .63218E-03
  17  Normalizat    .93628        .22285        .26345E-03    .21663E-04
  18  Prefactor     .94312        .18187        .22375E-03    .40647E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.48307
  Prefactor  = 0.0001
  norm       = 3.67855
  norm       = 1.5931
  Prefactor  = 17.412
  Prefactor  = 0.0001
  Prefactor  = 29.9083
  norm       = 15.8119
  Prefactor  = 1.55204
  Prefactor  = 0.0001
  Prefactor  = 68.3301
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.21356
  Prefactor  = 1.95798
  Normalizat = 0.936276
  Prefactor  = 0.943119
 **********
 **   18 **HESSE 
 **********

 FCN=   5789.144     FROM HESSE     STATUS=OK           228 CALLS     2234 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4831        4.9966        .53548E-05   -1.5161    
   2  Prefactor     .10000E-03    12.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6786        1.5100        .22666E-05   -1.5324    
   4  norm          1.5931        .73973        .16956E-05   -1.5456    
   5  Prefactor     17.412        14.135        .38398E-05   -1.4873    
   6  Prefactor     .10000E-03    37.288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.908        47.915        .29326E-05   -1.4614    
   8  norm          15.812        17.853        .40301E-05   -1.4912    
   9  Prefactor     1.5520        101.23        .13376E-04   -1.5459    
  10  Prefactor     .10000E-03    30.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     68.330        118.10        .97278E-05   -1.4053    
  12  Prefactor     .10000E-03    16.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .37554        .90439E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6597        .34941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2136        2.7818        .44914E-05   -1.5349    
  16  Prefactor     1.9580        6.4066        .29653E-03   -1.5428    
  17  Normalizat    .93628        .22307        .10538E-04   -.95197    
  18  Prefactor     .94312        .18206        .89501E-05   -.94650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29865e-12
Minuit parameter uncertainties:
  1  4.99689
  2  5.75345e-06
  3  1.51001
  4  0.739738
  5  14.1373
  6  6.47849e-05
  7  47.9764
  8  17.8585
  9  25.1126
  10  6.81866e-06
  11  118.513
  12  2.02096e-05
  13  7.66249e-08
  14  4.19157e-06
  15  2.78193
  16  6.40884
  17  0.223289
  18  0.182178
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.741e+01  1.414e+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.431e-01  1.822e-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:  9.363e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 4.41e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.64e-05

TS (Fixed Index): 2.82
Ra Dec: 152.014 6.348
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682533/likelihoodResults_393292801_393552001_4FGL_J1008.0+0620_daily_bin594.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) = 5789.128278
delta logL = 0.0156452717338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5789.11873506
delta logL = 0.0251882200801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.264       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3199       1.0000          .0000       10.000    
     3 'Normalizat'    .93010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94666       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5789.119     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      237 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.261        16.484        .10252E-03    .14997E-02
   2  Index         2.3200        .63169        .63869E-02    .46753E-03
   3  Normalizat    .93013        .21446        .26420E-03   -.94884E-04
   4  Prefactor     .94662        .18194        .22338E-03   -.59531E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.261
  Index      = 2.32003
  Normalizat = 0.930132
  Prefactor  = 0.946625
 **********
 **   18 **HESSE 
 **********

 FCN=   5789.119     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.261        15.501        .20504E-04   -1.4926    
   2  Index         2.3200        .59383        .25547E-03   -.56568    
   3  Normalizat    .93013        .21444        .10568E-04   -.95409    
   4  Prefactor     .94662        .18196        .44675E-04   -.94530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32243e-09
Minuit parameter uncertainties:
  1  15.5052
  2  0.595809
  3  0.214639
  4  0.182079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682533': 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) = 5789.11873502
delta logL = 0.0251882510311

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.526e+01  1.551e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.320e+00  5.958e-01  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  9.466e-01  1.821e-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:  9.301e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 152.014 6.348
Photon Index (Free Index): 2.32 +/- 0.60
Photon Flux (Free Index): 4.90e-08 +/- 4.19e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.61e-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/682533/cmap_HighResolution_393292801_393552001_4FGL_J1008.0+0620_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', comment='SUCCESS', photon_flux='4.41e-08', energy_flux2='1.80e-05', photon_flux_error='3.58e-08', dlogl='2.52e-02', energy_flux='2.02e-05', photon_flux2='4.90e-08', job_status='DONE', time_completed='2021-09-01 11:23:12.780166', photon_index_error2='0.60', photon_index2='2.32', ts='2.82', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.61e-05', EG='0.94', time_epoch_completed='1630520592.78', return_code='0', job_id='682533', GAL2='0.95', EG2='0.93', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='4.19e-08', ts2='2.89', photon_index='2.19' WHERE bin_id='594' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:23:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 682533: <4FGL_J1008.0+0620_daily_bin594> in cluster <slac> Done

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

Your job looked like:

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

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

