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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1699
RA = 343.496, Dec = 16.1506
tmin = 679708801, tmax = 679968001
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='1430', job_status='RUN', time_executed='2022-07-20 00:37:34.490161', time_epoch_executed='1658302654.49' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1430/ft1_4FGL_J2253.9+1609_daily_bin1699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1430/ft2_4FGL_J2253.9+1609_daily_bin1699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1430/ft1_4FGL_J2253.9+1609_daily_bin1699.fits outfile=/scratch/kocevski/1430/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1699.fits ra=343.496 dec=16.1506 rad=12.0 tmin=679708801.0 tmax=679968001.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 2.96
user 2.72
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/1430/ft2_4FGL_J2253.9+1609_daily_bin1699.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1430/ft2_4FGL_J2253.9+1609_daily_bin1699.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/1430/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1699.fits evtable="EVENTS" outfile="/scratch/kocevski/1430/ft1_filtered_4FGL_J2253.9+1609_daily_bin1699.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.44
user 0.26
sys 0.15

Number of photons that the gtmktime cut: 889

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1430/ft1_filtered_4FGL_J2253.9+1609_daily_bin1699.fits" evtable="EVENTS" scfile=/scratch/kocevski/1430/ft2_4FGL_J2253.9+1609_daily_bin1699.fits sctable="SC_DATA" outfile=/scratch/kocevski/1430/ltcube_679708801_679968001_4FGL_J2253.9+1609_daily_bin1699.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/1430/ft2_4FGL_J2253.9+1609_daily_bin1699.fits
.....................!
real 9.23
user 8.90
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1430/ft1_filtered_4FGL_J2253.9+1609_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/1430/ft2_4FGL_J2253.9+1609_daily_bin1699.fits sctable="SC_DATA" expcube=/scratch/kocevski/1430/ltcube_679708801_679968001_4FGL_J2253.9+1609_daily_bin1699.fits outfile=/scratch/kocevski/1430/expmap_679708801_679968001_4FGL_J2253.9+1609_daily_bin1699.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/1430/ltcube_679708801_679968001_4FGL_J2253.9+1609_daily_bin1699.fits
.....................!
real 146.69
user 142.00
sys 4.17

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2253.9+1609 @ 343.496 16.1506

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/1430/ft1_filtered_4FGL_J2253.9+1609_daily_bin1699.fits scfile=/scratch/kocevski/1430/ft2_4FGL_J2253.9+1609_daily_bin1699.fits outfile=/scratch/kocevski/1430/cmap_679708801_679968001_4FGL_J2253.9+1609_daily_bin1699.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=343.496 yref=16.1506 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.47
user 0.29
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1430/ft1_filtered_4FGL_J2253.9+1609_daily_bin1699.fits scfile=/scratch/kocevski/1430/ft2_4FGL_J2253.9+1609_daily_bin1699.fits outfile=/scratch/kocevski/1430/cmap_HighResolution_679708801_679968001_4FGL_J2253.9+1609_daily_bin1699.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=343.496 yref=16.1506 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.46
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/1430/ft1_filtered_4FGL_J2253.9+1609_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/1430/ft2_4FGL_J2253.9+1609_daily_bin1699.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/1430/Model_4FGL_J2253.9+1609_daily_bin1699.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/1430/ft1_filtered_4FGL_J2253.9+1609_daily_bin1699.fits.....................!
real 77.93
user 76.66
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/1430/ft1_filtered_4FGL_J2253.9+1609_daily_bin1699.fits', '/scratch/kocevski/1430/ft2_4FGL_J2253.9+1609_daily_bin1699.fits', expMap='/scratch/kocevski/1430/expmap_679708801_679968001_4FGL_J2253.9+1609_daily_bin1699.fits', expCube='/scratch/kocevski/1430/ltcube_679708801_679968001_4FGL_J2253.9+1609_daily_bin1699.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/1430/Model_4FGL_J2253.9+1609_daily_bin1699.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2253.9+1609'

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/1430/ft1_filtered_4FGL_J2253.9+1609_daily_bin1699.fits
Spacecraft file(s): /scratch/kocevski/1430/ft2_4FGL_J2253.9+1609_daily_bin1699.fits
Exposure map: /scratch/kocevski/1430/expmap_679708801_679968001_4FGL_J2253.9+1609_daily_bin1699.fits
Exposure cube: /scratch/kocevski/1430/ltcube_679708801_679968001_4FGL_J2253.9+1609_daily_bin1699.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/1430/Model_4FGL_J2253.9+1609_daily_bin1699.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) = 9651.71255841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3909       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8089       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1932       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44400       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7547       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.308       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.400       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7050       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3069       1.0000         .10000E-03   10000.    
    13 'Prefactor '    74.376       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8596       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9250       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3219       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.647       1.0000         .10000E-03   10000.    
    20 'norm      '    2.5968       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10504E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2919       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83312       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9651.709     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2733 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4055       -.19343E-06** at limit **
   2  norm          1.3949        3.9133        .49121E-08   -.29334E-04
   3  Prefactor     6.8085        11.652       -.24907E-07    .44467E-05
   4  Prefactor     1.1807        9.8914       -.10976E-05   -.29623E-03
   5  Prefactor     .44402        .19409        .15276E-07    .17026E-03
   6  Prefactor     3.7554        6.2615        .12027E-07   -.24762E-03
   7  norm          .10000E-03    1.3144       -.10659E-05** at limit **
   8  Prefactor     26.305        33.319       -.41733E-05    .98871E-04
   9  Prefactor     40.416        14.655        .40693E-05    .45749E-04
  10  Prefactor     .10000E-03    8.4638       -.75641E-06** at limit **
  11  Prefactor     1.7048        .23520        .33737E-08    .94325E-03
  12  Prefactor     2.3070        4.8540       -.26545E-06   -.22137E-04
  13  Prefactor     74.372        36.990       -.34350E-05    .15575E-03
  14  Prefactor     5.8606        6.2863        .34264E-07   -.24017E-03
  15  Prefactor     .10000E-03    4.4152       -.88007E-07** at limit **
  16  Prefactor     .10000E-03    32.006       -.30734E-06** at limit **
  17  Prefactor     1.9220        6.3525       -.19859E-06   -.36243E-04
  18  Prefactor     5.3220        8.0454       -.25884E-06   -.63808E-05
  19  Prefactor     19.647        20.079        .16817E-06    .18155E-07
  20  norm          2.5924        7.5428        .10796E-05   -.36804E-03
  21  Prefactor     .10000E-03    3.6290        .98447E-07** at limit **
  22  norm          .10000E-03    31.292        .11520E-06** at limit **
  23  Normalizat    1.2922        .21141       -.36584E-06    .17397E-03
  24  Prefactor     .83294        .11183       -.53469E-07    .25801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.39488
  Prefactor  = 6.80846
  Prefactor  = 1.18069
  Prefactor  = 0.444018
  Prefactor  = 3.75541
  norm       = 0.000100003
  Prefactor  = 26.3046
  Prefactor  = 40.4163
  Prefactor  = 0.0001
  Prefactor  = 1.70484
  Prefactor  = 2.307
  Prefactor  = 74.3719
  Prefactor  = 5.86057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.92201
  Prefactor  = 5.32196
  Prefactor  = 19.6472
  norm       = 2.59242
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.29222
  Prefactor  = 0.83294
 **********
 **   18 **HESSE 
 **********

 FCN=   9651.709     FROM HESSE     STATUS=OK           405 CALLS     3138 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3949        3.8804        .31137E-03   -1.5472    
   3  Prefactor     6.8085        11.639        .15376E-03   -1.5186    
   4  Prefactor     1.1807        36.982        .20830E-02   -1.5491    
   5  Prefactor     .44402        .19212        .26422E-04   -1.5575    
   6  Prefactor     3.7554        6.4031        .10418E-02   -1.5320    
   7  norm          .10000E-03    3.1235        .21624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.305        33.286        .78104E-04   -1.4682    
   9  Prefactor     40.416        14.783        .63064E-04   -1.4436    
  10  Prefactor     .10000E-03    8.4715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7048        .23693        .16234E-04   -1.5447    
  12  Prefactor     2.3070        4.8293        .27015E-03   -1.5404    
  13  Prefactor     74.372        36.988        .46556E-04   -1.3981    
  14  Prefactor     5.8606        6.3988        .82952E-03   -1.5224    
  15  Prefactor     .10000E-03    4.4230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9220        6.2709        .29944E-03   -1.5431    
  18  Prefactor     5.3220        8.0276        .17422E-03   -1.5247    
  19  Prefactor     19.647        19.900        .90361E-04   -1.4821    
  20  norm          2.5924        8.6307        .12659E-02   -1.5386    
  21  Prefactor     .10000E-03    3.6523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    32.481        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2922        .26194        .33401E-03   -.83799    
  24  Prefactor     .83294        .13268        .22141E-03   -.98525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06348e-09
