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


Performing analysis on: 4FGL_J1345.5+4453_daily_bin267
RA = 206.394, Dec = 44.8844
tmin = 308534401, tmax = 308793601
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='906311', job_status='RUN', time_executed='2021-09-08 10:11:03.072005', time_epoch_executed='1631121063.07' WHERE source_name='4FGL J1345.5+4453' and cadence='daily' and bin_id='267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906311

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906311/ft1_4FGL_J1345.5+4453_daily_bin267.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906311/ft2_4FGL_J1345.5+4453_daily_bin267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906311/ft1_4FGL_J1345.5+4453_daily_bin267.fits outfile=/scratch/kocevski/906311/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin267.fits ra=206.394 dec=44.8844 rad=12.0 tmin=308534401.0 tmax=308793601.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 5.42
user 5.11
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/906311/ft2_4FGL_J1345.5+4453_daily_bin267.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/906311/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin267.fits evtable="EVENTS" outfile="/scratch/kocevski/906311/ft1_filtered_4FGL_J1345.5+4453_daily_bin267.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906311/ft1_filtered_4FGL_J1345.5+4453_daily_bin267.fits" evtable="EVENTS" scfile=/scratch/kocevski/906311/ft2_4FGL_J1345.5+4453_daily_bin267.fits sctable="SC_DATA" outfile=/scratch/kocevski/906311/ltcube_308534401_308793601_4FGL_J1345.5+4453_daily_bin267.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/906311/ft2_4FGL_J1345.5+4453_daily_bin267.fits
.....................!
real 13.12
user 12.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906311/ft1_filtered_4FGL_J1345.5+4453_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/906311/ft2_4FGL_J1345.5+4453_daily_bin267.fits sctable="SC_DATA" expcube=/scratch/kocevski/906311/ltcube_308534401_308793601_4FGL_J1345.5+4453_daily_bin267.fits outfile=/scratch/kocevski/906311/expmap_308534401_308793601_4FGL_J1345.5+4453_daily_bin267.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/906311/ltcube_308534401_308793601_4FGL_J1345.5+4453_daily_bin267.fits
.....................!
real 194.64
user 186.79
sys 5.34

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/906311/ft1_filtered_4FGL_J1345.5+4453_daily_bin267.fits scfile=/scratch/kocevski/906311/ft2_4FGL_J1345.5+4453_daily_bin267.fits outfile=/scratch/kocevski/906311/cmap_308534401_308793601_4FGL_J1345.5+4453_daily_bin267.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.56
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906311/ft1_filtered_4FGL_J1345.5+4453_daily_bin267.fits scfile=/scratch/kocevski/906311/ft2_4FGL_J1345.5+4453_daily_bin267.fits outfile=/scratch/kocevski/906311/cmap_HighResolution_308534401_308793601_4FGL_J1345.5+4453_daily_bin267.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/906311/ft1_filtered_4FGL_J1345.5+4453_daily_bin267.fits', '/scratch/kocevski/906311/ft2_4FGL_J1345.5+4453_daily_bin267.fits', expMap='/scratch/kocevski/906311/expmap_308534401_308793601_4FGL_J1345.5+4453_daily_bin267.fits', expCube='/scratch/kocevski/906311/ltcube_308534401_308793601_4FGL_J1345.5+4453_daily_bin267.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/906311/Model_4FGL_J1345.5+4453_daily_bin267.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/906311/ft1_filtered_4FGL_J1345.5+4453_daily_bin267.fits
Spacecraft file(s): /scratch/kocevski/906311/ft2_4FGL_J1345.5+4453_daily_bin267.fits
Exposure map: /scratch/kocevski/906311/expmap_308534401_308793601_4FGL_J1345.5+4453_daily_bin267.fits
Exposure cube: /scratch/kocevski/906311/ltcube_308534401_308793601_4FGL_J1345.5+4453_daily_bin267.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/906311/Model_4FGL_J1345.5+4453_daily_bin267.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) = 5167.83276881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.0814       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1961       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.0275       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.013       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0139       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.738       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8791       1.0000         .10000E-03   10000.    
    16 'norm      '    5.8615       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6410       1.0000         .10000E-03   10000.    
    19 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.119       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.393       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.431       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.0638       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.694       1.0000         .10000E-03   10000.    
    29 'norm      '    .42840       1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.1784       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    30.585       1.0000         .10000E-03   10000.    
    33 'Prefactor '    71.877       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .50816       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .98722       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0014       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.

 FCN=   5167.795     FROM MIGRAD    STATUS=CONVERGED   1025 CALLS     6132 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8691        .21515E-06** at limit **
   2  norm          5.0814        2.5432        .26575E-07    .47276E-04
   3  Prefactor     .10000E-03    26.058        .18899E-06** at limit **
   4  Prefactor     7.1972        12.405       -.28894E-06   -.57455E-04
   5  norm          .10000E-03    2.9098       -.14797E-07** at limit **
   6  norm          .10000E-03    5.4849        .30992E-07** at limit **
   7  norm          4.0277        4.3438       -.19363E-06   -.16616E-03
   8  Prefactor     .10000E-03    1.3988       -.18246E-06** at limit **
   9  Prefactor     .10000E-03    11.566       -.30542E-07** at limit **
  10  Prefactor     .10000E-03    24.524       -.33308E-06** at limit **
  11  Prefactor     .10000E-03    13.767        .35346E-06** at limit **
  12  Prefactor     21.013        30.362       -.95651E-07   -.31547E-04
  13  norm          3.0136        4.7103       -.23930E-06   -.14253E-03
  14  Prefactor     10.730        45.086        .31054E-06    .12496E-04
  15  Prefactor     1.9542        642.84       -.20984E-05   -.98365E-05
  16  norm          5.8613        2.1065       -.12431E-06   -.63623E-03
  17  norm          .10000E-03    37.174        .19321E-06** at limit **
  18  norm          3.6406        3.7582        .10879E-06   -.18477E-04
  19  norm          .10000E-03    6.3979       -.49605E-06** at limit **
  20  Prefactor     39.102        47.121        .10108E-05    .27745E-04
  21  Prefactor     .10000E-03    5.8561       -.59836E-07** at limit **
  22  Prefactor     36.384        36.969        .31546E-06   -.98808E-05
  23  Prefactor     .10000E-03    2.5905        .18653E-06** at limit **
  24  Prefactor     .10000E-03    20.755        .45986E-06** at limit **
  25  norm          .10000E-03    2.7211       -.22102E-06** at limit **
  26  Prefactor     19.454        27.545        .13137E-05    .18129E-03
  27  Prefactor     1.0670        1.6865       -.82383E-06   -.43246E-03
  28  Prefactor     12.650        29.127       -.25178E-06    .14158E-03
  29  norm          .44533        61.628       -.75494E-05   -.29037E-04
  30  Prefactor     9.1756        14.794        .30230E-06   -.96240E-05
  31  Prefactor     .10000E-03    25.032        .19193E-06** at limit **
  32  Prefactor     30.582        31.993       -.25064E-06   -.61568E-05
  33  Prefactor     71.881        55.018        .17955E-06    .38723E-05
  34  Prefactor     .56470        58.626       -.70347E-05    .68452E-04
  35  Normalizat    .98743        .21479        .33855E-05   -.51726E-03
  36  Prefactor     1.0011        .26013       -.51517E-05   -.21929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.08136
  Prefactor  = 0.0001
  Prefactor  = 7.1972
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.0277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0134
  norm       = 3.01362
  Prefactor  = 10.7298
  Prefactor  = 1.95423
  norm       = 5.86134
  norm       = 0.0001
  norm       = 3.64062
  norm       = 0.0001
  Prefactor  = 39.1016
  Prefactor  = 0.0001
  Prefactor  = 36.3845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.4542
  Prefactor  = 1.06701
  Prefactor  = 12.65
  norm       = 0.445333
  Prefactor  = 9.17564
  Prefactor  = 0.0001
  Prefactor  = 30.5823
  Prefactor  = 71.8813
  Prefactor  = 0.564702
  Normalizat = 0.987428
  Prefactor  = 1.00113
 **********
 **   18 **HESSE 
 **********

 FCN=   5167.795     FROM HESSE     STATUS=OK           815 CALLS     6947 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0814        2.5452        .79136E-04   -1.5257    
   3  Prefactor     .10000E-03    26.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.1972        12.385        .14953E-03   -1.5171    
   5  norm          .10000E-03    2.9312        .11963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.4945        .16444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.0277        4.3328        .14839E-03   -1.5307    
   8  Prefactor     .10000E-03    1.4049        .83049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.013        30.344        .87377E-04   -1.4791    
  13  norm          3.0136        4.6847        .18290E-03   -1.5361    
  14  Prefactor     10.730        45.297        .12227E-03   -1.5053    
  15  Prefactor     1.9542        625.17        .30371E-03   -1.5428    
  16  norm          5.8613        2.1057        .58906E-04   -1.5224    
  17  norm          .10000E-03    37.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6406        3.7523        .13684E-03   -1.5326    
  19  norm          .10000E-03    6.4143        .17764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     39.102        47.217        .64085E-04   -1.4457    
  21  Prefactor     .10000E-03    5.8575        .16991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     36.384        36.972        .66434E-04   -1.4501    
  23  Prefactor     .10000E-03    2.6209        .11312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.7679        .11577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.454        28.523        .90862E-04   -1.4826    
  27  Prefactor     1.0670        1.6919        .13623E-02   -1.5501    
  28  Prefactor     12.650        29.360        .11243E-03   -1.4996    
  29  norm          .44533        106.29        .46233E-02   -1.5575    
  30  Prefactor     9.1756        14.791        .13229E-03   -1.5102    
  31  Prefactor     .10000E-03    25.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     30.582        32.021        .72449E-04   -1.4601    
  33  Prefactor     71.881        55.017        .47352E-04   -1.4010    
  34  Prefactor     .56470        115.00        .47672E-02   -1.5558    
  35  Normalizat    .98743        .22164        .22747E-03   -.93453    
  36  Prefactor     1.0011        .26465        .28461E-03   -.92692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51993e-08
