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


Performing analysis on: 4FGL_J1345.5+4453_daily_bin273
RA = 206.394, Dec = 44.8844
tmin = 310089601, tmax = 310348801
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='906321', job_status='RUN', time_executed='2021-09-08 10:11:13.720422', time_epoch_executed='1631121073.72' WHERE source_name='4FGL J1345.5+4453' and cadence='daily' and bin_id='273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906321

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906321/ft1_4FGL_J1345.5+4453_daily_bin273.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906321/ft2_4FGL_J1345.5+4453_daily_bin273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906321/ft1_4FGL_J1345.5+4453_daily_bin273.fits outfile=/scratch/kocevski/906321/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin273.fits ra=206.394 dec=44.8844 rad=12.0 tmin=310089601.0 tmax=310348801.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.38
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906321/ft1_filtered_4FGL_J1345.5+4453_daily_bin273.fits" evtable="EVENTS" scfile=/scratch/kocevski/906321/ft2_4FGL_J1345.5+4453_daily_bin273.fits sctable="SC_DATA" outfile=/scratch/kocevski/906321/ltcube_310089601_310348801_4FGL_J1345.5+4453_daily_bin273.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/906321/ft2_4FGL_J1345.5+4453_daily_bin273.fits
.....................!
real 14.93
user 14.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906321/ft1_filtered_4FGL_J1345.5+4453_daily_bin273.fits evtable="EVENTS" scfile=/scratch/kocevski/906321/ft2_4FGL_J1345.5+4453_daily_bin273.fits sctable="SC_DATA" expcube=/scratch/kocevski/906321/ltcube_310089601_310348801_4FGL_J1345.5+4453_daily_bin273.fits outfile=/scratch/kocevski/906321/expmap_310089601_310348801_4FGL_J1345.5+4453_daily_bin273.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/906321/ltcube_310089601_310348801_4FGL_J1345.5+4453_daily_bin273.fits
.....................!
real 192.11
user 186.86
sys 4.48

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/906321/ft1_filtered_4FGL_J1345.5+4453_daily_bin273.fits scfile=/scratch/kocevski/906321/ft2_4FGL_J1345.5+4453_daily_bin273.fits outfile=/scratch/kocevski/906321/cmap_310089601_310348801_4FGL_J1345.5+4453_daily_bin273.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906321/ft1_filtered_4FGL_J1345.5+4453_daily_bin273.fits scfile=/scratch/kocevski/906321/ft2_4FGL_J1345.5+4453_daily_bin273.fits outfile=/scratch/kocevski/906321/cmap_HighResolution_310089601_310348801_4FGL_J1345.5+4453_daily_bin273.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7299       1.0000         .10000E-03   10000.    
     2 'norm      '    5.7438       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.543       1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.308       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.764       1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.595       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1706       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.9397       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.164       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.328       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .27583       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .82556       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10631E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    12.636       1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.668       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    28.295       1.0000         .10000E-03   10000.    
    33 'Prefactor '    33.734       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .26064       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .59659       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.3997       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=   6074.984     FROM MIGRAD    STATUS=CONVERGED   1056 CALLS     5379 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7274        16.089       -.11728E-05   -.33236E-04
   2  norm          5.7438        3.0243       -.53511E-07    .37049E-06
   3  Prefactor     .10000E-03    31.479       -.16561E-05** at limit **
   4  Prefactor     .10000E-03    8.7035        .14315E-06** at limit **
   5  norm          .10000E-03    1.4935        .73596E-08** at limit **
   6  norm          .10000E-03    9.7631        .33804E-06** at limit **
   7  norm          .10000E-03    1.4139       -.48481E-07** at limit **
   8  Prefactor     .10000E-03    2.0959       -.34152E-06** at limit **
   9  Prefactor     45.533        30.107       -.11898E-05   -.61326E-04
  10  Prefactor     56.320        45.282       -.75550E-06   -.42133E-05
  11  Prefactor     1.6264        36.571        .72587E-06    .49173E-05
  12  Prefactor     .10000E-03    9.4995       -.58828E-06** at limit **
  13  norm          .10000E-03    1.9715       -.12272E-06** at limit **
  14  Prefactor     55.749        47.582       -.16525E-05   -.55414E-04
  15  Prefactor     54.583        55.484       -.89639E-06    .13737E-04
  16  norm          4.1705        1.4913       -.30266E-07    .15468E-03
  17  norm          .10000E-03    25.141        .57426E-06** at limit **
  18  norm          7.9398        4.2630       -.14293E-06   -.92173E-04
  19  norm          .10000E-03    4.6559        .43550E-07** at limit **
  20  Prefactor     14.164        31.618       -.19336E-05   -.40428E-04
  21  Prefactor     11.352        13.909        .12194E-05    .25764E-03
  22  Prefactor     .10000E-03    7.1638        .30268E-07** at limit **
  23  Prefactor     .10000E-03    1.3725        .19974E-07** at limit **
  24  Prefactor     .10000E-03    9.9862        .40379E-06** at limit **
  25  norm          .10000E-03    2.5087       -.25150E-06** at limit **
  26  Prefactor     .57908E-01    15.657       -.36726E-05    .50083E-03
  27  Prefactor     .82529        2.0088        .51726E-06    .25859E-03
  28  Prefactor     .10000E-03    42.837        .28533E-06** at limit **
  29  norm          12.792        17.690        .12921E-05    .35543E-03
  30  Prefactor     13.657        21.294        .12426E-05    .12203E-03
  31  Prefactor     .10000E-03    42.450        .19723E-05** at limit **
  32  Prefactor     28.315        26.986       -.62801E-06    .54728E-04
  33  Prefactor     33.748        34.713        .56399E-07    .39084E-04
  34  Prefactor     .43732        10.604        .78238E-06   -.26905E-03
  35  Normalizat    .59721        .16438        .22386E-05    .36483E-03
  36  Prefactor     1.3989        .20027       -.28914E-06    .43233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.72744
  norm       = 5.7438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 45.5327
  Prefactor  = 56.3195
  Prefactor  = 1.62637
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 55.7493
  Prefactor  = 54.5834
  norm       = 4.17049
  norm       = 0.0001
  norm       = 7.93982
  norm       = 0.0001
  Prefactor  = 14.1641
  Prefactor  = 11.3523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0579083
  Prefactor  = 0.825285
  Prefactor  = 0.000100001
  norm       = 12.7924
  Prefactor  = 13.6573
  Prefactor  = 0.0001
  Prefactor  = 28.3151
  Prefactor  = 33.7484
  Prefactor  = 0.437317
  Normalizat = 0.597212
  Prefactor  = 1.39886
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.984     FROM HESSE     STATUS=OK           817 CALLS     6196 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7274        16.113        .16780E-03   -1.5229    
   2  norm          5.7438        3.0245        .95396E-04   -1.5229    
   3  Prefactor     .10000E-03    31.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.7507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4968        .93021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.7964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4217        .90467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.502        .21702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.533        30.080        .59411E-04   -1.4357    
  10  Prefactor     56.320        45.082        .53459E-04   -1.4206    
  11  Prefactor     1.6264        35.895        .33175E-03   -1.5453    
  12  Prefactor     .10000E-03    9.5018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9774        .10639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     55.749        47.396        .53717E-04   -1.4213    
  15  Prefactor     54.583        55.586        .54286E-04   -1.4229    
  16  norm          4.1705        1.4910        .54665E-04   -1.5300    
  17  norm          .10000E-03    25.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.9398        4.2591        .11346E-03   -1.5144    
  19  norm          .10000E-03    4.6669        .16423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.164        31.548        .10643E-03   -1.4955    
  21  Prefactor     11.352        13.980        .11903E-03   -1.5034    
  22  Prefactor     .10000E-03    7.1655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3771        .89165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.5464        .12060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .57908E-01    26.023        .70949E-01   -1.5660    
  27  Prefactor     .82529        1.8904        .15382E-02   -1.5526    
  28  Prefactor     .10000E-03    43.793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          12.792        20.049        .11269E-03   -1.4992    
  30  Prefactor     13.657        21.238        .10834E-03   -1.4969    
  31  Prefactor     .10000E-03    42.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     28.315        27.097        .75317E-04   -1.4643    
  33  Prefactor     33.748        34.726        .68993E-04   -1.4545    
  34  Prefactor     .43732        114.19        .48181E-02   -1.5576    
  35  Normalizat    .59721        .19338        .27055E-03   -1.0810    
  36  Prefactor     1.3989        .24224        .23982E-03   -.80413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19418e-09
