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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin659
RA = 206.465, Dec = 7.1072
tmin = 410140801, tmax = 410400001
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='948800', job_status='RUN', time_executed='2021-09-08 11:26:35.397601', time_epoch_executed='1631125595.4' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='659'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948800/ft1_4FGL_J1345.8+0706_daily_bin659.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948800/ft2_4FGL_J1345.8+0706_daily_bin659.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948800/ft1_4FGL_J1345.8+0706_daily_bin659.fits outfile=/scratch/kocevski/948800/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin659.fits ra=206.465 dec=7.1072 rad=12.0 tmin=410140801.0 tmax=410400001.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 6.98
user 6.70
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948800/ft1_filtered_4FGL_J1345.8+0706_daily_bin659.fits" evtable="EVENTS" scfile=/scratch/kocevski/948800/ft2_4FGL_J1345.8+0706_daily_bin659.fits sctable="SC_DATA" outfile=/scratch/kocevski/948800/ltcube_410140801_410400001_4FGL_J1345.8+0706_daily_bin659.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/948800/ft2_4FGL_J1345.8+0706_daily_bin659.fits
.....................!
real 15.54
user 15.11
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948800/ft1_filtered_4FGL_J1345.8+0706_daily_bin659.fits evtable="EVENTS" scfile=/scratch/kocevski/948800/ft2_4FGL_J1345.8+0706_daily_bin659.fits sctable="SC_DATA" expcube=/scratch/kocevski/948800/ltcube_410140801_410400001_4FGL_J1345.8+0706_daily_bin659.fits outfile=/scratch/kocevski/948800/expmap_410140801_410400001_4FGL_J1345.8+0706_daily_bin659.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/948800/ltcube_410140801_410400001_4FGL_J1345.8+0706_daily_bin659.fits
.....................!
real 192.60
user 186.45
sys 5.69

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/948800/ft1_filtered_4FGL_J1345.8+0706_daily_bin659.fits scfile=/scratch/kocevski/948800/ft2_4FGL_J1345.8+0706_daily_bin659.fits outfile=/scratch/kocevski/948800/cmap_410140801_410400001_4FGL_J1345.8+0706_daily_bin659.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948800/ft1_filtered_4FGL_J1345.8+0706_daily_bin659.fits scfile=/scratch/kocevski/948800/ft2_4FGL_J1345.8+0706_daily_bin659.fits outfile=/scratch/kocevski/948800/cmap_HighResolution_410140801_410400001_4FGL_J1345.8+0706_daily_bin659.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.869       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.631       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.977       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.290       1.0000         .10000E-03   10000.    
     5 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.476       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1342       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.350       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.386       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19015E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    27.315       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2205       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0703       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=   7375.685     FROM MIGRAD    STATUS=CONVERGED    293 CALLS     1433 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.867        21.043       -.24737E-05   -.76355E-04
   2  Prefactor     10.630        11.579       -.13447E-06   -.77491E-04
   3  Prefactor     30.973        30.479       -.35951E-05   -.83263E-04
   4  Prefactor     27.289        32.174       -.11640E-05   -.26472E-04
   5  norm          .10000E-03    29.019        .20341E-05** at limit **
   6  Prefactor     .10000E-03    2.9395        .30465E-07** at limit **
   7  Prefactor     24.471        20.027       -.46150E-06   -.89044E-04
   8  Prefactor     .10000E-03    3.3082        .38668E-07** at limit **
   9  Prefactor     .10000E-03    10.505        .46191E-08** at limit **
  10  Prefactor     2.1397        12.931        .16011E-04   -.56342E-04
  11  Prefactor     12.342        19.756        .68284E-06   -.62597E-04
  12  Prefactor     15.385        20.397       -.11772E-05   -.49660E-04
  13  Prefactor     .10000E-03    78.127       -.67146E-07** at limit **
  14  norm          27.310        20.153        .21180E-05    .73365E-04
  15  Normalizat    1.2206        .20289       -.10882E-05   -.13854E-03
  16  Prefactor     1.0702        .14941       -.24597E-06   -.20254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8666
  Prefactor  = 10.6297
  Prefactor  = 30.9735
  Prefactor  = 27.2887
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.13969
  Prefactor  = 12.3416
  Prefactor  = 15.3852
  Prefactor  = 0.000100001
  norm       = 27.3099
  Normalizat = 1.22059
  Prefactor  = 1.07019
 **********
 **   18 **HESSE 
 **********

 FCN=   7375.685     FROM HESSE     STATUS=OK           199 CALLS     1632 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.867        21.102        .11628E-03   -1.5019    
   2  Prefactor     10.630        11.591        .12288E-03   -1.5056    
   3  Prefactor     30.973        30.563        .71990E-04   -1.4594    
   4  Prefactor     27.289        32.184        .76688E-04   -1.4663    
   5  norm          .10000E-03    29.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0258        .28733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.471        20.014        .80968E-04   -1.4718    
   8  Prefactor     .10000E-03    3.3919        .30496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1397        11.912        .28219E-03   -1.5415    
  11  Prefactor     12.342        19.686        .11399E-03   -1.5005    
  12  Prefactor     15.385        20.410        .10211E-03   -1.4923    
  13  Prefactor     .10000E-03    81.247        .36471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          27.310        20.169        .76653E-04   -1.4662    
  15  Normalizat    1.2206        .24371        .28229E-03   -.85969    
  16  Prefactor     1.0702        .17930        .22375E-03   -.90425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14132e-10
