/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 122 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 = 7670
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1345.8+0706_daily_bin101
RA = 206.465, Dec = 7.1072
tmin = 265507201, tmax = 265766401
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='940457', job_status='RUN', time_executed='2021-09-08 11:13:20.477447', time_epoch_executed='1631124800.48' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/940457

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/940457/ft1_4FGL_J1345.8+0706_daily_bin101.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/940457/ft2_4FGL_J1345.8+0706_daily_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/940457/ft1_4FGL_J1345.8+0706_daily_bin101.fits outfile=/scratch/kocevski/940457/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin101.fits ra=206.465 dec=7.1072 rad=12.0 tmin=265507201.0 tmax=265766401.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 1.58
user 1.37
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/940457/ft1_filtered_4FGL_J1345.8+0706_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/940457/ft2_4FGL_J1345.8+0706_daily_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/940457/ltcube_265507201_265766401_4FGL_J1345.8+0706_daily_bin101.fits outfile=/scratch/kocevski/940457/expmap_265507201_265766401_4FGL_J1345.8+0706_daily_bin101.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/940457/ltcube_265507201_265766401_4FGL_J1345.8+0706_daily_bin101.fits
.....................!
real 190.77
user 186.11
sys 4.01

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/940457/ft1_filtered_4FGL_J1345.8+0706_daily_bin101.fits scfile=/scratch/kocevski/940457/ft2_4FGL_J1345.8+0706_daily_bin101.fits outfile=/scratch/kocevski/940457/cmap_265507201_265766401_4FGL_J1345.8+0706_daily_bin101.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/940457/ft1_filtered_4FGL_J1345.8+0706_daily_bin101.fits scfile=/scratch/kocevski/940457/ft2_4FGL_J1345.8+0706_daily_bin101.fits outfile=/scratch/kocevski/940457/cmap_HighResolution_265507201_265766401_4FGL_J1345.8+0706_daily_bin101.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1444       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.695       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25761E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.883       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1547       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.525       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8766       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.102       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8234       1.0000         .10000E-03   10000.    
    14 'norm      '    33.673       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1587       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .99203       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=   9780.777     FROM MIGRAD    STATUS=CONVERGED    290 CALLS     1258 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0364        .13371E-06** at limit **
   2  Prefactor     4.1429        8.5677        .42361E-06   -.59220E-05
   3  Prefactor     .10000E-03    18.174        .19205E-06** at limit **
   4  Prefactor     19.679        30.208       -.56381E-06   -.60252E-04
   5  norm          .10000E-03    10.715        .84070E-07** at limit **
   6  Prefactor     .10000E-03    1.2585       -.65313E-07** at limit **
   7  Prefactor     22.882        17.509        .17416E-07    .13720E-05
   8  Prefactor     1.1538        3.7652        .20608E-05   -.16155E-04
   9  Prefactor     22.523        12.944       -.21566E-06   -.65927E-04
  10  Prefactor     9.8747        9.0353        .36844E-07   -.12011E-05
  11  Prefactor     .10000E-03    4.0717       -.45764E-07** at limit **
  12  Prefactor     39.094        27.868       -.11683E-06   -.47940E-04
  13  Prefactor     4.8057        27.358        .22813E-06   -.39901E-04
  14  norm          33.671        21.067       -.22787E-06   -.28953E-04
  15  Normalizat    1.1589        .16650        .49784E-06   -.12800E-03
  16  Prefactor     .99191        .12348       -.98235E-06    .95697E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.14294
  Prefactor  = 0.0001
  Prefactor  = 19.6792
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8825
  Prefactor  = 1.15381
  Prefactor  = 22.5229
  Prefactor  = 9.87469
  Prefactor  = 0.0001
  Prefactor  = 39.0938
  Prefactor  = 4.80569
  norm       = 33.6708
  Normalizat = 1.15889
  Prefactor  = 0.991914
 **********
 **   18 **HESSE 
 **********

 FCN=   9780.777     FROM HESSE     STATUS=OK           207 CALLS     1465 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.1429        8.5873        .19800E-03   -1.5301    
   3  Prefactor     .10000E-03    18.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.679        30.307        .90251E-04   -1.4820    
   5  norm          .10000E-03    10.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6624        .21187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.882        17.519        .83735E-04   -1.4751    
   8  Prefactor     1.1538        3.7958        .33233E-03   -1.5493    
   9  Prefactor     22.523        12.964        .84396E-04   -1.4758    
  10  Prefactor     9.8747        9.0293        .12751E-03   -1.5079    
  11  Prefactor     .10000E-03    4.0750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     39.094        27.904        .64098E-04   -1.4457    
  13  Prefactor     4.8057        27.452        .18317E-03   -1.5269    
  14  norm          33.671        21.019        .69056E-04   -1.4547    
  15  Normalizat    1.1589        .19558        .27031E-03   -.87883    
  16  Prefactor     .99191        .14377        .22012E-03   -.93000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30292e-11
