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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin557
RA = 206.465, Dec = 7.1072
tmin = 383702401, tmax = 383961601
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='947581', job_status='RUN', time_executed='2021-09-08 11:25:03.425907', time_epoch_executed='1631125503.43' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947581/ft1_4FGL_J1345.8+0706_daily_bin557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947581/ft2_4FGL_J1345.8+0706_daily_bin557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947581/ft1_4FGL_J1345.8+0706_daily_bin557.fits outfile=/scratch/kocevski/947581/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin557.fits ra=206.465 dec=7.1072 rad=12.0 tmin=383702401.0 tmax=383961601.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 4.62
user 4.28
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/947581/ft2_4FGL_J1345.8+0706_daily_bin557.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/947581/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin557.fits evtable="EVENTS" outfile="/scratch/kocevski/947581/ft1_filtered_4FGL_J1345.8+0706_daily_bin557.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/947581/ft1_filtered_4FGL_J1345.8+0706_daily_bin557.fits" evtable="EVENTS" scfile=/scratch/kocevski/947581/ft2_4FGL_J1345.8+0706_daily_bin557.fits sctable="SC_DATA" outfile=/scratch/kocevski/947581/ltcube_383702401_383961601_4FGL_J1345.8+0706_daily_bin557.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/947581/ft2_4FGL_J1345.8+0706_daily_bin557.fits
.....................!
real 16.73
user 16.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947581/ft1_filtered_4FGL_J1345.8+0706_daily_bin557.fits evtable="EVENTS" scfile=/scratch/kocevski/947581/ft2_4FGL_J1345.8+0706_daily_bin557.fits sctable="SC_DATA" expcube=/scratch/kocevski/947581/ltcube_383702401_383961601_4FGL_J1345.8+0706_daily_bin557.fits outfile=/scratch/kocevski/947581/expmap_383702401_383961601_4FGL_J1345.8+0706_daily_bin557.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/947581/ltcube_383702401_383961601_4FGL_J1345.8+0706_daily_bin557.fits
.....................!
real 195.22
user 187.67
sys 5.22

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/947581/ft1_filtered_4FGL_J1345.8+0706_daily_bin557.fits scfile=/scratch/kocevski/947581/ft2_4FGL_J1345.8+0706_daily_bin557.fits outfile=/scratch/kocevski/947581/cmap_383702401_383961601_4FGL_J1345.8+0706_daily_bin557.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.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.653       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    67.951       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.298       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.985       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.989       1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.404       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1191       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .89859       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=   6010.776     FROM MIGRAD    STATUS=CONVERGED    290 CALLS     1415 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.652        16.253       -.31602E-06   -.16079E-04
   2  Prefactor     .10000E-03    3.0211       -.22853E-07** at limit **
   3  Prefactor     67.945        39.730       -.50746E-05    .94779E-05
   4  Prefactor     .10000E-03    72.281        .98427E-06** at limit **
   5  norm          .10000E-03    11.801        .93634E-08** at limit **
   6  Prefactor     .10000E-03    1.3711       -.25643E-07** at limit **
   7  Prefactor     39.289        31.499       -.83186E-05    .14154E-04
   8  Prefactor     .10000E-03    1.8640       -.18023E-07** at limit **
   9  Prefactor     .10000E-03    2.6691       -.13641E-07** at limit **
  10  Prefactor     15.984        13.316        .22743E-05    .17576E-04
  11  Prefactor     .10000E-03    8.7249        .13343E-07** at limit **
  12  Prefactor     20.989        18.291       -.29259E-06    .71132E-05
  13  Prefactor     49.393        30.086       -.89241E-05    .19384E-04
  14  norm          .10000E-03    5.5496        .20375E-07** at limit **
  15  Normalizat    1.1195        .20981        .38935E-05   -.12129E-03
  16  Prefactor     .89832        .14919       -.21700E-06    .15785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6516
  Prefactor  = 0.0001
  Prefactor  = 67.9453
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.2893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9839
  Prefactor  = 0.0001
  Prefactor  = 20.9886
  Prefactor  = 49.3926
  norm       = 0.0001
  Normalizat = 1.11949
  Prefactor  = 0.89832
 **********
 **   18 **HESSE 
 **********

 FCN=   6010.776     FROM HESSE     STATUS=OK           201 CALLS     1616 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.652        16.253        .11736E-03   -1.5025    
   2  Prefactor     .10000E-03    3.0235        .13160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     67.945        39.733        .24346E-03   -1.4058    
   4  Prefactor     .10000E-03    72.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3779        .88632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.289        31.540        .63939E-04   -1.4454    
   8  Prefactor     .10000E-03    1.8714        .10335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6698        .12370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.984        13.318        .10018E-03   -1.4908    
  11  Prefactor     .10000E-03    8.7359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.989        18.292        .87426E-04   -1.4791    
  13  Prefactor     49.393        30.091        .57053E-04   -1.4301    
  14  norm          .10000E-03    5.5500        .17838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1195        .25380        .27039E-03   -.89128    
  16  Prefactor     .89832        .18170        .21977E-03   -.96200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84534e-10
