/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 9 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 = 7454
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1008.0+0620_daily_bin652
RA = 152.014, Dec = 6.3475
tmin = 408326401, tmax = 408585601
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='682653', job_status='RUN', time_executed='2021-09-01 11:11:40.813700', time_epoch_executed='1630519900.81' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682653

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682653/ft1_4FGL_J1008.0+0620_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682653/ft2_4FGL_J1008.0+0620_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682653/ft1_4FGL_J1008.0+0620_daily_bin652.fits outfile=/scratch/kocevski/682653/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin652.fits ra=152.014 dec=6.3475 rad=12.0 tmin=408326401.0 tmax=408585601.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.88
user 4.60
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682653/ft1_filtered_4FGL_J1008.0+0620_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/682653/ft2_4FGL_J1008.0+0620_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/682653/ltcube_408326401_408585601_4FGL_J1008.0+0620_daily_bin652.fits outfile=/scratch/kocevski/682653/expmap_408326401_408585601_4FGL_J1008.0+0620_daily_bin652.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/682653/ltcube_408326401_408585601_4FGL_J1008.0+0620_daily_bin652.fits
.....................!
real 193.03
user 187.42
sys 5.23

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/682653/ft1_filtered_4FGL_J1008.0+0620_daily_bin652.fits scfile=/scratch/kocevski/682653/ft2_4FGL_J1008.0+0620_daily_bin652.fits outfile=/scratch/kocevski/682653/cmap_408326401_408585601_4FGL_J1008.0+0620_daily_bin652.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682653/ft1_filtered_4FGL_J1008.0+0620_daily_bin652.fits scfile=/scratch/kocevski/682653/ft2_4FGL_J1008.0+0620_daily_bin652.fits outfile=/scratch/kocevski/682653/cmap_HighResolution_408326401_408585601_4FGL_J1008.0+0620_daily_bin652.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.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9802       1.0000         .10000E-03   10000.    
     4 'norm      '    .37323E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.546       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8909       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7089       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8547       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5869       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7134       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .60141       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9862       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .81409       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1427       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=   7538.983     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1816 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6836        .20419E-07** at limit **
   2  Prefactor     .10000E-03    3.2110        .90456E-08** at limit **
   3  norm          1.9802        1.2510        .90666E-07   -.48537E-04
   4  norm          .37305E-01    .26040       -.42654E-07   -.23729E-03
   5  Prefactor     12.549        10.480       -.16905E-05    .39376E-04
   6  Prefactor     9.8893        26.762        .19048E-04    .10423E-03
   7  Prefactor     .10002E-03    16.341       -.45517E-05** at limit **
   8  norm          1.7101        5.5302        .76475E-06   -.10281E-02
   9  Prefactor     .10000E-03    2.2460       -.36255E-07** at limit **
  10  Prefactor     1.8496        185.51        .60201E-05   -.21249E-05
  11  Prefactor     .10000E-03    12.963       -.11180E-06** at limit **
  12  Prefactor     3.5878        7.2181        .28278E-05   -.87885E-04
  13  norm          3.7133        1.3589       -.10583E-06    .10103E-03
  14  Prefactor     .10000E-03    3.5177       -.43152E-07** at limit **
  15  Prefactor     .60185        2.0851        .69645E-07   -.15111E-03
  16  Prefactor     4.9860        6.9916        .32577E-06   -.10886E-02
  17  Normalizat    .81414        .16460       -.16736E-05    .26985E-03
  18  Prefactor     1.1427        .13629        .14094E-06    .21315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.98024
  norm       = 0.0373047
  Prefactor  = 12.5489
  Prefactor  = 9.88933
  Prefactor  = 0.000100016
  norm       = 1.71013
  Prefactor  = 0.0001
  Prefactor  = 1.84958
  Prefactor  = 0.0001
  Prefactor  = 3.58784
  norm       = 3.71326
  Prefactor  = 0.0001
  Prefactor  = 0.601845
  Prefactor  = 4.98597
  Normalizat = 0.814138
  Prefactor  = 1.14267
 **********
 **   18 **HESSE 
 **********

 FCN=   7538.983     FROM HESSE     STATUS=OK           262 CALLS     2078 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7056        .10998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.2195        .15194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9802        1.2450        .72823E-04   -1.5427    
   4  norm          .37305E-01    .71733        .83518E-03   -1.5669    
   5  Prefactor     12.549        10.901        .11309E-03   -1.4999    
   6  Prefactor     9.8893        27.560        .12741E-03   -1.5079    
   7  Prefactor     .10002E-03    18.835        .10599       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7101        19.390        .16080E-02   -1.5446    
   9  Prefactor     .10000E-03    2.2489        .12705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8496        188.77        .30607E-03   -1.5436    
  11  Prefactor     .10000E-03    12.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5878        7.1771        .21337E-03   -1.5329    
  13  norm          3.7133        1.3575        .58379E-04   -1.5323    
  14  Prefactor     .10000E-03    3.5955        .15890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .60185        2.8201        .20948E-02   -1.5553    
  16  Prefactor     4.9860        7.2528        .90048E-03   -1.5261    
  17  Normalizat    .81414        .18763        .27695E-03   -.99546    
  18  Prefactor     1.1427        .15833        .20679E-03   -.88114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87265e-08