Minuit parameter uncertainties:
  1  21.1151
  2  11.5931
  3  30.5786
  4  32.2045
  5  6.91775e-05
  6  1.76001e-07
  7  20.0191
  8  8.40931e-06
  9  1.97601e-05
  10  10.0999
  11  19.6968
  12  20.4191
  13  0.000426315
  14  20.1736
  15  0.243938
  16  0.179402
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.760e-07  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.070e+00  1.794e-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.221e+00  2.439e-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: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948800/likelihoodResults_410140801_410400001_4FGL_J1345.8+0706_daily_bin659.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) = 7375.68634105
delta logL = -0.0015778773477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7375.6847641
delta logL = -9.22116669244e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10908E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3891       1.0000          .0000       10.000    
     3 'Normalizat'    1.2202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0705       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7375.536     FROM MIGRAD    STATUS=FAILED       155 CALLS      310 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82068        1.8667        .33105E-02    .12159E-01
   2  Index         1.3332        .52915        .35507        .10607E-03
   3  Normalizat    1.2247        .23734        .28229E-03   -.33451E-03
   4  Prefactor     1.0642        .17876        .22375E-03   -.99640E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7375.536     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      381 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82068        1.8667        .84576E-04   -1.5527    
   2  Index         1.3332        .52915        .81465E-03   -.82326    
   3  Normalizat    1.2247        .23734        .30421E-03   -.85843    
   4  Prefactor     1.0642        .17876        .26216E-03   -.90620    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7375.536     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      414 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82072        2.0836        .66210E-03    .69177E-03
   2  Index         1.3332        .84563        .12723E-01    .36129E-04
   3  Normalizat    1.2247        .23748        .56458E-04   -.53120E-04
   4  Prefactor     1.0642        .17886        .89498E-05   -.53351E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.820718
  Index      = 1.33316
  Normalizat = 1.22471
  Prefactor  = 1.06416
 **********
 **   18 **HESSE 
 **********

 FCN=   7375.536     FROM HESSE     STATUS=OK            25 CALLS      439 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82072        2.1547        .26484E-04   -1.5527    
   2  Index         1.3332        .87460        .50891E-03   -.82326    
   3  Normalizat    1.2247        .23753        .11292E-04   -.85843    
   4  Prefactor     1.0642        .17890        .17900E-05   -.90620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34395e-10
Minuit parameter uncertainties:
  1  2.15489
  2  0.884549
  3  0.237745
  4  0.178997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948800': 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) = 7375.53600197
delta logL = 0.148761205473

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  8.207e-01  2.155e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.333e+00  8.845e-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.064e+00  1.790e-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.225e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 206.465 7.107

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/948800/cmap_HighResolution_410140801_410400001_4FGL_J1345.8+0706_daily_bin659.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-09-08 11:36:01.320644', job_id='948800', GAL2='1.06', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631126161.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.49e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='659' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:36:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 948800: <4FGL_J1345.8+0706_daily_bin659> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin659 206.465 7.1072 410140801 410400001 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 :                                   560.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            631 sec.

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

