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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1767
RA = 343.496, Dec = 16.1506
tmin = 697334401, tmax = 697593601
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='91498', job_status='RUN', time_executed='2023-02-09 02:02:51.651685', time_epoch_executed='1675936971.65' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91498/ft1_4FGL_J2253.9+1609_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91498/ft2_4FGL_J2253.9+1609_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91498/ft1_4FGL_J2253.9+1609_daily_bin1767.fits outfile=/scratch/kocevski/91498/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1767.fits ra=343.496 dec=16.1506 rad=12.0 tmin=697334401.0 tmax=697593601.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.62
user 3.36
sys 0.22

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

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

Number of photons that the gtmktime cut: 824

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91498/ft1_filtered_4FGL_J2253.9+1609_daily_bin1767.fits" evtable="EVENTS" scfile=/scratch/kocevski/91498/ft2_4FGL_J2253.9+1609_daily_bin1767.fits sctable="SC_DATA" outfile=/scratch/kocevski/91498/ltcube_697334401_697593601_4FGL_J2253.9+1609_daily_bin1767.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/91498/ft2_4FGL_J2253.9+1609_daily_bin1767.fits
.....................!
real 14.76
user 14.28
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91498/ft1_filtered_4FGL_J2253.9+1609_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/91498/ft2_4FGL_J2253.9+1609_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/91498/ltcube_697334401_697593601_4FGL_J2253.9+1609_daily_bin1767.fits outfile=/scratch/kocevski/91498/expmap_697334401_697593601_4FGL_J2253.9+1609_daily_bin1767.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/91498/ltcube_697334401_697593601_4FGL_J2253.9+1609_daily_bin1767.fits
.....................!
real 192.33
user 186.45
sys 4.78

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/91498/ft1_filtered_4FGL_J2253.9+1609_daily_bin1767.fits scfile=/scratch/kocevski/91498/ft2_4FGL_J2253.9+1609_daily_bin1767.fits outfile=/scratch/kocevski/91498/cmap_697334401_697593601_4FGL_J2253.9+1609_daily_bin1767.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91498/ft1_filtered_4FGL_J2253.9+1609_daily_bin1767.fits scfile=/scratch/kocevski/91498/ft2_4FGL_J2253.9+1609_daily_bin1767.fits outfile=/scratch/kocevski/91498/cmap_HighResolution_697334401_697593601_4FGL_J2253.9+1609_daily_bin1767.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.826       1.0000          .0000       .10000E+07
     2 'norm      '    .41689E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.2772       1.0000          .0000       .10000E+07
     4 'Prefactor '    .45581E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.2069       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4860       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2069       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10150E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.2208       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.2017       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.736       1.0000          .0000       .10000E+07
    12 'Prefactor '    .50335E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .29139E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.3778       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.6066       1.0000          .0000       .10000E+07
    16 'Prefactor '    .74316E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .18314E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .16262E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .15400E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.3165       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79706       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8429.805     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1594 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.803        2.3055       -.96497E-08    .61164E-01
   2  norm           .0000        1.4017       -.62056E-07** at limit **
   3  Prefactor     3.2608        1.1067        .10497E-07    .12040E-02
   4  Prefactor     .40523E-08    4.3754        .11367E-06** at limit **
   5  Prefactor     4.2067        .42278       -.11057E-07    .61740E-05
   6  Prefactor     3.5180        5.4266       -.51562E-06    .39193E-05
   7  norm          1.2069        1.0975        .27111E-07   -.93132E-04
   8  Prefactor     .10547E-08    8.6569       -.71029E-07** at limit **
   9  Prefactor     4.2227        3.2191        .40506E-08   -.13290E-01
  10  Prefactor     1.2014        .21449        .85117E-07   -.10347E-03
  11  Prefactor     21.288        40.426        .27651E-06    .73456E-03
  12  Prefactor      .0000        2.0198       -.44234E-07** at limit **
  13  Prefactor     .33307E-09    5.9109       -.93227E-07** at limit **
  14  Prefactor     5.4074        5.7040       -.39717E-07    .25618E-04
  15  Prefactor     3.6286        1.9407       -.19186E-07    .11226E-02
  16  Prefactor     .88818E-09    6.7096        .16100E-06** at limit **
  17  norm          .22204E-09    5.3653       -.13125E-06** at limit **
  18  Prefactor      .0000        3.9658        .68889E-08** at limit **
  19  norm          .55511E-10    7.0071       -.48723E-08** at limit **
  20  Normalizat    1.3170        .26340       -.35218E-05   -.79137E-06
  21  Prefactor     .79686        .14029        .20008E-05   -.59144E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.8035
  norm       = 0
  Prefactor  = 3.26076
  Prefactor  = 4.05231e-09
  Prefactor  = 4.20666
  Prefactor  = 3.51799
  norm       = 1.20687
  Prefactor  = 1.05471e-09
  Prefactor  = 4.22268
  Prefactor  = 1.20144
  Prefactor  = 21.2878
  Prefactor  = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 5.40741
  Prefactor  = 3.6286
  Prefactor  = 8.88178e-10
  norm       = 2.22045e-10
  Prefactor  = 0
  norm       = 5.55112e-11
  Normalizat = 1.31702
  Prefactor  = 0.796864
 **********
 **   18 **HESSE 
 **********

 FCN=   8429.805     FROM HESSE     STATUS=OK           357 CALLS     1951 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.803        20.101        .16709E-03   -1.5588    
   2  norm           .0000        1.4003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2608        15.542        .55910E-03   -1.5672    
   4  Prefactor     .40523E-08    11.071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2067        .43530        .40762E-02   -1.5298    
   6  Prefactor     3.5180        5.4422        .54142E-02   -1.5333    
   7  norm          1.2069        1.1053        .10307E-02   -1.5686    
   8  Prefactor     .10547E-08    8.7922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2227        11.148        .49025E-03   -1.5667    
  10  Prefactor     1.2014        .21457        .38569E-02   -1.5489    
  11  Prefactor     21.288        40.382        .21455E-03   -1.5616    
  12  Prefactor      .0000        2.0202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .33307E-09    6.1630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4074        5.7118        .43311E-03   -1.5661    
  15  Prefactor     3.6286        12.252        .53180E-03   -1.5670    
  16  Prefactor     .88818E-09    10.906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .22204E-09    5.4367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        3.9652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .55511E-10    7.2372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3170        .22629        .75645E-01   -.83060    
  21  Prefactor     .79686        .11907        .43679E-01   -.99844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76097e-08
