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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1696
RA = 343.496, Dec = 16.1506
tmin = 678931201, tmax = 679190401
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='794118', job_status='RUN', time_executed='2022-07-11 00:37:57.415781', time_epoch_executed='1657525077.42' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794118/ft1_4FGL_J2253.9+1609_daily_bin1696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794118/ft2_4FGL_J2253.9+1609_daily_bin1696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794118/ft1_4FGL_J2253.9+1609_daily_bin1696.fits outfile=/scratch/kocevski/794118/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1696.fits ra=343.496 dec=16.1506 rad=12.0 tmin=678931201.0 tmax=679190401.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.32
sys 0.20

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

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

Number of photons that the gtmktime cut: 835

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794118/ft1_filtered_4FGL_J2253.9+1609_daily_bin1696.fits" evtable="EVENTS" scfile=/scratch/kocevski/794118/ft2_4FGL_J2253.9+1609_daily_bin1696.fits sctable="SC_DATA" outfile=/scratch/kocevski/794118/ltcube_678931201_679190401_4FGL_J2253.9+1609_daily_bin1696.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/794118/ft2_4FGL_J2253.9+1609_daily_bin1696.fits
.....................!
real 11.85
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794118/ft1_filtered_4FGL_J2253.9+1609_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/794118/ft2_4FGL_J2253.9+1609_daily_bin1696.fits sctable="SC_DATA" expcube=/scratch/kocevski/794118/ltcube_678931201_679190401_4FGL_J2253.9+1609_daily_bin1696.fits outfile=/scratch/kocevski/794118/expmap_678931201_679190401_4FGL_J2253.9+1609_daily_bin1696.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/794118/ltcube_678931201_679190401_4FGL_J2253.9+1609_daily_bin1696.fits
.....................!
real 190.78
user 185.39
sys 5.05

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/794118/ft1_filtered_4FGL_J2253.9+1609_daily_bin1696.fits scfile=/scratch/kocevski/794118/ft2_4FGL_J2253.9+1609_daily_bin1696.fits outfile=/scratch/kocevski/794118/cmap_678931201_679190401_4FGL_J2253.9+1609_daily_bin1696.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794118/ft1_filtered_4FGL_J2253.9+1609_daily_bin1696.fits scfile=/scratch/kocevski/794118/ft2_4FGL_J2253.9+1609_daily_bin1696.fits outfile=/scratch/kocevski/794118/cmap_HighResolution_678931201_679190401_4FGL_J2253.9+1609_daily_bin1696.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.53
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/794118/ft1_filtered_4FGL_J2253.9+1609_daily_bin1696.fits', '/scratch/kocevski/794118/ft2_4FGL_J2253.9+1609_daily_bin1696.fits', expMap='/scratch/kocevski/794118/expmap_678931201_679190401_4FGL_J2253.9+1609_daily_bin1696.fits', expCube='/scratch/kocevski/794118/ltcube_678931201_679190401_4FGL_J2253.9+1609_daily_bin1696.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/794118/Model_4FGL_J2253.9+1609_daily_bin1696.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/794118/ft1_filtered_4FGL_J2253.9+1609_daily_bin1696.fits
Spacecraft file(s): /scratch/kocevski/794118/ft2_4FGL_J2253.9+1609_daily_bin1696.fits
Exposure map: /scratch/kocevski/794118/expmap_678931201_679190401_4FGL_J2253.9+1609_daily_bin1696.fits
Exposure cube: /scratch/kocevski/794118/ltcube_678931201_679190401_4FGL_J2253.9+1609_daily_bin1696.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/794118/Model_4FGL_J2253.9+1609_daily_bin1696.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) = 8839.20863512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.368       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18220       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.627       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3810       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .52679       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.292       1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.755       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0602       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8070       1.0000         .10000E-03   10000.    
    13 'Prefactor '    67.414       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0448       1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.690       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9835       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1290       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.782       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4633       1.0000         .10000E-03   10000.    
    22 'norm      '    17.172       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .47770       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1002       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=   8839.157     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2802 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.365        23.825       -.60340E-05   -.28603E-04
   2  norm          .10000E-03    4.4481       -.71431E-07** at limit **
   3  Prefactor     .73849E-01    12.763       -.20033E-05    .10254E-03
   4  Prefactor     11.627        8.9314        .34578E-05    .23822E-04
   5  Prefactor     1.3815        .26429       -.19477E-07    .43545E-02
   6  Prefactor     .10000E-03    2.1327       -.68376E-07** at limit **
   7  norm          .52674        1.0478        .10026E-06    .54641E-03
   8  Prefactor     35.305        44.167       -.47335E-05   -.10294E-04
   9  Prefactor     60.754        15.227       -.23538E-05   -.80621E-04
  10  Prefactor     .10000E-03    11.221        .83729E-07** at limit **
  11  Prefactor     1.0602        .20690        .21457E-08   -.97896E-03
  12  Prefactor     3.8069        4.4332       -.53847E-06    .15096E-04
  13  Prefactor     67.407        36.481       -.93121E-05   -.29634E-04
  14  Prefactor     .10000E-03    1.8138       -.12496E-06** at limit **
  15  Prefactor     7.0434        11.381        .42065E-05   -.72850E-05
  16  Prefactor     50.687        23.854       -.97682E-05   -.57727E-04
  17  Prefactor     5.9823        6.5268        .12299E-05   -.32863E-04
  18  Prefactor     1.1285        2.2877       -.48109E-07   -.18294E-02
  19  Prefactor     .10000E-03    4.0065       -.15091E-06** at limit **
  20  norm          12.782        9.0720       -.16615E-05   -.50816E-04
  21  Prefactor     3.4628        7.0987        .10666E-05   -.79783E-03
  22  norm          17.171        14.758       -.35341E-05   -.24886E-04
  23  Normalizat    .47780        .24435        .73090E-05    .19827E-03
  24  Prefactor     1.1002        .12885       -.11521E-06    .19617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.3649
  norm       = 0.0001
  Prefactor  = 0.0738486
  Prefactor  = 11.6269
  Prefactor  = 1.38146
  Prefactor  = 0.0001
  norm       = 0.526744
  Prefactor  = 35.3047
  Prefactor  = 60.7541
  Prefactor  = 0.0001
  Prefactor  = 1.06019
  Prefactor  = 3.80687
  Prefactor  = 67.4074
  Prefactor  = 0.0001
  Prefactor  = 7.04344
  Prefactor  = 50.6871
  Prefactor  = 5.98233
  Prefactor  = 1.12845
  Prefactor  = 0.0001
  norm       = 12.7817
  Prefactor  = 3.46278
  norm       = 17.1715
  Normalizat = 0.477797
  Prefactor  = 1.10024
 **********
 **   18 **HESSE 
 **********

 FCN=   8839.157     FROM HESSE     STATUS=OK           413 CALLS     3215 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.365        23.827        .66456E-04   -1.4501    
   2  norm          .10000E-03    4.6183        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .73849E-01    17.788        .81974E-01   -1.5654    
   4  Prefactor     11.627        8.8888        .11748E-03   -1.5026    
   5  Prefactor     1.3815        .26719        .19140E-04   -1.5473    
   6  Prefactor     .10000E-03    2.1359        .13408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .52674        .76160        .13116E-02   -1.5563    
   8  Prefactor     35.305        44.626        .67458E-04   -1.4519    
   9  Prefactor     60.754        15.138        .51476E-04   -1.4147    
  10  Prefactor     .10000E-03    11.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0602        .20851        .16540E-04   -1.5502    
  12  Prefactor     3.8069        4.4310        .20687E-03   -1.5318    
  13  Prefactor     67.407        36.476        .48884E-04   -1.4064    
  14  Prefactor     .10000E-03    1.8171        .12364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0434        11.341        .15114E-03   -1.5177    
  16  Prefactor     50.687        23.873        .56328E-04   -1.4283    
  17  Prefactor     5.9823        6.4774        .16415E-03   -1.5219    
  18  Prefactor     1.1285        9.7885        .22002E-02   -1.5496    
  19  Prefactor     .10000E-03    4.0085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.782        9.5262        .11204E-03   -1.4993    
  21  Prefactor     3.4628        7.3422        .10865E-02   -1.5336    
  22  norm          17.171        14.756        .96650E-04   -1.4879    
  23  Normalizat    .47780        .24570        .47939E-03   -1.1346    
  24  Prefactor     1.1002        .13409        .18928E-03   -.89459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44637e-08
