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


Performing analysis on: 4FGL_J1345.5+4453_daily_bin506
RA = 206.394, Dec = 44.8844
tmin = 370483201, tmax = 370742401
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='907887', job_status='RUN', time_executed='2021-09-08 10:17:52.556619', time_epoch_executed='1631121472.56' WHERE source_name='4FGL J1345.5+4453' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907887

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907887/ft1_4FGL_J1345.5+4453_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907887/ft2_4FGL_J1345.5+4453_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907887/ft1_4FGL_J1345.5+4453_daily_bin506.fits outfile=/scratch/kocevski/907887/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin506.fits ra=206.394 dec=44.8844 rad=12.0 tmin=370483201.0 tmax=370742401.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 16.50
user 15.71
sys 0.55

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/907887/ft2_4FGL_J1345.5+4453_daily_bin506.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907887/ft2_4FGL_J1345.5+4453_daily_bin506.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/907887/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin506.fits evtable="EVENTS" outfile="/scratch/kocevski/907887/ft1_filtered_4FGL_J1345.5+4453_daily_bin506.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.48
user 0.29
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907887/ft1_filtered_4FGL_J1345.5+4453_daily_bin506.fits" evtable="EVENTS" scfile=/scratch/kocevski/907887/ft2_4FGL_J1345.5+4453_daily_bin506.fits sctable="SC_DATA" outfile=/scratch/kocevski/907887/ltcube_370483201_370742401_4FGL_J1345.5+4453_daily_bin506.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/907887/ft2_4FGL_J1345.5+4453_daily_bin506.fits
.....................!
real 11.76
user 11.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907887/ft1_filtered_4FGL_J1345.5+4453_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/907887/ft2_4FGL_J1345.5+4453_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/907887/ltcube_370483201_370742401_4FGL_J1345.5+4453_daily_bin506.fits outfile=/scratch/kocevski/907887/expmap_370483201_370742401_4FGL_J1345.5+4453_daily_bin506.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/907887/ltcube_370483201_370742401_4FGL_J1345.5+4453_daily_bin506.fits
.....................!
real 157.30
user 152.28
sys 4.51

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 200 point sources and 0 extended sources

