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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin596
RA = 206.465, Dec = 7.1072
tmin = 393811201, tmax = 394070401
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='948698', job_status='RUN', time_executed='2021-09-08 11:28:23.158268', time_epoch_executed='1631125703.16' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948698

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948698/ft1_4FGL_J1345.8+0706_daily_bin596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948698/ft2_4FGL_J1345.8+0706_daily_bin596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948698/ft1_4FGL_J1345.8+0706_daily_bin596.fits outfile=/scratch/kocevski/948698/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin596.fits ra=206.465 dec=7.1072 rad=12.0 tmin=393811201.0 tmax=394070401.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.46
user 3.23
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/948698/ft2_4FGL_J1345.8+0706_daily_bin596.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948698/ft2_4FGL_J1345.8+0706_daily_bin596.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/948698/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin596.fits evtable="EVENTS" outfile="/scratch/kocevski/948698/ft1_filtered_4FGL_J1345.8+0706_daily_bin596.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948698/ft1_filtered_4FGL_J1345.8+0706_daily_bin596.fits" evtable="EVENTS" scfile=/scratch/kocevski/948698/ft2_4FGL_J1345.8+0706_daily_bin596.fits sctable="SC_DATA" outfile=/scratch/kocevski/948698/ltcube_393811201_394070401_4FGL_J1345.8+0706_daily_bin596.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/948698/ft2_4FGL_J1345.8+0706_daily_bin596.fits
.....................!
real 13.18
user 12.83
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948698/ft1_filtered_4FGL_J1345.8+0706_daily_bin596.fits evtable="EVENTS" scfile=/scratch/kocevski/948698/ft2_4FGL_J1345.8+0706_daily_bin596.fits sctable="SC_DATA" expcube=/scratch/kocevski/948698/ltcube_393811201_394070401_4FGL_J1345.8+0706_daily_bin596.fits outfile=/scratch/kocevski/948698/expmap_393811201_394070401_4FGL_J1345.8+0706_daily_bin596.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/948698/ltcube_393811201_394070401_4FGL_J1345.8+0706_daily_bin596.fits
.....................!
real 190.66
user 185.79
sys 4.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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1345.8+0706 @ 206.465 7.1072

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/948698/ft1_filtered_4FGL_J1345.8+0706_daily_bin596.fits scfile=/scratch/kocevski/948698/ft2_4FGL_J1345.8+0706_daily_bin596.fits outfile=/scratch/kocevski/948698/cmap_393811201_394070401_4FGL_J1345.8+0706_daily_bin596.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=206.465 yref=7.1072 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/948698/ft1_filtered_4FGL_J1345.8+0706_daily_bin596.fits scfile=/scratch/kocevski/948698/ft2_4FGL_J1345.8+0706_daily_bin596.fits outfile=/scratch/kocevski/948698/cmap_HighResolution_393811201_394070401_4FGL_J1345.8+0706_daily_bin596.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=206.465 yref=7.1072 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.61
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/948698/ft1_filtered_4FGL_J1345.8+0706_daily_bin596.fits evtable="EVENTS" scfile=/scratch/kocevski/948698/ft2_4FGL_J1345.8+0706_daily_bin596.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948698/Model_4FGL_J1345.8+0706_daily_bin596.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/948698/ft1_filtered_4FGL_J1345.8+0706_daily_bin596.fits.....................!
real 56.50
user 55.07
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948698/ft1_filtered_4FGL_J1345.8+0706_daily_bin596.fits', '/scratch/kocevski/948698/ft2_4FGL_J1345.8+0706_daily_bin596.fits', expMap='/scratch/kocevski/948698/expmap_393811201_394070401_4FGL_J1345.8+0706_daily_bin596.fits', expCube='/scratch/kocevski/948698/ltcube_393811201_394070401_4FGL_J1345.8+0706_daily_bin596.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948698/Model_4FGL_J1345.8+0706_daily_bin596.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1345.8+0706'

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.852e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  7.607e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/948698/ft1_filtered_4FGL_J1345.8+0706_daily_bin596.fits
Spacecraft file(s): /scratch/kocevski/948698/ft2_4FGL_J1345.8+0706_daily_bin596.fits
Exposure map: /scratch/kocevski/948698/expmap_393811201_394070401_4FGL_J1345.8+0706_daily_bin596.fits
Exposure cube: /scratch/kocevski/948698/ltcube_393811201_394070401_4FGL_J1345.8+0706_daily_bin596.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948698/Model_4FGL_J1345.8+0706_daily_bin596.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) = 7583.8497481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.726       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12880E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11184E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.728       1.0000         .10000E-03   10000.    
     5 'norm      '    .22339E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8498       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8608       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11523E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.229       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.605       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.685       1.0000         .10000E-03   10000.    
    14 'norm      '    .20779E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2353       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .74646       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7583.841     FROM MIGRAD    STATUS=CONVERGED    311 CALLS     1457 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.733        14.203        .29679E-05   -.15367E-04
   2  Prefactor     .10000E-03    8.7724        .33467E-06** at limit **
   3  Prefactor     .10000E-03    90.990        .36599E-04** at limit **
   4  Prefactor     10.647        25.942       -.26492E-04   -.26636E-04
   5  norm          .10000E-03    5.3862       -.34585E-07** at limit **
   6  Prefactor     10.201        4.5392        .20559E-06   -.27315E-03
   7  Prefactor     4.8574        13.338        .12195E-04   -.88267E-04
   8  Prefactor     .10000E-03    1.5026        .50652E-07** at limit **
   9  Prefactor     4.9569        9.7160        .33842E-06   -.10642E-03
  10  Prefactor     .10000E-03    4.3917       -.78932E-07** at limit **
  11  Prefactor     22.216        15.967       -.69822E-06   -.28884E-04
  12  Prefactor     15.551        21.401        .28203E-05   -.17782E-04
  13  Prefactor     20.574        22.035        .28462E-05   -.19137E-04
  14  norm          .10000E-03    9.3650       -.28913E-06** at limit **
  15  Normalizat    1.2352        .17062       -.87290E-06   -.21535E-03
  16  Prefactor     .74647        .12451       -.40617E-06   -.28264E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.7329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6472
  norm       = 0.0001
  Prefactor  = 10.2006
  Prefactor  = 4.85735
  Prefactor  = 0.0001
  Prefactor  = 4.9569
  Prefactor  = 0.0001
  Prefactor  = 22.216
  Prefactor  = 15.5506
  Prefactor  = 20.5735
  norm       = 0.0001
  Normalizat = 1.23523
  Prefactor  = 0.74647
 **********
 **   18 **HESSE 
 **********

 FCN=   7583.841     FROM HESSE     STATUS=OK           203 CALLS     1660 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.733        14.217        .77490E-04   -1.4673    
   2  Prefactor     .10000E-03    8.8797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    92.842        .20687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.647        26.016        .12232E-03   -1.5055    
   5  norm          .10000E-03    5.3870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.201        4.5495        .11709E-03   -1.5069    
   7  Prefactor     4.8574        13.276        .18266E-03   -1.5267    
   8  Prefactor     .10000E-03    1.5096        .10423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9569        9.7072        .18245E-03   -1.5263    
  10  Prefactor     .10000E-03    4.4131        .17819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.216        15.968        .84957E-04   -1.4765    
  12  Prefactor     15.551        21.404        .10139E-03   -1.4919    
  13  Prefactor     20.574        22.077        .88066E-04   -1.4800    
  14  norm          .10000E-03    9.3889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.2352        .20387        .24424E-03   -.85521    
  16  Prefactor     .74647        .14806        .22675E-03   -1.0173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13099e-10
