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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin619
RA = 152.014, Dec = 6.3475
tmin = 399772801, tmax = 400032001
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='682583', job_status='RUN', time_executed='2021-09-01 11:12:13.966320', time_epoch_executed='1630519933.97' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682583

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682583/ft1_4FGL_J1008.0+0620_daily_bin619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682583/ft2_4FGL_J1008.0+0620_daily_bin619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682583/ft1_4FGL_J1008.0+0620_daily_bin619.fits outfile=/scratch/kocevski/682583/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin619.fits ra=152.014 dec=6.3475 rad=12.0 tmin=399772801.0 tmax=400032001.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.22
user 4.94
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682583/ft1_filtered_4FGL_J1008.0+0620_daily_bin619.fits" evtable="EVENTS" scfile=/scratch/kocevski/682583/ft2_4FGL_J1008.0+0620_daily_bin619.fits sctable="SC_DATA" outfile=/scratch/kocevski/682583/ltcube_399772801_400032001_4FGL_J1008.0+0620_daily_bin619.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/682583/ft2_4FGL_J1008.0+0620_daily_bin619.fits
.....................!
real 12.30
user 11.95
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682583/ft1_filtered_4FGL_J1008.0+0620_daily_bin619.fits evtable="EVENTS" scfile=/scratch/kocevski/682583/ft2_4FGL_J1008.0+0620_daily_bin619.fits sctable="SC_DATA" expcube=/scratch/kocevski/682583/ltcube_399772801_400032001_4FGL_J1008.0+0620_daily_bin619.fits outfile=/scratch/kocevski/682583/expmap_399772801_400032001_4FGL_J1008.0+0620_daily_bin619.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/682583/ltcube_399772801_400032001_4FGL_J1008.0+0620_daily_bin619.fits
.....................!
real 191.37
user 185.36
sys 3.94

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/682583/ft1_filtered_4FGL_J1008.0+0620_daily_bin619.fits scfile=/scratch/kocevski/682583/ft2_4FGL_J1008.0+0620_daily_bin619.fits outfile=/scratch/kocevski/682583/cmap_399772801_400032001_4FGL_J1008.0+0620_daily_bin619.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.83
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682583/ft1_filtered_4FGL_J1008.0+0620_daily_bin619.fits scfile=/scratch/kocevski/682583/ft2_4FGL_J1008.0+0620_daily_bin619.fits outfile=/scratch/kocevski/682583/cmap_HighResolution_399772801_400032001_4FGL_J1008.0+0620_daily_bin619.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.64
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17949E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.1236       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7619       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.580       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.163       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    71.964       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9813       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.144       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5908       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1115       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2486       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=   7391.562     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1729 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10173E-03    4.7566        .23082E-05** at limit **
   2  Prefactor     9.1232        8.9630       -.12069E-06   -.17539E-03
   3  norm          1.7620        1.3237        .57039E-07    .20794E-03
   4  norm          .10000E-03    .10058        .69199E-07** at limit **
   5  Prefactor     22.579        15.426        .15154E-07   -.50438E-04
   6  Prefactor     .10000E-03    9.0718        .49176E-07** at limit **
   7  Prefactor     16.161        27.807       -.19899E-06   -.49865E-04
   8  norm          .10000E-03    9.8918       -.97632E-06** at limit **
   9  Prefactor     .10000E-03    6.5649       -.15705E-05** at limit **
  10  Prefactor     71.916        63.312       -.15692E-05   -.17810E-03
  11  Prefactor     .10001E-03    51.842       -.41073E-05** at limit **
  12  Prefactor     .10001E-03    25.230       -.35356E-05** at limit **
  13  norm          2.9812        1.3362       -.42616E-07   -.61915E-03
  14  Prefactor     .13336        4.9605        .14132E-06   -.13666E-04
  15  Prefactor     18.144        5.3948       -.15672E-06   -.43654E-03
  16  Prefactor     2.5910        9.7953        .16489E-05    .17020E-03
  17  Normalizat    1.1115        .22119        .33111E-05   -.43420E-03
  18  Prefactor     1.2486        .18061       -.33595E-05   -.71067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101725
  Prefactor  = 9.12319
  norm       = 1.76196
  norm       = 0.0001
  Prefactor  = 22.579
  Prefactor  = 0.0001
  Prefactor  = 16.161
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 71.9162
  Prefactor  = 0.000100011
  Prefactor  = 0.000100006
  norm       = 2.98121
  Prefactor  = 0.133362
  Prefactor  = 18.1438
  Prefactor  = 2.59104
  Normalizat = 1.11147
  Prefactor  = 1.2486
 **********
 **   18 **HESSE 
 **********

 FCN=   7391.562     FROM HESSE     STATUS=OK           252 CALLS     1981 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10173E-03    45.517        .23503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1232        8.9588        .13269E-03   -1.5104    
   3  norm          1.7620        1.3181        .81458E-04   -1.5442    
   4  norm          .10000E-03    .10319        .26653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.579        15.430        .84293E-04   -1.4757    
   6  Prefactor     .10000E-03    9.0763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.161        27.808        .99623E-04   -1.4904    
   8  norm          .10000E-03    9.9294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.6543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     71.916        63.479        .47324E-04   -1.4010    
  11  Prefactor     .10001E-03    52.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    25.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9812        1.3357        .64011E-04   -1.5363    
  14  Prefactor     .13336        5.9192        .53443E-01   -1.5635    
  15  Prefactor     18.144        5.3715        .94027E-04   -1.4856    
  16  Prefactor     2.5910        9.8505        .25351E-03   -1.5386    
  17  Normalizat    1.1115        .23874        .29841E-03   -.89384    
  18  Prefactor     1.2486        .19398        .24117E-03   -.84849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64802e-08