Setting source of interest to:
4FGL J1345.5+4453 @ 206.394 44.8844

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/907887/ft1_filtered_4FGL_J1345.5+4453_daily_bin506.fits scfile=/scratch/kocevski/907887/ft2_4FGL_J1345.5+4453_daily_bin506.fits outfile=/scratch/kocevski/907887/cmap_370483201_370742401_4FGL_J1345.5+4453_daily_bin506.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.394 yref=44.8844 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.48
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907887/ft1_filtered_4FGL_J1345.5+4453_daily_bin506.fits scfile=/scratch/kocevski/907887/ft2_4FGL_J1345.5+4453_daily_bin506.fits outfile=/scratch/kocevski/907887/cmap_HighResolution_370483201_370742401_4FGL_J1345.5+4453_daily_bin506.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.394 yref=44.8844 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.56
user 0.34
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907887/ft1_filtered_4FGL_J1345.5+4453_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/907887/ft2_4FGL_J1345.5+4453_daily_bin506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907887/Model_4FGL_J1345.5+4453_daily_bin506.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/907887/ft1_filtered_4FGL_J1345.5+4453_daily_bin506.fits.....................!
real 26.98
user 25.50
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/907887/ft1_filtered_4FGL_J1345.5+4453_daily_bin506.fits', '/scratch/kocevski/907887/ft2_4FGL_J1345.5+4453_daily_bin506.fits', expMap='/scratch/kocevski/907887/expmap_370483201_370742401_4FGL_J1345.5+4453_daily_bin506.fits', expCube='/scratch/kocevski/907887/ltcube_370483201_370742401_4FGL_J1345.5+4453_daily_bin506.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/907887/Model_4FGL_J1345.5+4453_daily_bin506.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1345.5+4453'

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  6.795e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  2.171e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
341         beta:  7.801e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
342           Eb:  4.556e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/907887/ft1_filtered_4FGL_J1345.5+4453_daily_bin506.fits
Spacecraft file(s): /scratch/kocevski/907887/ft2_4FGL_J1345.5+4453_daily_bin506.fits
Exposure map: /scratch/kocevski/907887/expmap_370483201_370742401_4FGL_J1345.5+4453_daily_bin506.fits
Exposure cube: /scratch/kocevski/907887/ltcube_370483201_370742401_4FGL_J1345.5+4453_daily_bin506.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/907887/Model_4FGL_J1345.5+4453_daily_bin506.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) = 2974.43795295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2142       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.426       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.3123       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .55651E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.688       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2329       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.053       1.0000         .10000E-03   10000.    
    17 'norm      '    39.043       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8325       1.0000         .10000E-03   10000.    
    19 'norm      '    35.825       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .86490E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.392       1.0000         .10000E-03   10000.    
    25 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.625       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.840       1.0000         .10000E-03   10000.    
    29 'norm      '    22.503       1.0000         .10000E-03   10000.    
    30 'Prefactor '    46.268       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    15.953       1.0000         .10000E-03   10000.    
    33 'Prefactor '    58.458       1.0000         .10000E-03   10000.    
    34 'Prefactor '    3.6355       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .58139       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.3131       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+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=   2974.405     FROM MIGRAD    STATUS=CONVERGED   1869 CALLS     6203 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.747        .18142E-02** at limit **
   2  norm          3.2141        3.0775        .90767E-04   -.27555E-05
   3  Prefactor     18.242        82.749        .93488E-04    .11735E-04
   4  Prefactor     18.427        26.765        .93305E-04   -.45083E-05
   5  norm          .10000E-03    5.8323        .12848E-02** at limit **
   6  norm          .10000E-03    10.058        .16891E-02** at limit **
   7  norm          6.3102        6.1685        .12257E-03    .32222E-03
   8  Prefactor     .10000E-03    2.5211        .84553E-03** at limit **
   9  Prefactor     .10402E-03    155.11        .13052    ** at limit **
  10  Prefactor     .10000E-03    83.092        .18142E-02** at limit **
  11  Prefactor     .10000E-03    30.115        .18142E-02** at limit **
  12  Prefactor     27.589        69.856        .76136E-04    .14898E-03
  13  norm          .10000E-03    2.1373        .77763E-03** at limit **
  14  Prefactor     7.2025        238.74        .14914E-03   -.38113E-07
  15  Prefactor     .10000E-03    82.672        .18142E-02** at limit **
  16  norm          14.053        4.1286        .55254E-04    .27972E-03
  17  norm          38.983        109.09        .64146E-04    .13434E-04
  18  norm          1.8343        6.1780        .21854E-03    .15425E-04
  19  norm          35.823        34.492        .66956E-04    .24620E-05
  20  Prefactor     .10145E-03    145.94        .16758    ** at limit **
  21  Prefactor     .10000E-03    15.626        .18142E-02** at limit **
  22  Prefactor     .10000E-03    33.961        .18142E-02** at limit **
  23  Prefactor     .10000E-03    2.7042        .87537E-03** at limit **
  24  Prefactor     21.397        34.617        .86600E-04    .29669E-04
  25  norm          .10000E-03    11.020        .34763E-03** at limit **
  26  Prefactor     .10000E-03    14.034        .18142E-02** at limit **
  27  Prefactor     10.628        6.2991        .88802E-04    .48258E-03
  28  Prefactor     10.848        24.425        .12169E-03    .65866E-05
  29  norm          22.496        27.098        .84439E-04   -.12091E-04
  30  Prefactor     46.272        44.225        .58946E-04    .52248E-04
  31  Prefactor     .10000E-03    42.999        .18142E-02** at limit **
  32  Prefactor     15.948        45.264        .10028E-03   -.56687E-05
  33  Prefactor     58.463        75.148        .26236E-03   -.30809E-05
  34  Prefactor     3.6338        54.638        .21188E-03    .15158E-04
  35  Normalizat    .58136        .32733        .30733E-03    .17299E-03
  36  Prefactor     1.3132        .37579        .26255E-03    .31627E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.21411
  Prefactor  = 18.2418
  Prefactor  = 18.4269
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.31017
  Prefactor  = 0.0001
  Prefactor  = 0.000104022
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 27.5891
  norm       = 0.0001
  Prefactor  = 7.20254
  Prefactor  = 0.0001
  norm       = 14.0534
  norm       = 38.9833
  norm       = 1.83431
  norm       = 35.8233
  Prefactor  = 0.000101453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3968
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.6284
  Prefactor  = 10.8479
  norm       = 22.4964
  Prefactor  = 46.2721
  Prefactor  = 0.0001
  Prefactor  = 15.9477
  Prefactor  = 58.4631
  Prefactor  = 3.63378
  Normalizat = 0.58136
  Prefactor  = 1.31322
 **********
 **   18 **HESSE 
 **********

 FCN=   2974.405     FROM HESSE     STATUS=OK           795 CALLS     6998 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2141        3.0775        .36307E-05   -1.5349    
   3  Prefactor     18.242        82.564        .37395E-05   -1.4853    
   4  Prefactor     18.427        26.764        .37322E-05   -1.4849    
   5  norm          .10000E-03    5.8323        .25696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.058        .33782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.3102        6.1686        .49028E-05   -1.5206    
   8  Prefactor     .10000E-03    2.5211        .16911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10402E-03    156.61        .12978       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    83.094        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.589        69.887        .15227E-04   -1.4657    
  13  norm          .10000E-03    2.1374        .15553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.2025        238.03        .59658E-05   -1.5171    
  15  Prefactor     .10000E-03    82.673        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.053        4.1285        .22102E-05   -1.4958    
  17  norm          38.983        109.06        .12829E-04   -1.4458    
  18  norm          1.8343        6.1744        .87414E-05   -1.5437    
  19  norm          35.823        34.483        .26782E-05   -1.4510    
  20  Prefactor     .10145E-03    159.82        .15823       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.7042        .17507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.397        34.613        .34640E-05   -1.4783    
  25  norm          .10000E-03    11.021        .69526E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.628        6.3049        .35521E-05   -1.5056    
  28  Prefactor     10.848        24.425        .48674E-05   -1.5049    
  29  norm          22.496        27.098        .16888E-04   -1.4759    
  30  Prefactor     46.272        44.225        .11789E-04   -1.4346    
  31  Prefactor     .10000E-03    42.999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     15.948        45.255        .40111E-05   -1.4909    
  33  Prefactor     58.463        75.148        .52472E-04   -1.4177    
  34  Prefactor     3.6338        54.607        .84753E-05   -1.5327    
  35  Normalizat    .58136        .32755        .12293E-04   -1.0878    
  36  Prefactor     1.3132        .37611        .52511E-04   -.82915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02557e-09
