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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin643
RA = 206.465, Dec = 7.1072
tmin = 405993601, tmax = 406252801
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='948774', job_status='RUN', time_executed='2021-09-08 11:28:56.106359', time_epoch_executed='1631125736.11' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948774/ft1_4FGL_J1345.8+0706_daily_bin643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948774/ft2_4FGL_J1345.8+0706_daily_bin643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948774/ft1_4FGL_J1345.8+0706_daily_bin643.fits outfile=/scratch/kocevski/948774/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin643.fits ra=206.465 dec=7.1072 rad=12.0 tmin=405993601.0 tmax=406252801.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.44
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948774/ft1_filtered_4FGL_J1345.8+0706_daily_bin643.fits" evtable="EVENTS" scfile=/scratch/kocevski/948774/ft2_4FGL_J1345.8+0706_daily_bin643.fits sctable="SC_DATA" outfile=/scratch/kocevski/948774/ltcube_405993601_406252801_4FGL_J1345.8+0706_daily_bin643.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/948774/ft2_4FGL_J1345.8+0706_daily_bin643.fits
.....................!
real 12.82
user 12.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948774/ft1_filtered_4FGL_J1345.8+0706_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/948774/ft2_4FGL_J1345.8+0706_daily_bin643.fits sctable="SC_DATA" expcube=/scratch/kocevski/948774/ltcube_405993601_406252801_4FGL_J1345.8+0706_daily_bin643.fits outfile=/scratch/kocevski/948774/expmap_405993601_406252801_4FGL_J1345.8+0706_daily_bin643.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/948774/ltcube_405993601_406252801_4FGL_J1345.8+0706_daily_bin643.fits
.....................!
real 191.33
user 185.45
sys 5.45

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/948774/ft1_filtered_4FGL_J1345.8+0706_daily_bin643.fits scfile=/scratch/kocevski/948774/ft2_4FGL_J1345.8+0706_daily_bin643.fits outfile=/scratch/kocevski/948774/cmap_405993601_406252801_4FGL_J1345.8+0706_daily_bin643.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.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1308       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5756       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5084       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.727       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.876       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.3596       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .73760       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=   5061.484     FROM MIGRAD    STATUS=CONVERGED    299 CALLS     1434 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1265        16.673       -.10912E-05   -.17926E-04
   2  Prefactor     2.5755        3.5825        .94766E-06   -.13889E-02
   3  Prefactor     .10000E-03    12.078       -.40569E-06** at limit **
   4  Prefactor     .10000E-03    14.754        .43948E-05** at limit **
   5  norm          3.4935        33.789       -.14102E-04   -.56363E-04
   6  Prefactor     .10000E-03    1.2862        .49651E-07** at limit **
   7  Prefactor     .10000E-03    41.602        .23148E-05** at limit **
   8  Prefactor     .10000E-03    1.3550        .16150E-07** at limit **
   9  Prefactor     .10000E-03    5.2943       -.72142E-07** at limit **
  10  Prefactor     35.712        18.910       -.21108E-05   -.11962E-03
  11  Prefactor     .10000E-03    32.544        .61493E-06** at limit **
  12  Prefactor     21.876        25.486       -.59006E-06   -.69994E-05
  13  Prefactor     .10000E-03    7.8495       -.36347E-07** at limit **
  14  norm          .10000E-03    15.503       -.37078E-05** at limit **
  15  Normalizat    1.3597        .21187        .29004E-06   -.17390E-04
  16  Prefactor     .73749        .15846        .37914E-06   -.57381E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.12652
  Prefactor  = 2.57551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.49348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.7123
  Prefactor  = 0.0001
  Prefactor  = 21.8756
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.3597
  Prefactor  = 0.737492
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.484     FROM HESSE     STATUS=OK           199 CALLS     1633 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1265        16.686        .16214E-03   -1.5213    
   2  Prefactor     2.5755        7.6662        .12716E-02   -1.5387    
   3  Prefactor     .10000E-03    12.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4935        34.122        .21584E-03   -1.5334    
   6  Prefactor     .10000E-03    1.2942        .78781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    42.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3566        .80874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3039        .15987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.712        18.998        .67048E-04   -1.4512    
  11  Prefactor     .10000E-03    32.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.876        25.511        .85638E-04   -1.4772    
  13  Prefactor     .10000E-03    7.8556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    15.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.3597        .25589        .23780E-03   -.81801    
  16  Prefactor     .73749        .19076        .23430E-03   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43531e-09
Minuit parameter uncertainties:
  1  16.699
  2  7.66909
  3  9.49152e-06
  4  7.83997e-05
  5  21.8522
  6  2.51705e-07
  7  0.000243421
  8  4.24231e-07
  9  3.23797e-06
  10  19.0011
  11  0.000128743
  12  25.5232
  13  2.53558e-10
  14  6.83835e-05
  15  0.256129
  16  0.190928
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.517e-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:  7.375e-01  1.909e-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.360e+00  2.561e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948774/likelihoodResults_405993601_406252801_4FGL_J1345.8+0706_daily_bin643.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) = 5061.48719302
delta logL = -0.00358336595582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5061.48360963
delta logL = 2.48710421147e-08

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 'Index     '    2.4368       1.0000          .0000       10.000    
     3 'Normalizat'    1.3597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73751       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=   5061.484     FROM MIGRAD    STATUS=FAILED        86 CALLS      237 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10078E-03    98.922        .78923E-03** at limit **
   2  Index         2.3554        5.0902        .50000        .32867E-04
   3  Normalizat    1.3597        .49681E-01    .23780E-03    .64062E-05
   4  Prefactor     .73749        .37452E-01    .23429E-03    .19506E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5061.484     FROM SIMPLEX   STATUS=UNCHANGED    150 CALLS      387 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10078E-03    98.922        .21710E-03** at limit **
   2  Index         2.3554        5.0902        .40808E-04    .32867E-04
   3  Normalizat    1.3597        .49681E-01    .18778E-05    .64062E-05
   4  Prefactor     .73749        .37452E-01    .96036E-06    .19506E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5061.484     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      428 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4822        .15785E-03** at limit **
   2  Index         2.1265        8.6734        .50000        .13331E-06
   3  Normalizat    1.3597        .25244        .95121E-05    .25099E-04
   4  Prefactor     .73749        .19034        .93718E-05    .36635E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12649
  Normalizat = 1.3597
  Prefactor  = 0.737492
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.484     FROM HESSE     STATUS=OK            29 CALLS      457 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3791        .31569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1265        8.1507        .50000       -.61224    
   3  Normalizat    1.3597        .25191        .19024E-05   -.81801    
   4  Prefactor     .73749        .18996        .18744E-05   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4028e-11
Minuit parameter uncertainties:
  1  6.31897e-06
  2  90.5694
  3  0.252134
  4  0.190124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948774': 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) = 5061.48360796
delta logL = 1.7015136109e-06

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  6.319e-06  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.126e+00  9.057e+01  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  7.607e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.375e-01  1.901e-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.360e+00  2.521e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/948774/cmap_HighResolution_405993601_406252801_4FGL_J1345.8+0706_daily_bin643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.74e-03', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-09-08 11:36:43.357757', job_id='948774', GAL2='0.74', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1631126203.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.70e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='643' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:36:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 948774: <4FGL_J1345.8+0706_daily_bin643> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin643 206.465 7.1072 405993601 406252801 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 :                                   467.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            675 sec.

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

