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


Performing analysis on: 4FGL_J1345.5+4453_daily_bin52
RA = 206.394, Dec = 44.8844
tmin = 252806401, tmax = 253065601
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='904980', job_status='RUN', time_executed='2021-09-08 10:06:51.895578', time_epoch_executed='1631120811.9' WHERE source_name='4FGL J1345.5+4453' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904980

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904980/ft1_4FGL_J1345.5+4453_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904980/ft2_4FGL_J1345.5+4453_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904980/ft1_4FGL_J1345.5+4453_daily_bin52.fits outfile=/scratch/kocevski/904980/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin52.fits ra=206.394 dec=44.8844 rad=12.0 tmin=252806401.0 tmax=253065601.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 1.46
user 1.27
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904980/ft1_filtered_4FGL_J1345.5+4453_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/904980/ft2_4FGL_J1345.5+4453_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/904980/ltcube_252806401_253065601_4FGL_J1345.5+4453_daily_bin52.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/904980/ft2_4FGL_J1345.5+4453_daily_bin52.fits
.....................!
real 17.27
user 16.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904980/ft1_filtered_4FGL_J1345.5+4453_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/904980/ft2_4FGL_J1345.5+4453_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/904980/ltcube_252806401_253065601_4FGL_J1345.5+4453_daily_bin52.fits outfile=/scratch/kocevski/904980/expmap_252806401_253065601_4FGL_J1345.5+4453_daily_bin52.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/904980/ltcube_252806401_253065601_4FGL_J1345.5+4453_daily_bin52.fits
.....................!
real 192.54
user 187.48
sys 4.56

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/904980/ft1_filtered_4FGL_J1345.5+4453_daily_bin52.fits scfile=/scratch/kocevski/904980/ft2_4FGL_J1345.5+4453_daily_bin52.fits outfile=/scratch/kocevski/904980/cmap_252806401_253065601_4FGL_J1345.5+4453_daily_bin52.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904980/ft1_filtered_4FGL_J1345.5+4453_daily_bin52.fits scfile=/scratch/kocevski/904980/ft2_4FGL_J1345.5+4453_daily_bin52.fits outfile=/scratch/kocevski/904980/cmap_HighResolution_252806401_253065601_4FGL_J1345.5+4453_daily_bin52.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71800E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4282       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    41.237       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3674       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1021       1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.134       1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.792       1.0000         .10000E-03   10000.    
    15 'Prefactor '    55.495       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5373       1.0000         .10000E-03   10000.    
    17 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.773       1.0000         .10000E-03   10000.    
    19 'norm      '    8.8716       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13815       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    69.924       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3201       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.3948       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.6119       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    17.011       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    37.075       1.0000         .10000E-03   10000.    
    33 'Prefactor '    27.461       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.1898       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .47939       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5317.311     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     4556 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11117        301.64       -.29695E-04   -.58973E-03
   2  norm          3.4280        2.2604       -.10363E-07    .62910E-05
   3  Prefactor     .10000E-03    16.313        .18418E-05** at limit **
   4  Prefactor     .10000E-03    6.4849        .10229E-05** at limit **
   5  norm          .10000E-03    2.8972       -.26627E-08** at limit **
   6  norm          41.230        15.057       -.36623E-06   -.79860E-02
   7  norm          .10000E-03    2.9778        .12062E-06** at limit **
   8  Prefactor     7.3689        4.7272       -.26017E-06   -.17160E-04
   9  Prefactor     .10000E-03    16.505       -.97168E-06** at limit **
  10  Prefactor     .70772E-03    186.68        .22512E-04** at limit **
  11  Prefactor     9.1001        1.2900       -.89845E-07   -.13563E-02
  12  Prefactor     51.134        3.1234        .12236E-06    .16215E-02
  13  norm          .10000E-03    1.1588       -.39141E-07** at limit **
  14  Prefactor     36.811        2.5473       -.15176E-06    .49672E-03
  15  Prefactor     55.518        3.3393       -.63817E-07    .60812E-03
  16  norm          2.5374        1.3813        .13189E-07    .57125E-04
  17  norm          .10000E-03    34.394        .21427E-05** at limit **
  18  norm          10.772        5.2440       -.17702E-06   -.38786E-03
  19  norm          8.8802        8.7089        .36580E-06    .43287E-02
  20  Prefactor     .80408E-03    1581.5        .29878E-04** at limit **
  21  Prefactor     .10000E-03    7.6949        .74431E-06** at limit **
  22  Prefactor     69.959        5.2432       -.97802E-07    .17283E-02
  23  Prefactor     3.3201        1.4313        .42376E-07   -.19326E-03
  24  Prefactor     .10000E-03    10.540        .10762E-05** at limit **
  25  norm          .10000E-03    2.0844       -.46568E-07** at limit **
  26  Prefactor     3.3944        1.1503       -.13090E-06    .10248E-02
  27  Prefactor     4.6128        2.7602        .11017E-05    .41377E-03
  28  Prefactor     .10000E-03    6.7306       -.56261E-06** at limit **
  29  norm          .10000E-03    4.4353        .41019E-07** at limit **
  30  Prefactor     17.014        3.8250       -.19698E-06   -.51480E-04
  31  Prefactor     .10000E-03    24.367       -.33897E-05** at limit **
  32  Prefactor     37.079        10.019        .20673E-06    .54795E-02
  33  Prefactor     27.457        6.0293        .48384E-06    .23421E-02
  34  Prefactor     .10000E-03    7.9395       -.53314E-06** at limit **
  35  Normalizat    1.1897        .19068        .83095E-06    .67852E-04
  36  Prefactor     .47941        .22328        .58341E-06    .36669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.111171
  norm       = 3.42804
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 41.2301
  norm       = 0.0001
  Prefactor  = 7.36892
  Prefactor  = 0.000100004
  Prefactor  = 0.000707724
  Prefactor  = 9.10013
  Prefactor  = 51.1341
  norm       = 0.0001
  Prefactor  = 36.8112
  Prefactor  = 55.5182
  norm       = 2.53736
  norm       = 0.000100001
  norm       = 10.7724
  norm       = 8.88017
  Prefactor  = 0.000804083
  Prefactor  = 0.0001
  Prefactor  = 69.9586
  Prefactor  = 3.32012
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.39445
  Prefactor  = 4.61277
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.0138
  Prefactor  = 0.000100001
  Prefactor  = 37.0793
  Prefactor  = 27.4573
  Prefactor  = 0.0001
  Normalizat = 1.18972
  Prefactor  = 0.479413
 **********
 **   18 **HESSE 
 **********

 FCN=   5317.311     FROM HESSE     STATUS=OK           897 CALLS     5453 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11117        13.067        .93759E-01   -1.5641    
   2  norm          3.4280        2.2584        .54616E-02   -1.5338    
   3  Prefactor     .10000E-03    16.395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4725        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.8704        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          41.230        19.669        .15606E-02   -1.4423    
   7  norm          .10000E-03    2.9204        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.3689        4.7660        .36941E-02   -1.5165    
   9  Prefactor     .10000E-03    16.590        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .70772E-03    611.61        .90712E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1001        9.7900        .33211E-02   -1.5105    
  12  Prefactor     51.134        31.280        .14021E-02   -1.4277    
  13  norm          .10000E-03    1.1559        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.811        56.701        .16518E-02   -1.4494    
  15  Prefactor     55.518        66.765        .13462E-02   -1.4216    
  16  norm          2.5374        1.3876        .64098E-02   -1.5389    
  17  norm          .10000E-03    34.413        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.772        5.3891        .30517E-02   -1.5051    
  19  norm          8.8802        18.070        .33642E-02   -1.5112    
  20  Prefactor     .80408E-03    33.146        .14591       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.7271        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     69.959        47.363        .12001E-02   -1.4033    
  23  Prefactor     3.3201        5.8580        .55540E-02   -1.5344    
  24  Prefactor     .10000E-03    10.529        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.0673        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.3944        8.0506        .54897E-02   -1.5339    
  27  Prefactor     4.6128        2.8375        .46856E-02   -1.5278    
  28  Prefactor     .10000E-03    6.7283        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    4.4348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     17.014        22.667        .24277E-02   -1.4883    
  31  Prefactor     .10000E-03    24.392        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     37.079        30.668        .16455E-02   -1.4489    
  33  Prefactor     27.457        34.886        .19112E-02   -1.4659    
  34  Prefactor     .10000E-03    7.9568        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.1897        .18221        .35147E-01   -.86921    
  36  Prefactor     .47941        .20586        .80879E-01   -1.1293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26159e-06
