/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 230 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1345.8+0706_daily_bin261
RA = 206.465, Dec = 7.1072
tmin = 306979201, tmax = 307238401
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='944407', job_status='RUN', time_executed='2021-09-08 11:22:21.027924', time_epoch_executed='1631125341.03' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/944407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/944407/ft1_4FGL_J1345.8+0706_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/944407/ft2_4FGL_J1345.8+0706_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/944407/ft1_4FGL_J1345.8+0706_daily_bin261.fits outfile=/scratch/kocevski/944407/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin261.fits ra=206.465 dec=7.1072 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.11
user 13.68
sys 0.37

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/944407/ft1_filtered_4FGL_J1345.8+0706_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/944407/ft2_4FGL_J1345.8+0706_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/944407/ltcube_306979201_307238401_4FGL_J1345.8+0706_daily_bin261.fits outfile=/scratch/kocevski/944407/expmap_306979201_307238401_4FGL_J1345.8+0706_daily_bin261.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/944407/ltcube_306979201_307238401_4FGL_J1345.8+0706_daily_bin261.fits
.....................!
real 192.79
user 187.08
sys 5.30

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/944407/ft1_filtered_4FGL_J1345.8+0706_daily_bin261.fits scfile=/scratch/kocevski/944407/ft2_4FGL_J1345.8+0706_daily_bin261.fits outfile=/scratch/kocevski/944407/cmap_HighResolution_306979201_307238401_4FGL_J1345.8+0706_daily_bin261.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.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    227.36       1.0000         .10000E-03   10000.    
     4 'Prefactor '    241.49       1.0000         .10000E-03   10000.    
     5 'norm      '    .15482E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1389       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11259E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .64619E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    16 'Prefactor '    2.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   834.0512     FROM MIGRAD    STATUS=CONVERGED     76 CALLS     1215 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13911E-03    52.571        .54085E-06** at limit **
   2  Prefactor     .10000E-03    42.135       -.32749E-05** at limit **
   3  Prefactor     227.36        1.3920        .27343E-08   -.28339E-02
   4  Prefactor     241.49        1.0220       -.64036E-09    .65398E-03
   5  norm          .30563E-02    41.655       -.41344E-06    .24302E-02
   6  Prefactor     .10000E-03    6.9480        .22980E-05** at limit **
   7  Prefactor     .10096E-03    85.410        .14600E-06** at limit **
   8  Prefactor     .10000E-03    25.420       -.15171E-05** at limit **
   9  Prefactor     6.1407        1.0161       -.15761E-08    .11328E-04
  10  Prefactor     .10035E-03    69.884       -.69064E-05** at limit **
  11  Prefactor     .11591E-03    102.68       -.92720E-06** at limit **
  12  Prefactor     .13083E-03    5.3211       -.76122E-07** at limit **
  13  Prefactor     .10160E-03    85.959        .13585E-06** at limit **
  14  norm          .12089E-03    68.335        .39026E-06** at limit **
  15  Normalizat    .10000E-01    7.2330        .16260E-03** at limit **
  16  Prefactor     2.0499        .29414       -.67675E-05   -.22140E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000139113
  Prefactor  = 0.000100002
  Prefactor  = 227.365
  Prefactor  = 241.491
  norm       = 0.00305632
  Prefactor  = 0.0001
  Prefactor  = 0.00010096
  Prefactor  = 0.0001
  Prefactor  = 6.14073
  Prefactor  = 0.000100351
  Prefactor  = 0.000115911
  Prefactor  = 0.000130832
  Prefactor  = 0.000101604
  norm       = 0.000120887
  Normalizat = 0.01
  Prefactor  = 2.04989
 **********
 **   18 **HESSE 
 **********

 FCN=   834.0512     FROM HESSE     STATUS=OK           225 CALLS     1440 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13911E-03    185.55        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.171        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     227.36        170.32        .67087E-03   -1.2681    
   4  Prefactor     241.49        202.40        .65142E-03   -1.2587    
   5  norm          .30563E-02    1077.5        .90712E-02   -1.5697    
   6  Prefactor     .10000E-03    6.9443        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10096E-03    309.26        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1407        30.219        .40508E-02   -1.5212    
  10  Prefactor     .10035E-03    70.187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11591E-03    119.14        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13083E-03    677.23        .10512E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10160E-03    311.43        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .12089E-03    250.20        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .10000E-01    1.2256        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0499        .45725        .46599E-01   -.63109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23641e-06
Minuit parameter uncertainties:
  1  0.170912
  2  0.000571437
  3  170.693
  4  202.988
  5  3.63705
  6  6.05449e-06
  7  0.0346333
  8  1.07879e-05
  9  27.2664
  10  0.00994549
  11  0.0872531
  12  0.292365
  13  0.0449332
  14  0.145192
  15  4.57449e-07
  16  0.458231
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  6.054e-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:  2.050e+00  4.582e-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.000e-02  4.574e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 206.465 7.107
Photon Flux Upper Limit: 3.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/944407/likelihoodResults_306979201_307238401_4FGL_J1345.8+0706_daily_bin261.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) = 834.051454736
delta logL = -0.000207146228263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 834.05125365
delta logL = -6.06106095802e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9981       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    2.0499       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=   834.0512     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      306 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    104.17        .58066E-02** at limit **
   2  Index         1.8653        9.0063        .50000       -.36226E-07
   3  Normalizat    .10000E-01    .12964        .12994E-01** at limit **
   4  Prefactor     2.0499        .46190E-01    .20593E-03   -.50349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86534
  Normalizat = 0.01
  Prefactor  = 2.04989
 **********
 **   18 **HESSE 
 **********

 FCN=   834.0512     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      335 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    624.39        .83240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8653        5.3370        .50000       -.67761    
   3  Normalizat    .10000E-01    .89449        .25988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0499        .12198        .41186E-04   -.63109    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.01033e-10
Minuit parameter uncertainties:
  1  0.000209307
  2  1548.17
  3  1.15079e-05
  4  0.121997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/944407': 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) = 834.051246135
delta logL = 1.45476224134e-06

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.093e-04  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.865e+00  1.548e+03  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:  2.050e+00  1.220e-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.000e-02  1.151e-05  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/944407/cmap_HighResolution_306979201_307238401_4FGL_J1345.8+0706_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-02', job_status='DONE', photon_flux_upper_limit='3.99e-07', time_completed='2021-09-08 11:29:00.205689', job_id='944407', GAL2='2.05', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631125740.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='2.05', dlogl='1.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='261' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:29:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 944407: <4FGL_J1345.8+0706_daily_bin261> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin261> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 11:15:30 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:18:18 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:18:18 2021
Terminated at Wed Sep  8 11:29:01 2021
Results reported at Wed Sep  8 11:29:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin261 206.465 7.1072 306979201 307238401 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 :                                   392.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             185.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            811 sec.

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