Minuit parameter uncertainties:
  1  16.1253
  2  3.02456
  3  0.000207366
  4  3.56659e-06
  5  7.14544e-07
  6  8.95446e-06
  7  1.06852e-06
  8  0.000320176
  9  30.0905
  10  45.1091
  11  15.2911
  12  3.15975e-05
  13  6.09334e-06
  14  47.4279
  15  55.6384
  16  1.49105
  17  5.65956e-05
  18  4.25923
  19  1.28549e-06
  20  31.5854
  21  13.984
  22  2.60886e-06
  23  1.66995e-06
  24  7.80875e-06
  25  4.28673e-06
  26  2.45409
  27  1.89053
  28  0.000335518
  29  20.0598
  30  21.2494
  31  0.00016283
  32  27.1087
  33  34.7464
  34  14.1588
  35  0.193598
  36  0.242438
Done.

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

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  4.170e+00  1.491e+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.399e+00  2.424e-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.972e-01  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.50
Ra Dec: 206.394 44.884
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 8.79e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 3.38e-05 +/- 1.21e-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) = 6074.86050489
delta logL = 0.123117087163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6074.85281765
delta logL = 0.130804327553

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0219       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3491       1.0000          .0000       5.0000    
     3 'Normalizat'    .58610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4085       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=   6074.853     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0219        2.8097        .50270E-02    .47835E-02
   2  alpha         2.3491        .64304        .23074       -.31519E-05
   3  Normalizat    .58609        .15381        .61684E-01   -.74516E-05
   4  Prefactor     1.4085        .20076        .54088E-01    .56195E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.02194
  alpha      = 2.34913
  Normalizat = 0.586088
  Prefactor  = 1.40853
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.853     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0219        1.4950        .52861E-04   -1.5307    
   2  alpha         2.3491        .35768        .98239E-02   -.60386E-01
   3  Normalizat    .58609        .18251        .27291E-03   -1.0858    
   4  Prefactor     1.4085        .23764        .23913E-03   -.80135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30778e-09
