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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin116
RA = 206.465, Dec = 7.1072
tmin = 269395201, tmax = 269654401
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='940494', job_status='RUN', time_executed='2021-09-08 11:15:04.132199', time_epoch_executed='1631124904.13' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/940494

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/940494/ft1_4FGL_J1345.8+0706_daily_bin116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/940494/ft2_4FGL_J1345.8+0706_daily_bin116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/940494/ft1_4FGL_J1345.8+0706_daily_bin116.fits outfile=/scratch/kocevski/940494/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin116.fits ra=206.465 dec=7.1072 rad=12.0 tmin=269395201.0 tmax=269654401.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.81
user 1.62
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/940494/ft2_4FGL_J1345.8+0706_daily_bin116.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/940494/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin116.fits evtable="EVENTS" outfile="/scratch/kocevski/940494/ft1_filtered_4FGL_J1345.8+0706_daily_bin116.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/940494/ft1_filtered_4FGL_J1345.8+0706_daily_bin116.fits" evtable="EVENTS" scfile=/scratch/kocevski/940494/ft2_4FGL_J1345.8+0706_daily_bin116.fits sctable="SC_DATA" outfile=/scratch/kocevski/940494/ltcube_269395201_269654401_4FGL_J1345.8+0706_daily_bin116.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/940494/ft2_4FGL_J1345.8+0706_daily_bin116.fits
.....................!
real 17.22
user 16.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/940494/ft1_filtered_4FGL_J1345.8+0706_daily_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/940494/ft2_4FGL_J1345.8+0706_daily_bin116.fits sctable="SC_DATA" expcube=/scratch/kocevski/940494/ltcube_269395201_269654401_4FGL_J1345.8+0706_daily_bin116.fits outfile=/scratch/kocevski/940494/expmap_269395201_269654401_4FGL_J1345.8+0706_daily_bin116.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/940494/ltcube_269395201_269654401_4FGL_J1345.8+0706_daily_bin116.fits
.....................!
real 191.97
user 187.16
sys 4.06

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/940494/ft1_filtered_4FGL_J1345.8+0706_daily_bin116.fits scfile=/scratch/kocevski/940494/ft2_4FGL_J1345.8+0706_daily_bin116.fits outfile=/scratch/kocevski/940494/cmap_269395201_269654401_4FGL_J1345.8+0706_daily_bin116.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/940494/ft1_filtered_4FGL_J1345.8+0706_daily_bin116.fits scfile=/scratch/kocevski/940494/ft2_4FGL_J1345.8+0706_daily_bin116.fits outfile=/scratch/kocevski/940494/cmap_HighResolution_269395201_269654401_4FGL_J1345.8+0706_daily_bin116.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/940494/ft1_filtered_4FGL_J1345.8+0706_daily_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/940494/ft2_4FGL_J1345.8+0706_daily_bin116.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/940494/Model_4FGL_J1345.8+0706_daily_bin116.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/940494/ft1_filtered_4FGL_J1345.8+0706_daily_bin116.fits.....................!
real 64.14
user 62.61
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.645       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3699       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1853       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9689       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.305       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.846       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8054       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2243       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .92571       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=   8864.939     FROM MIGRAD    STATUS=CONVERGED    294 CALLS     1430 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9511       -.53860E-08** at limit **
   2  Prefactor     .10000E-03    4.7662        .17804E-06** at limit **
   3  Prefactor     .10000E-03    25.064       -.34426E-06** at limit **
   4  Prefactor     .10000E-03    34.903        .97734E-06** at limit **
   5  norm          13.645        22.983       -.23128E-07   -.80960E-05
   6  Prefactor     .10000E-03    .85834        .49591E-07** at limit **
   7  Prefactor     9.3679        17.459       -.19409E-05   -.25302E-04
   8  Prefactor     4.1852        3.1224       -.57837E-07   -.23086E-04
   9  Prefactor     2.9688        7.0704       -.10126E-05   -.31312E-03
  10  Prefactor     .10000E-03    3.4039       -.10309E-06** at limit **
  11  Prefactor     14.303        18.847       -.13350E-05   -.73666E-05
  12  Prefactor     16.838        26.867       -.11704E-04   -.16645E-05
  13  Prefactor     2.8043        22.761       -.19769E-05   -.80287E-04
  14  norm          .10000E-03    4.5472       -.41971E-06** at limit **
  15  Normalizat    1.2244        .16472        .12321E-05   -.38274E-07
  16  Prefactor     .92564        .12499        .63960E-06    .64398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.6454
  Prefactor  = 0.0001
  Prefactor  = 9.36795
  Prefactor  = 4.18524
  Prefactor  = 2.96875
  Prefactor  = 0.0001
  Prefactor  = 14.3034
  Prefactor  = 16.838
  Prefactor  = 2.80432
  norm       = 0.0001
  Normalizat = 1.22441
  Prefactor  = 0.925641
 **********
 **   18 **HESSE 
 **********

 FCN=   8864.939     FROM HESSE     STATUS=OK           203 CALLS     1633 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.645        23.032        .10843E-03   -1.4969    
   6  Prefactor     .10000E-03    .86550        .85159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.3679        17.489        .13092E-03   -1.5096    
   8  Prefactor     4.1852        3.1230        .13930E-03   -1.5299    
   9  Prefactor     2.9688        7.1352        .23565E-03   -1.5363    
  10  Prefactor     .10000E-03    3.4108        .16960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.303        18.857        .10590E-03   -1.4951    
  12  Prefactor     16.838        26.669        .97581E-04   -1.4887    
  13  Prefactor     2.8043        22.975        .24287E-03   -1.5373    
  14  norm          .10000E-03    4.5486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.2244        .20114        .25485E-03   -.85852    
  16  Prefactor     .92564        .15300        .21854E-03   -.95251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57657e-10