Minuit parameter uncertainties:
  1  20.1006
  2  3.12763e-07
  3  14.2379
  4  0.000423998
  5  0.435301
  6  5.44295
  7  1.10529
  8  0.000191764
  9  11.1479
  10  0.214568
  11  40.3822
  12  1.01996e-06
  13  8.97054e-05
  14  5.7118
  15  12.2518
  16  0.000196474
  17  6.54058e-05
  18  9.77428e-06
  19  4.18429e-05
  20  0.22646
  21  0.119109
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.201e+00  2.146e-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:  7.969e-01  1.191e-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.317e+00  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 89.68
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.38e-07 +/- 7.82e-08
Energy Flux (Fixed Index): 1.41e-04 +/- 2.51e-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) = 8429.41016063
delta logL = 0.395189538936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8429.38704562
delta logL = 0.418304556737

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2981       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1987       1.0000          .0000       10.000    
     3 'Normalizat'    1.2711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81341       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=   8429.387     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2980        .22819        .38988E-02    .11572E-03
   2  Index1        2.1988        .18506        .90138E-01   -.58450E-04
   3  Normalizat    1.2712        .21903        .76650E-01    .14780E-04
   4  Prefactor     .81338        .11941        .43892E-01    .12873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.298
  Index1     = 2.19876
  Normalizat = 1.27121
  Prefactor  = 0.81338
 **********
 **   18 **HESSE 
 **********

 FCN=   8429.387     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .37E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2980        .24139        .17244E-04   -1.5480    
   2  Index1        2.1988        .19827        .39372E-03   -.59469    
   3  Normalizat    1.2712        .26012        .33924E-03   -.84430    
   4  Prefactor     .81338        .14118        .22771E-03   -.99237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67992e-15
Minuit parameter uncertainties:
  1  0.241394
  2  0.198348
  3  0.260386
  4  0.141241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91498': 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) = 8429.3870451
delta logL = 0.418305073797

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.298e+00  2.414e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.199e+00  1.983e-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.134e-01  1.412e-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.271e+00  2.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 89.54
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.20 +/- 0.20
Photon Flux (Free Index): 4.83e-07 +/- 9.59e-08
Energy Flux (Free Index): 1.33e-04 +/- 2.44e-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/91498/cmap_HighResolution_697334401_697593601_4FGL_J2253.9+1609_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.38e-07', energy_flux2='1.33e-04', photon_flux_error='7.82e-08', dlogl='4.18e-01', energy_flux='1.41e-04', photon_flux2='4.83e-07', job_status='DONE', time_completed='2023-02-09 02:12:59.503947', photon_index_error2='0.20', photon_index2='2.20', ts='89.68', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='1.32', time_epoch_completed='1675937579.5', return_code='0', job_id='91498', GAL2='0.81', EG2='1.27', return_code2='0', energy_flux_error='2.51e-05', photon_flux_error2='9.59e-08', ts2='89.54', photon_index='2.02' WHERE bin_id='1767' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 02:12:59 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 91498: <4FGL_J2253.9+1609_daily_bin1767> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1767> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Feb  9 02:00:27 2023
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 02:01:41 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 02:01:41 2023
Terminated at Thu Feb  9 02:13:00 2023
Results reported at Thu Feb  9 02:13:00 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1767 343.496 16.1506 697334401 697593601 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 :                                   608.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             341.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            753 sec.

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

