/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7350
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1345.5+4453_daily_bin305
RA = 206.394, Dec = 44.8844
tmin = 318384001, tmax = 318643201
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='906389', job_status='RUN', time_executed='2021-09-08 10:11:07.199220', time_epoch_executed='1631121067.2' WHERE source_name='4FGL J1345.5+4453' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906389

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906389/ft1_4FGL_J1345.5+4453_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906389/ft2_4FGL_J1345.5+4453_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906389/ft1_4FGL_J1345.5+4453_daily_bin305.fits outfile=/scratch/kocevski/906389/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin305.fits ra=206.394 dec=44.8844 rad=12.0 tmin=318384001.0 tmax=318643201.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.27
user 3.07
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/906389/ft2_4FGL_J1345.5+4453_daily_bin305.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/906389/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin305.fits evtable="EVENTS" outfile="/scratch/kocevski/906389/ft1_filtered_4FGL_J1345.5+4453_daily_bin305.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906389/ft1_filtered_4FGL_J1345.5+4453_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/906389/ft2_4FGL_J1345.5+4453_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/906389/ltcube_318384001_318643201_4FGL_J1345.5+4453_daily_bin305.fits outfile=/scratch/kocevski/906389/expmap_318384001_318643201_4FGL_J1345.5+4453_daily_bin305.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/906389/ltcube_318384001_318643201_4FGL_J1345.5+4453_daily_bin305.fits
.....................!
real 191.06
user 186.27
sys 4.42

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/906389/ft1_filtered_4FGL_J1345.5+4453_daily_bin305.fits scfile=/scratch/kocevski/906389/ft2_4FGL_J1345.5+4453_daily_bin305.fits outfile=/scratch/kocevski/906389/cmap_318384001_318643201_4FGL_J1345.5+4453_daily_bin305.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906389/ft1_filtered_4FGL_J1345.5+4453_daily_bin305.fits scfile=/scratch/kocevski/906389/ft2_4FGL_J1345.5+4453_daily_bin305.fits outfile=/scratch/kocevski/906389/cmap_HighResolution_318384001_318643201_4FGL_J1345.5+4453_daily_bin305.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=206.394 yref=44.8844 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1003       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.3942       1.0000         .10000E-03   10000.    
     6 'norm      '    22.483       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7354       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.119       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.771       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.113       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6922       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14717E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2510       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6111       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.054       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18563E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    63.018       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.095       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1672       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .31960       1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.193       1.0000         .10000E-03   10000.    
    29 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    48.724       1.0000         .10000E-03   10000.    
    32 'Prefactor '    4.0481       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .66645E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .72977       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.2434       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=   5877.069     FROM MIGRAD    STATUS=CONVERGED   1063 CALLS     5444 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.741        .78130E-06** at limit **
   2  norm          4.1003        2.4608       -.43356E-08    .84378E-05
   3  Prefactor     23.107        42.618       -.24962E-06   -.99908E-06
   4  Prefactor     .10000E-03    6.3188        .33698E-06** at limit **
   5  norm          8.3935        6.2427       -.99849E-06    .63659E-04
   6  norm          22.482        18.945       -.14166E-06    .21981E-05
   7  norm          2.7353        3.1717       -.10138E-06   -.50706E-05
   8  Prefactor     .10000E-03    3.4010        .60911E-06** at limit **
   9  Prefactor     .10000E-03    9.0832       -.91535E-07** at limit **
  10  Prefactor     19.109        52.176       -.12105E-05   -.75622E-05
  11  Prefactor     30.782        23.977        .55142E-08    .13433E-03
  12  Prefactor     10.113        17.834       -.10016E-06    .50060E-05
  13  norm          3.6915        4.4837       -.83746E-07    .81472E-04
  14  Prefactor     .10000E-03    326.19       -.72349E-05** at limit **
  15  Prefactor     .10000E-03    103.63       -.44483E-06** at limit **
  16  norm          3.2511        1.5589       -.47698E-07    .47564E-04
  17  norm          .10000E-03    26.823       -.23285E-06** at limit **
  18  norm          2.6113        2.8107       -.49998E-08    .11332E-03
  19  norm          .10000E-03    11.522       -.77152E-06** at limit **
  20  Prefactor     22.048        47.090       -.10726E-05    .46224E-05
  21  Prefactor     .10027E-03    137.15        .17349E-04** at limit **
  22  Prefactor     63.027        47.769        .23847E-06   -.91407E-05
  23  Prefactor     .10000E-03    3.1781       -.44670E-07** at limit **
  24  Prefactor     26.097        21.465       -.11207E-06   -.14348E-04
  25  norm          1.1664        2.5258        .79454E-07    .75426E-03
  26  Prefactor     .10009E-03    11.479       -.36293E-05** at limit **
  27  Prefactor     .32003        2.1245       -.54611E-06    .52056E-04
  28  Prefactor     25.184        15.860        .19461E-05   -.20589E-03
  29  norm          .10000E-03    10.890        .51240E-06** at limit **
  30  Prefactor     .10000E-03    6.5874       -.92091E-08** at limit **
  31  Prefactor     48.722        58.614       -.61798E-06   -.38846E-04
  32  Prefactor     4.0518        45.660       -.56989E-05   -.15833E-04
  33  Prefactor     .10000E-03    13.542        .16761E-06** at limit **
  34  Prefactor     .10012E-03    36.287       -.79803E-05** at limit **
  35  Normalizat    .72967        .17649        .81434E-06   -.39228E-04
  36  Prefactor     1.2435        .21041        .19802E-06    .50191E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.10028
  Prefactor  = 23.1066
  Prefactor  = 0.0001
  norm       = 8.39345
  norm       = 22.4822
  norm       = 2.73534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1088
  Prefactor  = 30.782
  Prefactor  = 10.113
  norm       = 3.69151
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 3.25109
  norm       = 0.0001
  norm       = 2.61131
  norm       = 0.0001
  Prefactor  = 22.0479
  Prefactor  = 0.000100275
  Prefactor  = 63.0267
  Prefactor  = 0.0001
  Prefactor  = 26.0967
  norm       = 1.16639
  Prefactor  = 0.00010009
  Prefactor  = 0.320035
  Prefactor  = 25.1845
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.7223
  Prefactor  = 4.05179
  Prefactor  = 0.0001
  Prefactor  = 0.000100121
  Normalizat = 0.729675
  Prefactor  = 1.24347
 **********
 **   18 **HESSE 
 **********

 FCN=   5877.069     FROM HESSE     STATUS=OK           833 CALLS     6277 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1003        2.4626        .90807E-04   -1.5303    
   3  Prefactor     23.107        42.612        .83328E-04   -1.4746    
   4  Prefactor     .10000E-03    6.3397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.3935        6.2180        .13837E-03   -1.5128    
   6  norm          22.482        18.943        .84475E-04   -1.4759    
   7  norm          2.7353        3.1636        .14190E-03   -1.5377    
   8  Prefactor     .10000E-03    3.5090        .27631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.109        52.170        .91600E-04   -1.4833    
  11  Prefactor     30.782        23.967        .72230E-04   -1.4598    
  12  Prefactor     10.113        17.822        .12600E-03   -1.5072    
  13  norm          3.6915        4.4585        .15368E-03   -1.5324    
  14  Prefactor     .10000E-03    328.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    104.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2511        1.5565        .63067E-04   -1.5347    
  17  norm          .10000E-03    26.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6113        2.8043        .12930E-03   -1.5385    
  19  norm          .10000E-03    11.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.048        46.752        .85292E-04   -1.4769    
  21  Prefactor     .10027E-03    12.233        .86840E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     63.027        47.765        .50549E-04   -1.4119    
  23  Prefactor     .10000E-03    3.1981        .13326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.097        21.481        .78420E-04   -1.4686    
  25  norm          1.1664        2.1705        .17832E-02   -1.5492    
  26  Prefactor     .10009E-03    48.505        .42736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .32003        2.1194        .21217E-03   -1.5595    
  28  Prefactor     25.184        16.451        .79809E-04   -1.4704    
  29  norm          .10000E-03    11.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    6.5898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     48.722        56.400        .57448E-04   -1.4311    
  32  Prefactor     4.0518        45.723        .10020E-02   -1.5305    
  33  Prefactor     .10000E-03    13.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10012E-03    93.879        .44266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .72967        .20918        .25639E-03   -1.0273    
  36  Prefactor     1.2435        .25144        .25761E-03   -.85004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61712e-09
