/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 147 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7415
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1008.0+0620_daily_bin754
RA = 152.014, Dec = 6.3475
tmin = 434764801, tmax = 435024001
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='683845', job_status='RUN', time_executed='2021-09-01 11:18:20.451240', time_epoch_executed='1630520300.45' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/683845

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/683845/ft1_4FGL_J1008.0+0620_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/683845/ft2_4FGL_J1008.0+0620_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/683845/ft1_4FGL_J1008.0+0620_daily_bin754.fits outfile=/scratch/kocevski/683845/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin754.fits ra=152.014 dec=6.3475 rad=12.0 tmin=434764801.0 tmax=435024001.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 5.76
user 5.49
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/683845/ft1_filtered_4FGL_J1008.0+0620_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/683845/ft2_4FGL_J1008.0+0620_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/683845/ltcube_434764801_435024001_4FGL_J1008.0+0620_daily_bin754.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/683845/ft2_4FGL_J1008.0+0620_daily_bin754.fits
.....................!
real 17.21
user 16.88
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/683845/ft1_filtered_4FGL_J1008.0+0620_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/683845/ft2_4FGL_J1008.0+0620_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/683845/ltcube_434764801_435024001_4FGL_J1008.0+0620_daily_bin754.fits outfile=/scratch/kocevski/683845/expmap_434764801_435024001_4FGL_J1008.0+0620_daily_bin754.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/683845/ltcube_434764801_435024001_4FGL_J1008.0+0620_daily_bin754.fits
.....................!
real 192.82
user 188.31
sys 4.12

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/683845/ft1_filtered_4FGL_J1008.0+0620_daily_bin754.fits scfile=/scratch/kocevski/683845/ft2_4FGL_J1008.0+0620_daily_bin754.fits outfile=/scratch/kocevski/683845/cmap_434764801_435024001_4FGL_J1008.0+0620_daily_bin754.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=152.014 yref=6.3475 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 2.19
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/683845/ft1_filtered_4FGL_J1008.0+0620_daily_bin754.fits scfile=/scratch/kocevski/683845/ft2_4FGL_J1008.0+0620_daily_bin754.fits outfile=/scratch/kocevski/683845/cmap_HighResolution_434764801_435024001_4FGL_J1008.0+0620_daily_bin754.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.66
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7238       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.3735       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1861       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    62.483       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11592E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16807E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11665E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.5921       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7243       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .67595       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1004       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=   4052.279     FROM MIGRAD    STATUS=CONVERGED    345 CALLS     1714 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7243        3.7835        .36683E-06    .28096E-06
   2  Prefactor     .10000E-03    9.1149        .93674E-07** at limit **
   3  norm          6.3737        2.1086       -.71875E-09   -.21159E-04
   4  norm          1.1865        .84854       -.28662E-07   -.43310E-04
   5  Prefactor     11.197        10.276       -.31029E-06   -.14922E-04
   6  Prefactor     62.407        54.935       -.21785E-06   -.61235E-04
   7  Prefactor     .10000E-03    22.327       -.12304E-05** at limit **
   8  norm          .10000E-03    5.2212        .13681E-06** at limit **
   9  Prefactor     .10000E-03    9.9223        .44273E-05** at limit **
  10  Prefactor     .10000E-03    20.908        .34482E-06** at limit **
  11  Prefactor     50.573        47.099       -.18964E-05   -.10019E-03
  12  Prefactor     .10000E-03    13.990        .19518E-05** at limit **
  13  norm          6.5910        2.7436        .13289E-07   -.11334E-03
  14  Prefactor     1.7357        14.966        .47191E-06   -.59391E-05
  15  Prefactor     .10000E-03    3.9188        .42871E-06** at limit **
  16  Prefactor     .10000E-03    19.677        .80044E-06** at limit **
  17  Normalizat    .67596        .22965       -.62446E-06   -.41458E-04
  18  Prefactor     1.1003        .19095        .55602E-06   -.91849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72428
  Prefactor  = 0.0001
  norm       = 6.37367
  norm       = 1.18653
  Prefactor  = 11.1968
  Prefactor  = 62.4065
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.5727
  Prefactor  = 0.0001
  norm       = 6.59096
  Prefactor  = 1.73573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.675961
  Prefactor  = 1.10028
 **********
 **   18 **HESSE 
 **********

 FCN=   4052.279     FROM HESSE     STATUS=OK           246 CALLS     1960 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7243        3.7541        .17729E-03   -1.5445    
   2  Prefactor     .10000E-03    9.1392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.3737        2.1131        .50390E-04   -1.5203    
   4  norm          1.1865        .83061        .46423E-04   -1.5490    
   5  Prefactor     11.197        10.275        .59864E-03   -1.5039    
   6  Prefactor     62.407        54.705        .25382E-03   -1.4126    
   7  Prefactor     .10000E-03    22.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.2220        .14207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     50.573        48.419        .28206E-03   -1.4284    
  12  Prefactor     .10000E-03    14.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.5910        2.7199        .61332E-04   -1.5194    
  14  Prefactor     1.7357        14.631        .31983E-03   -1.5444    
  15  Prefactor     .10000E-03    4.0852        .24542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .67596        .26135        .30602E-03   -1.0485    
  18  Prefactor     1.1003        .21849        .21034E-03   -.89458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00824e-11
