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


Performing analysis on: 4FGL_J1345.5+4453_daily_bin881
RA = 206.394, Dec = 44.8844
tmin = 467683201, tmax = 467942401
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='909525', job_status='RUN', time_executed='2021-09-08 10:22:08.803365', time_epoch_executed='1631121728.8' WHERE source_name='4FGL J1345.5+4453' and cadence='daily' and bin_id='881'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/909525

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/909525/ft1_4FGL_J1345.5+4453_daily_bin881.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/909525/ft2_4FGL_J1345.5+4453_daily_bin881.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/909525/ft1_4FGL_J1345.5+4453_daily_bin881.fits outfile=/scratch/kocevski/909525/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin881.fits ra=206.394 dec=44.8844 rad=12.0 tmin=467683201.0 tmax=467942401.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.50
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/909525/ft2_4FGL_J1345.5+4453_daily_bin881.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/909525/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin881.fits evtable="EVENTS" outfile="/scratch/kocevski/909525/ft1_filtered_4FGL_J1345.5+4453_daily_bin881.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.55
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/909525/ft1_filtered_4FGL_J1345.5+4453_daily_bin881.fits" evtable="EVENTS" scfile=/scratch/kocevski/909525/ft2_4FGL_J1345.5+4453_daily_bin881.fits sctable="SC_DATA" outfile=/scratch/kocevski/909525/ltcube_467683201_467942401_4FGL_J1345.5+4453_daily_bin881.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/909525/ft2_4FGL_J1345.5+4453_daily_bin881.fits
.....................!
real 16.28
user 15.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/909525/ft1_filtered_4FGL_J1345.5+4453_daily_bin881.fits evtable="EVENTS" scfile=/scratch/kocevski/909525/ft2_4FGL_J1345.5+4453_daily_bin881.fits sctable="SC_DATA" expcube=/scratch/kocevski/909525/ltcube_467683201_467942401_4FGL_J1345.5+4453_daily_bin881.fits outfile=/scratch/kocevski/909525/expmap_467683201_467942401_4FGL_J1345.5+4453_daily_bin881.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/909525/ltcube_467683201_467942401_4FGL_J1345.5+4453_daily_bin881.fits
.....................!
real 192.44
user 186.98
sys 4.86

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/909525/ft1_filtered_4FGL_J1345.5+4453_daily_bin881.fits scfile=/scratch/kocevski/909525/ft2_4FGL_J1345.5+4453_daily_bin881.fits outfile=/scratch/kocevski/909525/cmap_467683201_467942401_4FGL_J1345.5+4453_daily_bin881.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/909525/ft1_filtered_4FGL_J1345.5+4453_daily_bin881.fits scfile=/scratch/kocevski/909525/ft2_4FGL_J1345.5+4453_daily_bin881.fits outfile=/scratch/kocevski/909525/cmap_HighResolution_467683201_467942401_4FGL_J1345.5+4453_daily_bin881.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.57
user 0.42
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/909525/ft1_filtered_4FGL_J1345.5+4453_daily_bin881.fits', '/scratch/kocevski/909525/ft2_4FGL_J1345.5+4453_daily_bin881.fits', expMap='/scratch/kocevski/909525/expmap_467683201_467942401_4FGL_J1345.5+4453_daily_bin881.fits', expCube='/scratch/kocevski/909525/ltcube_467683201_467942401_4FGL_J1345.5+4453_daily_bin881.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/909525/Model_4FGL_J1345.5+4453_daily_bin881.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/909525/ft1_filtered_4FGL_J1345.5+4453_daily_bin881.fits
Spacecraft file(s): /scratch/kocevski/909525/ft2_4FGL_J1345.5+4453_daily_bin881.fits
Exposure map: /scratch/kocevski/909525/expmap_467683201_467942401_4FGL_J1345.5+4453_daily_bin881.fits
Exposure cube: /scratch/kocevski/909525/ltcube_467683201_467942401_4FGL_J1345.5+4453_daily_bin881.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/909525/Model_4FGL_J1345.5+4453_daily_bin881.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5318.0594835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8517       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0938       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8284       1.0000         .10000E-03   10000.    
     7 'norm      '    .69202       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4177       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.000       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2111       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.659       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    161.78       1.0000         .10000E-03   10000.    
    16 'norm      '    8.1324       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3197       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4473       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.629       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0323       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.591       1.0000         .10000E-03   10000.    
    25 'norm      '    7.8253       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.245       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.4521       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.4130       1.0000         .10000E-03   10000.    
    29 'norm      '    .43504       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.3648       1.0000         .10000E-03   10000.    
    31 'Prefactor '    47.682       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    46.410       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .53652       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.2022       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=   5317.978     FROM MIGRAD    STATUS=CONVERGED   1024 CALLS     5438 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7624       -.21854E-07** at limit **
   2  norm          .10000E-03    2.6622        .11827E-06** at limit **
   3  Prefactor     2.8194        134.92        .15411E-04    .22803E-04
   4  Prefactor     .10000E-03    17.659       -.34768E-05** at limit **
   5  norm          3.0954        3.9368       -.12258E-07    .95806E-04
   6  norm          5.8258        12.583       -.48732E-06   -.58114E-04
   7  norm          .69310        3.1499        .50951E-06    .36450E-05
   8  Prefactor     1.4081        4.1717        .38666E-05    .12625E-02
   9  Prefactor     .10000E-03    24.250        .85036E-06** at limit **
  10  Prefactor     19.960        64.658        .50645E-05    .65143E-04
  11  Prefactor     6.2102        9.4489        .61228E-06    .81051E-04
  12  Prefactor     30.658        38.749        .58905E-06   -.31038E-04
  13  norm          .10000E-03    1.4268        .34755E-07** at limit **
  14  Prefactor     .10000E-03    31.499        .17127E-05** at limit **
  15  Prefactor     161.79        84.327       -.13094E-05   -.30505E-04
  16  norm          8.1322        2.2944        .69684E-07   -.11917E-03
  17  norm          .10000E-03    23.853        .23234E-06** at limit **
  18  norm          1.3196        2.0761        .70749E-07    .42463E-06
  19  norm          .10000E-03    8.2200       -.51136E-07** at limit **
  20  Prefactor     6.4424        66.462        .25239E-05    .32451E-05
  21  Prefactor     .10000E-03    5.8858        .11182E-06** at limit **
  22  Prefactor     11.631        33.932        .42479E-07   -.17858E-04
  23  Prefactor     2.0307        4.0028        .80830E-06    .13286E-03
  24  Prefactor     17.588        16.380        .12104E-06   -.30723E-04
  25  norm          7.8232        5.4681        .57250E-07    .17117E-03
  26  Prefactor     11.204        24.177       -.38917E-05    .20327E-03
  27  Prefactor     3.4521        2.9598        .52999E-07   -.45267E-04
  28  Prefactor     2.4534        79.571        .79406E-05    .50869E-04
  29  norm          .48236        22.577       -.80751E-05    .72942E-03
  30  Prefactor     8.3611        24.428        .20636E-06   -.68954E-05
  31  Prefactor     47.681        40.610        .36388E-06   -.38510E-05
  32  Prefactor     .10000E-03    15.851        .21506E-05** at limit **
  33  Prefactor     46.399        45.912        .12862E-05    .42441E-04
  34  Prefactor     .10000E-03    3.9891        .33856E-07** at limit **
  35  Normalizat    .53650        .17318       -.26118E-05   -.68217E-04
  36  Prefactor     1.2022        .20827       -.29792E-07    .48719E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.81939
  Prefactor  = 0.0001
  norm       = 3.09542
  norm       = 5.82583
  norm       = 0.693097
  Prefactor  = 1.40811
  Prefactor  = 0.0001
  Prefactor  = 19.9596
  Prefactor  = 6.21016
  Prefactor  = 30.6579
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 161.793
  norm       = 8.13221
  norm       = 0.0001
  norm       = 1.31957
  norm       = 0.0001
  Prefactor  = 6.44239
  Prefactor  = 0.0001
  Prefactor  = 11.6313
  Prefactor  = 2.03071
  Prefactor  = 17.5878
  norm       = 7.82317
  Prefactor  = 11.204
  Prefactor  = 3.45208
  Prefactor  = 2.45336
  norm       = 0.482361
  Prefactor  = 8.36107
  Prefactor  = 47.6806
  Prefactor  = 0.0001
  Prefactor  = 46.399
  Prefactor  = 0.0001
  Normalizat = 0.536505
  Prefactor  = 1.20224
 **********
 **   18 **HESSE 
 **********

 FCN=   5317.978     FROM HESSE     STATUS=OK           823 CALLS     6261 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7641        .15543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.7879        .23221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8194        135.43        .24076E-03   -1.5372    
   4  Prefactor     .10000E-03    17.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0954        3.9314        .15802E-03   -1.5356    
   6  norm          5.8258        12.545        .16635E-03   -1.5225    
   7  norm          .69310        5.3025        .23958E-02   -1.5541    
   8  Prefactor     1.4081        4.3758        .11573E-02   -1.5471    
   9  Prefactor     .10000E-03    24.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.960        65.023        .89561E-04   -1.4814    
  11  Prefactor     6.2102        9.4412        .80539E-03   -1.5210    
  12  Prefactor     30.658        38.623        .72361E-04   -1.4600    
  13  norm          .10000E-03    1.4465        .84994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     161.79        84.468        .15853E-03   -1.3157    
  16  norm          8.1322        2.2941        .54251E-04   -1.5138    
  17  norm          .10000E-03    23.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3196        2.0356        .12794E-03   -1.5478    
  19  norm          .10000E-03    8.2528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.4424        66.094        .15806E-03   -1.5200    
  21  Prefactor     .10000E-03    5.8880        .17280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.631        33.769        .11747E-03   -1.5026    
  23  Prefactor     2.0307        3.9660        .19205E-03   -1.5423    
  24  Prefactor     17.588        16.362        .95494E-04   -1.4869    
  25  norm          7.8232        5.4591        .13397E-03   -1.5148    
  26  Prefactor     11.204        24.982        .11947E-03   -1.5038    
  27  Prefactor     3.4521        2.9482        .99611E-04   -1.5336    
  28  Prefactor     2.4534        81.177        .26353E-03   -1.5395    
  29  norm          .48236        85.291        .45164E-02   -1.5569    
  30  Prefactor     8.3611        24.404        .13861E-03   -1.5130    
  31  Prefactor     47.681        40.604        .58069E-04   -1.4326    
  32  Prefactor     .10000E-03    15.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     46.399        45.882        .58856E-04   -1.4345    
  34  Prefactor     .10000E-03    3.9917        .14225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .53650        .20426        .27638E-03   -1.1075    
  36  Prefactor     1.2022        .25024        .23925E-03   -.86263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14146e-08