Minuit parameter uncertainties:
  1  4.15934e-06
  2  3.88107
  3  11.6431
  4  13.2242
  5  0.192121
  6  6.40427
  7  0.000193484
  8  33.3097
  9  14.7846
  10  2.51071e-05
  11  0.236933
  12  4.83009
  13  36.999
  14  6.39954
  15  6.08716e-06
  16  2.89997e-06
  17  6.27305
  18  8.02925
  19  19.9069
  20  8.63487
  21  7.80761e-06
  22  4.74274e-06
  23  0.26221
  24  0.132728
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.705e+00  2.369e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  8.329e-01  1.327e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.292e+00  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 154.88
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 6.22e-07 +/- 8.64e-08
Energy Flux (Fixed Index): 2.00e-04 +/- 2.77e-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) = 9651.07091571
delta logL = 0.638246110984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9651.07090356
delta logL = 0.638258259254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8397       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1929       1.0000          .0000       10.000    
     3 'Normalizat'    1.2268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85792       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9651.071     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      200 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8397        .24619        .37242E-02   -.33717E-03
   2  Index1        2.1929        .14574        .74761E-01   -.12450E-03
   3  Normalizat    1.2268        .20594        .76981E-01   -.27619E-04
   4  Prefactor     .85793        .11108        .44466E-01    .54257E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.8397
  Index1     = 2.19288
  Normalizat = 1.22681
  Prefactor  = 0.857927
 **********
 **   18 **HESSE 
 **********

 FCN=   9651.071     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8397        .26071        .16468E-04   -1.5437    
   2  Index1        2.1929        .15593        .32757E-03   -.59610    
   3  Normalizat    1.2268        .24614        .34072E-03   -.85778    
   4  Prefactor     .85793        .13204        .21845E-03   -.97627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73094e-11
