aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 122 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7681
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1345.8+0706_daily_bin1780
RA = 206.465, Dec = 7.1072
tmin = 700704001, tmax = 700963201
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='65241', job_status='RUN', time_executed='2023-03-20 01:02:37.083588', time_epoch_executed='1679299357.08' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/65241

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/65241/ft1_4FGL_J1345.8+0706_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/65241/ft2_4FGL_J1345.8+0706_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/65241/ft1_4FGL_J1345.8+0706_daily_bin1780.fits outfile=/scratch/kocevski/65241/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin1780.fits ra=206.465 dec=7.1072 rad=12.0 tmin=700704001.0 tmax=700963201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.12
user 3.90
sys 0.21

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

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

Number of photons that the gtmktime cut: 372

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/65241/ft1_filtered_4FGL_J1345.8+0706_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/65241/ft2_4FGL_J1345.8+0706_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/65241/ltcube_700704001_700963201_4FGL_J1345.8+0706_daily_bin1780.fits outfile=/scratch/kocevski/65241/expmap_700704001_700963201_4FGL_J1345.8+0706_daily_bin1780.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/65241/ltcube_700704001_700963201_4FGL_J1345.8+0706_daily_bin1780.fits
.....................!
real 190.88
user 185.67
sys 4.85

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/65241/ft1_filtered_4FGL_J1345.8+0706_daily_bin1780.fits scfile=/scratch/kocevski/65241/ft2_4FGL_J1345.8+0706_daily_bin1780.fits outfile=/scratch/kocevski/65241/cmap_700704001_700963201_4FGL_J1345.8+0706_daily_bin1780.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/65241/ft1_filtered_4FGL_J1345.8+0706_daily_bin1780.fits scfile=/scratch/kocevski/65241/ft2_4FGL_J1345.8+0706_daily_bin1780.fits outfile=/scratch/kocevski/65241/cmap_HighResolution_700704001_700963201_4FGL_J1345.8+0706_daily_bin1780.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/65241/ft1_filtered_4FGL_J1345.8+0706_daily_bin1780.fits', '/scratch/kocevski/65241/ft2_4FGL_J1345.8+0706_daily_bin1780.fits', expMap='/scratch/kocevski/65241/expmap_700704001_700963201_4FGL_J1345.8+0706_daily_bin1780.fits', expCube='/scratch/kocevski/65241/ltcube_700704001_700963201_4FGL_J1345.8+0706_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/65241/Model_4FGL_J1345.8+0706_daily_bin1780.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  0.000e+00  1.000e+06 ( 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/65241/ft1_filtered_4FGL_J1345.8+0706_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/65241/ft2_4FGL_J1345.8+0706_daily_bin1780.fits
Exposure map: /scratch/kocevski/65241/expmap_700704001_700963201_4FGL_J1345.8+0706_daily_bin1780.fits
Exposure cube: /scratch/kocevski/65241/ltcube_700704001_700963201_4FGL_J1345.8+0706_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/65241/Model_4FGL_J1345.8+0706_daily_bin1780.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) = 4345.07639919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32952E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    16.030       1.0000          .0000       .10000E+07
     3 'Prefactor '    .41640       1.0000          .0000       .10000E+07
     4 'Prefactor '    .17121E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .65587E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .35978E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    25.534       1.0000          .0000       .10000E+07
     8 'Prefactor '    .32653E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10987E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .72936E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    8.9515       1.0000          .0000       .10000E+07
    12 'Prefactor '    79.745       1.0000          .0000       .10000E+07
    13 'norm      '    .87201E-05   1.0000          .0000       .10000E+07
    14 'Normalizat'    .55128       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.3647       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4345.059     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1038 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15210E-06    32.748        .93112E-05** at limit **
   2  Prefactor     16.071        16.578       -.82998E-06    .19567E-02
   3  Prefactor     .83868        941.03        .48303E-04   -.85793E-03
   4  Prefactor     .99920E-09    39.093       -.29381E-05** at limit **
   5  norm          .55511E-10    19.944        .41591E-06** at limit **
   6  Prefactor     .55511E-10    5.6438        .10603E-05** at limit **
   7  Prefactor     25.992        22.286       -.11426E-05   -.47868E-01
   8  Prefactor     .55511E-10    4.9697        .10310E-05** at limit **
   9  Prefactor     .38858E-09    8.6560        .25012E-05** at limit **
  10  Prefactor     .44797E-07    29.820       -.15411E-04** at limit **
  11  Prefactor     9.5385        9.9792       -.10821E-05    .18096E-01
  12  Prefactor     80.636        38.116       -.13177E-05    .55238E-01
  13  norm          .55511E-10    11.514       -.10508E-05** at limit **
  14  Normalizat    .54944        .28916       -.16326E-04    .26867E-03
  15  Prefactor     1.3644        .22117       -.27621E-05    .50836E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.52101e-07
  Prefactor  = 16.0711
  Prefactor  = 0.838676
  Prefactor  = 9.99201e-10
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 25.9917
  Prefactor  = 5.55112e-11
  Prefactor  = 3.88578e-10
  Prefactor  = 4.47975e-08
  Prefactor  = 9.53854
  Prefactor  = 80.6362
  norm       = 5.55112e-11
  Normalizat = 0.549437
  Prefactor  = 1.36441
 **********
 **   18 **HESSE 
 **********

 FCN=   4345.059     FROM HESSE     STATUS=OK           214 CALLS     1252 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15210E-06    32.790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.071        16.590        .24989E-03   -1.5628    
   3  Prefactor     .83868        79.725        .13092E-01   -1.5690    
   4  Prefactor     .99920E-09    41.415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55511E-10    19.958        .14966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    5.6161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.992        38.145        .19794E-03   -1.5606    
   8  Prefactor     .55511E-10    4.9621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38858E-09    8.6497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .44797E-07    30.359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5385        30.137        .33476E-03   -1.5646    
  12  Prefactor     80.636        43.783        .11199E-03   -1.5528    
  13  norm          .55511E-10    11.516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .54944        .26557        .83552E-01   -1.1018    
  15  Prefactor     1.3644        .19752        .31568E-01   -.81411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37638e-07
