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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin319
RA = 206.465, Dec = 7.1072
tmin = 322012801, tmax = 322272001
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='944541', job_status='RUN', time_executed='2021-09-08 11:21:32.417206', time_epoch_executed='1631125292.42' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/944541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/944541/ft1_4FGL_J1345.8+0706_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/944541/ft2_4FGL_J1345.8+0706_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/944541/ft1_4FGL_J1345.8+0706_daily_bin319.fits outfile=/scratch/kocevski/944541/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin319.fits ra=206.465 dec=7.1072 rad=12.0 tmin=322012801.0 tmax=322272001.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.63
user 3.20
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/944541/ft1_filtered_4FGL_J1345.8+0706_daily_bin319.fits" evtable="EVENTS" scfile=/scratch/kocevski/944541/ft2_4FGL_J1345.8+0706_daily_bin319.fits sctable="SC_DATA" outfile=/scratch/kocevski/944541/ltcube_322012801_322272001_4FGL_J1345.8+0706_daily_bin319.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/944541/ft2_4FGL_J1345.8+0706_daily_bin319.fits
.....................!
real 16.05
user 15.63
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/944541/ft1_filtered_4FGL_J1345.8+0706_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/944541/ft2_4FGL_J1345.8+0706_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/944541/ltcube_322012801_322272001_4FGL_J1345.8+0706_daily_bin319.fits outfile=/scratch/kocevski/944541/expmap_322012801_322272001_4FGL_J1345.8+0706_daily_bin319.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/944541/ltcube_322012801_322272001_4FGL_J1345.8+0706_daily_bin319.fits
.....................!
real 193.54
user 187.19
sys 4.87

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/944541/ft1_filtered_4FGL_J1345.8+0706_daily_bin319.fits scfile=/scratch/kocevski/944541/ft2_4FGL_J1345.8+0706_daily_bin319.fits outfile=/scratch/kocevski/944541/cmap_322012801_322272001_4FGL_J1345.8+0706_daily_bin319.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/944541/ft1_filtered_4FGL_J1345.8+0706_daily_bin319.fits scfile=/scratch/kocevski/944541/ft2_4FGL_J1345.8+0706_daily_bin319.fits outfile=/scratch/kocevski/944541/cmap_HighResolution_322012801_322272001_4FGL_J1345.8+0706_daily_bin319.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.58
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/944541/ft1_filtered_4FGL_J1345.8+0706_daily_bin319.fits', '/scratch/kocevski/944541/ft2_4FGL_J1345.8+0706_daily_bin319.fits', expMap='/scratch/kocevski/944541/expmap_322012801_322272001_4FGL_J1345.8+0706_daily_bin319.fits', expCube='/scratch/kocevski/944541/ltcube_322012801_322272001_4FGL_J1345.8+0706_daily_bin319.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/944541/Model_4FGL_J1345.8+0706_daily_bin319.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/944541/ft1_filtered_4FGL_J1345.8+0706_daily_bin319.fits
Spacecraft file(s): /scratch/kocevski/944541/ft2_4FGL_J1345.8+0706_daily_bin319.fits
Exposure map: /scratch/kocevski/944541/expmap_322012801_322272001_4FGL_J1345.8+0706_daily_bin319.fits
Exposure cube: /scratch/kocevski/944541/ltcube_322012801_322272001_4FGL_J1345.8+0706_daily_bin319.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/944541/Model_4FGL_J1345.8+0706_daily_bin319.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) = 5562.95798716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.997       1.0000         .10000E-03   10000.    
     5 'norm      '    12.694       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.910       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6194       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3601       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.110       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7048       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.169       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.296       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2378       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .77325       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=   5562.953     FROM MIGRAD    STATUS=CONVERGED    286 CALLS     1420 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3932        .67514E-07** at limit **
   2  Prefactor     .10000E-03    3.5539        .29744E-08** at limit **
   3  Prefactor     .10000E-03    15.012        .75151E-07** at limit **
   4  Prefactor     10.997        42.625        .51942E-06    .72352E-05
   5  norm          12.692        19.970       -.87193E-06   -.62477E-04
   6  Prefactor     19.911        6.2400       -.14867E-06   -.18482E-03
   7  Prefactor     3.6186        8.4946        .34050E-05   -.74635E-03
   8  Prefactor     2.3601        4.1044       -.19244E-05   -.78605E-03
   9  Prefactor     28.115        18.630        .14000E-05    .24346E-03
  10  Prefactor     4.7034        7.6736       -.13201E-06   -.42296E-04
  11  Prefactor     .10000E-03    30.033       -.62349E-06** at limit **
  12  Prefactor     33.164        35.116       -.31211E-05   -.18721E-03
  13  Prefactor     20.298        25.411        .10388E-05    .79414E-04
  14  norm          .10000E-03    10.336       -.16963E-06** at limit **
  15  Normalizat    1.2376        .21165       -.73374E-07    .32929E-04
  16  Prefactor     .77338        .15313        .23904E-06    .69642E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9972
  norm       = 12.6923
  Prefactor  = 19.9111
  Prefactor  = 3.61855
  Prefactor  = 2.36011
  Prefactor  = 28.1146
  Prefactor  = 4.70339
  Prefactor  = 0.0001
  Prefactor  = 33.1638
  Prefactor  = 20.2978
  norm       = 0.0001
  Normalizat = 1.23756
  Prefactor  = 0.773378
 **********
 **   18 **HESSE 
 **********

 FCN=   5562.953     FROM HESSE     STATUS=OK           203 CALLS     1623 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3965        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.5591        .13731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.997        42.624        .12081E-03   -1.5045    
   5  norm          12.692        20.000        .11243E-03   -1.4995    
   6  Prefactor     19.911        6.2645        .89762E-04   -1.4815    
   7  Prefactor     3.6186        10.588        .10618E-02   -1.5327    
   8  Prefactor     2.3601        4.3293        .20305E-03   -1.5401    
   9  Prefactor     28.115        18.871        .75564E-04   -1.4647    
  10  Prefactor     4.7034        7.6633        .18552E-03   -1.5274    
  11  Prefactor     .10000E-03    30.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.164        35.768        .69576E-04   -1.4556    
  13  Prefactor     20.298        25.473        .88905E-04   -1.4807    
  14  norm          .10000E-03    10.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.2376        .25511        .25454E-03   -.85450    
  16  Prefactor     .77338        .18368        .23190E-03   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50784e-09
