/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 147 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 = 6319
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1008.0+0620_daily_bin91
RA = 152.014, Dec = 6.3475
tmin = 262915201, tmax = 263174401
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='679281', job_status='RUN', time_executed='2021-09-01 11:04:14.707069', time_epoch_executed='1630519454.71' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/679281

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/679281/ft1_4FGL_J1008.0+0620_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/679281/ft2_4FGL_J1008.0+0620_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/679281/ft1_4FGL_J1008.0+0620_daily_bin91.fits outfile=/scratch/kocevski/679281/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin91.fits ra=152.014 dec=6.3475 rad=12.0 tmin=262915201.0 tmax=263174401.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 2.45
user 1.12
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/679281/ft1_filtered_4FGL_J1008.0+0620_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/679281/ft2_4FGL_J1008.0+0620_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/679281/ltcube_262915201_263174401_4FGL_J1008.0+0620_daily_bin91.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/679281/ft2_4FGL_J1008.0+0620_daily_bin91.fits
.....................!
real 11.59
user 10.58
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/679281/ft1_filtered_4FGL_J1008.0+0620_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/679281/ft2_4FGL_J1008.0+0620_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/679281/ltcube_262915201_263174401_4FGL_J1008.0+0620_daily_bin91.fits outfile=/scratch/kocevski/679281/expmap_262915201_263174401_4FGL_J1008.0+0620_daily_bin91.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/679281/ltcube_262915201_263174401_4FGL_J1008.0+0620_daily_bin91.fits
.....................!
real 192.55
user 184.38
sys 6.48

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/679281/ft1_filtered_4FGL_J1008.0+0620_daily_bin91.fits scfile=/scratch/kocevski/679281/ft2_4FGL_J1008.0+0620_daily_bin91.fits outfile=/scratch/kocevski/679281/cmap_262915201_263174401_4FGL_J1008.0+0620_daily_bin91.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 2.24
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/679281/ft1_filtered_4FGL_J1008.0+0620_daily_bin91.fits scfile=/scratch/kocevski/679281/ft2_4FGL_J1008.0+0620_daily_bin91.fits outfile=/scratch/kocevski/679281/cmap_HighResolution_262915201_263174401_4FGL_J1008.0+0620_daily_bin91.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 3.20
user 0.37
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5670       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.260       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7130       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.509       1.0000         .10000E-03   10000.    
     8 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    226.63       1.0000         .10000E-03   10000.    
    11 'Prefactor '    107.79       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1463       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .34849       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.405       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.5440       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .52833       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=   5742.120     FROM MIGRAD    STATUS=CONVERGED    374 CALLS     1821 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3152        .43884E-07** at limit **
   2  Prefactor     .10000E-03    18.953        .54456E-06** at limit **
   3  norm          .10000E-03    .53395        .55177E-08** at limit **
   4  norm          2.5673        .76936        .11724E-06   -.30454E-03
   5  Prefactor     16.264        12.062       -.63362E-05   -.12358E-04
   6  Prefactor     9.8372        48.473        .10541E-04    .31260E-04
   7  Prefactor     23.476        39.433       -.48798E-04   -.19166E-04
   8  norm          .10000E-03    7.7758       -.62811E-06** at limit **
   9  Prefactor     .10000E-03    5.2768       -.32445E-06** at limit **
  10  Prefactor     226.74        92.268        .52578E-04    .16605E-03
  11  Prefactor     107.77        67.036       -.17758E-04    .10864E-03
  12  Prefactor     .10000E-03    24.166       -.12241E-05** at limit **
  13  norm          2.1463        1.3699        .11597E-06    .17434E-03
  14  Prefactor     .10000E-03    3.1914        .22287E-06** at limit **
  15  Prefactor     .36038        2.2695       -.36689E-05    .95455E-03
  16  Prefactor     12.403        11.721        .38908E-05    .78535E-03
  17  Normalizat    1.5432        .20868       -.65239E-05    .10592E-02
  18  Prefactor     .52886        .16101        .58424E-05    .11473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.56726
  Prefactor  = 16.2635
  Prefactor  = 9.8372
  Prefactor  = 23.4759
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 226.736
  Prefactor  = 107.769
  Prefactor  = 0.0001
  norm       = 2.14629
  Prefactor  = 0.0001
  Prefactor  = 0.360375
  Prefactor  = 12.4028
  Normalizat = 1.54321
  Prefactor  = 0.528862
 **********
 **   18 **HESSE 
 **********

 FCN=   5742.120     FROM HESSE     STATUS=OK           244 CALLS     2065 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4366        .26928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.565        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .55297        .10796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5673        .76953        .34634E-04   -1.5388    
   5  Prefactor     16.264        12.066        .99324E-04   -1.4901    
   6  Prefactor     9.8372        48.160        .12858E-03   -1.5081    
   7  Prefactor     23.476        39.399        .82614E-04   -1.4739    
   8  norm          .10000E-03    7.7831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2852        .16991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     226.74        92.480        .13438E-03   -1.2685    
  11  Prefactor     107.77        66.861        .38738E-04   -1.3628    
  12  Prefactor     .10000E-03    24.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1463        1.3655        .68136E-04   -1.5415    
  14  Prefactor     .10000E-03    3.2447        .13217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .36038        11.732        .20312E-02   -1.5588    
  16  Prefactor     12.403        11.687        .11373E-03   -1.5003    
  17  Normalizat    1.5432        .24557        .23105E-03   -.76571    
  18  Prefactor     .52886        .18682        .29990E-03   -1.1067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41896e-09
