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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin447
RA = 152.014, Dec = 6.3475
tmin = 355190401, tmax = 355449601
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='681048', job_status='RUN', time_executed='2021-09-01 11:09:07.203740', time_epoch_executed='1630519747.2' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681048

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681048/ft1_4FGL_J1008.0+0620_daily_bin447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681048/ft2_4FGL_J1008.0+0620_daily_bin447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681048/ft1_4FGL_J1008.0+0620_daily_bin447.fits outfile=/scratch/kocevski/681048/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin447.fits ra=152.014 dec=6.3475 rad=12.0 tmin=355190401.0 tmax=355449601.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.84
user 3.08
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681048/ft1_filtered_4FGL_J1008.0+0620_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/681048/ft2_4FGL_J1008.0+0620_daily_bin447.fits sctable="SC_DATA" expcube=/scratch/kocevski/681048/ltcube_355190401_355449601_4FGL_J1008.0+0620_daily_bin447.fits outfile=/scratch/kocevski/681048/expmap_355190401_355449601_4FGL_J1008.0+0620_daily_bin447.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/681048/ltcube_355190401_355449601_4FGL_J1008.0+0620_daily_bin447.fits
.....................!
real 195.90
user 185.32
sys 5.09

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/681048/ft1_filtered_4FGL_J1008.0+0620_daily_bin447.fits scfile=/scratch/kocevski/681048/ft2_4FGL_J1008.0+0620_daily_bin447.fits outfile=/scratch/kocevski/681048/cmap_355190401_355449601_4FGL_J1008.0+0620_daily_bin447.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.65
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681048/ft1_filtered_4FGL_J1008.0+0620_daily_bin447.fits scfile=/scratch/kocevski/681048/ft2_4FGL_J1008.0+0620_daily_bin447.fits outfile=/scratch/kocevski/681048/cmap_HighResolution_355190401_355449601_4FGL_J1008.0+0620_daily_bin447.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.72
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8343       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.359       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2970       1.0000         .10000E-03   10000.    
     4 'norm      '    .99997       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .83144E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.065       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.317       1.0000         .10000E-03   10000.    
     8 'norm      '    .10672E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11369E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    153.98       1.0000         .10000E-03   10000.    
    11 'Prefactor '    93.925       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8325       1.0000         .10000E-03   10000.    
    13 'norm      '    .82556       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5084       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.099       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1605       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94563       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=   5528.865     FROM MIGRAD    STATUS=CONVERGED    349 CALLS     1758 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8340        4.1922       -.75799E-07   -.28695E-03
   2  Prefactor     31.355        23.536       -.22091E-05   -.62411E-05
   3  norm          2.2971        1.5382        .10758E-08   -.36046E-03
   4  norm          .99987        .62488        .34731E-07   -.16180E-03
   5  Prefactor     .10001E-03    14.121        .15613E-06** at limit **
   6  Prefactor     10.062        28.219       -.45116E-05   -.85306E-05
   7  Prefactor     37.317        45.899        .75300E-06    .47147E-05
   8  norm          .10000E-03    11.649       -.12859E-06** at limit **
   9  Prefactor     .10000E-03    7.4589       -.96359E-06** at limit **
  10  Prefactor     153.95        76.009       -.21058E-04    .31660E-04
  11  Prefactor     93.965        82.568        .41227E-04    .67015E-04
  12  Prefactor     4.8161        27.602       -.19868E-04   -.11421E-03
  13  norm          .82435        1.1822       -.29815E-06   -.12824E-02
  14  Prefactor     .10000E-03    7.9914        .24197E-06** at limit **
  15  Prefactor     4.5088        3.1550       -.44828E-06   -.95705E-04
  16  Prefactor     18.095        10.946        .41593E-05   -.63113E-05
  17  Normalizat    1.1601        .21601        .36131E-06    .34475E-05
  18  Prefactor     .94612        .17424       -.50773E-06    .42557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.83399
  Prefactor  = 31.3546
  norm       = 2.29706
  norm       = 0.999869
  Prefactor  = 0.000100012
  Prefactor  = 10.0624
  Prefactor  = 37.3174
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 153.951
  Prefactor  = 93.965
  Prefactor  = 4.81606
  norm       = 0.824347
  Prefactor  = 0.0001
  Prefactor  = 4.50879
  Prefactor  = 18.0946
  Normalizat = 1.16012
  Prefactor  = 0.946116
 **********
 **   18 **HESSE 
 **********

 FCN=   5528.865     FROM HESSE     STATUS=OK           258 CALLS     2016 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8340        4.1741        .17727E-03   -1.5371    
   2  Prefactor     31.355        23.504        .71552E-04   -1.4587    
   3  norm          2.2971        1.5356        .71097E-04   -1.5405    
   4  norm          .99987        .61418        .44423E-04   -1.5508    
   5  Prefactor     .10001E-03    88.308        .52125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.062        28.179        .12630E-03   -1.5073    
   7  Prefactor     37.317        45.852        .65608E-04   -1.4485    
   8  norm          .10000E-03    11.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     153.95        75.248        .16243E-03   -1.3220    
  11  Prefactor     93.965        82.311        .20735E-03   -1.3766    
  12  Prefactor     4.8161        27.213        .18300E-03   -1.5269    
  13  norm          .82435        1.0461        .93352E-03   -1.5526    
  14  Prefactor     .10000E-03    8.1496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5088        3.1538        .10528E-03   -1.5283    
  16  Prefactor     18.095        10.930        .94145E-04   -1.4857    
  17  Normalizat    1.1601        .25374        .26668E-03   -.87844    
  18  Prefactor     .94612        .20503        .24690E-03   -.94548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.01094e-10
