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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin569
RA = 206.465, Dec = 7.1072
tmin = 386812801, tmax = 387072001
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='948657', job_status='RUN', time_executed='2021-09-08 11:25:43.190931', time_epoch_executed='1631125543.19' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948657/ft1_4FGL_J1345.8+0706_daily_bin569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948657/ft2_4FGL_J1345.8+0706_daily_bin569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948657/ft1_4FGL_J1345.8+0706_daily_bin569.fits outfile=/scratch/kocevski/948657/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin569.fits ra=206.465 dec=7.1072 rad=12.0 tmin=386812801.0 tmax=387072001.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.49
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948657/ft2_4FGL_J1345.8+0706_daily_bin569.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/948657/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin569.fits evtable="EVENTS" outfile="/scratch/kocevski/948657/ft1_filtered_4FGL_J1345.8+0706_daily_bin569.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.52
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948657/ft1_filtered_4FGL_J1345.8+0706_daily_bin569.fits" evtable="EVENTS" scfile=/scratch/kocevski/948657/ft2_4FGL_J1345.8+0706_daily_bin569.fits sctable="SC_DATA" outfile=/scratch/kocevski/948657/ltcube_386812801_387072001_4FGL_J1345.8+0706_daily_bin569.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/948657/ft2_4FGL_J1345.8+0706_daily_bin569.fits
.....................!
real 17.55
user 17.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948657/ft1_filtered_4FGL_J1345.8+0706_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/948657/ft2_4FGL_J1345.8+0706_daily_bin569.fits sctable="SC_DATA" expcube=/scratch/kocevski/948657/ltcube_386812801_387072001_4FGL_J1345.8+0706_daily_bin569.fits outfile=/scratch/kocevski/948657/expmap_386812801_387072001_4FGL_J1345.8+0706_daily_bin569.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/948657/ltcube_386812801_387072001_4FGL_J1345.8+0706_daily_bin569.fits
.....................!
real 192.74
user 187.61
sys 4.44

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/948657/ft1_filtered_4FGL_J1345.8+0706_daily_bin569.fits scfile=/scratch/kocevski/948657/ft2_4FGL_J1345.8+0706_daily_bin569.fits outfile=/scratch/kocevski/948657/cmap_386812801_387072001_4FGL_J1345.8+0706_daily_bin569.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948657/ft1_filtered_4FGL_J1345.8+0706_daily_bin569.fits scfile=/scratch/kocevski/948657/ft2_4FGL_J1345.8+0706_daily_bin569.fits outfile=/scratch/kocevski/948657/cmap_HighResolution_386812801_387072001_4FGL_J1345.8+0706_daily_bin569.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11336E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.369       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.948       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7179       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.556       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28264E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31644       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.910       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .82995E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.601       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2159       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .76370       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=   4993.695     FROM MIGRAD    STATUS=CONVERGED    327 CALLS     1701 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.609        .90712E-02** at limit **
   2  Prefactor     .10000E-03    6.6610        .90712E-02** at limit **
   3  Prefactor     16.341        31.521        .24749E-02   -.70315E-03
   4  Prefactor     37.972        42.508        .16266E-02   -.11844E-02
   5  norm          .10000E-03    8.2923        .90712E-02** at limit **
   6  Prefactor     .10000E-03    1.8934        .90712E-02** at limit **
   7  Prefactor     .10000E-03    6.3416        .90712E-02** at limit **
   8  Prefactor     1.7183        2.8054        .80141E-02    .25575E-03
   9  Prefactor     15.543        14.805        .25387E-02   -.79881E-04
  10  Prefactor     .10000E-03    9.0187        .91635E-01** at limit **
  11  Prefactor     .28133        13.264        .10497        .29546E-03
  12  Prefactor     38.912        40.356        .16064E-02    .46218E-03
  13  Prefactor     .10354E-03    23.275        .11924    ** at limit **
  14  norm          16.601        18.761        .24575E-02    .32376E-03
  15  Normalizat    1.2168        .20536        .53668E-01   -.14385E-03
  16  Prefactor     .76323        .15214        .43243E-01   -.16566E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3415
  Prefactor  = 37.9716
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.71828
  Prefactor  = 15.5427
  Prefactor  = 0.000100002
  Prefactor  = 0.281329
  Prefactor  = 38.9117
  Prefactor  = 0.000103545
  norm       = 16.6005
  Normalizat = 1.21683
  Prefactor  = 0.763231
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.695     FROM HESSE     STATUS=OK           209 CALLS     1910 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.7172        .17809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.341        31.520        .98994E-04   -1.4899    
   4  Prefactor     37.972        42.510        .65063E-04   -1.4475    
   5  norm          .10000E-03    8.2924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9426        .18982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3541        .17380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7183        2.7760        .14687E-03   -1.5446    
   9  Prefactor     15.543        14.822        .10155E-03   -1.4919    
  10  Prefactor     .10000E-03    15.803        .62892E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .28133        162.81        .49200E-02   -1.5602    
  12  Prefactor     38.912        40.617        .64256E-04   -1.4460    
  13  Prefactor     .10354E-03    255.74        .64347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.601        18.571        .98300E-04   -1.4893    
  15  Normalizat    1.2168        .24732        .23730E-03   -.86084    
  16  Prefactor     .76323        .18310        .22043E-03   -1.0110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49917e-08