Minuit parameter uncertainties:
  1  3.95526e-06
  2  2.40993e-06
  3  1.24499
  4  0.326735
  5  10.9025
  6  27.5956
  7  0.00111264
  8  11.5213
  9  1.36418e-06
  10  37.492
  11  4.51245e-05
  12  7.17885
  13  1.35752
  14  1.12165e-05
  15  2.60557
  16  7.25407
  17  0.187783
  18  0.158394
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.255e+01  1.090e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  1.143e+00  1.584e-01  0.000e+00  1.000e+01 ( 1.000e+00)
482        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
483        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  8.141e-01  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.55
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 3.18e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/682653/likelihoodResults_408326401_408585601_4FGL_J1008.0+0620_daily_bin652.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) = 7538.88809575
delta logL = 0.0953269158381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7538.88324785
delta logL = 0.100174816986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.542       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9341       1.0000          .0000       10.000    
     3 'Normalizat'    .82318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1372       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=   7538.883     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      307 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.544        13.188        .10160E-03    .28087E-04
   2  Index         1.9341        .54438        .90339E-02    .20625E-03
   3  Normalizat    .82320        .18011        .27531E-03    .60703E-05
   4  Prefactor     1.1372        .15683        .20719E-03   -.30893E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5441
  Index      = 1.93408
  Normalizat = 0.823202
  Prefactor  = 1.13724
 **********
 **   18 **HESSE 
 **********

 FCN=   7538.883     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.544        13.008        .40638E-05   -1.4919    
   2  Index         1.9341        .53693        .18068E-02   -.66009    
   3  Normalizat    .82320        .18021        .11012E-04   -.99214    
   4  Prefactor     1.1372        .15693        .82875E-05   -.88285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40855e-12
Minuit parameter uncertainties:
  1  13.0108
  2  0.5386
  3  0.180339
  4  0.156999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682653': 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) = 7538.88324775
delta logL = 0.100174912642

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.554e+01  1.301e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  1.934e+00  5.386e-01  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  1.137e+00  1.570e-01  0.000e+00  1.000e+01 ( 1.000e+00)
482        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
483        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  8.232e-01  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 152.014 6.348
Photon Index (Free Index): 1.93 +/- 0.54
Photon Flux (Free Index): 2.57e-08 +/- 2.52e-08
Energy Flux (Free Index): 2.10e-05 +/- 2.46e-05

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/682653/cmap_HighResolution_408326401_408585601_4FGL_J1008.0+0620_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-03', comment='SUCCESS', photon_flux='3.18e-08', energy_flux2='2.10e-05', photon_flux_error='2.76e-08', dlogl='1.00e-01', energy_flux='1.46e-05', photon_flux2='2.57e-08', job_status='DONE', time_completed='2021-09-01 11:21:34.773892', photon_index_error2='0.54', photon_index2='1.93', ts='2.55', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='8.98e-08', energy_flux_error2='2.46e-05', EG='0.81', time_epoch_completed='1630520494.77', return_code='0', job_id='682653', GAL2='1.14', EG2='0.82', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='2.52e-08', ts2='2.75', photon_index='2.19' WHERE bin_id='652' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:21:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 682653: <4FGL_J1008.0+0620_daily_bin652> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin652 152.014 6.3475 408326401 408585601 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 :                                   592.18 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             375.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            614 sec.

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

