aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 19 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1345.5+4453_daily_bin1714
RA = 206.394, Dec = 44.8844
tmin = 683596801, tmax = 683856001
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='137827', job_status='RUN', time_executed='2022-09-16 17:53:10.843576', time_epoch_executed='1663375990.84' WHERE source_name='4FGL J1345.5+4453' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/137827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/137827/ft1_4FGL_J1345.5+4453_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/137827/ft2_4FGL_J1345.5+4453_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/137827/ft1_4FGL_J1345.5+4453_daily_bin1714.fits outfile=/scratch/kocevski/137827/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin1714.fits ra=206.394 dec=44.8844 rad=12.0 tmin=683596801.0 tmax=683856001.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.53
user 3.28
sys 0.21

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

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

Number of photons that the gtmktime cut: 581

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/137827/ft1_filtered_4FGL_J1345.5+4453_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/137827/ft2_4FGL_J1345.5+4453_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/137827/ltcube_683596801_683856001_4FGL_J1345.5+4453_daily_bin1714.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/137827/ft2_4FGL_J1345.5+4453_daily_bin1714.fits
.....................!
real 14.47
user 14.05
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/137827/ft1_filtered_4FGL_J1345.5+4453_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/137827/ft2_4FGL_J1345.5+4453_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/137827/ltcube_683596801_683856001_4FGL_J1345.5+4453_daily_bin1714.fits outfile=/scratch/kocevski/137827/expmap_683596801_683856001_4FGL_J1345.5+4453_daily_bin1714.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/137827/ltcube_683596801_683856001_4FGL_J1345.5+4453_daily_bin1714.fits
.....................!
real 192.88
user 187.10
sys 5.32

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/137827/ft1_filtered_4FGL_J1345.5+4453_daily_bin1714.fits scfile=/scratch/kocevski/137827/ft2_4FGL_J1345.5+4453_daily_bin1714.fits outfile=/scratch/kocevski/137827/cmap_683596801_683856001_4FGL_J1345.5+4453_daily_bin1714.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/137827/ft1_filtered_4FGL_J1345.5+4453_daily_bin1714.fits scfile=/scratch/kocevski/137827/ft2_4FGL_J1345.5+4453_daily_bin1714.fits outfile=/scratch/kocevski/137827/cmap_HighResolution_683596801_683856001_4FGL_J1345.5+4453_daily_bin1714.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/137827/ft1_filtered_4FGL_J1345.5+4453_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/137827/ft2_4FGL_J1345.5+4453_daily_bin1714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/137827/Model_4FGL_J1345.5+4453_daily_bin1714.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/137827/ft1_filtered_4FGL_J1345.5+4453_daily_bin1714.fits.....................!
real 51.12
user 49.75
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/137827/ft1_filtered_4FGL_J1345.5+4453_daily_bin1714.fits', '/scratch/kocevski/137827/ft2_4FGL_J1345.5+4453_daily_bin1714.fits', expMap='/scratch/kocevski/137827/expmap_683596801_683856001_4FGL_J1345.5+4453_daily_bin1714.fits', expCube='/scratch/kocevski/137827/ltcube_683596801_683856001_4FGL_J1345.5+4453_daily_bin1714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/137827/Model_4FGL_J1345.5+4453_daily_bin1714.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  0.000e+00  1.000e+06 ( 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 -5.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/137827/ft1_filtered_4FGL_J1345.5+4453_daily_bin1714.fits
Spacecraft file(s): /scratch/kocevski/137827/ft2_4FGL_J1345.5+4453_daily_bin1714.fits
Exposure map: /scratch/kocevski/137827/expmap_683596801_683856001_4FGL_J1345.5+4453_daily_bin1714.fits
Exposure cube: /scratch/kocevski/137827/ltcube_683596801_683856001_4FGL_J1345.5+4453_daily_bin1714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/137827/Model_4FGL_J1345.5+4453_daily_bin1714.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) = 6324.80343571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19148E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .41249E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42087E-03   1.0000          .0000       .10000E+07
     4 'norm      '    8.9928       1.0000          .0000       .10000E+07
     5 'norm      '    18.629       1.0000          .0000       .10000E+07
     6 'norm      '    .68187       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14488E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    22.611       1.0000          .0000       .10000E+07
     9 'Prefactor '    .46977       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.3679       1.0000          .0000       .10000E+07
    11 'norm      '    .92648E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .93501E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.0469       1.0000          .0000       .10000E+07
    14 'norm      '    1.1586       1.0000          .0000       .10000E+07
    15 'norm      '    .18782E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    83.373       1.0000          .0000       .10000E+07
    17 'Prefactor '    .20780E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .48542E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19715E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .10335E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .48585E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    2.0660       1.0000          .0000       .10000E+07
    23 'Prefactor '    4.1510       1.0000          .0000       .10000E+07
    24 'norm      '    .56779       1.0000          .0000       .10000E+07
    25 'Prefactor '    .13770E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    5.2156       1.0000          .0000       .10000E+07
    27 'Prefactor '    .27784E-05   1.0000          .0000       .10000E+07
    28 'Normalizat'    1.0180       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98757       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6324.778     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     2649 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49072E-07    8.8759        .35287E-05** at limit **
   2  norm           .0000        1.2741       -.39036E-06** at limit **
   3  Prefactor     .16653E-09    5.2302        .15099E-05** at limit **
   4  norm          8.9946        5.5756       -.11041E-05    .11031E-03
   5  norm          18.624        2.3235        .58294E-06    .18663E-01
   6  norm          .66937        5.6598       -.71903E-06    .41603E-03
   7  Prefactor     .55511E-10    1.4980        .64829E-06** at limit **
   8  Prefactor     23.640        20.792       -.51062E-06   -.24352E-01
   9  Prefactor     .78981E-06    227.87        .24750E-04** at limit **
  10  Prefactor     2.9416        50.514        .53306E-06    .20136E-01
  11  norm           .0000        2.9931       -.34024E-06** at limit **
  12  Prefactor     .13528E-05    9.9653       -.55049E-05** at limit **
  13  norm          1.0514        1.0658       -.66869E-07   -.33454E-02
  14  norm          1.1592        2.8306        .90746E-06   -.32342E-03
  15  norm          .46124E-06    5.2825        .18721E-05** at limit **
  16  Prefactor     83.167        8.6463       -.43137E-06    .80818E-01
  17  Prefactor     .22413E-05    5.6642        .30985E-05** at limit **
  18  Prefactor      .0000        1.1664        .38603E-06** at limit **
  19  Prefactor      .0000        5.5137       -.22310E-07** at limit **
  20  norm           .0000        1.9037       -.54909E-06** at limit **
  21  Prefactor     .12623E-06    5.1548       -.15515E-05** at limit **
  22  Prefactor     2.0628        2.0682       -.17919E-06   -.19781E-02
  23  Prefactor     4.1562        10.610       -.45023E-05   -.82114E-02
  24  norm          .57022        7.3500       -.23136E-05   -.33163E-02
  25  Prefactor     .44947E-06    9.2177       -.66923E-05** at limit **
  26  Prefactor     7.0650        47.720       -.45904E-05    .30124E-01
  27  Prefactor     .24719E-06    6.1326        .33539E-05** at limit **
  28  Normalizat    1.0178        .18336       -.32376E-05   -.19225E-03
  29  Prefactor     .98763        .23105        .29199E-04   -.71121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.90719e-08
  norm       = 0
  Prefactor  = 1.66533e-10
  norm       = 8.99459
  norm       = 18.6239
  norm       = 0.669368
  Prefactor  = 5.55112e-11
  Prefactor  = 23.64
  Prefactor  = 7.89813e-07
  Prefactor  = 2.9416
  norm       = 0
  Prefactor  = 1.35275e-06
  norm       = 1.05138
  norm       = 1.15919
  norm       = 4.61242e-07
  Prefactor  = 83.167
  Prefactor  = 2.24126e-06
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.26232e-07
  Prefactor  = 2.06283
  Prefactor  = 4.15625
  norm       = 0.570225
  Prefactor  = 4.49474e-07
  Prefactor  = 7.06502
  Prefactor  = 2.47191e-07
  Normalizat = 1.01783
  Prefactor  = 0.987635
 **********
 **   18 **HESSE 
 **********

 FCN=   6324.778     FROM HESSE     STATUS=OK           605 CALLS     3254 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49072E-07    9.0064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.2664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-09    5.2309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.9946        5.5836        .33399E-03   -1.5648    
   5  norm          18.624        13.642        .23177E-03   -1.5622    
   6  norm          .66937        6.0764        .62193E-03   -1.5692    
   7  Prefactor     .55511E-10    1.4983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.640        36.768        .21035E-03   -1.5611    
   9  Prefactor     .78981E-06    232.79        .81811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9416        140.69        .48169E-03   -1.5674    
  11  norm           .0000        2.9798        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13528E-05    16.976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0514        1.1601        .18417E-02   -1.5687    
  14  norm          1.1592        2.8785        .10710E-02   -1.5686    
  15  norm          .46124E-06    12.844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     83.167        49.397        .10952E-03   -1.5526    
  17  Prefactor     .22413E-05    15.464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        1.1652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        5.5009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        1.8995        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12623E-06    16.303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.0628        2.1212        .71853E-03   -1.5679    
  23  Prefactor     4.1562        14.467        .49447E-03   -1.5667    
  24  norm          .57022        30.276        .72164E-03   -1.5693    
  25  Prefactor     .44947E-06    10.542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.0650        93.604        .43992E-03   -1.5655    
  27  Prefactor     .24719E-06    12.849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0178        .15664        .43664E-01   -.92435    
  29  Prefactor     .98763        .19498        .46112E-01   -.93143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61803e-06
