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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin961
RA = 206.465, Dec = 7.1072
tmin = 488419201, tmax = 488678401
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='950067', job_status='RUN', time_executed='2021-09-08 11:33:32.588148', time_epoch_executed='1631126012.59' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950067

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950067/ft1_4FGL_J1345.8+0706_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950067/ft2_4FGL_J1345.8+0706_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950067/ft1_4FGL_J1345.8+0706_daily_bin961.fits outfile=/scratch/kocevski/950067/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin961.fits ra=206.465 dec=7.1072 rad=12.0 tmin=488419201.0 tmax=488678401.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 7.22
user 6.93
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950067/ft1_filtered_4FGL_J1345.8+0706_daily_bin961.fits" evtable="EVENTS" scfile=/scratch/kocevski/950067/ft2_4FGL_J1345.8+0706_daily_bin961.fits sctable="SC_DATA" outfile=/scratch/kocevski/950067/ltcube_488419201_488678401_4FGL_J1345.8+0706_daily_bin961.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/950067/ft2_4FGL_J1345.8+0706_daily_bin961.fits
.....................!
real 15.69
user 14.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950067/ft1_filtered_4FGL_J1345.8+0706_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/950067/ft2_4FGL_J1345.8+0706_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/950067/ltcube_488419201_488678401_4FGL_J1345.8+0706_daily_bin961.fits outfile=/scratch/kocevski/950067/expmap_488419201_488678401_4FGL_J1345.8+0706_daily_bin961.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/950067/ltcube_488419201_488678401_4FGL_J1345.8+0706_daily_bin961.fits
.....................!
real 193.80
user 187.60
sys 5.46

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/950067/ft1_filtered_4FGL_J1345.8+0706_daily_bin961.fits scfile=/scratch/kocevski/950067/ft2_4FGL_J1345.8+0706_daily_bin961.fits outfile=/scratch/kocevski/950067/cmap_488419201_488678401_4FGL_J1345.8+0706_daily_bin961.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.58
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.662       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.414       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    27.521       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39110E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    79.424       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4533       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5352       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.4052       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .68664       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=   3531.781     FROM MIGRAD    STATUS=CONVERGED    304 CALLS     1461 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.661        24.352        .20167E-06    .35602E-05
   2  Prefactor     17.415        12.824        .10977E-06    .17328E-04
   3  Prefactor     .10000E-03    44.062        .20094E-05** at limit **
   4  Prefactor     .10000E-03    27.282       -.38882E-05** at limit **
   5  norm          27.515        58.506        .21449E-05    .24828E-05
   6  Prefactor     .10000E-03    8.6190        .67954E-05** at limit **
   7  Prefactor     79.426        41.664       -.43597E-06   -.68734E-04
   8  Prefactor     .10000E-03    2.5545       -.21150E-07** at limit **
   9  Prefactor     2.4494        9.4466        .70869E-05    .13643E-03
  10  Prefactor     .10000E-03    19.729        .17018E-05** at limit **
  11  Prefactor     .10000E-03    15.296       -.14685E-05** at limit **
  12  Prefactor     8.5382        63.509       -.19344E-05    .82461E-06
  13  Prefactor     .10000E-03    19.013        .14534E-05** at limit **
  14  norm          .10000E-03    9.6148        .33156E-06** at limit **
  15  Normalizat    1.4051        .26409       -.76472E-06   -.42295E-04
  16  Prefactor     .68672        .18982        .11534E-05    .33952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6612
  Prefactor  = 17.4147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.5149
  Prefactor  = 0.000100002
  Prefactor  = 79.4256
  Prefactor  = 0.0001
  Prefactor  = 2.44944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.53819
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.40511
  Prefactor  = 0.686724
 **********
 **   18 **HESSE 
 **********

 FCN=   3531.781     FROM HESSE     STATUS=OK           197 CALLS     1658 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.661        24.370        .86059E-04   -1.4777    
   2  Prefactor     17.415        12.844        .95977E-04   -1.4873    
   3  Prefactor     .10000E-03    44.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          27.515        58.695        .76365E-04   -1.4658    
   6  Prefactor     .10000E-03    12.767        .21588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     79.426        41.836        .45063E-04   -1.3923    
   8  Prefactor     .10000E-03    2.5653        .92755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4494        13.612        .13057E-02   -1.5395    
  10  Prefactor     .10000E-03    19.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.5382        64.631        .13721E-03   -1.5123    
  13  Prefactor     .10000E-03    19.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.6164        .17999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.4051        .31754        .23581E-03   -.80481    
  16  Prefactor     .68672        .22761        .24128E-03   -1.0405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96579e-10
