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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin411
RA = 206.465, Dec = 7.1072
tmin = 345859201, tmax = 346118401
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='947357', job_status='RUN', time_executed='2021-09-08 11:24:36.378899', time_epoch_executed='1631125476.38' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947357

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947357/ft1_4FGL_J1345.8+0706_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947357/ft2_4FGL_J1345.8+0706_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947357/ft1_4FGL_J1345.8+0706_daily_bin411.fits outfile=/scratch/kocevski/947357/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin411.fits ra=206.465 dec=7.1072 rad=12.0 tmin=345859201.0 tmax=346118401.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.47
user 3.21
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947357/ft1_filtered_4FGL_J1345.8+0706_daily_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/947357/ft2_4FGL_J1345.8+0706_daily_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/947357/ltcube_345859201_346118401_4FGL_J1345.8+0706_daily_bin411.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/947357/ft2_4FGL_J1345.8+0706_daily_bin411.fits
.....................!
real 16.86
user 16.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947357/ft1_filtered_4FGL_J1345.8+0706_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/947357/ft2_4FGL_J1345.8+0706_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/947357/ltcube_345859201_346118401_4FGL_J1345.8+0706_daily_bin411.fits outfile=/scratch/kocevski/947357/expmap_345859201_346118401_4FGL_J1345.8+0706_daily_bin411.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/947357/ltcube_345859201_346118401_4FGL_J1345.8+0706_daily_bin411.fits
.....................!
real 192.45
user 187.16
sys 4.68

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/947357/ft1_filtered_4FGL_J1345.8+0706_daily_bin411.fits scfile=/scratch/kocevski/947357/ft2_4FGL_J1345.8+0706_daily_bin411.fits outfile=/scratch/kocevski/947357/cmap_345859201_346118401_4FGL_J1345.8+0706_daily_bin411.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.59
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947357/ft1_filtered_4FGL_J1345.8+0706_daily_bin411.fits scfile=/scratch/kocevski/947357/ft2_4FGL_J1345.8+0706_daily_bin411.fits outfile=/scratch/kocevski/947357/cmap_HighResolution_345859201_346118401_4FGL_J1345.8+0706_daily_bin411.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.59
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.092       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.632       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .80031       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5316       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5832       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .56602       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4027       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.371       1.0000         .10000E-03   10000.    
    14 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1171       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1216       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=   6267.832     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     1654 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.096        22.989        .99842E-04   -.41789E-04
   2  Prefactor     11.637        13.323        .11746E-03    .21487E-04
   3  Prefactor     .10000E-03    21.311        .18142E-02** at limit **
   4  Prefactor     .76603        155.70        .77031E-02    .79230E-04
   5  norm          .10000E-03    8.5240        .18142E-02** at limit **
   6  Prefactor     1.5324        3.0288        .18741E-03    .37308E-04
   7  Prefactor     .10000E-03    6.3811        .18142E-02** at limit **
   8  Prefactor     .10000E-03    1.4904        .94188E-03** at limit **
   9  Prefactor     7.5811        10.285        .72815E-03    .18914E-03
  10  Prefactor     .57150        18.698        .38401E-02    .26319E-03
  11  Prefactor     5.4020        12.109        .17289E-03    .31104E-04
  12  Prefactor     .10000E-03    28.197        .18142E-02** at limit **
  13  Prefactor     23.391        27.576        .82856E-04   -.32357E-03
  14  norm          .10000E-03    9.8281        .18142E-02** at limit **
  15  Normalizat    1.1171        .24663        .27722E-03   -.53599E-04
  16  Prefactor     1.1216        .18433        .21380E-03    .32729E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0965
  Prefactor  = 11.6375
  Prefactor  = 0.0001
  Prefactor  = 0.76603
  norm       = 0.0001
  Prefactor  = 1.53241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.58114
  Prefactor  = 0.5715
  Prefactor  = 5.40195
  Prefactor  = 0.000100001
  Prefactor  = 23.3912
  norm       = 0.0001
  Normalizat = 1.11708
  Prefactor  = 1.12161
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.832     FROM HESSE     STATUS=OK           189 CALLS     1843 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.096        22.989        .39937E-05   -1.4905    
   2  Prefactor     11.637        13.322        .46985E-05   -1.5026    
   3  Prefactor     .10000E-03    21.312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .76603        160.67        .30812E-03   -1.5533    
   5  norm          .10000E-03    8.5240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5324        3.0286        .74963E-05   -1.5460    
   7  Prefactor     .10000E-03    6.3813        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.4905        .18838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5811        10.283        .29126E-04   -1.5157    
  10  Prefactor     .57150        18.773        .15360E-03   -1.5557    
  11  Prefactor     5.4020        12.108        .69154E-05   -1.5243    
  12  Prefactor     .10000E-03    28.207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.391        27.574        .16571E-04   -1.4740    
  14  norm          .10000E-03    9.8284        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1171        .24683        .11089E-04   -.89205    
  16  Prefactor     1.1216        .18440        .42760E-04   -.88779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18514e-09