Minuit parameter uncertainties:
  1  0.260714
  2  0.155964
  3  0.246378
  4  0.132094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1430': 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) = 9651.07090356
delta logL = 0.638258260804

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.840e+00  2.607e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.193e+00  1.560e-01  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  8.579e-01  1.321e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.227e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 156.58
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.19 +/- 0.16
Photon Flux (Free Index): 6.84e-07 +/- 1.04e-07
Energy Flux (Free Index): 1.89e-04 +/- 2.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/1430/cmap_HighResolution_679708801_679968001_4FGL_J2253.9+1609_daily_bin1699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.22e-07', energy_flux2='1.89e-04', photon_flux_error='8.64e-08', dlogl='6.38e-01', energy_flux='2.00e-04', photon_flux2='6.84e-07', job_status='DONE', time_completed='2022-07-20 00:47:01.893958', photon_index_error2='0.16', photon_index2='2.19', ts='154.88', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.63e-05', EG='1.29', time_epoch_completed='1658303221.89', return_code='0', job_id='1430', GAL2='0.86', EG2='1.23', return_code2='0', energy_flux_error='2.77e-05', photon_flux_error2='1.04e-07', ts2='156.58', photon_index='2.02' WHERE bin_id='1699' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 20 00:47:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 1430: <4FGL_J2253.9+1609_daily_bin1699> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1699> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jul 20 00:35:44 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 20 00:35:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 20 00:35:44 2022
Terminated at Wed Jul 20 00:47:02 2022
Results reported at Wed Jul 20 00:47:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1699 343.496 16.1506 679708801 679968001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2253.9+1609 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   567.67 sec.
    Max Memory :                                 629 MB
    Average Memory :                             297.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            678 sec.

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

