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


Performing analysis on: 4FGL_J1345.5+4453_daily_bin1348
RA = 206.394, Dec = 44.8844
tmin = 588729601, tmax = 588988801
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='911874', job_status='RUN', time_executed='2021-09-08 10:33:40.227718', time_epoch_executed='1631122420.23' WHERE source_name='4FGL J1345.5+4453' and cadence='daily' and bin_id='1348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/911874

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/911874/ft1_4FGL_J1345.5+4453_daily_bin1348.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/911874/ft2_4FGL_J1345.5+4453_daily_bin1348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/911874/ft1_4FGL_J1345.5+4453_daily_bin1348.fits outfile=/scratch/kocevski/911874/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin1348.fits ra=206.394 dec=44.8844 rad=12.0 tmin=588729601.0 tmax=588988801.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.17
user 2.93
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/911874/ft1_filtered_4FGL_J1345.5+4453_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/911874/ft2_4FGL_J1345.5+4453_daily_bin1348.fits sctable="SC_DATA" expcube=/scratch/kocevski/911874/ltcube_588729601_588988801_4FGL_J1345.5+4453_daily_bin1348.fits outfile=/scratch/kocevski/911874/expmap_588729601_588988801_4FGL_J1345.5+4453_daily_bin1348.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/911874/ltcube_588729601_588988801_4FGL_J1345.5+4453_daily_bin1348.fits
.....................!
real 191.62
user 186.25
sys 4.70

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/911874/ft1_filtered_4FGL_J1345.5+4453_daily_bin1348.fits scfile=/scratch/kocevski/911874/ft2_4FGL_J1345.5+4453_daily_bin1348.fits outfile=/scratch/kocevski/911874/cmap_588729601_588988801_4FGL_J1345.5+4453_daily_bin1348.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=206.394 yref=44.8844 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/911874/ft1_filtered_4FGL_J1345.5+4453_daily_bin1348.fits scfile=/scratch/kocevski/911874/ft2_4FGL_J1345.5+4453_daily_bin1348.fits outfile=/scratch/kocevski/911874/cmap_HighResolution_588729601_588988801_4FGL_J1345.5+4453_daily_bin1348.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.738       1.0000         .10000E-03   10000.    
     2 'norm      '    9.5168       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28572E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0825       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6078       1.0000         .10000E-03   10000.    
     6 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.570       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16640E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.976       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24697E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .56110       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10990E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.758       1.0000         .10000E-03   10000.    
    16 'norm      '    6.3479       1.0000         .10000E-03   10000.    
    17 'norm      '    .10518E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.5195       1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.576       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11098E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.4323       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.409       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5329       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14536E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .34866       1.0000         .10000E-03   10000.    
    30 'Prefactor '    29.605       1.0000         .10000E-03   10000.    
    31 'Prefactor '    28.621       1.0000         .10000E-03   10000.    
    32 'Prefactor '    13.802       1.0000         .10000E-03   10000.    
    33 'Prefactor '    35.672       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .67431       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.3267       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=   4158.093     FROM MIGRAD    STATUS=CONVERGED   1116 CALLS     4730 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.128        62.305       -.54550E-06   -.17685E-04
   2  norm          9.6825        9.9065        .52684E-07   -.15518E-04
   3  Prefactor     .10000E-03    27.892       -.13941E-06** at limit **
   4  Prefactor     1.8936        224.44        .79439E-05    .13519E-04
   5  norm          1.6216        21.481       -.19670E-05   -.62687E-04
   6  norm          .10000E-03    7.4055       -.37265E-07** at limit **
   7  norm          .10000E-03    2.4087       -.48809E-06** at limit **
   8  Prefactor     .10000E-03    6.5745        .19023E-07** at limit **
   9  Prefactor     39.211        48.582        .83602E-06    .41825E-05
  10  Prefactor     .10000E-03    58.910        .25302E-06** at limit **
  11  Prefactor     21.226        33.995        .90235E-07   -.29890E-04
  12  Prefactor     .10000E-03    56.596       -.58971E-05** at limit **
  13  norm          .52656        9.6020        .51725E-06   -.12687E-03
  14  Prefactor     .10000E-03    18.599        .24220E-07** at limit **
  15  Prefactor     56.523        84.358       -.66981E-06    .49026E-05
  16  norm          6.3488        2.2786        .86272E-08   -.95921E-05
  17  norm          .10000E-03    31.169        .14941E-07** at limit **
  18  norm          .10000E-03    3.8540        .52988E-06** at limit **
  19  norm          9.6170        15.494        .82355E-07   -.73581E-05
  20  Prefactor     58.744        42.201        .24627E-07    .16069E-04
  21  Prefactor     .10000E-03    5.8724        .67878E-07** at limit **
  22  Prefactor     .10000E-03    28.550        .31776E-06** at limit **
  23  Prefactor     7.4460        5.4391        .38644E-09   -.30641E-04
  24  Prefactor     15.574        22.684       -.26404E-06   -.18218E-04
  25  norm          .10000E-03    2.0989        .14440E-06** at limit **
  26  Prefactor     1.5099        28.245        .18622E-05   -.13355E-04
  27  Prefactor     .10000E-03    1.4692       -.13434E-06** at limit **
  28  Prefactor     .10000E-03    15.553        .24837E-06** at limit **
  29  norm          .38769        18.616        .53372E-06   -.20028E-03
  30  Prefactor     29.277        26.073       -.44264E-07   -.10981E-04
  31  Prefactor     28.764        42.350        .16542E-06   -.53132E-05
  32  Prefactor     13.872        17.571       -.72344E-07   -.35246E-04
  33  Prefactor     36.465        33.873       -.10502E-06   -.25522E-04
  34  Prefactor     .10000E-03    8.4763        .21017E-06** at limit **
  35  Normalizat    .67170        .23536        .23478E-05   -.12815E-03
  36  Prefactor     1.3274        .27408       -.28379E-05   -.20223E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1283
  norm       = 9.68255
  Prefactor  = 0.0001
  Prefactor  = 1.89362
  norm       = 1.62163
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.211
  Prefactor  = 0.0001
  Prefactor  = 21.2258
  Prefactor  = 0.000100001
  norm       = 0.526557
  Prefactor  = 0.0001
  Prefactor  = 56.5226
  norm       = 6.34879
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.61697
  Prefactor  = 58.7441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44596
  Prefactor  = 15.5738
  norm       = 0.0001
  Prefactor  = 1.5099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.387692
  Prefactor  = 29.2772
  Prefactor  = 28.7643
  Prefactor  = 13.8722
  Prefactor  = 36.4645
  Prefactor  = 0.0001
  Normalizat = 0.671699
  Prefactor  = 1.32739
 **********
 **   18 **HESSE 
 **********

 FCN=   4158.093     FROM HESSE     STATUS=OK           817 CALLS     5547 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.128        62.368        .78961E-04   -1.4685    
   2  norm          9.6825        9.9028        .12990E-03   -1.5086    
   3  Prefactor     .10000E-03    27.894        .19881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8936        207.47        .28614E-03   -1.5433    
   5  norm          1.6216        19.195        .33413E-03   -1.5453    
   6  norm          .10000E-03    7.4058        .17140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4126        .97710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6224        .16113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.211        48.809        .64538E-04   -1.4455    
  10  Prefactor     .10000E-03    58.934        .18212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.226        35.017        .87454E-04   -1.4786    
  12  Prefactor     .10000E-03    56.918        .20030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .52656        19.080        .26613E-02   -1.5563    
  14  Prefactor     .10000E-03    18.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     56.523        84.722        .54206E-04   -1.4203    
  16  norm          6.3488        2.2795        .55780E-04   -1.5204    
  17  norm          .10000E-03    31.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.0074        .24666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.6170        15.526        .12989E-03   -1.5088    
  20  Prefactor     58.744        42.185        .26435E-03   -1.4174    
  21  Prefactor     .10000E-03    5.8719        .15259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.649        .20692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.4460        5.4331        .12144E-03   -1.5162    
  24  Prefactor     15.574        22.841        .10203E-03   -1.4918    
  25  norm          .10000E-03    2.1250        .91174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.5099        129.04        .34464E-03   -1.5462    
  27  Prefactor     .10000E-03    1.4879        .15162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .38769        738.16        .40397E-02   -1.5583    
  30  Prefactor     29.277        25.992        .73635E-04   -1.4625    
  31  Prefactor     28.764        42.344        .74887E-04   -1.4635    
  32  Prefactor     13.872        17.572        .10781E-03   -1.4963    
  33  Prefactor     36.465        33.859        .67099E-04   -1.4500    
  34  Prefactor     .10000E-03    8.5025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .67170        .27674        .27313E-03   -1.0502    
  36  Prefactor     1.3274        .31413        .25294E-03   -.82496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88717e-08
