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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1746
RA = 343.496, Dec = 16.1506
tmin = 691891201, tmax = 692150401
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='742532', job_status='RUN', time_executed='2022-12-08 01:50:30.422282', time_epoch_executed='1670493030.42' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742532

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742532/ft1_4FGL_J2253.9+1609_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742532/ft2_4FGL_J2253.9+1609_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742532/ft1_4FGL_J2253.9+1609_daily_bin1746.fits outfile=/scratch/kocevski/742532/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1746.fits ra=343.496 dec=16.1506 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.73
user 4.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/742532/ft2_4FGL_J2253.9+1609_daily_bin1746.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/742532/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/742532/ft1_filtered_4FGL_J2253.9+1609_daily_bin1746.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.53
user 0.31
sys 0.18

Number of photons that the gtmktime cut: 897

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742532/ft1_filtered_4FGL_J2253.9+1609_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/742532/ft2_4FGL_J2253.9+1609_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/742532/ltcube_691891201_692150401_4FGL_J2253.9+1609_daily_bin1746.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/742532/ft2_4FGL_J2253.9+1609_daily_bin1746.fits
.....................!
real 12.01
user 11.64
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742532/ft1_filtered_4FGL_J2253.9+1609_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/742532/ft2_4FGL_J2253.9+1609_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/742532/ltcube_691891201_692150401_4FGL_J2253.9+1609_daily_bin1746.fits outfile=/scratch/kocevski/742532/expmap_691891201_692150401_4FGL_J2253.9+1609_daily_bin1746.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/742532/ltcube_691891201_692150401_4FGL_J2253.9+1609_daily_bin1746.fits
.....................!
real 190.57
user 185.24
sys 4.98

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/742532/ft1_filtered_4FGL_J2253.9+1609_daily_bin1746.fits scfile=/scratch/kocevski/742532/ft2_4FGL_J2253.9+1609_daily_bin1746.fits outfile=/scratch/kocevski/742532/cmap_691891201_692150401_4FGL_J2253.9+1609_daily_bin1746.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742532/ft1_filtered_4FGL_J2253.9+1609_daily_bin1746.fits scfile=/scratch/kocevski/742532/ft2_4FGL_J2253.9+1609_daily_bin1746.fits outfile=/scratch/kocevski/742532/cmap_HighResolution_691891201_692150401_4FGL_J2253.9+1609_daily_bin1746.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.204       1.0000          .0000       .10000E+07
     2 'norm      '    2.2719       1.0000          .0000       .10000E+07
     3 'Prefactor '    .32117E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.9004       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.8099       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9138       1.0000          .0000       .10000E+07
     8 'Prefactor '    27.949       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.6559       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.0123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.960       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.7717       1.0000          .0000       .10000E+07
    13 'Prefactor '    16.508       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.5053       1.0000          .0000       .10000E+07
    15 'Prefactor '    .16011E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .27332E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .33852       1.0000          .0000       .10000E+07
    18 'Prefactor '    11.676       1.0000          .0000       .10000E+07
    19 'norm      '    .29878E-04   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1159       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81652       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=   9179.943     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1693 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.109        6.2917        .35766E-09    .26774E-01
   2  norm          2.2625        4.7007        .10990E-06    .80709E-03
   3  Prefactor     .57676E-07    5.4237       -.26138E-06** at limit **
   4  Prefactor     5.8382        7.1319        .54008E-07    .73708E-02
   5  Prefactor     1.8098        .27325       -.19089E-06   -.19266E-02
   6  Prefactor     .10000E-03    1.9088        .80735E-07** at limit **
   7  norm          2.9073        1.7057       -.28281E-07   -.10061E-02
   8  Prefactor     27.931        2.5897       -.38912E-08    .20105E-01
   9  Prefactor     9.8330        9.7871        .70892E-07    .12814E-01
  10  Prefactor     2.0117        .23494        .48211E-07    .92720E-03
  11  Prefactor     43.085        2.5001        .27540E-08   -.38703E-01
  12  Prefactor     4.8391        6.7420       -.36019E-07    .17078E-02
  13  Prefactor     16.454        10.030       -.18544E-07    .49842E-01
  14  Prefactor     2.4952        4.0280        .47130E-07    .12371E-03
  15  Prefactor     .44964E-07    6.3402       -.42974E-06** at limit **
  16  Prefactor     .25537E-05    18.559        .80666E-07** at limit **
  17  norm          .29718        31.757        .11574E-06   -.22800E-01
  18  Prefactor     11.632        7.4668        .92935E-07    .22943E-01
  19  norm          .51232E-05    16.736        .11659E-06** at limit **
  20  Normalizat    1.1164        .23458        .40334E-06    .64547E-04
  21  Prefactor     .81630        .12880        .76653E-06    .10119E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.1086
  norm       = 2.26251
  Prefactor  = 5.76761e-08
  Prefactor  = 5.83816
  Prefactor  = 1.80977
  Prefactor  = 0.0001
  norm       = 2.90727
  Prefactor  = 27.931
  Prefactor  = 9.83297
  Prefactor  = 2.01175
  Prefactor  = 43.0849
  Prefactor  = 4.83915
  Prefactor  = 16.4541
  Prefactor  = 2.49524
  Prefactor  = 4.4964e-08
  Prefactor  = 2.55374e-06
  norm       = 0.297177
  Prefactor  = 11.6319
  norm       = 5.12324e-06
  Normalizat = 1.11639
  Prefactor  = 0.816302
 **********
 **   18 **HESSE 
 **********

 FCN=   9179.943     FROM HESSE     STATUS=OK           369 CALLS     2062 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.109        17.612        .19923E-03   -1.5608    
   2  norm          2.2625        4.7272        .68106E-03   -1.5678    
   3  Prefactor     .57676E-07    5.5719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8382        7.1620        .41318E-03   -1.5660    
   5  Prefactor     1.8098        .27346        .41981E-02   -1.5439    
   6  Prefactor     .10000E-03    1.9094        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9073        1.7074        .59493E-03   -1.5674    
   8  Prefactor     27.931        24.107        .18919E-03   -1.5602    
   9  Prefactor     9.8330        9.8287        .32225E-03   -1.5645    
  10  Prefactor     2.0117        .23691        .33848E-02   -1.5424    
  11  Prefactor     43.085        37.845        .15258E-03   -1.5577    
  12  Prefactor     4.8391        6.7613        .46035E-03   -1.5664    
  13  Prefactor     16.454        23.032        .24624E-03   -1.5627    
  14  Prefactor     2.4952        4.0541        .64533E-03   -1.5676    
  15  Prefactor     .44964E-07    6.4162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .25537E-05    29.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29718        4.2262        .96986E-02   -1.5697    
  18  Prefactor     11.632        7.8310        .29292E-03   -1.5640    
  19  norm          .51232E-05    33.321        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1164        .20611        .76872E-01   -.89227    
  21  Prefactor     .81630        .11139        .43932E-01   -.99130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10446e-07
