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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin388
RA = 206.465, Dec = 7.1072
tmin = 339897601, tmax = 340156801
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='947323', job_status='RUN', time_executed='2021-09-08 11:23:25.305678', time_epoch_executed='1631125405.31' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947323

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947323/ft1_4FGL_J1345.8+0706_daily_bin388.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947323/ft2_4FGL_J1345.8+0706_daily_bin388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947323/ft1_4FGL_J1345.8+0706_daily_bin388.fits outfile=/scratch/kocevski/947323/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin388.fits ra=206.465 dec=7.1072 rad=12.0 tmin=339897601.0 tmax=340156801.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.32
user 3.09
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947323/ft1_filtered_4FGL_J1345.8+0706_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/947323/ft2_4FGL_J1345.8+0706_daily_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/947323/ltcube_339897601_340156801_4FGL_J1345.8+0706_daily_bin388.fits outfile=/scratch/kocevski/947323/expmap_339897601_340156801_4FGL_J1345.8+0706_daily_bin388.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/947323/ltcube_339897601_340156801_4FGL_J1345.8+0706_daily_bin388.fits
.....................!
real 191.71
user 186.16
sys 5.08

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/947323/ft1_filtered_4FGL_J1345.8+0706_daily_bin388.fits scfile=/scratch/kocevski/947323/ft2_4FGL_J1345.8+0706_daily_bin388.fits outfile=/scratch/kocevski/947323/cmap_339897601_340156801_4FGL_J1345.8+0706_daily_bin388.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947323/ft1_filtered_4FGL_J1345.8+0706_daily_bin388.fits scfile=/scratch/kocevski/947323/ft2_4FGL_J1345.8+0706_daily_bin388.fits outfile=/scratch/kocevski/947323/cmap_HighResolution_339897601_340156801_4FGL_J1345.8+0706_daily_bin388.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.656       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.711       1.0000         .10000E-03   10000.    
     5 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.692       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.677       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1595       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.303       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4465       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.290       1.0000         .10000E-03   10000.    
    14 'norm      '    .14214E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1027       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0477       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=   6586.728     FROM MIGRAD    STATUS=CONVERGED    295 CALLS     1453 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.396        .56187E-06** at limit **
   2  Prefactor     .10000E-03    3.2065        .13155E-06** at limit **
   3  Prefactor     36.656        32.742       -.13385E-05   -.29757E-04
   4  Prefactor     16.735        62.593        .42946E-04   -.20709E-04
   5  norm          .10000E-03    16.086        .64540E-06** at limit **
   6  Prefactor     .10000E-03    1.7047        .11432E-06** at limit **
   7  Prefactor     15.679        26.975        .63659E-05   -.64904E-04
   8  Prefactor     12.678        6.0494       -.26443E-06   -.23992E-03
   9  Prefactor     2.1565        31.460        .13923E-04   -.11468E-03
  10  Prefactor     12.303        15.941        .10059E-04   -.86164E-04
  11  Prefactor     5.4451        25.823        .24838E-05   -.71160E-04
  12  Prefactor     .10000E-03    7.3284        .36064E-06** at limit **
  13  Prefactor     39.292        35.315        .31445E-05   -.23903E-04
  14  norm          .10013E-03    20.730       -.47743E-06** at limit **
  15  Normalizat    1.1025        .21235       -.61683E-05   -.77224E-04
  16  Prefactor     1.0478        .15360       -.19982E-05   -.33286E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.6561
  Prefactor  = 16.7348
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6794
  Prefactor  = 12.6776
  Prefactor  = 2.15655
  Prefactor  = 12.303
  Prefactor  = 5.4451
  Prefactor  = 0.0001
  Prefactor  = 39.292
  norm       = 0.000100126
  Normalizat = 1.10252
  Prefactor  = 1.04782
 **********
 **   18 **HESSE 
 **********

 FCN=   6586.728     FROM HESSE     STATUS=OK           203 CALLS     1656 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.2095        .14193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.656        32.759        .33098E-03   -1.4496    
   4  Prefactor     16.735        62.636        .97977E-04   -1.4890    
   5  norm          .10000E-03    16.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7165        .10344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.679        26.884        .10111E-03   -1.4916    
   8  Prefactor     12.678        6.0432        .11250E-03   -1.4996    
   9  Prefactor     2.1565        30.813        .28032E-03   -1.5414    
  10  Prefactor     12.303        15.869        .11420E-03   -1.5006    
  11  Prefactor     5.4451        25.543        .17218E-03   -1.5241    
  12  Prefactor     .10000E-03    7.3314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.292        34.488        .63945E-04   -1.4453    
  14  norm          .10013E-03    172.80        .69763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1025        .25320        .28828E-03   -.89671    
  16  Prefactor     1.0478        .18406        .21924E-03   -.91152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11536e-09