Minuit parameter uncertainties:
  1  2.87811e-06
  2  4.80396e-07
  3  3.62387e-06
  4  42.7425
  5  20.0107
  6  6.26471
  7  10.5932
  8  4.32983
  9  18.875
  10  7.66487
  11  0.000106654
  12  35.7907
  13  25.4862
  14  2.00226e-05
  15  0.255366
  16  0.183826
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.991e+01  6.265e+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.734e-01  1.838e-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.238e+00  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.08
Ra Dec: 206.465 7.107
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.96e-07 +/- 6.17e-08
Energy Flux (Fixed Index): 6.09e-05 +/- 1.92e-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) = 5562.85724849
delta logL = 0.0954577531229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5562.84892296
delta logL = 0.103783284703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.593       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6023       1.0000          .0000       10.000    
     3 'Normalizat'    1.2109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78765       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5562.849     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      264 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.592        8.0757        .90723E-04    .36548E-02
   2  Index         2.6026        .37417        .37018E-02    .85754E-03
   3  Normalizat    1.2109        .25535        .25676E-03   -.11579E-03
   4  Prefactor     .78777        .18540        .23002E-03   -.37207E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5917
  Index      = 2.60264
  Normalizat = 1.21089
  Prefactor  = 0.787766
 **********
 **   18 **HESSE 
 **********

 FCN=   5562.849     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.592        7.7802        .18145E-04   -1.4869    
   2  Index         2.6026        .36026        .14807E-03   -.50005    
   3  Normalizat    1.2109        .25529        .10270E-04   -.86267    
   4  Prefactor     .78777        .18539        .46004E-04   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84783e-09
Minuit parameter uncertainties:
  1  7.78067
  2  0.36067
  3  0.255549
  4  0.185536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/944541': 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) = 5562.84892119
delta logL = 0.103785058047

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.759e+01  7.781e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.603e+00  3.607e-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.878e-01  1.855e-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.211e+00  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.26
Ra Dec: 206.465 7.107
Photon Index (Free Index): 2.60 +/- 0.36
Photon Flux (Free Index): 2.16e-07 +/- 7.76e-08
Energy Flux (Free Index): 5.65e-05 +/- 1.92e-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/944541/cmap_HighResolution_322012801_322272001_4FGL_J1345.8+0706_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.96e-07', energy_flux2='5.65e-05', photon_flux_error='6.17e-08', dlogl='1.04e-01', energy_flux='6.09e-05', photon_flux2='2.16e-07', job_status='DONE', time_completed='2021-09-08 11:29:10.759539', photon_index_error2='0.36', photon_index2='2.60', ts='20.08', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='1.24', time_epoch_completed='1631125750.76', return_code='0', job_id='944541', GAL2='0.79', EG2='1.21', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='7.76e-08', ts2='20.26', photon_index='2.44' WHERE bin_id='319' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:29:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 944541: <4FGL_J1345.8+0706_daily_bin319> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin319> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 11:15:35 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:18:25 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:18:25 2021
Terminated at Wed Sep  8 11:29:11 2021
Results reported at Wed Sep  8 11:29:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin319 206.465 7.1072 322012801 322272001 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 :                                   453.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            816 sec.

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

