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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin400
RA = 152.014, Dec = 6.3475
tmin = 343008001, tmax = 343267201
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='680971', job_status='RUN', time_executed='2021-09-01 11:10:01.300645', time_epoch_executed='1630519801.3' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680971

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680971/ft1_4FGL_J1008.0+0620_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680971/ft2_4FGL_J1008.0+0620_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680971/ft1_4FGL_J1008.0+0620_daily_bin400.fits outfile=/scratch/kocevski/680971/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin400.fits ra=152.014 dec=6.3475 rad=12.0 tmin=343008001.0 tmax=343267201.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.93
user 3.62
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/680971/ft2_4FGL_J1008.0+0620_daily_bin400.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/680971/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin400.fits evtable="EVENTS" outfile="/scratch/kocevski/680971/ft1_filtered_4FGL_J1008.0+0620_daily_bin400.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.88
user 0.33
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680971/ft1_filtered_4FGL_J1008.0+0620_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/680971/ft2_4FGL_J1008.0+0620_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/680971/ltcube_343008001_343267201_4FGL_J1008.0+0620_daily_bin400.fits outfile=/scratch/kocevski/680971/expmap_343008001_343267201_4FGL_J1008.0+0620_daily_bin400.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/680971/ltcube_343008001_343267201_4FGL_J1008.0+0620_daily_bin400.fits
.....................!
real 194.90
user 187.76
sys 5.68

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/680971/ft1_filtered_4FGL_J1008.0+0620_daily_bin400.fits scfile=/scratch/kocevski/680971/ft2_4FGL_J1008.0+0620_daily_bin400.fits outfile=/scratch/kocevski/680971/cmap_343008001_343267201_4FGL_J1008.0+0620_daily_bin400.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.68
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680971/ft1_filtered_4FGL_J1008.0+0620_daily_bin400.fits scfile=/scratch/kocevski/680971/ft2_4FGL_J1008.0+0620_daily_bin400.fits outfile=/scratch/kocevski/680971/cmap_HighResolution_343008001_343267201_4FGL_J1008.0+0620_daily_bin400.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.61
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37348E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15080E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1221       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2058       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.778       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10678E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    14.452       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12826E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.393       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.985       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14952E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10483       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3301       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7836       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70759E-01   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .87766       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1634       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6111.758     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1851 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7963         .0000    ** at limit **
   2  Prefactor     .10000E-03    14.661         .0000    ** at limit **
   3  norm          1.1214        1.1505         .0000        .62995E-03
   4  norm          1.2049        .63058         .0000        .68896E-03
   5  Prefactor     22.772        14.470         .0000       -.57939E-02
   6  Prefactor     .10000E-03    28.573         .0000    ** at limit **
   7  Prefactor     .10521E-03    28.386         .0000    ** at limit **
   8  norm          14.451        15.257         .0000       -.10359E-02
   9  Prefactor     .10000E-03    3.6469         .0000    ** at limit **
  10  Prefactor     32.397        40.702         .0000        .10013E-02
  11  Prefactor     34.965        32.680         .0000       -.23250E-02
  12  Prefactor     .10000E-03    6.2928         .0000    ** at limit **
  13  norm          .10322        .74820         .0000        .10828E-02
  14  Prefactor     1.3210        9.0366         .0000        .20649E-01
  15  Prefactor     4.7998        4.5266         .0000        .27896E-03
  16  Prefactor     .10478E-03    5.1673         .0000    ** at limit **
  17  Normalizat    .87748        .19805         .0000        .57274E-04
  18  Prefactor     1.1635        .16216         .0000        .43337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.1214
  norm       = 1.20495
  Prefactor  = 22.7718
  Prefactor  = 0.0001
  Prefactor  = 0.000105214
  norm       = 14.4514
  Prefactor  = 0.0001
  Prefactor  = 32.3973
  Prefactor  = 34.9654
  Prefactor  = 0.0001
  norm       = 0.103221
  Prefactor  = 1.32101
  Prefactor  = 4.79979
  Prefactor  = 0.000104784
  Normalizat = 0.877479
  Prefactor  = 1.16353
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.758     FROM HESSE     STATUS=OK           264 CALLS     2115 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.491        .20305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1214        1.1215        .80317E-04   -1.5496    
   4  norm          1.2049        .62195        .42757E-04   -1.5488    
   5  Prefactor     22.772        14.482        .83926E-04   -1.4753    
   6  Prefactor     .10000E-03    28.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10521E-03    29.993        .12454       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.451        15.255        .10536E-03   -1.4947    
   9  Prefactor     .10000E-03    3.6537        .14575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.397        40.724        .70403E-04   -1.4569    
  11  Prefactor     34.965        32.671        .67753E-04   -1.4525    
  12  Prefactor     .10000E-03    6.3004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10322        6.0659        .12447E-02   -1.5644    
  14  Prefactor     1.3210        8.9760        .19041E-02   -1.5478    
  15  Prefactor     4.7998        4.5332        .14383E-03   -1.5270    
  16  Prefactor     .10478E-03    13.104        .51679E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .87748        .22382        .28070E-03   -.97256    
  18  Prefactor     1.1635        .18513        .21466E-03   -.87461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1513e-08