Minuit parameter uncertainties:
  1  0.00446645
  2  16.5903
  3  16.3543
  4  0.000405211
  5  4.90859e-05
  6  3.74094e-05
  7  38.1451
  8  3.33282e-05
  9  0.000113038
  10  0.00233282
  11  30.137
  12  43.7834
  13  5.25981e-05
  14  0.266185
  15  0.197627
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  5.551e-11  3.741e-05  0.000e+00  1.000e+06 ( 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.364e+00  1.976e-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:  5.494e-01  2.662e-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.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/65241/likelihoodResults_700704001_700963201_4FGL_J1345.8+0706_daily_bin1780.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) = 4345.06043918
delta logL = -0.00181301049997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4343.40989515
delta logL = 1.64873102461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23468E-03   1.0000          .0000       .10000E+07
     2 'Index     '    8.7187       1.0000          .0000       10.000    
     3 'Normalizat'    .36269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4626       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=   4343.410     FROM MIGRAD    STATUS=CONVERGED    282 CALLS      578 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23287E-03    .16211E-03    .16859E-04** at limit **
   2  Index         8.7233        .34096        .14712       -.12412E-04
   3  Normalizat    .36282        .28089        .10193       -.15176E-03
   4  Prefactor     1.4627        .21098        .30249E-01   -.66573E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000232874
  Index      = 8.72332
  Normalizat = 0.36282
  Prefactor  = 1.4627
 **********
 **   18 **HESSE 
 **********

 FCN=   4343.410     FROM HESSE     STATUS=OK            31 CALLS      609 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23287E-03    .49841E-03    .74903E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7233        1.0989        .63572E-03   -22.831    
   3  Normalizat    .36282        .30150        .45151E-03   -14.515    
   4  Prefactor     1.4627        .22990        .18299E-03   -2.3557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.78738e-08
Minuit parameter uncertainties:
  1  0.000498413
  2  1.11975
  3  0.302863
  4  0.23006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/65241': 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) = 4343.40989123
delta logL = 1.64873494816

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  2.329e-04  4.984e-04  0.000e+00  1.000e+06 ( 1.000e-12)
287        Index:  8.723e+00  1.120e+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.463e+00  2.301e-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:  3.628e-01  3.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 206.465 7.107
Photon Index (Free Index): 8.72 +/- 1.12
Photon Flux (Free Index): 1.50e-07 +/- 1.01e-07
Energy Flux (Free Index): 1.72e-05 +/- 1.16e-05

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/65241/cmap_HighResolution_700704001_700963201_4FGL_J1345.8+0706_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e-03', comment='SUCCESS', energy_flux2='1.72e-05', dlogl='1.65e+00', photon_flux2='1.50e-07', job_status='DONE', time_completed='2023-03-20 01:09:46.657962', photon_index_error2='1.12', photon_index2='8.72', ts='-0.00', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.16e-05', EG='0.55', time_epoch_completed='1679299786.66', return_code='0', job_id='65241', GAL2='1.46', EG2='0.36', return_code2='0', photon_flux_error2='1.01e-07', ts2='3.72', photon_index='2.44' WHERE bin_id='1780' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:09:46 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 65241: <4FGL_J1345.8+0706_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin1780> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Mar 20 01:00:25 2023
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:00:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:00:26 2023
Terminated at Mon Mar 20 01:09:47 2023
Results reported at Mon Mar 20 01:09:47 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin1780 206.465 7.1072 700704001 700963201 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 :                                   432.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            562 sec.

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

