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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin377
RA = 206.465, Dec = 7.1072
tmin = 337046401, tmax = 337305601
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='947305', job_status='RUN', time_executed='2021-09-08 11:23:53.128823', time_epoch_executed='1631125433.13' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947305

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947305/ft1_4FGL_J1345.8+0706_daily_bin377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947305/ft2_4FGL_J1345.8+0706_daily_bin377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947305/ft1_4FGL_J1345.8+0706_daily_bin377.fits outfile=/scratch/kocevski/947305/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin377.fits ra=206.465 dec=7.1072 rad=12.0 tmin=337046401.0 tmax=337305601.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 11.11
user 10.67
sys 0.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/947305/ft2_4FGL_J1345.8+0706_daily_bin377.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/947305/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin377.fits evtable="EVENTS" outfile="/scratch/kocevski/947305/ft1_filtered_4FGL_J1345.8+0706_daily_bin377.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.58
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947305/ft1_filtered_4FGL_J1345.8+0706_daily_bin377.fits" evtable="EVENTS" scfile=/scratch/kocevski/947305/ft2_4FGL_J1345.8+0706_daily_bin377.fits sctable="SC_DATA" outfile=/scratch/kocevski/947305/ltcube_337046401_337305601_4FGL_J1345.8+0706_daily_bin377.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/947305/ft2_4FGL_J1345.8+0706_daily_bin377.fits
.....................!
real 15.02
user 14.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947305/ft1_filtered_4FGL_J1345.8+0706_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/947305/ft2_4FGL_J1345.8+0706_daily_bin377.fits sctable="SC_DATA" expcube=/scratch/kocevski/947305/ltcube_337046401_337305601_4FGL_J1345.8+0706_daily_bin377.fits outfile=/scratch/kocevski/947305/expmap_337046401_337305601_4FGL_J1345.8+0706_daily_bin377.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/947305/ltcube_337046401_337305601_4FGL_J1345.8+0706_daily_bin377.fits
.....................!
real 193.10
user 187.53
sys 5.02

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/947305/ft1_filtered_4FGL_J1345.8+0706_daily_bin377.fits scfile=/scratch/kocevski/947305/ft2_4FGL_J1345.8+0706_daily_bin377.fits outfile=/scratch/kocevski/947305/cmap_337046401_337305601_4FGL_J1345.8+0706_daily_bin377.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947305/ft1_filtered_4FGL_J1345.8+0706_daily_bin377.fits scfile=/scratch/kocevski/947305/ft2_4FGL_J1345.8+0706_daily_bin377.fits outfile=/scratch/kocevski/947305/cmap_HighResolution_337046401_337305601_4FGL_J1345.8+0706_daily_bin377.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.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47102       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47400E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.830       1.0000         .10000E-03   10000.    
     5 'norm      '    10.575       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4905       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.640       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2893       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0961       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.312       1.0000         .10000E-03   10000.    
    14 'norm      '    11.291       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.0299       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1420       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=   10302.66     FROM MIGRAD    STATUS=CONVERGED    317 CALLS     1470 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47731        4.0310        .11152       -.96646E-03
   2  Prefactor     .10000E-03    5.2033        .90712E-01** at limit **
   3  Prefactor     .10000E-03    52.187        .96375E-02** at limit **
   4  Prefactor     25.723        37.640        .19705E-02    .44304E-03
   5  norm          10.575        11.890        .30802E-02   -.88848E-04
   6  Prefactor     1.4908        2.3135        .87786E-02    .10863E-02
   7  Prefactor     .10000E-03    17.538        .90712E-02** at limit **
   8  Prefactor     .10000E-03    1.5897        .90712E-02** at limit **
   9  Prefactor     13.640        7.9659        .27113E-02    .73901E-03
  10  Prefactor     8.2904        7.3857        .34811E-02    .23189E-02
  11  Prefactor     8.0943        17.251        .35227E-02    .19273E-03
  12  Prefactor     .10000E-03    14.556        .90712E-02** at limit **
  13  Prefactor     15.299        18.830        .25588E-02   -.22498E-02
  14  norm          11.292        12.166        .29806E-02    .19614E-03
  15  Normalizat    1.0298        .15706        .62755E-01    .53585E-04
  16  Prefactor     1.1422        .12083        .36173E-01    .33819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.477312
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 25.7232
  norm       = 10.5747
  Prefactor  = 1.49076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6404
  Prefactor  = 8.29038
  Prefactor  = 8.09429
  Prefactor  = 0.0001
  Prefactor  = 15.2987
  norm       = 11.2918
  Normalizat = 1.02977
  Prefactor  = 1.14216
 **********
 **   18 **HESSE 
 **********

 FCN=   10302.66     FROM HESSE     STATUS=OK           201 CALLS     1671 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47731        24.128        .39436E-02   -1.5570    
   2  Prefactor     .10000E-03    41.510        .43590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    54.589        .38550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.723        37.666        .78821E-04   -1.4693    
   5  norm          10.575        11.892        .12321E-03   -1.5057    
   6  Prefactor     1.4908        2.2884        .18451E-03   -1.5464    
   7  Prefactor     .10000E-03    17.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6249        .12493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.640        7.9666        .10845E-03   -1.4969    
  10  Prefactor     8.2904        7.3762        .13924E-03   -1.5132    
  11  Prefactor     8.0943        17.221        .14091E-03   -1.5139    
  12  Prefactor     .10000E-03    14.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.299        18.810        .10235E-03   -1.4925    
  14  norm          11.292        12.164        .11922E-03   -1.5036    
  15  Normalizat    1.0298        .18329        .27756E-03   -.92040    
  16  Prefactor     1.1422        .14333        .20772E-03   -.88130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64262e-08