Minuit parameter uncertainties:
  1  4.17456
  2  23.5106
  3  1.53563
  4  0.614185
  5  0.00203489
  6  28.2166
  7  45.8952
  8  1.61566e-05
  9  0.000230964
  10  75.2946
  11  82.411
  12  22.9121
  13  1.04614
  14  4.17322e-06
  15  3.15394
  16  10.9316
  17  0.254009
  18  0.205203
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  2.035e-03  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:  9.461e-01  2.052e-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.160e+00  2.540e-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: 9.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/681048/likelihoodResults_355190401_355449601_4FGL_J1008.0+0620_daily_bin447.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) = 5528.86547874
delta logL = -5.28523960384e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5528.86547872
delta logL = -5.28378031959e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96358E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1895       1.0000          .0000       10.000    
     3 'Normalizat'    1.1601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94612       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=   5528.617     FROM MIGRAD    STATUS=CONVERGED    134 CALLS      291 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3703        105.31        .90713E-02   -.97728E-03
   2  Index         3.4180        6.7031        .12893        .14810E-03
   3  Normalizat    1.1121        .10025        .61354E-01    .57001E-04
   4  Prefactor     .96798        .71350E-01    .45590E-01    .39961E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.37028
  Index      = 3.41798
  Normalizat = 1.11209
  Prefactor  = 0.967984
 **********
 **   18 **HESSE 
 **********

 FCN=   5528.617     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      324 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3703        148.59        .12318E-03   -1.5942    
   2  Index         3.4180        6.1366        .70351E-02   -.32194    
   3  Normalizat    1.1121        .24075        .27138E-03   -.89365    
   4  Prefactor     .96798        .20485        .24433E-03   -.93804    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.3431e-09
Minuit parameter uncertainties:
  1  28.6102
  2  9.19765
  3  0.240986
  4  0.205011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681048': 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) = 5528.61728157
delta logL = 0.248144315541

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.370e+00  2.861e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  3.418e+00  9.198e+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:  9.680e-01  2.050e-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.112e+00  2.410e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/681048/cmap_HighResolution_355190401_355449601_4FGL_J1008.0+0620_daily_bin447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', job_status='DONE', photon_flux_upper_limit='9.67e-08', time_completed='2021-09-01 11:17:54.016242', job_id='681048', GAL2='0.97', fit_tolerance='1e-08', EG2='1.11', EG='1.16', time_epoch_completed='1630520274.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.48e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='447' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:17:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 681048: <4FGL_J1008.0+0620_daily_bin447> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin447 152.014 6.3475 355190401 355449601 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 :                                   514.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            690 sec.

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

