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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1771
RA = 343.496, Dec = 16.1506
tmin = 698371201, tmax = 698630401
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='572119', job_status='RUN', time_executed='2023-02-21 02:28:02.771001', time_epoch_executed='1676975282.77' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572119

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572119/ft1_4FGL_J2253.9+1609_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572119/ft2_4FGL_J2253.9+1609_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572119/ft1_4FGL_J2253.9+1609_daily_bin1771.fits outfile=/scratch/kocevski/572119/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1771.fits ra=343.496 dec=16.1506 rad=12.0 tmin=698371201.0 tmax=698630401.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.32
user 2.89
sys 0.19

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

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

Number of photons that the gtmktime cut: 977

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572119/ft1_filtered_4FGL_J2253.9+1609_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/572119/ft2_4FGL_J2253.9+1609_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/572119/ltcube_698371201_698630401_4FGL_J2253.9+1609_daily_bin1771.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/572119/ft2_4FGL_J2253.9+1609_daily_bin1771.fits
.....................!
real 12.80
user 12.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572119/ft1_filtered_4FGL_J2253.9+1609_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/572119/ft2_4FGL_J2253.9+1609_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/572119/ltcube_698371201_698630401_4FGL_J2253.9+1609_daily_bin1771.fits outfile=/scratch/kocevski/572119/expmap_698371201_698630401_4FGL_J2253.9+1609_daily_bin1771.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/572119/ltcube_698371201_698630401_4FGL_J2253.9+1609_daily_bin1771.fits
.....................!
real 193.08
user 187.17
sys 4.88

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/572119/ft1_filtered_4FGL_J2253.9+1609_daily_bin1771.fits scfile=/scratch/kocevski/572119/ft2_4FGL_J2253.9+1609_daily_bin1771.fits outfile=/scratch/kocevski/572119/cmap_698371201_698630401_4FGL_J2253.9+1609_daily_bin1771.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572119/ft1_filtered_4FGL_J2253.9+1609_daily_bin1771.fits scfile=/scratch/kocevski/572119/ft2_4FGL_J2253.9+1609_daily_bin1771.fits outfile=/scratch/kocevski/572119/cmap_HighResolution_698371201_698630401_4FGL_J2253.9+1609_daily_bin1771.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43067E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .17281E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    17.838       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.3589       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.4789       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5457       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9003       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.6478       1.0000          .0000       .10000E+07
     9 'Prefactor '    .31903E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.2381       1.0000         .10000E-03   10000.    
    11 'Prefactor '    74.511       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.2863       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10266E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .99331       1.0000          .0000       .10000E+07
    15 'Prefactor '    .74279E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    12.590       1.0000          .0000       .10000E+07
    17 'norm      '    .12147E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .25757E-06   1.0000          .0000       .10000E+07
    19 'norm      '    .10483E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0162       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0402       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=   10604.26     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1725 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    5.4600       -.15970E-06** at limit **
   2  norm           .0000        4.1267        .54614E-07** at limit **
   3  Prefactor     17.810        10.819       -.31241E-07   -.57164E-02
   4  Prefactor     2.3731        7.0711        .72907E-07    .48204E-03
   5  Prefactor     1.4791        .31095        .41565E-07    .65626E-04
   6  Prefactor     3.5394        7.0337       -.53388E-06    .85910E-05
   7  norm          1.8999        1.2367        .42945E-08    .25991E-03
   8  Prefactor     2.0881        88.454       -.71574E-06    .16331E-02
   9  Prefactor     .66613E-09    6.1930       -.57793E-07** at limit **
  10  Prefactor     2.2394        .25202        .16146E-07   -.22819E-04
  11  Prefactor     74.207        7.4582        .27032E-07    .11710    
  12  Prefactor     6.1890        6.2410        .12153E-06   -.38949E-03
  13  Prefactor     .34337E-05    362.26        .92513E-06** at limit **
  14  Prefactor     .98837        3.8169       -.44476E-07    .11876E-01
  15  Prefactor     .55511E-10    9.3824        .18241E-06** at limit **
  16  Prefactor     12.567        6.5882        .23207E-07    .26920E-01
  17  norm           .0000        2.6432       -.78214E-07** at limit **
  18  Prefactor      .0000        3.4741       -.41802E-07** at limit **
  19  norm           .0000        3.4768       -.50913E-07** at limit **
  20  Normalizat    1.0163        .24862       -.21666E-05   -.30953E-04
  21  Prefactor     1.0405        .13491        .61876E-06   -.51398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  norm       = 0
  Prefactor  = 17.8096
  Prefactor  = 2.37311
  Prefactor  = 1.47909
  Prefactor  = 3.53938
  norm       = 1.89993
  Prefactor  = 2.08812
  Prefactor  = 6.66134e-10
  Prefactor  = 2.23938
  Prefactor  = 74.2072
  Prefactor  = 6.18901
  Prefactor  = 3.4337e-06
  Prefactor  = 0.988369
  Prefactor  = 5.55112e-11
  Prefactor  = 12.5673
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Normalizat = 1.01633
  Prefactor  = 1.0405
 **********
 **   18 **HESSE 
 **********

 FCN=   10604.26     FROM HESSE     STATUS=OK           361 CALLS     2086 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    5.4622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        4.1064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.810        15.113        .23687E-03   -1.5624    
   4  Prefactor     2.3731        7.1265        .66701E-03   -1.5677    
   5  Prefactor     1.4791        .31701        .55196E-02   -1.5465    
   6  Prefactor     3.5394        7.0410        .53664E-02   -1.5332    
   7  norm          1.8999        1.2357        .75418E-03   -1.5680    
   8  Prefactor     2.0881        87.726        .62626E-03   -1.5679    
   9  Prefactor     .66613E-09    6.1917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2394        .25193        .36199E-02   -1.5409    
  11  Prefactor     74.207        61.660        .11586E-03   -1.5536    
  12  Prefactor     6.1890        6.2492        .40012E-03   -1.5658    
  13  Prefactor     .34337E-05    352.90        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .98837        10.142        .43528E-03   -1.5688    
  15  Prefactor     .55511E-10    9.3810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.567        13.077        .28205E-03   -1.5637    
  17  norm           .0000        2.6482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        3.4654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        3.4790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0163        .21880        .88223E-01   -.92485    
  21  Prefactor     1.0405        .11533        .40519E-01   -.91391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54828e-07