Minuit parameter uncertainties:
  1  6.78945
  2  0.000549906
  3  0.000780805
  4  37.7006
  5  11.8942
  6  2.28853
  7  0.000168869
  8  3.78222e-06
  9  7.96725
  10  7.37697
  11  17.2312
  12  9.79282e-05
  13  18.8175
  14  12.1666
  15  0.183398
  16  0.14338
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.491e+00  2.289e+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:  1.142e+00  1.434e-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.030e+00  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 206.465 7.107
Photon Flux Upper Limit: 6.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947305/likelihoodResults_337046401_337305601_4FGL_J1345.8+0706_daily_bin377.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10302.4442654
delta logL = 0.212435370406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10302.4437405
delta logL = 0.212960199058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4147       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9547       1.0000          .0000       10.000    
     3 'Normalizat'    1.0371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1361       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=   10302.44     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      297 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4146        3.0384        .19196E-03    .34232E-04
   2  Index         1.9548        .64002        .12246E-01   -.39655E-04
   3  Normalizat    1.0371        .18133        .27667E-03    .15450E-04
   4  Prefactor     1.1361        .14303        .20816E-03    .12998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41459
  Index      = 1.95477
  Normalizat = 1.03706
  Prefactor  = 1.13611
 **********
 **   18 **HESSE 
 **********

 FCN=   10302.44     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .66E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4146        3.0304        .76783E-05   -1.5397    
   2  Index         1.9548        .63865        .24493E-02   -.65486    
   3  Normalizat    1.0371        .18152        .11067E-04   -.91799    
   4  Prefactor     1.1361        .14318        .83265E-05   -.88321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62884e-13
Minuit parameter uncertainties:
  1  3.03063
  2  0.641447
  3  0.181624
  4  0.143227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947305': 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) = 10302.4437405
delta logL = 0.212960207444

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  2.415e+00  3.031e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.955e+00  6.414e-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:  1.136e+00  1.432e-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.037e+00  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.00
Ra Dec: 206.465 7.107
Photon Index (Free Index): 1.95 +/- 0.64
Photon Flux (Free Index): 1.33e-08 +/- 1.85e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.71e-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/947305/cmap_HighResolution_337046401_337305601_4FGL_J1345.8+0706_daily_bin377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='2.13e-01', photon_flux2='1.33e-08', job_status='DONE', time_completed='2021-09-08 11:35:10.885575', photon_index_error2='0.64', photon_index2='1.95', ts='0.57', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='6.99e-08', energy_flux_error2='1.71e-05', EG='1.03', time_epoch_completed='1631126110.89', return_code='0', job_id='947305', GAL2='1.14', EG2='1.04', return_code2='0', photon_flux_error2='1.85e-08', ts2='1.00', photon_index='2.44' WHERE bin_id='377' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:35:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 947305: <4FGL_J1345.8+0706_daily_bin377> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin377> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 11:20:20 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:20:43 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:20:43 2021
Terminated at Wed Sep  8 11:35:11 2021
Results reported at Wed Sep  8 11:35:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin377 206.465 7.1072 337046401 337305601 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 :                                   675.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            891 sec.

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