Minuit parameter uncertainties:
  1  23.8335
  2  5.05436e-05
  3  2.2914
  4  8.88984
  5  0.267193
  6  2.06098e-06
  7  0.76161
  8  44.6685
  9  15.1386
  10  1.335e-05
  11  0.208515
  12  4.43137
  13  36.488
  14  8.2015e-06
  15  11.344
  16  23.8778
  17  6.47814
  18  6.64822
  19  1.09727e-05
  20  9.52729
  21  7.3441
  22  14.7588
  23  0.246254
  24  0.134128
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.060e+00  2.085e-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:  1.100e+00  1.341e-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:  4.778e-01  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 78.86
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.87e-07 +/- 7.60e-08
Energy Flux (Fixed Index): 1.24e-04 +/- 2.44e-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) = 8837.64507311
delta logL = 1.51231657038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8837.62311576
delta logL = 1.53427391767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2054       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3729       1.0000          .0000       10.000    
     3 'Normalizat'    .39234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1323       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=   8837.623     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2053        .20697        .37370E-02    .22390E-03
   2  Index1        2.3729        .20198        .98417E-01   -.52238E-04
   3  Normalizat    .39233        .23972        .11840        .79901E-04
   4  Prefactor     1.1323        .13808        .36472E-01   -.49800E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.20533
  Index1     = 2.37293
  Normalizat = 0.392332
  Prefactor  = 1.13228
 **********
 **   18 **HESSE 
 **********

 FCN=   8837.623     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2053        .20954        .16537E-04   -1.5488    
   2  Index1        2.3729        .20839        .42919E-03   -.55320    
   3  Normalizat    .39233        .23341        .52460E-03   -1.1770    
   4  Prefactor     1.1323        .13479        .18665E-03   -.88441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78669e-13