Minuit parameter uncertainties:
  1  0.000173429
  2  2.46263
  3  42.6682
  4  4.6668e-05
  5  6.21852
  6  18.9483
  7  3.16381
  8  6.91524e-05
  9  6.55847e-07
  10  52.2951
  11  23.9745
  12  17.8314
  13  4.45891
  14  0.00231067
  15  7.04016e-05
  16  1.55648
  17  8.40026e-06
  18  2.80441
  19  1.67454e-05
  20  46.8297
  21  0.00366787
  22  47.7942
  23  6.95476e-06
  24  21.4875
  25  2.17067
  26  0.00418867
  27  1.647
  28  16.4536
  29  5.39068e-05
  30  6.22295e-07
  31  56.4615
  32  27.2481
  33  7.35934e-06
  34  0.00675815
  35  0.209411
  36  0.25168
Done.

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

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  3.251e+00  1.556e+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.243e+00  2.517e-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:  7.297e-01  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.73
Ra Dec: 206.394 44.884
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 6.86e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.26e-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) = 5876.60636923
delta logL = 0.462402923253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5876.60586128
delta logL = 0.462910866146

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5876.606     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      303 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7919        1.6375        .54658E-04    .97966E-03
   2  alpha         2.6756        .59177        .12413E-01    .36123E-04
   3  Normalizat    .69643        .19683        .26181E-03   -.14547E-04
   4  Prefactor     1.2752        .25021        .25488E-03   -.41081E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.79195
  alpha      = 2.67557
  Normalizat = 0.696432
  Prefactor  = 1.27521
 **********
 **   18 **HESSE 
 **********

 FCN=   5876.606     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7919        1.5876        .21863E-05   -1.5374    
   2  alpha         2.6756        .57382        .49650E-03    .70287E-01
   3  Normalizat    .69643        .19694        .10472E-04   -1.0403    
   4  Prefactor     1.2752        .25028        .10195E-04   -.84047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06059e-11