Minuit parameter uncertainties:
  1  7.82391e-05
  2  3.75668e-06
  3  15.113
  4  7.12651
  5  0.317008
  6  7.04268
  7  1.23571
  8  27.0694
  9  0.000126425
  10  0.251929
  11  61.6602
  12  6.2492
  13  0.0696243
  14  6.3323
  15  5.35939e-05
  16  13.0775
  17  8.95148e-07
  18  3.5817e-06
  19  7.45521e-06
  20  0.218995
  21  0.115354
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.239e+00  2.519e-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.041e+00  1.154e-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.016e+00  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 246.56
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 8.17e-07 +/- 9.18e-08
Energy Flux (Fixed Index): 2.62e-04 +/- 2.95e-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) = 10603.8675494
delta logL = 0.391015118277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10603.8667911
delta logL = 0.391773471247

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3473       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1302       1.0000          .0000       10.000    
     3 'Normalizat'    .96938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0588       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=   10603.87     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      199 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3473        .26424        .36625E-02   -.57669E-03
   2  Index1        2.1302        .11930        .63856E-01   -.10454E-03
   3  Normalizat    .96938        .21347        .89944E-01   -.71102E-04
   4  Prefactor     1.0587        .11615        .39423E-01   -.21163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.34728
  Index1     = 2.13018
  Normalizat = 0.969385
  Prefactor  = 1.05874
 **********
 **   18 **HESSE 
 **********

 FCN=   10603.87     FROM HESSE     STATUS=OK            27 CALLS      226 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3473        .27746        .16189E-04   -1.5402    
   2  Index1        2.1302        .12627        .28050E-03   -.61134    
   3  Normalizat    .96938        .24950        .39833E-03   -.94063    
   4  Prefactor     1.0587        .13559        .21097E-03   -.90796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0952e-11
Minuit parameter uncertainties:
  1  0.27746
  2  0.126293
  3  0.249801
  4  0.135637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572119': 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) = 10603.8667911
delta logL = 0.39177347787

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.347e+00  2.775e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.130e+00  1.263e-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.059e+00  1.356e-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:  9.694e-01  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 246.15
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.13 +/- 0.13
Photon Flux (Free Index): 8.65e-07 +/- 1.08e-07
Energy Flux (Free Index): 2.51e-04 +/- 2.96e-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/572119/cmap_HighResolution_698371201_698630401_4FGL_J2253.9+1609_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.17e-07', energy_flux2='2.51e-04', photon_flux_error='9.18e-08', dlogl='3.92e-01', energy_flux='2.62e-04', photon_flux2='8.65e-07', job_status='DONE', time_completed='2023-02-21 02:39:14.414914', photon_index_error2='0.13', photon_index2='2.13', ts='246.56', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.96e-05', EG='1.02', time_epoch_completed='1676975954.41', return_code='0', job_id='572119', GAL2='1.06', EG2='0.97', return_code2='0', energy_flux_error='2.95e-05', photon_flux_error2='1.08e-07', ts2='246.15', photon_index='2.02' WHERE bin_id='1771' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 02:39:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 572119: <4FGL_J2253.9+1609_daily_bin1771> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1771> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 02:25:22 2023
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 02:25:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 02:25:23 2023
Terminated at Tue Feb 21 02:39:14 2023
Results reported at Tue Feb 21 02:39:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1771 343.496 16.1506 698371201 698630401 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 :                                   672.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             315.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            832 sec.

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