Minuit parameter uncertainties:
  1  2.40999
  2  2.25845
  3  0.000428372
  4  1.63008e-05
  5  1.05072e-08
  6  19.6726
  7  1.16986e-06
  8  4.76629
  9  0.000490852
  10  1.23211
  11  9.79174
  12  31.29
  13  2.38642e-07
  14  56.7845
  15  66.8547
  16  1.38766
  17  0.000367329
  18  5.38932
  19  18.081
  20  0.3057
  21  2.99851e-05
  22  47.3887
  23  5.859
  24  2.4879e-05
  25  3.86456e-07
  26  8.0532
  27  2.83757
  28  1.19308e-05
  29  2.90269e-07
  30  22.678
  31  0.000234638
  32  30.6809
  33  34.9124
  34  2.78608e-05
  35  0.182309
  36  0.206177
Done.

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

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  2.537e+00  1.388e+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:  4.794e-01  2.062e-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:  1.190e+00  1.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.49
Ra Dec: 206.394 44.884
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 5.35e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.13e-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.05357176
delta logL = 0.25791558627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5317.04328108
delta logL = 0.268206265997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5495       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6675       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50889       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.043     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      230 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5497        23.165        .63931E-02    .16714E-03
   2  alpha         2.6676        3.2676        .39233        .20166E-04
   3  Normalizat    1.1524        .96150E-01    .36182E-01    .10327E-05
   4  Prefactor     .50884        .91354E-01    .78666E-01    .31348E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54974
  alpha      = 2.66761
  Normalizat = 1.15242
  Prefactor  = 0.508836
 **********
 **   18 **HESSE 
 **********

 FCN=   5317.043     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5497        1.3566        .53823E-04   -1.5389    
   2  alpha         2.6676        .69906        .14617E-01    .67096E-01
   3  Normalizat    1.1524        .19616        .20123E-03   -.88086    
   4  Prefactor     .50884        .22771        .34841E-03   -1.1157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29611e-10