Minuit parameter uncertainties:
  1  1.5876
  2  0.579013
  3  0.197136
  4  0.250514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906389': 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) = 5876.60586055
delta logL = 0.462911600694

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  2.792e+00  1.588e+00  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  2.676e+00  5.790e-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.275e+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:  6.964e-01  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.64
Ra Dec: 206.394 44.884
Photon Index (Free Index): 2.68 +/- 0.58
Photon Flux (Free Index): 8.80e-08 +/- 4.20e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.04e-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/906389/cmap_HighResolution_318384001_318643201_4FGL_J1345.5+4453_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.86e-08', energy_flux2='2.11e-05', photon_flux_error='3.28e-08', dlogl='4.63e-01', energy_flux='2.64e-05', photon_flux2='8.80e-08', job_status='DONE', time_completed='2021-09-08 10:27:04.499220', photon_index_error2='0.58', photon_index2='2.68', ts='7.73', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='0.73', time_epoch_completed='1631122024.5', return_code='0', job_id='906389', GAL2='1.28', EG2='0.70', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.20e-08', ts2='8.64', photon_index='2.17' WHERE bin_id='305' AND source_name='4FGL J1345.5+4453' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 10:27:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 906389: <4FGL_J1345.5+4453_daily_bin305> in cluster <slac> Done

Job <4FGL_J1345.5+4453_daily_bin305> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 10:10:44 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 10:10:58 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:58 2021
Terminated at Wed Sep  8 10:27:05 2021
Results reported at Wed Sep  8 10:27:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.5+4453_daily_bin305 206.394 44.8844 318384001 318643201 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 :                                   955.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            981 sec.

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