Minuit parameter uncertainties:
  1  23.0018
  2  13.3255
  3  0.000152123
  4  22.2476
  5  1.02286e-05
  6  3.02889
  7  7.42509e-06
  8  3.80359e-07
  9  10.2858
  10  6.55271
  11  12.113
  12  0.000375849
  13  27.589
  14  7.30123e-06
  15  0.24709
  16  0.18451
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.532e+00  3.029e+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:  1.122e+00  1.845e-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.117e+00  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
Ra Dec: 206.465 7.107
Photon Flux Upper Limit: 9.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947357/likelihoodResults_345859201_346118401_4FGL_J1345.8+0706_daily_bin411.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) = 6267.2498735
delta logL = 0.582117845557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6267.23805838
delta logL = 0.593932968947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86245E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.6082       1.0000          .0000       10.000    
     3 'Normalizat'    1.0380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1660       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=   6267.238     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      418 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83091E-03    .11649E-01    .50612E-03** at limit **
   2  Index         7.6278        2.6355        .18915        .11813E-03
   3  Normalizat    1.0380        .40708E-01    .64723E-01    .18637E-04
   4  Prefactor     1.1660        .31598E-01    .35490E-01    .44075E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000830914
  Index      = 7.62778
  Normalizat = 1.03804
  Prefactor  = 1.16595
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.238     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      453 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83091E-03    .38111E-01    .22068E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.6278        8.4211        .68313E-02    .55337    
   3  Normalizat    1.0380        .17115        .28629E-03   -.91767    
   4  Prefactor     1.1660        .13043        .21027E-03   -.87385    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.05106e-11
Minuit parameter uncertainties:
  1  0.0105558
  2  6.61887
  3  0.171242
  4  0.130468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947357': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6267.23805667
delta logL = 0.593934675026

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  8.309e-04  1.056e-02  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  7.628e+00  6.619e+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:  1.166e+00  1.305e-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.038e+00  1.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 206.465 7.107
Photon Index (Free Index): 7.63 +/- 6.62
Photon Flux (Free Index): 6.72e-08 +/- 5.88e-08
Energy Flux (Free Index): 7.88e-06 +/- 7.42e-06

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/947357/cmap_HighResolution_345859201_346118401_4FGL_J1345.8+0706_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.39e-03', comment='SUCCESS', energy_flux2='7.88e-06', dlogl='5.94e-01', photon_flux2='6.72e-08', job_status='DONE', time_completed='2021-09-08 11:33:26.361541', photon_index_error2='6.62', photon_index2='7.63', ts='0.35', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='9.54e-08', energy_flux_error2='7.42e-06', EG='1.12', time_epoch_completed='1631126006.36', return_code='0', job_id='947357', GAL2='1.17', EG2='1.04', return_code2='102', photon_flux_error2='5.88e-08', ts2='1.66', photon_index='2.44' WHERE bin_id='411' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:33:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 947357: <4FGL_J1345.8+0706_daily_bin411> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin411 206.465 7.1072 345859201 346118401 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 :                                   529.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            782 sec.

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

