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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin244
RA = 152.014, Dec = 6.3475
tmin = 302572801, tmax = 302832001
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='680733', job_status='RUN', time_executed='2021-09-01 11:09:49.399239', time_epoch_executed='1630519789.4' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680733

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680733/ft1_4FGL_J1008.0+0620_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680733/ft2_4FGL_J1008.0+0620_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680733/ft1_4FGL_J1008.0+0620_daily_bin244.fits outfile=/scratch/kocevski/680733/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin244.fits ra=152.014 dec=6.3475 rad=12.0 tmin=302572801.0 tmax=302832001.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.69
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680733/ft1_filtered_4FGL_J1008.0+0620_daily_bin244.fits" evtable="EVENTS" scfile=/scratch/kocevski/680733/ft2_4FGL_J1008.0+0620_daily_bin244.fits sctable="SC_DATA" outfile=/scratch/kocevski/680733/ltcube_302572801_302832001_4FGL_J1008.0+0620_daily_bin244.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/680733/ft2_4FGL_J1008.0+0620_daily_bin244.fits
.....................!
real 15.23
user 14.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680733/ft1_filtered_4FGL_J1008.0+0620_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/680733/ft2_4FGL_J1008.0+0620_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/680733/ltcube_302572801_302832001_4FGL_J1008.0+0620_daily_bin244.fits outfile=/scratch/kocevski/680733/expmap_302572801_302832001_4FGL_J1008.0+0620_daily_bin244.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/680733/ltcube_302572801_302832001_4FGL_J1008.0+0620_daily_bin244.fits
.....................!
real 191.92
user 185.87
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/680733/ft1_filtered_4FGL_J1008.0+0620_daily_bin244.fits scfile=/scratch/kocevski/680733/ft2_4FGL_J1008.0+0620_daily_bin244.fits outfile=/scratch/kocevski/680733/cmap_302572801_302832001_4FGL_J1008.0+0620_daily_bin244.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.79
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680733/ft1_filtered_4FGL_J1008.0+0620_daily_bin244.fits scfile=/scratch/kocevski/680733/ft2_4FGL_J1008.0+0620_daily_bin244.fits outfile=/scratch/kocevski/680733/cmap_HighResolution_302572801_302832001_4FGL_J1008.0+0620_daily_bin244.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.63
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17479E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5967       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1624       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.393       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3702       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1598       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.532       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .65645       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21102E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0777       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8082       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .96654       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3926       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=   7576.192     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1570 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    2.0873        .58547E-06** at limit **
   2  Prefactor     .10000E-03    6.1711       -.83907E-08** at limit **
   3  norm          2.5973        1.3476        .59873E-07   -.59838E-04
   4  norm          1.1627        .65347        .59921E-09   -.41443E-03
   5  Prefactor     .10000E-03    3.5099        .21658E-07** at limit **
   6  Prefactor     19.378        37.502        .65559E-05    .13318E-04
   7  Prefactor     .10000E-03    20.111       -.72707E-06** at limit **
   8  norm          6.3716        7.8193        .55374E-06    .46345E-05
   9  Prefactor     3.1621        5.9426       -.22721E-06   -.17379E-04
  10  Prefactor     11.543        29.341       -.50469E-06   -.34931E-05
  11  Prefactor     .10000E-03    20.245        .24149E-06** at limit **
  12  Prefactor     .10000E-03    6.0403        .14952E-06** at limit **
  13  norm          .65586        1.0023        .21040E-06    .16136E-04
  14  Prefactor     .63676E-01    2.7439       -.18413E-08   -.10962E-03
  15  Prefactor     3.0791        3.5991        .18440E-05    .44558E-05
  16  Prefactor     8.8107        7.2964        .31881E-06    .83541E-05
  17  Normalizat    .96625        .19208       -.52953E-06   -.66363E-05
  18  Prefactor     1.3926        .16036       -.73576E-06   -.64662E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  norm       = 2.59732
  norm       = 1.1627
  Prefactor  = 0.0001
  Prefactor  = 19.3778
  Prefactor  = 0.0001
  norm       = 6.37155
  Prefactor  = 3.16209
  Prefactor  = 11.5428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.655856
  Prefactor  = 0.0636763
  Prefactor  = 3.07911
  Prefactor  = 8.8107
  Normalizat = 0.966254
  Prefactor  = 1.39257
 **********
 **   18 **HESSE 
 **********

 FCN=   7576.192     FROM HESSE     STATUS=OK           258 CALLS     1828 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    27.192        .23801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.1907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5973        1.3455        .69490E-04   -1.5386    
   4  norm          1.1627        .64120        .49569E-04   -1.5492    
   5  Prefactor     .10000E-03    3.5154        .15924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.378        37.614        .90950E-04   -1.4827    
   7  Prefactor     .10000E-03    20.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3716        7.8138        .15903E-03   -1.5203    
   9  Prefactor     3.1621        5.9202        .22801E-03   -1.5352    
  10  Prefactor     11.543        29.329        .11797E-03   -1.5028    
  11  Prefactor     .10000E-03    20.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .65586        1.0012        .23787E-03   -1.5546    
  14  Prefactor     .63676E-01    5.4318        .47605E-01   -1.5658    
  15  Prefactor     3.0791        3.6151        .83681E-03   -1.5357    
  16  Prefactor     8.8107        7.2896        .13506E-03   -1.5114    
  17  Normalizat    .96625        .22727        .30482E-03   -.94170    
  18  Prefactor     1.3926        .19039        .22598E-03   -.80594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33611e-09