Minuit parameter uncertainties:
  1  8.34431e-06
  2  3.83033e-05
  3  2.58428e-08
  4  0.769538
  5  12.0677
  6  43.5882
  7  39.4428
  8  0.000153081
  9  7.39219e-05
  10  92.5398
  11  66.908
  12  5.11802e-05
  13  1.36549
  14  4.04106e-05
  15  4.11277
  16  11.6889
  17  0.245763
  18  0.187037
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.626e+01  1.207e+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:  5.289e-01  1.870e-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.543e+00  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.11
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 4.12e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.40e-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) = 5742.11170963
delta logL = 0.0078587077769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5742.10865581
delta logL = 0.0109125252129

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.329       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1060       1.0000          .0000       10.000    
     3 'Normalizat'    1.5465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52719       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=   5742.109     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      261 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.330        14.736        .48107E-03    .18953E-04
   2  Index         2.1059        .57389        .75980E-02    .26131E-03
   3  Normalizat    1.5465        .23063        .23087E-03   -.71401E-05
   4  Prefactor     .52721        .18463        .30034E-03   -.23052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3304
  Index      = 2.10585
  Normalizat = 1.54651
  Prefactor  = 0.527214
 **********
 **   18 **HESSE 
 **********

 FCN=   5742.109     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.330        14.445        .19243E-04   -1.4875    
   2  Index         2.1059        .56258        .15196E-02   -.61729    
   3  Normalizat    1.5465        .23077        .92350E-05   -.76480    
   4  Prefactor     .52721        .18476        .12014E-04   -1.1074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31363e-12
Minuit parameter uncertainties:
  1  14.4483
  2  0.564376
  3  0.230924
  4  0.18497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/679281': 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) = 5742.10865577
delta logL = 0.010912567679

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.733e+01  1.445e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.106e+00  5.644e-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:  5.272e-01  1.850e-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.547e+00  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 152.014 6.348
Photon Index (Free Index): 2.11 +/- 0.56
Photon Flux (Free Index): 3.80e-08 +/- 3.56e-08
Energy Flux (Free Index): 2.06e-05 +/- 2.00e-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/679281/cmap_HighResolution_262915201_263174401_4FGL_J1008.0+0620_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.12e-08', energy_flux2='2.06e-05', photon_flux_error='3.06e-08', dlogl='1.09e-02', energy_flux='1.89e-05', photon_flux2='3.80e-08', job_status='DONE', time_completed='2021-09-01 11:12:55.089819', photon_index_error2='0.56', photon_index2='2.11', ts='5.11', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='1.54', time_epoch_completed='1630519975.09', return_code='0', job_id='679281', GAL2='0.53', EG2='1.55', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='3.56e-08', ts2='5.14', photon_index='2.19' WHERE bin_id='91' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:12:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 679281: <4FGL_J1008.0+0620_daily_bin91> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin91> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 11:01:05 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:01:07 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:01:07 2021
Terminated at Wed Sep  1 11:12:55 2021
Results reported at Wed Sep  1 11:12:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin91 152.014 6.3475 262915201 263174401 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 :                                   483.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             270.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            710 sec.

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