Minuit parameter uncertainties:
  1  62.5243
  2  9.9045
  3  4.75473e-07
  4  39.7835
  5  11.1625
  6  1.46343e-06
  7  8.66623e-06
  8  1.29852e-07
  9  48.8592
  10  5.19183e-06
  11  35.0504
  12  0.000464403
  13  6.3409
  14  5.9027e-06
  15  84.9031
  16  2.27951
  17  8.96997e-07
  18  6.15048e-06
  19  15.5322
  20  42.2068
  21  1.33311e-06
  22  1.57901e-06
  23  5.43347
  24  22.8541
  25  7.54698e-07
  26  27.978
  27  1.31359e-06
  28  6.67047e-05
  29  34.2605
  30  26.0022
  31  42.3878
  32  17.5781
  33  33.8772
  34  9.78845e-06
  35  0.277316
  36  0.314579
Done.

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

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  6.349e+00  2.280e+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.327e+00  3.146e-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.717e-01  2.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.30
Ra Dec: 206.394 44.884
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.34e-07 +/- 4.81e-08
Energy Flux (Fixed Index): 5.15e-05 +/- 1.85e-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) = 4157.8990389
delta logL = 0.193834436817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4157.88022355
delta logL = 0.212649787136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2853       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9570       1.0000          .0000       5.0000    
     3 'Normalizat'    .69123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3127       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=   4157.880     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      209 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2853        2.3306        .40028E-02    .61851E-02
   2  alpha         1.9569        .30965        .18328       -.28179E-05
   3  Normalizat    .69131        .19545        .60951E-01    .20869E-04
   4  Prefactor     1.3126        .24562        .57480E-01   -.61457E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.28526
  alpha      = 1.95688
  Normalizat = 0.691307
  Prefactor  = 1.31258
 **********
 **   18 **HESSE 
 **********

 FCN=   4157.880     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2853        2.3417        .57039E-04   -1.5207    
   2  alpha         1.9569        .32127        .78510E-02   -.21899    
   3  Normalizat    .69131        .23351        .26962E-03   -1.0424    
   4  Prefactor     1.3126        .29324        .25417E-03   -.82934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32893e-09
