/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 60 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 = 7441
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1008.0+0620_daily_bin1354
RA = 152.014, Dec = 6.3475
tmin = 590284801, tmax = 590544001
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='685934', job_status='RUN', time_executed='2021-09-01 11:24:18.250252', time_epoch_executed='1630520658.25' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='1354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685934

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685934/ft1_4FGL_J1008.0+0620_daily_bin1354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685934/ft2_4FGL_J1008.0+0620_daily_bin1354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685934/ft1_4FGL_J1008.0+0620_daily_bin1354.fits outfile=/scratch/kocevski/685934/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin1354.fits ra=152.014 dec=6.3475 rad=12.0 tmin=590284801.0 tmax=590544001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.76
user 3.47
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685934/ft1_filtered_4FGL_J1008.0+0620_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/685934/ft2_4FGL_J1008.0+0620_daily_bin1354.fits sctable="SC_DATA" expcube=/scratch/kocevski/685934/ltcube_590284801_590544001_4FGL_J1008.0+0620_daily_bin1354.fits outfile=/scratch/kocevski/685934/expmap_590284801_590544001_4FGL_J1008.0+0620_daily_bin1354.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/685934/ltcube_590284801_590544001_4FGL_J1008.0+0620_daily_bin1354.fits
.....................!
real 194.09
user 185.67
sys 4.84

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/685934/ft1_filtered_4FGL_J1008.0+0620_daily_bin1354.fits scfile=/scratch/kocevski/685934/ft2_4FGL_J1008.0+0620_daily_bin1354.fits outfile=/scratch/kocevski/685934/cmap_590284801_590544001_4FGL_J1008.0+0620_daily_bin1354.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 1.16
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/685934/ft1_filtered_4FGL_J1008.0+0620_daily_bin1354.fits scfile=/scratch/kocevski/685934/ft2_4FGL_J1008.0+0620_daily_bin1354.fits outfile=/scratch/kocevski/685934/cmap_HighResolution_590284801_590544001_4FGL_J1008.0+0620_daily_bin1354.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 1.36
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.946       1.0000         .10000E-03   10000.    
     3 'norm      '    3.4935       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4156       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .90334       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.474       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    18.727       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    62.704       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8156       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7571       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.566       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2662       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .74213       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=   5734.874     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1732 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7586        .15193E-07** at limit **
   2  Prefactor     21.947        16.151        .47431E-07   -.98449E-06
   3  norm          3.4936        1.4863        .12551E-07   -.68153E-04
   4  norm          1.4156        .67741        .58333E-08   -.17657E-03
   5  Prefactor     .92217        24.549        .50486E-05   -.21719E-03
   6  Prefactor     37.479        48.239        .13306E-05    .12001E-03
   7  Prefactor     .10000E-03    15.073        .28728E-07** at limit **
   8  norm          18.702        16.226       -.19380E-05   -.62025E-03
   9  Prefactor     .10000E-03    7.6859       -.10906E-06** at limit **
  10  Prefactor     .10000E-03    46.125        .30335E-06** at limit **
  11  Prefactor     62.703        51.232       -.14862E-06   -.53893E-04
  12  Prefactor     .10000E-03    13.283       -.55165E-07** at limit **
  13  norm          4.8156        1.8644       -.71161E-08   -.79665E-04
  14  Prefactor     .10000E-03    3.5157        .29498E-07** at limit **
  15  Prefactor     6.7573        3.6888       -.43228E-07   -.51459E-04
  16  Prefactor     11.566        9.6783        .67692E-06   -.42316E-03
  17  Normalizat    1.2662        .20917       -.45752E-06   -.36996E-04
  18  Prefactor     .74217        .16573        .97395E-07   -.68797E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.9471
  norm       = 3.49359
  norm       = 1.41561
  Prefactor  = 0.922169
  Prefactor  = 37.4794
  Prefactor  = 0.0001
  norm       = 18.7024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.7027
  Prefactor  = 0.0001
  norm       = 4.81556
  Prefactor  = 0.0001
  Prefactor  = 6.75726
  Prefactor  = 11.5663
  Normalizat = 1.26616
  Prefactor  = 0.74217
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.874     FROM HESSE     STATUS=OK           246 CALLS     1978 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9280        .19547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.947        16.141        .85502E-04   -1.4771    
   3  norm          3.4936        1.4888        .57573E-04   -1.5334    
   4  norm          1.4156        .67378        .41176E-04   -1.5470    
   5  Prefactor     .92217        26.433        .51279E-03   -1.5516    
   6  Prefactor     37.479        49.148        .65471E-04   -1.4483    
   7  Prefactor     .10000E-03    15.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          18.702        16.864        .92552E-04   -1.4843    
   9  Prefactor     .10000E-03    7.7214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    46.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     62.703        51.290        .50675E-04   -1.4123    
  12  Prefactor     .10000E-03    13.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8156        1.8639        .61440E-04   -1.5269    
  14  Prefactor     .10000E-03    3.5307        .13863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.7573        3.6896        .10160E-03   -1.5188    
  16  Prefactor     11.566        9.8464        .58898E-03   -1.5028    
  17  Normalizat    1.2662        .24849        .25276E-03   -.84582    
  18  Prefactor     .74217        .19577        .26167E-03   -1.0190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.449e-10