Minuit parameter uncertainties:
  1  24.381
  2  12.8464
  3  0.000105827
  4  2.75279e-05
  5  58.8188
  6  0.000284492
  7  41.8511
  8  2.53369e-06
  9  11.5521
  10  2.4076e-05
  11  1.04641e-05
  12  47.053
  13  3.15456e-05
  14  3.02798e-06
  15  0.317992
  16  0.227914
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.845e-04  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:  6.867e-01  2.279e-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.405e+00  3.180e-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: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950067/likelihoodResults_488419201_488678401_4FGL_J1345.8+0706_daily_bin961.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) = 3531.78155374
delta logL = -0.000372915960725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3531.78118125
delta logL = -4.25935922976e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11585E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5147       1.0000          .0000       10.000    
     3 'Normalizat'    1.4055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68648       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=   3531.767     FROM MIGRAD    STATUS=FAILED       228 CALLS      403 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16036        21.741        .19366E-02   -.15026E-01
   2  Index         3.6726        2.0321        .50000       -.12368E-04
   3  Normalizat    1.3926        .25816E-01    .23581E-03   -.17742E-04
   4  Prefactor     .69167        .19276E-01    .24128E-03   -.44032E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3531.767     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      474 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16036        21.741        .20503E-03   -.15026E-01
   2  Index         3.6726        2.0321        .49382E-02   -.12368E-04
   3  Normalizat    1.3926        .25816E-01    .14025E-03   -.17742E-04
   4  Prefactor     .69167        .19276E-01    .62996E-04   -.44032E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3531.767     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      507 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16036        3.3299        .38733E-03    .24200E-04
   2  Index         3.6726        3.9334        .62569E-02   -.98734E-05
   3  Normalizat    1.3926        .30685        .94322E-05    .13379E-04
   4  Prefactor     .69167        .22465        .96511E-05   -.23442E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.160361
  Index      = 3.67258
  Normalizat = 1.39257
  Prefactor  = 0.69167
 **********
 **   18 **HESSE 
 **********

 FCN=   3531.767     FROM HESSE     STATUS=OK            27 CALLS      534 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16036        3.6630        .15493E-04   -1.5788    
   2  Index         3.6726        4.0514        .25028E-03   -.26870    
   3  Normalizat    1.3926        .30721        .18864E-05   -.80844    
   4  Prefactor     .69167        .22486        .19302E-05   -1.0385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.53511e-11
Minuit parameter uncertainties:
  1  1.53248
  2  4.81137
  3  0.307615
  4  0.225151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950067': 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) = 3531.76659545
delta logL = 0.0145853678523

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.604e-01  1.532e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  3.673e+00  4.811e+00  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:  6.917e-01  2.252e-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.393e+00  3.076e-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/950067/cmap_HighResolution_488419201_488678401_4FGL_J1345.8+0706_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-08 11:41:07.373929', job_id='950067', GAL2='0.69', fit_tolerance='1e-08', EG2='1.39', EG='1.41', time_epoch_completed='1631126467.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.46e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='961' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:41:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 950067: <4FGL_J1345.8+0706_daily_bin961> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin961> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 11:30:32 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:30:43 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:30:43 2021
Terminated at Wed Sep  8 11:41:08 2021
Results reported at Wed Sep  8 11:41:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin961 206.465 7.1072 488419201 488678401 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 :                                   449.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             256.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            636 sec.

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

