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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin624
RA = 152.014, Dec = 6.3475
tmin = 401068801, tmax = 401328001
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='682594', job_status='RUN', time_executed='2021-09-01 11:12:07.031339', time_epoch_executed='1630519927.03' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682594

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682594/ft1_4FGL_J1008.0+0620_daily_bin624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682594/ft2_4FGL_J1008.0+0620_daily_bin624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682594/ft1_4FGL_J1008.0+0620_daily_bin624.fits outfile=/scratch/kocevski/682594/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin624.fits ra=152.014 dec=6.3475 rad=12.0 tmin=401068801.0 tmax=401328001.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.41
user 3.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682594/ft1_filtered_4FGL_J1008.0+0620_daily_bin624.fits" evtable="EVENTS" scfile=/scratch/kocevski/682594/ft2_4FGL_J1008.0+0620_daily_bin624.fits sctable="SC_DATA" outfile=/scratch/kocevski/682594/ltcube_401068801_401328001_4FGL_J1008.0+0620_daily_bin624.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/682594/ft2_4FGL_J1008.0+0620_daily_bin624.fits
.....................!
real 11.96
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682594/ft1_filtered_4FGL_J1008.0+0620_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/682594/ft2_4FGL_J1008.0+0620_daily_bin624.fits sctable="SC_DATA" expcube=/scratch/kocevski/682594/ltcube_401068801_401328001_4FGL_J1008.0+0620_daily_bin624.fits outfile=/scratch/kocevski/682594/expmap_401068801_401328001_4FGL_J1008.0+0620_daily_bin624.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/682594/ltcube_401068801_401328001_4FGL_J1008.0+0620_daily_bin624.fits
.....................!
real 189.31
user 184.69
sys 3.73

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/682594/ft1_filtered_4FGL_J1008.0+0620_daily_bin624.fits scfile=/scratch/kocevski/682594/ft2_4FGL_J1008.0+0620_daily_bin624.fits outfile=/scratch/kocevski/682594/cmap_401068801_401328001_4FGL_J1008.0+0620_daily_bin624.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.66
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682594/ft1_filtered_4FGL_J1008.0+0620_daily_bin624.fits scfile=/scratch/kocevski/682594/ft2_4FGL_J1008.0+0620_daily_bin624.fits outfile=/scratch/kocevski/682594/cmap_HighResolution_401068801_401328001_4FGL_J1008.0+0620_daily_bin624.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.67
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7482       1.0000         .10000E-03   10000.    
     4 'norm      '    .94826       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.105       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.092       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6144       1.0000         .10000E-03   10000.    
    10 'Prefactor '    82.260       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.915       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7430       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2287       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2001       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .72968       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=   5386.212     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1728 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6566        .17402E-06** at limit **
   2  Prefactor     .10000E-03    11.283       -.31876E-06** at limit **
   3  norm          1.7480        1.1716       -.79477E-07   -.51595E-04
   4  norm          .94825        .66987       -.71103E-07   -.25520E-03
   5  Prefactor     17.106        14.533       -.50594E-06    .14058E-04
   6  Prefactor     21.074        44.173       -.25187E-04    .73916E-05
   7  Prefactor     .10000E-03    27.337        .75234E-06** at limit **
   8  norm          .10000E-03    9.9291        .55124E-06** at limit **
   9  Prefactor     6.5955        14.570        .46672E-05   -.98407E-05
  10  Prefactor     82.232        75.891       -.25709E-04   -.13249E-06
  11  Prefactor     .10000E-03    76.865        .31970E-05** at limit **
  12  Prefactor     18.913        21.384        .28939E-05    .10788E-05
  13  norm          2.7428        1.5073        .13704E-06    .16841E-03
  14  Prefactor     .10000E-03    2.8252       -.28946E-06** at limit **
  15  Prefactor     2.2287        2.6340       -.14845E-06   -.13928E-03
  16  Prefactor     .10000E-03    5.3933       -.56507E-06** at limit **
  17  Normalizat    1.2003        .19639        .47819E-05   -.14034E-03
  18  Prefactor     .72959        .15598       -.53694E-06    .21291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74805
  norm       = 0.948252
  Prefactor  = 17.1057
  Prefactor  = 21.0744
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.59545
  Prefactor  = 82.2323
  Prefactor  = 0.000100001
  Prefactor  = 18.913
  norm       = 2.74279
  Prefactor  = 0.0001
  Prefactor  = 2.2287
  Prefactor  = 0.0001
  Normalizat = 1.20029
  Prefactor  = 0.729589
 **********
 **   18 **HESSE 
 **********

 FCN=   5386.212     FROM HESSE     STATUS=OK           248 CALLS     1976 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6664        .92223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7480        1.1708        .62111E-04   -1.5444    
   4  norm          .94825        .65079        .47699E-03   -1.5513    
   5  Prefactor     17.106        14.517        .96842E-04   -1.4881    
   6  Prefactor     21.074        44.158        .87214E-04   -1.4790    
   7  Prefactor     .10000E-03    27.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.9495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.5955        14.424        .15603E-03   -1.5194    
  10  Prefactor     82.232        75.828        .44286E-04   -1.3892    
  11  Prefactor     .10000E-03    76.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.913        21.307        .92091E-04   -1.4838    
  13  norm          2.7428        1.5047        .64172E-04   -1.5377    
  14  Prefactor     .10000E-03    2.8364        .12043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2287        2.6116        .12425E-03   -1.5409    
  16  Prefactor     .10000E-03    17.701        .32837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2003        .22834        .23719E-03   -.86594    
  18  Prefactor     .72959        .18230        .24633E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45801e-10