Minuit parameter uncertainties:
  1  0.209539
  2  0.208475
  3  0.233993
  4  0.134828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794118': 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) = 8837.62311573
delta logL = 1.53427394886

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.205e+00  2.095e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.373e+00  2.085e-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:  1.132e+00  1.348e-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:  3.923e-01  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 82.64
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.37 +/- 0.21
Photon Flux (Free Index): 4.64e-07 +/- 8.73e-08
Energy Flux (Free Index): 1.12e-04 +/- 2.00e-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/794118/cmap_HighResolution_678931201_679190401_4FGL_J2253.9+1609_daily_bin1696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.87e-07', energy_flux2='1.12e-04', photon_flux_error='7.60e-08', dlogl='1.53e+00', energy_flux='1.24e-04', photon_flux2='4.64e-07', job_status='DONE', time_completed='2022-07-11 00:49:58.673481', photon_index_error2='0.21', photon_index2='2.37', ts='78.86', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='0.48', time_epoch_completed='1657525798.67', return_code='0', job_id='794118', GAL2='1.13', EG2='0.39', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='8.73e-08', ts2='82.64', photon_index='2.02' WHERE bin_id='1696' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 11 00:49:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 794118: <4FGL_J2253.9+1609_daily_bin1696> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1696> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Jul 11 00:35:25 2022
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 11 00:35:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 11 00:35:27 2022
Terminated at Mon Jul 11 00:49:59 2022
Results reported at Mon Jul 11 00:49:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1696 343.496 16.1506 678931201 679190401 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 :                                   723.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            874 sec.

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