Minuit parameter uncertainties:
  1  3.00524e-07
  2  1.50745e-05
  3  39.1749
  4  0.000113655
  5  3.93177
  6  12.551
  7  3.83431
  8  4.3768
  9  3.66327e-05
  10  65.2553
  11  9.44344
  12  38.6541
  13  1.95077e-06
  14  0.000116439
  15  84.5311
  16  2.29408
  17  1.11073e-05
  18  2.03575
  19  2.95586e-05
  20  41.3287
  21  1.55802e-05
  22  33.8246
  23  3.9665
  24  16.3664
  25  5.45942
  26  25.0049
  27  2.9483
  28  28.2658
  29  12.8455
  30  24.4326
  31  40.6272
  32  0.000115755
  33  45.9164
  34  2.33449e-06
  35  0.204549
  36  0.250487
Done.

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

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  8.132e+00  2.294e+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.202e+00  2.505e-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.365e-01  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.93
Ra Dec: 206.394 44.884
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.71e-07 +/- 4.84e-08
Energy Flux (Fixed Index): 6.60e-05 +/- 1.86e-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) = 5317.86531731
delta logL = 0.113099338359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5317.84973793
delta logL = 0.128678721029

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0732       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0442       1.0000          .0000       5.0000    
     3 'Normalizat'    .55226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1902       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=   5317.850     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      199 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0732        2.2936        .35277E-02   -.24676E-02
   2  alpha         2.0443        .24347        .15857       -.14036E-04
   3  Normalizat    .55226        .16287        .61645E-01    .51436E-04
   4  Prefactor     1.1902        .20355        .54358E-01   -.25417E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.07323
  alpha      = 2.04426
  Normalizat = 0.552262
  Prefactor  = 1.19018
 **********
 **   18 **HESSE 
 **********

 FCN=   5317.850     FROM HESSE     STATUS=OK            29 CALLS      228 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0732        2.2811        .55122E-04   -1.5140    
   2  alpha         2.0443        .24791        .68538E-03   -.18332    
   3  Normalizat    .55226        .19532        .27275E-03   -1.1005    
   4  Prefactor     1.1902        .24385        .24034E-03   -.86634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34345e-10