Minuit parameter uncertainties:
  1  16.2592
  2  4.19847e-06
  3  39.749
  4  0.000135283
  5  6.94584e-06
  6  2.58475e-06
  7  31.553
  8  4.79344e-06
  9  2.59265e-06
  10  13.3209
  11  4.66712e-06
  12  18.2973
  13  30.1003
  14  9.7488e-06
  15  0.254075
  16  0.181818
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.585e-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:  8.983e-01  1.818e-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.119e+00  2.541e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947581/likelihoodResults_383702401_383961601_4FGL_J1345.8+0706_daily_bin557.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) = 6010.77951933
delta logL = -0.00342948122852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6010.77608989
delta logL = -3.54839357897e-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.4388       1.0000          .0000       10.000    
     3 'Normalizat'    1.1195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89834       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=   6010.776     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    81.379        .88704E-03** at limit **
   2  Index         2.3971        6.5773        .50000        .20823E-04
   3  Normalizat    1.1195        .41122E-01    .27039E-03   -.13076E-04
   4  Prefactor     .89832        .30462E-01    .21977E-03    .37762E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6010.776     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      374 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    81.379        .24455E-03** at limit **
   2  Index         2.3971        6.5773        .74114E-04    .20823E-04
   3  Normalizat    1.1195        .41122E-01    .10580E-05   -.13076E-04
   4  Prefactor     .89832        .30462E-01    .88916E-06    .37762E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6010.776     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      412 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    325.94        .17741E-03** at limit **
   2  Index         2.2678        5.2256        .50000        .16671E-06
   3  Normalizat    1.1195        .17141        .10815E-04    .74211E-04
   4  Prefactor     .89832        .12673        .87909E-05    .10527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26776
  Normalizat = 1.1195
  Prefactor  = 0.898317
 **********
 **   18 **HESSE 
 **********

 FCN=   6010.776     FROM HESSE     STATUS=OK            29 CALLS      441 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4751        .35482E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2678        5.3917        .50000       -.57812    
   3  Normalizat    1.1195        .24468        .21631E-05   -.89128    
   4  Prefactor     .89832        .18132        .17582E-05   -.96200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24846e-11
Minuit parameter uncertainties:
  1  1.41589e-06
  2  87.9897
  3  0.244929
  4  0.18144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947581': 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) = 6010.77608927
delta logL = 5.80944288231e-07

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.416e-06  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.268e+00  8.799e+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:  8.983e-01  1.814e-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.119e+00  2.449e-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/947581/cmap_HighResolution_383702401_383961601_4FGL_J1345.8+0706_daily_bin557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-09-08 11:33:33.742095', job_id='947581', GAL2='0.90', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1631126013.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='5.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='557' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:33:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 947581: <4FGL_J1345.8+0706_daily_bin557> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin557> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 11:20:40 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:21:22 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:21:22 2021
Terminated at Wed Sep  8 11:33:34 2021
Results reported at Wed Sep  8 11:33:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin557 206.465 7.1072 383702401 383961601 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 :                                   505.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            774 sec.

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