Minuit parameter uncertainties:
  1  5.98924e-05
  2  0.000101759
  3  31.5525
  4  42.5442
  5  0.000142534
  6  8.34878e-06
  7  7.17713e-06
  8  2.77619
  9  14.825
  10  0.000331309
  11  13.5705
  12  40.6455
  13  0.0604772
  14  18.5772
  15  0.247558
  16  0.183242
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  8.349e-06  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.632e-01  1.832e-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.217e+00  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/948657/likelihoodResults_386812801_387072001_4FGL_J1345.8+0706_daily_bin569.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): 102
logL (Free Index) = 4993.69732449
delta logL = -0.00244245333761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4993.69487589
delta logL = 6.14480450167e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11567E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3567       1.0000          .0000       10.000    
     3 'Normalizat'    1.2169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76319       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=   4991.933     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      256 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50602        .53141        .90712E-02    .18888E-03
   2  Index         .76485        .32645        .19361       -.67656E-04
   3  Normalizat    1.2067        .19884        .53789E-01    .12992E-04
   4  Prefactor     .76625        .15072        .43236E-01    .21178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.506023
  Index      = 0.764849
  Normalizat = 1.20674
  Prefactor  = 0.766248
 **********
 **   18 **HESSE 
 **********

 FCN=   4991.933     FROM HESSE     STATUS=OK            31 CALLS      287 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50602        1.0997        .51463E-04   -1.5850    
   2  Index         .76485        .66190        .84830E-03   -1.0104    
   3  Normalizat    1.2067        .23884        .23784E-03   -.86395    
   4  Prefactor     .76625        .18108        .21985E-03   -1.0098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58099e-12
Minuit parameter uncertainties:
  1  1.09969
  2  0.668937
  3  0.23906
  4  0.181218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948657': 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) = 4991.93281137
delta logL = 1.7620706611

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  5.060e-01  1.100e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  7.648e-01  6.689e-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.662e-01  1.812e-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.207e+00  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.53
Ra Dec: 206.465 7.107
Photon Index (Free Index): 0.76 +/- 0.67
Photon Flux (Free Index): 4.14e-09 +/- 1.49e-08
Energy Flux (Free Index): 9.82e-05 +/- 4.65e-04

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/948657/cmap_HighResolution_386812801_387072001_4FGL_J1345.8+0706_daily_bin569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-03', comment='SUCCESS', energy_flux2='9.82e-05', dlogl='1.76e+00', photon_flux2='4.14e-09', job_status='DONE', time_completed='2021-09-08 11:33:50.156380', photon_index_error2='0.67', photon_index2='0.76', ts='-0.00', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='6.54e-08', energy_flux_error2='4.65e-04', EG='1.22', time_epoch_completed='1631126030.16', return_code='0', job_id='948657', GAL2='0.77', EG2='1.21', return_code2='0', photon_flux_error2='1.49e-08', ts2='3.53', photon_index='2.44' WHERE bin_id='569' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:33:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 948657: <4FGL_J1345.8+0706_daily_bin569> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin569> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 11:25:19 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:25:29 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:29 2021
Terminated at Wed Sep  8 11:33:50 2021
Results reported at Wed Sep  8 11:33:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin569 206.465 7.1072 386812801 387072001 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 :                                   485.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   501 sec.
    Turnaround time :                            511 sec.

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