Minuit parameter uncertainties:
  1  3.75466
  2  4.45261e-06
  3  2.11312
  4  0.830618
  5  10.2764
  6  54.7486
  7  2.81115e-06
  8  7.66738e-07
  9  9.27349e-06
  10  8.44897e-06
  11  48.4566
  12  1.04524e-05
  13  2.71991
  14  10.0818
  15  7.06302e-06
  16  1.97351e-05
  17  0.261835
  18  0.218666
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.120e+01  1.028e+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.100e+00  2.187e-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:  6.760e-01  2.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.72
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.84e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.19e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4051.56655646
delta logL = 0.712772250166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4051.51911246
delta logL = 0.760216251301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.042       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4503       1.0000          .0000       10.000    
     3 'Normalizat'    .69290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0913       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=   4051.519     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      213 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.053        14.267        .25818E-02   -.23649E-03
   2  Index         1.4510        .49141        .20443       -.30793E-04
   3  Normalizat    .69296        .21906        .68353E-01    .22059E-04
   4  Prefactor     1.0913        .18893        .37927E-01    .17914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0532
  Index      = 1.45102
  Normalizat = 0.692957
  Prefactor  = 1.09125
 **********
 **   18 **HESSE 
 **********

 FCN=   4051.519     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.053        13.950        .51635E-03   -1.4932    
   2  Index         1.4510        .52841        .82093E-02   -.78921    
   3  Normalizat    .69296        .25111        .30248E-03   -1.0417    
   4  Prefactor     1.0913        .21721        .21105E-03   -.89747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70981e-12
Minuit parameter uncertainties:
  1  13.9529
  2  0.530413
  3  0.251529
  4  0.217382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/683845': 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) = 4051.51911131
delta logL = 0.760217403197

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.505e+01  1.395e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  1.451e+00  5.304e-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.091e+00  2.174e-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:  6.930e-01  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.24
Ra Dec: 152.014 6.348
Photon Index (Free Index): 1.45 +/- 0.53
Photon Flux (Free Index): 1.40e-08 +/- 1.52e-08
Energy Flux (Free Index): 5.22e-05 +/- 7.68e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/683845/cmap_HighResolution_434764801_435024001_4FGL_J1008.0+0620_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.84e-08', energy_flux2='5.22e-05', photon_flux_error='2.60e-08', dlogl='7.60e-01', energy_flux='1.30e-05', photon_flux2='1.40e-08', job_status='DONE', time_completed='2021-09-01 11:26:00.291146', photon_index_error2='0.53', photon_index2='1.45', ts='5.72', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='7.68e-05', EG='0.68', time_epoch_completed='1630520760.29', return_code='0', job_id='683845', GAL2='1.09', EG2='0.69', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='1.52e-08', ts2='7.24', photon_index='2.19' WHERE bin_id='754' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:26:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 683845: <4FGL_J1008.0+0620_daily_bin754> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 11:15:32 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:15:36 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:15:36 2021
Terminated at Wed Sep  1 11:26:01 2021
Results reported at Wed Sep  1 11:26:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin754 152.014 6.3475 434764801 435024001 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 :                                   446.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             284.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            629 sec.

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