Minuit parameter uncertainties:
  1  7.54576e-06
  2  3.52506e-05
  3  1.17086
  4  0.650796
  5  14.5202
  6  44.2267
  7  0.000284429
  8  7.94234e-05
  9  14.4311
  10  75.9175
  11  0.000579262
  12  21.3151
  13  1.50471
  14  9.17902e-06
  15  2.61169
  16  3.35592e-05
  17  0.228534
  18  0.182447
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.711e+01  1.452e+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:  7.296e-01  1.824e-01  0.000e+00  1.000e+01 ( 1.000e+00)
482        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
483        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.200e+00  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.46
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 4.33e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.68e-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) = 5386.14273931
delta logL = 0.0694294911009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5386.14020871
delta logL = 0.0719600932835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.450       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8752       1.0000          .0000       10.000    
     3 'Normalizat'    1.2193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72139       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=   5386.140     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      268 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.451        16.331        .95878E-04   -.93807E-03
   2  Index         1.8751        .82467        .10982E-01   -.20978E-03
   3  Normalizat    1.2192        .22066        .23572E-03    .23024E-03
   4  Prefactor     .72150        .18098        .24765E-03    .16802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4509
  Index      = 1.87508
  Normalizat = 1.21923
  Prefactor  = 0.7215
 **********
 **   18 **HESSE 
 **********

 FCN=   5386.140     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.451        16.514        .19176E-04   -1.4872    
   2  Index         1.8751        .83287        .43927E-03   -.67511    
   3  Normalizat    1.2192        .22071        .47145E-04   -.86011    
   4  Prefactor     .72150        .18108        .99061E-05   -1.0269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64011e-09
Minuit parameter uncertainties:
  1  16.5186
  2  0.839327
  3  0.220883
  4  0.181224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682594': 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) = 5386.14020852
delta logL = 0.0719602869149

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.745e+01  1.652e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  1.875e+00  8.393e-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:  7.215e-01  1.812e-01  0.000e+00  1.000e+01 ( 1.000e+00)
482        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
483        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.219e+00  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.62
Ra Dec: 152.014 6.348
Photon Index (Free Index): 1.88 +/- 0.84
Photon Flux (Free Index): 2.64e-08 +/- 4.64e-08
Energy Flux (Free Index): 2.54e-05 +/- 3.19e-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/682594/cmap_HighResolution_401068801_401328001_4FGL_J1008.0+0620_daily_bin624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.33e-08', energy_flux2='2.54e-05', photon_flux_error='3.68e-08', dlogl='7.20e-02', energy_flux='1.98e-05', photon_flux2='2.64e-08', job_status='DONE', time_completed='2021-09-01 11:19:56.073064', photon_index_error2='0.84', photon_index2='1.88', ts='5.46', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='3.19e-05', EG='1.20', time_epoch_completed='1630520396.07', return_code='0', job_id='682594', GAL2='0.72', EG2='1.22', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='4.64e-08', ts2='5.62', photon_index='2.19' WHERE bin_id='624' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:19:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 682594: <4FGL_J1008.0+0620_daily_bin624> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin624 152.014 6.3475 401068801 401328001 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 :                                   465.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   517 sec.
    Turnaround time :                            519 sec.

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