Minuit parameter uncertainties:
  1  0.00132973
  2  3.26461e-06
  3  5.6752e-05
  4  5.5836
  5  13.6423
  6  4.03353
  7  1.72274e-05
  8  36.7679
  9  0.0271201
  10  40.6883
  11  2.64268e-06
  12  0.0095842
  13  1.16015
  14  2.87855
  15  0.00486799
  16  49.3977
  17  0.0117742
  18  5.22428e-06
  19  1.21503e-05
  20  1.86021e-06
  21  0.00286943
  22  2.12121
  23  14.4675
  24  8.31013
  25  0.00435355
  26  51.4329
  27  0.00356436
  28  0.156715
  29  0.195116
Done.

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

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  1.051e+00  1.160e+00  0.000e+00  1.000e+06 ( 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 -5.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:  9.876e-01  1.951e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  1.018e+00  1.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 206.394 44.884
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 2.22e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 8.53e-06 +/- 9.41e-06

TS (Fixed Index): 1.50
Ra Dec: 206.394 44.884
Photon Flux Upper Limit: 7.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/137827/likelihoodResults_683596801_683856001_4FGL_J1345.5+4453_daily_bin1714.txt

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) = 6324.50296338
delta logL = 0.274964292684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6324.50196512
delta logL = 0.275962554494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0395       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7260       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97854       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=   6324.502     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      204 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0404        1.0878        .12294E-02    .41309E-02
   2  alpha         1.7263        .47990        .39003       -.28777E-04
   3  Normalizat    1.0266        .15231        .42503E-01    .80209E-05
   4  Prefactor     .97863        .19374        .45998E-01    .13230E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.04041
  alpha      = 1.72628
  Normalizat = 1.02664
  Prefactor  = 0.978629
 **********
 **   18 **HESSE 
 **********

 FCN=   6324.502     FROM HESSE     STATUS=OK            35 CALLS      239 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0404        1.0450        .75206E-04   -1.5688    
   2  alpha         1.7263        .56627        .14492E-01   -.31466    
   3  Normalizat    1.0266        .18128        .21164E-03   -.92143    
   4  Prefactor     .97863        .23014        .27260E-03   -.93445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55111e-10