Minuit parameter uncertainties:
  1  0.00039155
  2  1.87766e-05
  3  1.12157
  4  0.621956
  5  14.4845
  6  1.53446e-05
  7  0.0250237
  8  15.2595
  9  4.54562e-06
  10  40.7585
  11  32.688
  12  1.71427e-05
  13  1.58196
  14  6.88816
  15  4.53351
  16  0.0158388
  17  0.224061
  18  0.185232
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.277e+01  1.448e+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.164e+00  1.852e-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:  8.775e-01  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.28
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.77e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 2.64e-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) = 6111.75750153
delta logL = 0.000199385830456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6111.75742798
delta logL = 0.000272934303212

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.932       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1770       1.0000          .0000       10.000    
     3 'Normalizat'    .87838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1632       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=   6111.757     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.957        345.64        .20911E-02   -.35648E-04
   2  Index         2.1781        6.0649        .12857        .77270E-04
   3  Normalizat    .87825        .13819        .44625E-01    .16124E-04
   4  Prefactor     1.1632        .78236E-01    .35565E-01   -.77355E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.957
  Index      = 2.1781
  Normalizat = 0.878254
  Prefactor  = 1.16315
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.757     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.957        16.276        .83645E-04   -1.4749    
   2  Index         2.1781        .49410        .63976E-02   -.59968    
   3  Normalizat    .87825        .21382        .28060E-03   -.97229    
   4  Prefactor     1.1632        .18394        .21469E-03   -.87473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03226e-09
Minuit parameter uncertainties:
  1  16.279
  2  0.495291
  3  0.214029
  4  0.184046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680971': 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) = 6111.75742058
delta logL = 0.00028033801027

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.296e+01  1.628e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.178e+00  4.953e-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.163e+00  1.840e-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:  8.783e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.32
Ra Dec: 152.014 6.348
Photon Index (Free Index): 2.18 +/- 0.50
Photon Flux (Free Index): 5.70e-08 +/- 4.48e-08
Energy Flux (Free Index): 2.67e-05 +/- 2.01e-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/680971/cmap_HighResolution_343008001_343267201_4FGL_J1008.0+0620_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.77e-08', energy_flux2='2.67e-05', photon_flux_error='3.67e-08', dlogl='2.80e-04', energy_flux='2.64e-05', photon_flux2='5.70e-08', job_status='DONE', time_completed='2021-09-01 11:18:27.855570', photon_index_error2='0.50', photon_index2='2.18', ts='7.28', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='0.88', time_epoch_completed='1630520307.86', return_code='0', job_id='680971', GAL2='1.16', EG2='0.88', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='4.48e-08', ts2='7.32', photon_index='2.19' WHERE bin_id='400' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:18:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 680971: <4FGL_J1008.0+0620_daily_bin400> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin400> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 11:06:18 2021
Job was executed on host(s) <bullet0008>, 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:28 2021
Results reported at Wed Sep  1 11:18:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin400 152.014 6.3475 343008001 343267201 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 :                                   499.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            730 sec.

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