Minuit parameter uncertainties:
  1  2.34177
  2  0.322209
  3  0.233843
  4  0.293613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/911874': 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) = 4157.88022342
delta logL = 0.212649911214

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  6.285e+00  2.342e+00  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  1.957e+00  3.222e-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.313e+00  2.936e-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.913e-01  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.62
Ra Dec: 206.394 44.884
Photon Index (Free Index): 1.96 +/- 0.32
Photon Flux (Free Index): 1.17e-07 +/- 5.07e-08
Energy Flux (Free Index): 6.15e-05 +/- 2.95e-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/911874/cmap_HighResolution_588729601_588988801_4FGL_J1345.5+4453_daily_bin1348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-07', energy_flux2='6.15e-05', photon_flux_error='4.81e-08', dlogl='2.13e-01', energy_flux='5.15e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-08 10:45:51.705783', photon_index_error2='0.32', photon_index2='1.96', ts='20.30', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='2.95e-05', EG='0.67', time_epoch_completed='1631123151.71', return_code='0', job_id='911874', GAL2='1.31', EG2='0.69', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='5.07e-08', ts2='20.62', photon_index='2.17' WHERE bin_id='1348' AND source_name='4FGL J1345.5+4453' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 10:45:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 911874: <4FGL_J1345.5+4453_daily_bin1348> in cluster <slac> Done

Job <4FGL_J1345.5+4453_daily_bin1348> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 10:30:43 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 10:30:47 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:30:47 2021
Terminated at Wed Sep  8 10:45:52 2021
Results reported at Wed Sep  8 10:45:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.5+4453_daily_bin1348 206.394 44.8844 588729601 588988801 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 :                                   723.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            909 sec.

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