Minuit parameter uncertainties:
  1  1.04503
  2  0.57177
  3  0.18139
  4  0.230372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/137827': 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) = 6324.50196456
delta logL = 0.275963109483

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  1.040e+00  1.045e+00  0.000e+00  1.000e+06 ( 1.000e-11)
340        alpha:  1.726e+00  5.718e-01  0.000e+00  5.000e+00 ( 1.000e+00)
341         beta:  7.801e-02  0.000e+00 -5.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:  9.786e-01  2.304e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  1.027e+00  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 206.394 44.884
Photon Index (Free Index): 1.73 +/- 0.57
Photon Flux (Free Index): 1.75e-08 +/- 1.90e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.66e-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/137827/cmap_HighResolution_683596801_683856001_4FGL_J1345.5+4453_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-05', comment='SUCCESS', photon_flux='2.22e-08', energy_flux2='1.44e-05', photon_flux_error='2.45e-08', dlogl='2.76e-01', energy_flux='8.53e-06', photon_flux2='1.75e-08', job_status='DONE', time_completed='2022-09-16 18:05:57.530407', photon_index_error2='0.57', photon_index2='1.73', ts='1.50', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.46e-08', energy_flux_error2='1.66e-05', EG='1.02', time_epoch_completed='1663376757.53', return_code='0', job_id='137827', GAL2='0.98', EG2='1.03', return_code2='0', energy_flux_error='9.41e-06', photon_flux_error2='1.90e-08', ts2='2.06', photon_index='2.17' WHERE bin_id='1714' AND source_name='4FGL J1345.5+4453' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 18:05:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 137827: <4FGL_J1345.5+4453_daily_bin1714> in cluster <slac> Done

Job <4FGL_J1345.5+4453_daily_bin1714> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep 16 17:50:17 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:52:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:52:42 2022
Terminated at Fri Sep 16 18:05:58 2022
Results reported at Fri Sep 16 18:05:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.5+4453_daily_bin1714 206.394 44.8844 683596801 683856001 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 :                                   756.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            941 sec.

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