Minuit parameter uncertainties:
  1  2.92702e-05
  2  2.54527
  3  5.95059e-05
  4  12.3895
  5  6.3887e-06
  6  5.78001e-06
  7  4.33313
  8  6.47581e-06
  9  9.66741e-06
  10  4.98268e-05
  11  8.88018e-05
  12  30.3661
  13  4.68526
  14  44.1491
  15  70.6616
  16  2.10577
  17  9.02991e-05
  18  3.75251
  19  3.24135e-05
  20  47.2625
  21  4.14185e-06
  22  36.9955
  23  1.94016e-05
  24  4.63272e-05
  25  1.03877e-05
  26  28.5426
  27  1.69194
  28  29.3933
  29  13.7833
  30  14.7968
  31  4.43033e-05
  32  32.039
  33  55.0556
  34  16.147
  35  0.22185
  36  0.26499
Done.

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

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  5.861e+00  2.106e+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.001e+00  2.650e-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:  9.874e-01  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.13
Ra Dec: 206.394 44.884
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 4.44e-08
Energy Flux (Fixed Index): 4.75e-05 +/- 1.71e-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) = 5166.65386273
delta logL = 1.14087410514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5166.65367802
delta logL = 1.14105881782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5642       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8545       1.0000          .0000       5.0000    
     3 'Normalizat'    .90372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0836       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=   5166.654     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      264 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5632        20.596        .47106E-02    .14264E-02
   2  alpha         2.8543        3.9264        .20942        .75014E-04
   3  Normalizat    .90362        .11511        .44949E-01    .13692E-03
   4  Prefactor     1.0837        .15139        .62233E-01    .56322E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.56323
  alpha      = 2.85432
  Normalizat = 0.903624
  Prefactor  = 1.08374
 **********
 **   18 **HESSE 
 **********

 FCN=   5166.654     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5632        2.3383        .46849E-04   -1.5281    
   2  alpha         2.8543        .54146        .89960E-02    .14221    
   3  Normalizat    .90362        .21493        .23611E-03   -.96333    
   4  Prefactor     1.0837        .26835        .27524E-03   -.89988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00982e-10