Minuit parameter uncertainties:
  1  6.43415e-05
  2  8.2585e-06
  3  32.7748
  4  62.8838
  5  2.04508e-05
  6  1.63577e-06
  7  26.9044
  8  6.04352
  9  16.3131
  10  15.8742
  11  23.6029
  12  8.77137e-06
  13  34.5053
  14  0.00936891
  15  0.253478
  16  0.184171
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.636e-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:  1.048e+00  1.842e-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.103e+00  2.535e-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: 7.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947323/likelihoodResults_339897601_340156801_4FGL_J1345.8+0706_daily_bin388.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) = 6586.73071774
delta logL = -0.00276317895805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6586.72795459
delta logL = -3.0700903153e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4361       1.0000          .0000       10.000    
     3 'Normalizat'    1.1025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0478       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=   6586.728     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10064E-03    145.86        .10366E-02** at limit **
   2  Index         2.3642        6.5056        .50000        .23892E-04
   3  Normalizat    1.1025        .51577E-01    .28828E-03   -.45746E-05
   4  Prefactor     1.0478        .38562E-01    .21924E-03    .84005E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6586.728     FROM SIMPLEX   STATUS=PROGRESS     144 CALLS      382 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    145.86        .19282E-03** at limit **
   2  Index         2.3639        6.5056        .82256E-04    .23892E-04
   3  Normalizat    1.1025        .51577E-01    .18505E-05   -.45746E-05
   4  Prefactor     1.0478        .38562E-01    .13347E-05    .84005E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6586.728     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      426 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1997        .20732E-03** at limit **
   2  Index         2.2217        6.3766        .50000       -.14504E-06
   3  Normalizat    1.1025        .24537        .11531E-04    .27014E-04
   4  Prefactor     1.0478        .18356        .87696E-05    .48225E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22171
  Normalizat = 1.10252
  Prefactor  = 1.04782
 **********
 **   18 **HESSE 
 **********

 FCN=   6586.728     FROM HESSE     STATUS=OK            29 CALLS      455 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8171        .41464E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2217        8.4044        .50000       -.58915    
   3  Normalizat    1.1025        .24483        .23062E-05   -.89671    
   4  Prefactor     1.0478        .18319        .17539E-05   -.91152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23382e-11
Minuit parameter uncertainties:
  1  2.20165e-06
  2  92.8667
  3  0.245086
  4  0.183304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947323': 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) = 6586.7279536
delta logL = 9.6114945336e-07

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.202e-06  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.222e+00  9.287e+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:  1.048e+00  1.833e-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.103e+00  2.451e-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/947323/cmap_HighResolution_339897601_340156801_4FGL_J1345.8+0706_daily_bin388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-09-08 11:32:04.365288', job_id='947323', GAL2='1.05', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631125924.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='9.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='388' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:32:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 947323: <4FGL_J1345.8+0706_daily_bin388> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin388> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 11:20:22 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:20:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 11:20:48 2021
Terminated at Wed Sep  8 11:32:05 2021
Results reported at Wed Sep  8 11:32:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin388 206.465 7.1072 339897601 340156801 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 :                                   517.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             285.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            703 sec.

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