Minuit parameter uncertainties:
  1  1.49498
  2  0.358917
  3  0.182695
  4  0.237828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906321': 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) = 6074.85281763
delta logL = 0.130804345296

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  4.022e+00  1.495e+00  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  2.349e+00  3.589e-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.409e+00  2.378e-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.861e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.66
Ra Dec: 206.394 44.884
Photon Index (Free Index): 2.35 +/- 0.36
Photon Flux (Free Index): 9.64e-08 +/- 3.70e-08
Energy Flux (Free Index): 3.03e-05 +/- 1.24e-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/906321/cmap_HighResolution_310089601_310348801_4FGL_J1345.5+4453_daily_bin273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.79e-08', energy_flux2='3.03e-05', photon_flux_error='3.14e-08', dlogl='1.31e-01', energy_flux='3.38e-05', photon_flux2='9.64e-08', job_status='DONE', time_completed='2021-09-08 10:27:07.344182', photon_index_error2='0.36', photon_index2='2.35', ts='17.50', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='0.60', time_epoch_completed='1631122027.34', return_code='0', job_id='906321', GAL2='1.41', EG2='0.59', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='3.70e-08', ts2='17.66', photon_index='2.17' WHERE bin_id='273' AND source_name='4FGL J1345.5+4453' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 10:27:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 906321: <4FGL_J1345.5+4453_daily_bin273> in cluster <slac> Done

Job <4FGL_J1345.5+4453_daily_bin273> 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) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 10:10:55 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:55 2021
Terminated at Wed Sep  8 10:27:08 2021
Results reported at Wed Sep  8 10:27:08 2021

Your job looked like:

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

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