Minuit parameter uncertainties:
  1  0.00184864
  2  4.22212e-06
  3  1.3455
  4  0.641201
  5  1.43841e-07
  6  37.6598
  7  0.000124731
  8  7.81507
  9  5.9213
  10  29.3653
  11  2.20309e-05
  12  7.52158e-06
  13  1.00123
  14  1.17541
  15  3.61539
  16  7.29036
  17  0.227502
  18  0.190486
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.438e-07  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.393e+00  1.905e-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.663e-01  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 152.014 6.348
Photon Flux Upper Limit: 4.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/680733/likelihoodResults_302572801_302832001_4FGL_J1008.0+0620_daily_bin244.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): 102
logL (Free Index) = 7576.19359893
delta logL = -0.00134325871477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7576.19225616
delta logL = -4.9429218052e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1640       1.0000          .0000       10.000    
     3 'Normalizat'    .96641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3924       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=   7576.192     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10255E-03    3.2202        .16324E-01** at limit **
   2  Index         2.0839        8.5475        .50000        .46791E-04
   3  Normalizat    .96625        .42938E-02    .30482E-03    .27152E-04
   4  Prefactor     1.3926        .37544E-02    .22598E-03    .19822E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102546
  Index      = 2.08385
  Normalizat = 0.966254
  Prefactor  = 1.39257
 **********
 **   18 **HESSE 
 **********

 FCN=   7576.192     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10255E-03    43.111        .16717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0839        5.5711        .50000       -.62270    
   3  Normalizat    .96625        .15848E-01    .12193E-04   -.94170    
   4  Prefactor     1.3926        .13857E-01    .45196E-04   -.80594    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.764e-08
Minuit parameter uncertainties:
  1  0.0209682
  2  238.432
  3  0.0158476
  4  0.0138567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680733': 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): 102
logL (Free Index) = 7576.19225464
delta logL = 1.03167258203e-06

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.025e-04  2.097e-02  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.084e+00  2.384e+02  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.393e+00  1.386e-02  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.663e-01  1.585e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 152.014 6.348

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/680733/cmap_HighResolution_302572801_302832001_4FGL_J1008.0+0620_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2021-09-01 11:19:28.651995', job_id='680733', GAL2='1.39', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630520368.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='1.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='244' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:19:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 680733: <4FGL_J1008.0+0620_daily_bin244> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin244 152.014 6.3475 302572801 302832001 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 :                                   572.29 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             303.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