Minuit parameter uncertainties:
  1  2.33832
  2  0.545873
  3  0.21513
  4  0.268687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906311': 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) = 5166.65367703
delta logL = 1.14105981168

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  4.563e+00  2.338e+00  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  2.854e+00  5.459e-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.084e+00  2.687e-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:  9.036e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.46
Ra Dec: 206.394 44.884
Photon Index (Free Index): 2.85 +/- 0.55
Photon Flux (Free Index): 1.70e-07 +/- 5.87e-08
Energy Flux (Free Index): 3.67e-05 +/- 1.33e-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/906311/cmap_HighResolution_308534401_308793601_4FGL_J1345.5+4453_daily_bin267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='3.67e-05', photon_flux_error='4.44e-08', dlogl='1.14e+00', energy_flux='4.75e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-08 10:26:50.627974', photon_index_error2='0.55', photon_index2='2.85', ts='17.13', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.33e-05', EG='0.99', time_epoch_completed='1631122010.63', return_code='0', job_id='906311', GAL2='1.08', EG2='0.90', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='5.87e-08', ts2='19.46', photon_index='2.17' WHERE bin_id='267' AND source_name='4FGL J1345.5+4453' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 10:26:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 906311: <4FGL_J1345.5+4453_daily_bin267> in cluster <slac> Done

Job <4FGL_J1345.5+4453_daily_bin267> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 10:10:39 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 10:10:54 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:10:54 2021
Terminated at Wed Sep  8 10:26:51 2021
Results reported at Wed Sep  8 10:26:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.5+4453_daily_bin267 206.394 44.8844 308534401 308793601 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 :                                   939.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            972 sec.

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

