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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin990
RA = 206.465, Dec = 7.1072
tmin = 495936001, tmax = 496195201
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='950114', job_status='RUN', time_executed='2021-09-08 11:33:13.460321', time_epoch_executed='1631125993.46' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950114/ft1_4FGL_J1345.8+0706_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950114/ft2_4FGL_J1345.8+0706_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950114/ft1_4FGL_J1345.8+0706_daily_bin990.fits outfile=/scratch/kocevski/950114/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin990.fits ra=206.465 dec=7.1072 rad=12.0 tmin=495936001.0 tmax=496195201.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.57
user 3.33
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950114/ft1_filtered_4FGL_J1345.8+0706_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/950114/ft2_4FGL_J1345.8+0706_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/950114/ltcube_495936001_496195201_4FGL_J1345.8+0706_daily_bin990.fits outfile=/scratch/kocevski/950114/expmap_495936001_496195201_4FGL_J1345.8+0706_daily_bin990.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/950114/ltcube_495936001_496195201_4FGL_J1345.8+0706_daily_bin990.fits
.....................!
real 194.25
user 187.97
sys 5.58

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/950114/ft1_filtered_4FGL_J1345.8+0706_daily_bin990.fits scfile=/scratch/kocevski/950114/ft2_4FGL_J1345.8+0706_daily_bin990.fits outfile=/scratch/kocevski/950114/cmap_495936001_496195201_4FGL_J1345.8+0706_daily_bin990.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.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950114/ft1_filtered_4FGL_J1345.8+0706_daily_bin990.fits scfile=/scratch/kocevski/950114/ft2_4FGL_J1345.8+0706_daily_bin990.fits outfile=/scratch/kocevski/950114/cmap_HighResolution_495936001_496195201_4FGL_J1345.8+0706_daily_bin990.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=206.465 yref=7.1072 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.620       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.907       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2882       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .61273       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23410E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3710       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18554E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.744       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.196       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.3961       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .87754       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=   6202.300     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     1680 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.619        15.565        .10853E-03    .22312E-04
   2  Prefactor     .10000E-03    12.612        .18142E-02** at limit **
   3  Prefactor     13.894        22.799        .10741E-03    .59274E-05
   4  Prefactor     3.1898        94.713        .22329E-03    .11761E-04
   5  norm          .10000E-03    13.163        .18142E-02** at limit **
   6  Prefactor     .60791        5.8282        .25935E-02    .81931E-03
   7  Prefactor     .10000E-03    61.776        .18142E-02** at limit **
   8  Prefactor     3.3708        3.5346        .14724E-03    .22167E-03
   9  Prefactor     .10001E-03    149.52        .52802E-02** at limit **
  10  Prefactor     .10000E-03    9.0194        .18142E-02** at limit **
  11  Prefactor     .10000E-03    31.234        .18142E-02** at limit **
  12  Prefactor     28.719        30.362        .74728E-04    .46553E-04
  13  Prefactor     .10000E-03    7.1689        .18142E-02** at limit **
  14  norm          15.195        15.907        .10275E-03    .12946E-04
  15  Normalizat    1.3962        .24961        .25813E-03    .52940E-03
  16  Prefactor     .87754        .18189        .23150E-03    .74553E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6185
  Prefactor  = 0.0001
  Prefactor  = 13.8942
  Prefactor  = 3.1898
  norm       = 0.0001
  Prefactor  = 0.607905
  Prefactor  = 0.000100001
  Prefactor  = 3.37083
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.7192
  Prefactor  = 0.0001
  norm       = 15.1948
  Normalizat = 1.39616
  Prefactor  = 0.877536
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.300     FROM HESSE     STATUS=OK           187 CALLS     1867 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.619        15.563        .43413E-05   -1.4970    
   2  Prefactor     .10000E-03    12.616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.894        22.798        .42963E-05   -1.4962    
   4  Prefactor     3.1898        94.630        .89315E-05   -1.5351    
   5  norm          .10000E-03    13.164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .60791        5.8014        .10374E-03   -1.5552    
   7  Prefactor     .10000E-03    61.826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3708        3.5343        .58898E-05   -1.5341    
   9  Prefactor     .10001E-03    155.93        .21121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.719        30.363        .29891E-05   -1.4636    
  13  Prefactor     .10000E-03    7.1691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.195        15.908        .41099E-05   -1.4928    
  15  Normalizat    1.3962        .24941        .51626E-04   -.80740    
  16  Prefactor     .87754        .18205        .46300E-04   -.96931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.434e-09
Minuit parameter uncertainties:
  1  15.5673
  2  6.31725e-05
  3  22.8124
  4  34.8078
  5  7.24968e-06
  6  3.75608
  7  0.000352825
  8  3.53455
  9  0.00207252
  10  2.79444e-05
  11  0.000113275
  12  30.3798
  13  8.72159e-06
  14  15.912
  15  0.249625
  16  0.182179
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  6.079e-01  3.756e+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:  8.775e-01  1.822e-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.396e+00  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 206.465 7.107
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950114/likelihoodResults_495936001_496195201_4FGL_J1345.8+0706_daily_bin990.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) = 6201.88567246
delta logL = 0.414261785935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6201.75733567
delta logL = 0.542598574397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18858       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7723       1.0000          .0000       10.000    
     3 'Normalizat'    1.3033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92128       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=   6201.757     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      223 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18665        2.7528        .71895E-02   -.21742E-02
   2  Index         4.7782        3.2421        .12668       -.24045E-04
   3  Normalizat    1.3033        .43927E-01    .60074E-01   -.26436E-03
   4  Prefactor     .92106        .32244E-01    .45276E-01   -.21389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.186646
  Index      = 4.77823
  Normalizat = 1.30332
  Prefactor  = 0.921061
 **********
 **   18 **HESSE 
 **********

 FCN=   6201.757     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      252 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18665        8.5222        .32530E-04   -1.5622    
   2  Index         4.7782        7.3857        .69233E-02   -.44370E-01
   3  Normalizat    1.3033        .22458        .26569E-03   -.83467    
   4  Prefactor     .92106        .15980        .22652E-03   -.95409    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.0435e-09
Minuit parameter uncertainties:
  1  2.52211
  2  7.88516
  3  0.224746
  4  0.159886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950114': 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) = 6201.7573289
delta logL = 0.542605343179

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.866e-01  2.522e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  4.778e+00  7.885e+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:  9.211e-01  1.599e-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.303e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 206.465 7.107
Photon Index (Free Index): 4.78 +/- 7.89
Photon Flux (Free Index): 8.07e-08 +/- 8.70e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.14e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/950114/cmap_HighResolution_495936001_496195201_4FGL_J1345.8+0706_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-03', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='5.43e-01', photon_flux2='8.07e-08', job_status='DONE', time_completed='2021-09-08 11:41:51.618414', photon_index_error2='7.89', photon_index2='4.78', ts='0.03', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.14e-05', EG='1.40', time_epoch_completed='1631126511.62', return_code='0', job_id='950114', GAL2='0.92', EG2='1.30', return_code2='102', photon_flux_error2='8.70e-08', ts2='1.23', photon_index='2.44' WHERE bin_id='990' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:41:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 950114: <4FGL_J1345.8+0706_daily_bin990> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin990 206.465 7.1072 495936001 496195201 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 :                                   513.60 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             300.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            677 sec.

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