Minuit parameter uncertainties:
  1  4.01067e-06
  2  1.40385e-05
  3  4.16418e-05
  4  5.2529e-05
  5  23.0466
  6  1.78173e-06
  7  17.499
  8  3.12308
  9  7.13728
  10  1.35258e-06
  11  18.865
  12  26.6875
  13  16.0617
  14  1.50885e-07
  15  0.201263
  16  0.153071
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.782e-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.256e-01  1.531e-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.224e+00  2.013e-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: 4.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/940494/likelihoodResults_269395201_269654401_4FGL_J1345.8+0706_daily_bin116.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) = 8864.94440818
delta logL = -0.00545129171041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8864.93895599
delta logL = 8.95375706023e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4237       1.0000          .0000       10.000    
     3 'Normalizat'    1.2244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92564       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=   8864.939     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      254 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2993        .86489E-02** at limit **
   2  Index         1.8949        7.9386        .50000       -.33642E-06
   3  Normalizat    1.2244        .11144E-01    .25485E-03    .26947E-03
   4  Prefactor     .92564        .84863E-02    .21854E-03    .34346E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8949
  Normalizat = 1.22441
  Prefactor  = 0.925641
 **********
 **   18 **HESSE 
 **********

 FCN=   8864.939     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    74.982        .96764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8949        6.2719        .50000       -.67004    
   3  Normalizat    1.2244        .35953E-01    .50971E-04   -.85852    
   4  Prefactor     .92564        .27379E-01    .43709E-04   -.95251    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25377e-09
Minuit parameter uncertainties:
  1  3.48023e-06
  2  427.847
  3  0.035954
  4  0.0273794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/940494': 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) = 8864.93894387
delta logL = 1.30183416331e-05

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.480e-06  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.895e+00  4.278e+02  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.256e-01  2.738e-02  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.224e+00  3.595e-02  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/940494/cmap_HighResolution_269395201_269654401_4FGL_J1345.8+0706_daily_bin116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-03', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2021-09-08 11:24:36.212295', job_id='940494', GAL2='0.93', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631125476.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.30e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='116' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:24:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 940494: <4FGL_J1345.8+0706_daily_bin116> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin116> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 11:10:45 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:11:16 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:16 2021
Terminated at Wed Sep  8 11:24:37 2021
Results reported at Wed Sep  8 11:24:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin116 206.465 7.1072 269395201 269654401 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 :                                   570.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            832 sec.

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