Minuit parameter uncertainties:
  1  0.0177361
  2  8.96012
  3  1.3181
  4  1.03291e-06
  5  15.4326
  6  8.60582e-06
  7  27.8299
  8  0.000137333
  9  0.000181536
  10  63.539
  11  0.00153424
  12  0.000804355
  13  1.33575
  14  1.77648
  15  5.37163
  16  9.85665
  17  0.238975
  18  0.194094
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.258e+01  1.543e+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.249e+00  1.941e-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.111e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.48
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.72e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 2.62e-05 +/- 1.79e-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) = 7391.5466052
delta logL = 0.0156243662914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7391.54015757
delta logL = 0.0220720005946

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.803       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3026       1.0000          .0000       10.000    
     3 'Normalizat'    1.1027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2528       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=   7391.540     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      257 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.806        17.471        .87815E-04    .12817E-04
   2  Index         2.3034        .57337        .69693E-02    .50458E-03
   3  Normalizat    1.1023        .23149        .29944E-03   -.68453E-04
   4  Prefactor     1.2532        .19391        .24078E-03   -.71616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8058
  Index      = 2.30342
  Normalizat = 1.10234
  Prefactor  = 1.25316
 **********
 **   18 **HESSE 
 **********

 FCN=   7391.540     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.806        16.766        .35126E-05   -1.4795    
   2  Index         2.3034        .54966        .13939E-02   -.56963    
   3  Normalizat    1.1023        .23133        .11978E-04   -.89677    
   4  Prefactor     1.2532        .19391        .48157E-04   -.84711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0241e-11
Minuit parameter uncertainties:
  1  16.77
  2  0.55123
  3  0.231545
  4  0.194021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682583': 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) = 7391.54015423
delta logL = 0.0220753423928

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.081e+01  1.677e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.303e+00  5.512e-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.253e+00  1.940e-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.102e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 152.014 6.348
Photon Index (Free Index): 2.30 +/- 0.55
Photon Flux (Free Index): 6.47e-08 +/- 5.47e-08
Energy Flux (Free Index): 2.44e-05 +/- 1.77e-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/682583/cmap_HighResolution_399772801_400032001_4FGL_J1008.0+0620_daily_bin619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.72e-08', energy_flux2='2.44e-05', photon_flux_error='3.91e-08', dlogl='2.21e-02', energy_flux='2.62e-05', photon_flux2='6.47e-08', job_status='DONE', time_completed='2021-09-01 11:21:19.555622', photon_index_error2='0.55', photon_index2='2.30', ts='4.48', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='1.11', time_epoch_completed='1630520479.56', return_code='0', job_id='682583', GAL2='1.25', EG2='1.10', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='5.47e-08', ts2='4.52', photon_index='2.19' WHERE bin_id='619' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:21:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 682583: <4FGL_J1008.0+0620_daily_bin619> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin619 152.014 6.3475 399772801 400032001 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 :                                   539.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             305.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   601 sec.
    Turnaround time :                            603 sec.

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