Minuit parameter uncertainties:
  1  14.2187
  2  3.36173e-05
  3  0.000175994
  4  26.0438
  5  2.1836e-06
  6  4.54963
  7  13.2839
  8  7.57762e-06
  9  9.71025
  10  2.13413e-05
  11  15.9709
  12  21.4147
  13  22.0859
  14  1.18927e-05
  15  0.204005
  16  0.148134
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.020e+01  4.550e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  7.607e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.465e-01  1.481e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.235e+00  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.82
Ra Dec: 206.465 7.107
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 4.48e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 1.39e-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) = 7583.44809398
delta logL = 0.393342069459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7583.43949123
delta logL = 0.401944815962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1582       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8304       1.0000          .0000       10.000    
     3 'Normalizat'    1.2052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76313       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7583.439     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      240 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1527        46.973        .37482E-02    .32376E-03
   2  Index         2.8313        2.8733        .11650        .16028E-03
   3  Normalizat    1.2052        .78683E-01    .55797E-01   -.45505E-05
   4  Prefactor     .76315        .56677E-01    .43235E-01   -.44413E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.15265
  Index      = 2.83126
  Normalizat = 1.20522
  Prefactor  = 0.763149
 **********
 **   18 **HESSE 
 **********

 FCN=   7583.439     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1527        5.5261        .92876E-04   -1.5173    
   2  Index         2.8313        .51848        .46719E-02   -.44865    
   3  Normalizat    1.2052        .20386        .24673E-03   -.86442    
   4  Prefactor     .76315        .14958        .22454E-03   -1.0110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11805e-11
Minuit parameter uncertainties:
  1  5.52645
  2  0.51963
  3  0.203999
  4  0.149663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948698': 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) = 7583.43948952
delta logL = 0.401946524827

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  7.153e+00  5.526e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.831e+00  5.196e-01  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  7.607e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.631e-01  1.497e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.205e+00  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.66
Ra Dec: 206.465 7.107
Photon Index (Free Index): 2.83 +/- 0.52
Photon Flux (Free Index): 1.22e-07 +/- 5.40e-08
Energy Flux (Free Index): 2.68e-05 +/- 1.26e-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/948698/cmap_HighResolution_393811201_394070401_4FGL_J1345.8+0706_daily_bin596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='2.68e-05', photon_flux_error='4.48e-08', dlogl='4.02e-01', energy_flux='3.12e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-08 11:36:43.437459', photon_index_error2='0.52', photon_index2='2.83', ts='7.82', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='1.24', time_epoch_completed='1631126203.44', return_code='0', job_id='948698', GAL2='0.76', EG2='1.21', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='5.40e-08', ts2='8.66', photon_index='2.44' WHERE bin_id='596' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:36:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 948698: <4FGL_J1345.8+0706_daily_bin596> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin596> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 11:25:23 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:25:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 11:25:58 2021
Terminated at Wed Sep  8 11:36:44 2021
Results reported at Wed Sep  8 11:36:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin596 206.465 7.1072 393811201 394070401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1345.8+0706 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   499.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             223.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            681 sec.

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