Minuit parameter uncertainties:
  1  3.24275e-05
  2  3.07768
  3  77.7961
  4  26.781
  5  6.25383e-05
  6  9.62457e-05
  7  6.16922
  8  3.35166e-06
  9  0.0503248
  10  7.64104e-05
  11  0.000372507
  12  70.0951
  13  8.06197e-06
  14  83.1737
  15  7.26782e-05
  16  4.12863
  17  109.626
  18  6.17654
  19  34.5022
  20  0.0305557
  21  6.79505e-05
  22  0.000221538
  23  2.4758e-05
  24  34.6459
  25  8.23209e-05
  26  0.00016793
  27  6.30528
  28  24.4478
  29  27.1131
  30  44.2562
  31  0.000119469
  32  45.3528
  33  75.2698
  34  28.2035
  35  0.32865
  36  0.376891
Done.

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

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  1.405e+01  4.129e+00  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  2.171e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
341         beta:  7.801e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
342           Eb:  4.556e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.313e+00  3.769e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  5.814e-01  3.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.98
Ra Dec: 206.394 44.884
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 2.96e-07 +/- 8.70e-08
Energy Flux (Fixed Index): 1.14e-04 +/- 3.35e-05

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) = 2973.46556523
delta logL = 0.939103623553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2973.41209708
delta logL = 0.992571774879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.043       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6597       1.0000          .0000       5.0000    
     3 'Normalizat'    .43017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4446       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2973.412     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.043        7.9722        .27727E-02   -.19665E-02
   2  alpha         2.6597        .70538        .13710        .19904E-04
   3  Normalizat    .43010        .28561        .79657E-01    .31772E-04
   4  Prefactor     1.4447        .34336        .56974E-01    .11413E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0435
  alpha      = 2.65968
  Normalizat = 0.430102
  Prefactor  = 1.44467
 **********
 **   18 **HESSE 
 **********

 FCN=   2973.412     FROM HESSE     STATUS=OK            27 CALLS      230 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.043        3.9781        .48007E-04   -1.4985    
   2  alpha         2.6597        .36187        .59811E-03    .63917E-01
   3  Normalizat    .43010        .31669        .35281E-03   -1.1577    
   4  Prefactor     1.4447        .38191        .25190E-03   -.79101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95198e-10
Minuit parameter uncertainties:
  1  3.97821
  2  0.363147
  3  0.318025
  4  0.382669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907887': 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) = 2973.41209706
delta logL = 0.992571796421

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  1.304e+01  3.978e+00  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  2.660e+00  3.631e-01  0.000e+00  5.000e+00 ( 1.000e+00)
341         beta:  7.801e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
342           Eb:  4.556e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.445e+00  3.827e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  4.301e-01  3.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.43
Ra Dec: 206.394 44.884
Photon Index (Free Index): 2.66 +/- 0.36
Photon Flux (Free Index): 4.05e-07 +/- 1.27e-07
Energy Flux (Free Index): 9.84e-05 +/- 2.68e-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/907887/cmap_HighResolution_370483201_370742401_4FGL_J1345.5+4453_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.96e-07', energy_flux2='9.84e-05', photon_flux_error='8.70e-08', dlogl='9.93e-01', energy_flux='1.14e-04', photon_flux2='4.05e-07', job_status='DONE', time_completed='2021-09-08 10:28:22.629729', photon_index_error2='0.36', photon_index2='2.66', ts='32.98', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', energy_flux_error2='2.68e-05', EG='0.58', time_epoch_completed='1631122102.63', return_code='0', job_id='907887', GAL2='1.44', EG2='0.43', return_code2='0', energy_flux_error='3.35e-05', photon_flux_error2='1.27e-07', ts2='35.43', photon_index='2.17' WHERE bin_id='506' AND source_name='4FGL J1345.5+4453' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 10:28:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 907887: <4FGL_J1345.5+4453_daily_bin506> in cluster <slac> Done

Job <4FGL_J1345.5+4453_daily_bin506> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 10:15:45 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 10:17:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 10:17:41 2021
Terminated at Wed Sep  8 10:28:23 2021
Results reported at Wed Sep  8 10:28:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.5+4453_daily_bin506 206.394 44.8844 370483201 370742401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1345.5+4453 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   621.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            758 sec.

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