Minuit parameter uncertainties:
  1  5.27627e-06
  2  8.58985
  3  9.80405e-06
  4  30.3302
  5  2.25069e-06
  6  9.65656e-06
  7  17.5227
  8  3.79661
  9  12.9655
  10  9.03054
  11  2.97806e-06
  12  27.913
  13  22.9876
  14  21.0236
  15  0.195705
  16  0.14383
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  9.657e-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:  9.919e-01  1.438e-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.159e+00  1.957e-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.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/940457/likelihoodResults_265507201_265766401_4FGL_J1345.8+0706_daily_bin101.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) = 9780.77797423
delta logL = -0.00102158409754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9780.7769485
delta logL = 4.14711394114e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18062E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5610       1.0000          .0000       10.000    
     3 'Normalizat'    1.1588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99200       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=   9778.966     FROM MIGRAD    STATUS=CONVERGED    169 CALLS      347 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85096E-03    .66971E-02    .43953E-03** at limit **
   2  Index         7.7377        2.1815        .15791        .22154E-03
   3  Normalizat    1.0442        .37692E-01    .63908E-01    .13064E-03
   4  Prefactor     1.0494        .28808E-01    .46167E-01    .89045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000850963
  Index      = 7.73771
  Normalizat = 1.04419
  Prefactor  = 1.04936
 **********
 **   18 **HESSE 
 **********

 FCN=   9778.966     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      382 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85096E-03    .17257E-01    .18357E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.7377        7.4957        .61520E-02    .57942    
   3  Normalizat    1.0442        .14314        .28272E-03   -.91564    
   4  Prefactor     1.0494        .10725        .21473E-03   -.91102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.86571e-11
Minuit parameter uncertainties:
  1  0.00719991
  2  4.38067
  3  0.143194
  4  0.107269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/940457': 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): 102
logL (Free Index) = 9778.96583953
delta logL = 1.81111312164

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  8.510e-04  7.200e-03  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  7.738e+00  4.381e+00  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.049e+00  1.073e-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.044e+00  1.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.91
Ra Dec: 206.465 7.107
Photon Index (Free Index): 7.74 +/- 4.38
Photon Flux (Free Index): 8.47e-08 +/- 5.05e-08
Energy Flux (Free Index): 9.89e-06 +/- 6.38e-06

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/940457/cmap_HighResolution_265507201_265766401_4FGL_J1345.8+0706_daily_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', comment='SUCCESS', energy_flux2='9.89e-06', dlogl='1.81e+00', photon_flux2='8.47e-08', job_status='DONE', time_completed='2021-09-08 11:23:14.565335', photon_index_error2='4.38', photon_index2='7.74', ts='-0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='6.35e-08', energy_flux_error2='6.38e-06', EG='1.16', time_epoch_completed='1631125394.57', return_code='0', job_id='940457', GAL2='1.05', EG2='1.04', return_code2='102', photon_flux_error2='5.05e-08', ts2='3.91', photon_index='2.44' WHERE bin_id='101' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:23:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 940457: <4FGL_J1345.8+0706_daily_bin101> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin101> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 11:10:43 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:11:08 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:11:08 2021
Terminated at Wed Sep  8 11:23:15 2021
Results reported at Wed Sep  8 11:23:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin101 206.465 7.1072 265507201 265766401 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 :                                   593.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            752 sec.

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