Minuit parameter uncertainties:
  1  1.3566
  2  0.708552
  3  0.196282
  4  0.228116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904980': 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.04328084
delta logL = 0.268206499441

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  2.550e+00  1.357e+00  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  2.668e+00  7.086e-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:  5.088e-01  2.281e-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:  1.152e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.98
Ra Dec: 206.394 44.884
Photon Index (Free Index): 2.67 +/- 0.71
Photon Flux (Free Index): 7.98e-08 +/- 5.08e-08
Energy Flux (Free Index): 1.93e-05 +/- 9.39e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/904980/cmap_HighResolution_252806401_253065601_4FGL_J1345.5+4453_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.35e-08', energy_flux2='1.93e-05', photon_flux_error='2.93e-08', dlogl='2.68e-01', energy_flux='2.06e-05', photon_flux2='7.98e-08', job_status='DONE', time_completed='2021-09-08 10:20:38.876521', photon_index_error2='0.71', photon_index2='2.67', ts='9.49', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', energy_flux_error2='9.39e-06', EG='1.19', time_epoch_completed='1631121638.88', return_code='0', job_id='904980', GAL2='0.51', EG2='1.15', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='5.08e-08', ts2='9.98', photon_index='2.17' WHERE bin_id='52' AND source_name='4FGL J1345.5+4453' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 10:20:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 904980: <4FGL_J1345.5+4453_daily_bin52> in cluster <slac> Done

Job <4FGL_J1345.5+4453_daily_bin52> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 10:06:16 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 10:06:34 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:06:34 2021
Terminated at Wed Sep  8 10:20:39 2021
Results reported at Wed Sep  8 10:20:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.5+4453_daily_bin52 206.394 44.8844 252806401 253065601 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 :                                   825.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            863 sec.

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