Minuit parameter uncertainties:
  1  17.6121
  2  4.72721
  3  0.0011336
  4  7.16199
  5  0.273462
  6  2.96694e-06
  7  1.70738
  8  24.1069
  9  9.82872
  10  0.236912
  11  37.8456
  12  6.76132
  13  23.0324
  14  4.05415
  15  0.00107439
  16  0.0173425
  17  2.24136
  18  7.831
  19  0.0261315
  20  0.20626
  21  0.111425
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.012e+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.163e-01  1.114e-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.116e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 246.65
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 7.34e-07 +/- 8.64e-08
Energy Flux (Fixed Index): 2.36e-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) = 9179.4182572
delta logL = 0.5249632211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9179.41812292
delta logL = 0.52509750961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1022       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1582       1.0000          .0000       10.000    
     3 'Normalizat'    1.0699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83482       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=   9179.418     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      203 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1023        .24208        .34052E-02    .15466E-02
   2  Index1        2.1583        .13180        .67082E-01   -.64555E-04
   3  Normalizat    1.0698        .19882        .78135E-01    .76055E-04
   4  Prefactor     .83484        .11131        .44169E-01   -.13085E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.10226
  Index1     = 2.15831
  Normalizat = 1.0698
  Prefactor  = 0.83484
 **********
 **   18 **HESSE 
 **********

 FCN=   9179.418     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1023        .25075        .15050E-04   -1.5418    
   2  Index1        2.1583        .13754        .29465E-03   -.60448    
   3  Normalizat    1.0698        .23198        .34585E-03   -.90727    
   4  Prefactor     .83484        .12953        .21860E-03   -.98457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79325e-11
Minuit parameter uncertainties:
  1  0.250752
  2  0.137568
  3  0.232202
  4  0.129576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742532': 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) = 9179.41812277
delta logL = 0.525097657686

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.102e+00  2.508e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.158e+00  1.376e-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.348e-01  1.296e-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.070e+00  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 246.43
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.16 +/- 0.14
Photon Flux (Free Index): 7.78e-07 +/- 9.78e-08
Energy Flux (Free Index): 2.21e-04 +/- 2.85e-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/742532/cmap_HighResolution_691891201_692150401_4FGL_J2253.9+1609_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.34e-07', energy_flux2='2.21e-04', photon_flux_error='8.64e-08', dlogl='5.25e-01', energy_flux='2.36e-04', photon_flux2='7.78e-07', job_status='DONE', time_completed='2022-12-08 02:01:07.650170', photon_index_error2='0.14', photon_index2='2.16', ts='246.65', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.85e-05', EG='1.12', time_epoch_completed='1670493667.65', return_code='0', job_id='742532', GAL2='0.83', EG2='1.07', return_code2='0', energy_flux_error='2.77e-05', photon_flux_error2='9.78e-08', ts2='246.43', photon_index='2.02' WHERE bin_id='1746' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 02:01:07 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 742532: <4FGL_J2253.9+1609_daily_bin1746> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1746> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec  8 01:50:20 2022
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:50:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:50:21 2022
Terminated at Thu Dec  8 02:01:08 2022
Results reported at Thu Dec  8 02:01:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1746 343.496 16.1506 691891201 692150401 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 :                                   639.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            648 sec.

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

