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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin348
RA = 206.465, Dec = 7.1072
tmin = 329529601, tmax = 329788801
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='947259', job_status='RUN', time_executed='2021-09-08 11:23:24.443675', time_epoch_executed='1631125404.44' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947259

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947259/ft1_4FGL_J1345.8+0706_daily_bin348.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947259/ft2_4FGL_J1345.8+0706_daily_bin348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947259/ft1_4FGL_J1345.8+0706_daily_bin348.fits outfile=/scratch/kocevski/947259/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin348.fits ra=206.465 dec=7.1072 rad=12.0 tmin=329529601.0 tmax=329788801.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.53
user 3.28
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947259/ft1_filtered_4FGL_J1345.8+0706_daily_bin348.fits" evtable="EVENTS" scfile=/scratch/kocevski/947259/ft2_4FGL_J1345.8+0706_daily_bin348.fits sctable="SC_DATA" outfile=/scratch/kocevski/947259/ltcube_329529601_329788801_4FGL_J1345.8+0706_daily_bin348.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/947259/ft2_4FGL_J1345.8+0706_daily_bin348.fits
.....................!
real 14.46
user 14.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947259/ft1_filtered_4FGL_J1345.8+0706_daily_bin348.fits evtable="EVENTS" scfile=/scratch/kocevski/947259/ft2_4FGL_J1345.8+0706_daily_bin348.fits sctable="SC_DATA" expcube=/scratch/kocevski/947259/ltcube_329529601_329788801_4FGL_J1345.8+0706_daily_bin348.fits outfile=/scratch/kocevski/947259/expmap_329529601_329788801_4FGL_J1345.8+0706_daily_bin348.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/947259/ltcube_329529601_329788801_4FGL_J1345.8+0706_daily_bin348.fits
.....................!
real 191.85
user 186.80
sys 4.57

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/947259/ft1_filtered_4FGL_J1345.8+0706_daily_bin348.fits scfile=/scratch/kocevski/947259/ft2_4FGL_J1345.8+0706_daily_bin348.fits outfile=/scratch/kocevski/947259/cmap_329529601_329788801_4FGL_J1345.8+0706_daily_bin348.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=206.465 yref=7.1072 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947259/ft1_filtered_4FGL_J1345.8+0706_daily_bin348.fits scfile=/scratch/kocevski/947259/ft2_4FGL_J1345.8+0706_daily_bin348.fits outfile=/scratch/kocevski/947259/cmap_HighResolution_329529601_329788801_4FGL_J1345.8+0706_daily_bin348.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=206.465 yref=7.1072 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9705       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6344       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12393E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7288       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.553       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13344E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .48679E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2523       1.0000         .10000E-03   10000.    
    14 'norm      '    6.8866       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.3882       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .79252       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.

 FCN=   7005.016     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1289 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9679        11.445        .73847E-02    .34791E-03
   2  Prefactor     .10000E-03    3.1200        .90712E-02** at limit **
   3  Prefactor     .10000E-03    71.714        .90712E-02** at limit **
   4  Prefactor     .10000E-03    18.610        .90712E-02** at limit **
   5  norm          .10000E-03    7.8732        .90712E-02** at limit **
   6  Prefactor     5.6343        4.1594        .42309E-02    .24622E-03
   7  Prefactor     .10000E-03    12.580        .90712E-02** at limit **
   8  Prefactor     1.7280        2.9305        .79831E-02    .55541E-03
   9  Prefactor     12.561        9.7512        .28264E-02    .99817E-04
  10  Prefactor     .10000E-03    19.640        .90712E-02** at limit **
  11  Prefactor     .10000E-03    8.1129        .90712E-02** at limit **
  12  Prefactor     .10001E-03    21.710        .12454    ** at limit **
  13  Prefactor     8.2369        20.330        .34889E-02    .32614E-03
  14  norm          6.8772        22.861        .38221E-02    .22056E-03
  15  Normalizat    1.3883        .18935        .55558E-01   -.53827E-04
  16  Prefactor     .79261        .13872        .43620E-01    .33734E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.96792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.63433
  Prefactor  = 0.0001
  Prefactor  = 1.72801
  Prefactor  = 12.5614
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 8.23692
  norm       = 6.87718
  Normalizat = 1.38829
  Prefactor  = 0.792605
 **********
 **   18 **HESSE 
 **********

 FCN=   7005.016     FROM HESSE     STATUS=OK           209 CALLS     1498 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9679        11.400        .29539E-03   -1.5427    
   2  Prefactor     .10000E-03    3.1276        .14437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    72.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.8748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6343        4.1658        .13954E-03   -1.5233    
   7  Prefactor     .10000E-03    12.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7280        2.9019        .18103E-03   -1.5445    
   9  Prefactor     12.561        9.7565        .11306E-03   -1.4999    
  10  Prefactor     .10000E-03    20.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    24.941        .11312       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2369        20.268        .13956E-03   -1.5134    
  14  norm          6.8772        22.810        .15288E-03   -1.5183    
  15  Normalizat    1.3883        .23046        .24567E-03   -.80968    
  16  Prefactor     .79261        .16840        .23173E-03   -1.0000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70852e-10