Minuit parameter uncertainties:
  1  2.28114
  2  0.248333
  3  0.195561
  4  0.244081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/909525': 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) = 5317.84973792
delta logL = 0.128678724228

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  8.073e+00  2.281e+00  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  2.044e+00  2.483e-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.190e+00  2.441e-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.523e-01  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.98
Ra Dec: 206.394 44.884
Photon Index (Free Index): 2.04 +/- 0.25
Photon Flux (Free Index): 1.57e-07 +/- 5.28e-08
Energy Flux (Free Index): 7.22e-05 +/- 2.44e-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/909525/cmap_HighResolution_467683201_467942401_4FGL_J1345.5+4453_daily_bin881.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.71e-07', energy_flux2='7.22e-05', photon_flux_error='4.84e-08', dlogl='1.29e-01', energy_flux='6.60e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-08 10:36:44.897908', photon_index_error2='0.25', photon_index2='2.04', ts='32.93', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='0.54', time_epoch_completed='1631122604.9', return_code='0', job_id='909525', GAL2='1.19', EG2='0.55', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='5.28e-08', ts2='32.98', photon_index='2.17' WHERE bin_id='881' AND source_name='4FGL J1345.5+4453' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 10:36:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 909525: <4FGL_J1345.5+4453_daily_bin881> in cluster <slac> Done

Job <4FGL_J1345.5+4453_daily_bin881> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Sep  8 10:20:51 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 10:21:56 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:21:56 2021
Terminated at Wed Sep  8 10:36:45 2021
Results reported at Wed Sep  8 10:36:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.5+4453_daily_bin881 206.394 44.8844 467683201 467942401 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 :                                   871.00 sec.
    Max Memory :                                 1240 MB
    Average Memory :                             361.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            954 sec.

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