Minuit parameter uncertainties:
  1  1.31642e-06
  2  16.1446
  3  1.48881
  4  0.673784
  5  9.87853
  6  49.2009
  7  2.2794e-05
  8  16.8683
  9  1.15513e-05
  10  0.000214814
  11  51.3257
  12  8.54424e-06
  13  1.86388
  14  2.57243e-06
  15  3.6897
  16  9.84776
  17  0.248727
  18  0.195951
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  9.222e-01  9.879e+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

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  7.422e-01  1.960e-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.266e+00  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/685934/likelihoodResults_590284801_590544001_4FGL_J1008.0+0620_daily_bin1354.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5734.87418175
delta logL = 4.0644411456e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5734.87417652
delta logL = 4.58713984699e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92219       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2123       1.0000          .0000       10.000    
     3 'Normalizat'    1.2661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74218       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=   5734.874     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      249 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90820        23.261        .51551E-03    .10740E-04
   2  Index         2.2162        2.6209        .12173E-01    .55820E-05
   3  Normalizat    1.2661        .23835        .25277E-03   -.21619E-03
   4  Prefactor     .74221        .19493        .26166E-03   -.11470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.908203
  Index      = 2.21617
  Normalizat = 1.26607
  Prefactor  = 0.742213
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.874     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90820        21.739        .20621E-04   -1.5517    
   2  Index         2.2162        2.5482        .48693E-03   -.59049    
   3  Normalizat    1.2661        .23859        .50554E-04   -.84585    
   4  Prefactor     .74221        .19510        .10467E-04   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61793e-11
Minuit parameter uncertainties:
  1  8.88986
  2  2.74334
  3  0.238797
  4  0.195283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685934': 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) = 5734.87417465
delta logL = 4.77413968838e-05

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  9.082e-01  8.890e+00  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.216e+00  2.743e+00  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.422e-01  1.953e-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.266e+00  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 152.014 6.348

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/685934/cmap_HighResolution_590284801_590544001_4FGL_J1008.0+0620_daily_bin1354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2021-09-01 11:33:18.853125', job_id='685934', GAL2='0.74', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630521198.85', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='4.77e-05', ts2='0.01', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1354' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:33:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 685934: <4FGL_J1008.0+0620_daily_bin1354> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin1354> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 11:21:20 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:21:22 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:21:22 2021
Terminated at Wed Sep  1 11:33:19 2021
Results reported at Wed Sep  1 11:33:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin1354 152.014 6.3475 590284801 590544001 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 :                                   513.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             285.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            719 sec.

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