Minuit parameter uncertainties:
  1  9.47558
  2  5.75773e-06
  3  8.33752e-05
  4  9.8002e-05
  5  9.77759e-06
  6  4.16602
  7  3.63966e-05
  8  2.90216
  9  9.75773
  10  0.00022554
  11  6.4927e-06
  12  0.000911183
  13  20.2851
  14  22.8387
  15  0.230631
  16  0.168505
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  5.634e+00  4.166e+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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.926e-01  1.685e-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.388e+00  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.01
Ra Dec: 206.465 7.107
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 5.56e-08 +/- 4.10e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/947259/likelihoodResults_329529601_329788801_4FGL_J1345.8+0706_daily_bin348.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): 0
logL (Free Index) = 7005.0141791
delta logL = 0.00147796263354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7005.01376046
delta logL = 0.00189660777687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7324       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3942       1.0000          .0000       10.000    
     3 'Normalizat'    1.3919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79086       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=   7005.014     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      228 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7323        4.5971        .14274E-03    .21975E-03
   2  Index         2.3944        .80415        .82573E-02    .43888E-04
   3  Normalizat    1.3918        .23515        .24541E-03   -.75666E-04
   4  Prefactor     .79090        .16936        .23195E-03   -.96408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.73232
  Index      = 2.39438
  Normalizat = 1.39184
  Prefactor  = 0.790901
 **********
 **   18 **HESSE 
 **********

 FCN=   7005.014     FROM HESSE     STATUS=OK            25 CALLS      253 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7323        4.5019        .57096E-05   -1.5229    
   2  Index         2.3944        .78621        .33029E-03   -.54817    
   3  Normalizat    1.3918        .23511        .49083E-04   -.80865    
   4  Prefactor     .79090        .16939        .92781E-05   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01807e-11
Minuit parameter uncertainties:
  1  4.50212
  2  0.790726
  3  0.235296
  4  0.169498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947259': 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) = 7005.01376026
delta logL = 0.00189680424683

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.909e-01  1.695e-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.392e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 206.465 7.107
Photon Index (Free Index): 2.39 +/- 0.79
Photon Flux (Free Index): 5.30e-08 +/- 5.79e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/947259/cmap_HighResolution_329529601_329788801_4FGL_J1345.8+0706_daily_bin348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='5.56e-08', energy_flux2='1.75e-05', photon_flux_error='4.10e-08', dlogl='1.90e-03', energy_flux='1.72e-05', photon_flux2='5.30e-08', job_status='DONE', time_completed='2021-09-08 11:31:59.160431', photon_index_error2='0.79', photon_index2='2.39', ts='3.01', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.38e-05', EG='1.39', time_epoch_completed='1631125919.16', return_code='0', job_id='947259', GAL2='0.79', EG2='1.39', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.79e-08', ts2='3.01', photon_index='2.44' WHERE bin_id='348' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:31:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 947259: <4FGL_J1345.8+0706_daily_bin348> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin348> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 11:20:16 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:20:24 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:24 2021
Terminated at Wed Sep  8 11:31:59 2021
Results reported at Wed Sep  8 11:31:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin348 206.465 7.1072 329529601 329788801 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 :                                   513.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            703 sec.

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

