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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1750
RA = 343.496, Dec = 16.1506
tmin = 692928001, tmax = 693187201
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='28447', job_status='RUN', time_executed='2022-12-20 01:57:13.403425', time_epoch_executed='1671530233.4' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28447/ft1_4FGL_J2253.9+1609_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28447/ft2_4FGL_J2253.9+1609_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28447/ft1_4FGL_J2253.9+1609_daily_bin1750.fits outfile=/scratch/kocevski/28447/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1750.fits ra=343.496 dec=16.1506 rad=12.0 tmin=692928001.0 tmax=693187201.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.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28447/ft2_4FGL_J2253.9+1609_daily_bin1750.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/28447/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/28447/ft1_filtered_4FGL_J2253.9+1609_daily_bin1750.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: 904

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28447/ft1_filtered_4FGL_J2253.9+1609_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/28447/ft2_4FGL_J2253.9+1609_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/28447/ltcube_692928001_693187201_4FGL_J2253.9+1609_daily_bin1750.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/28447/ft2_4FGL_J2253.9+1609_daily_bin1750.fits
.....................!
real 12.06
user 11.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28447/ft1_filtered_4FGL_J2253.9+1609_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/28447/ft2_4FGL_J2253.9+1609_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/28447/ltcube_692928001_693187201_4FGL_J2253.9+1609_daily_bin1750.fits outfile=/scratch/kocevski/28447/expmap_692928001_693187201_4FGL_J2253.9+1609_daily_bin1750.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/28447/ltcube_692928001_693187201_4FGL_J2253.9+1609_daily_bin1750.fits
.....................!
real 191.77
user 186.95
sys 4.47

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/28447/ft1_filtered_4FGL_J2253.9+1609_daily_bin1750.fits scfile=/scratch/kocevski/28447/ft2_4FGL_J2253.9+1609_daily_bin1750.fits outfile=/scratch/kocevski/28447/cmap_692928001_693187201_4FGL_J2253.9+1609_daily_bin1750.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28447/ft1_filtered_4FGL_J2253.9+1609_daily_bin1750.fits scfile=/scratch/kocevski/28447/ft2_4FGL_J2253.9+1609_daily_bin1750.fits outfile=/scratch/kocevski/28447/cmap_HighResolution_692928001_693187201_4FGL_J2253.9+1609_daily_bin1750.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13321E-02   1.0000          .0000       .10000E+07
     2 'norm      '    1.9356       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10514E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.6107       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.0799       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0346       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7320       1.0000          .0000       .10000E+07
     8 'Prefactor '    38.572       1.0000          .0000       .10000E+07
     9 'Prefactor '    .18071       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.8468       1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.166       1.0000          .0000       .10000E+07
    12 'Prefactor '    .79410E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    22.768       1.0000          .0000       .10000E+07
    14 'Prefactor '    12.171       1.0000          .0000       .10000E+07
    15 'Prefactor '    .28647E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54649E-03   1.0000          .0000       .10000E+07
    17 'norm      '    16.157       1.0000          .0000       .10000E+07
    18 'Prefactor '    .73790       1.0000          .0000       .10000E+07
    19 'norm      '    6.0740       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1790       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87294       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=   9329.919     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1608 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    7.4095       -.25901E-06** at limit **
   2  norm          1.9365        2.3804        .34272E-07    .45793E-04
   3  Prefactor     .36637E-08    8.2524       -.39098E-06** at limit **
   4  Prefactor     7.7201        9.8880        .16047E-06    .79780E-02
   5  Prefactor     3.0801        .38048       -.55249E-09   -.11421E-03
   6  Prefactor     7.0636        7.7394        .32802E-07   -.94480E-04
   7  norm          2.7366        1.6751        .22925E-07    .21053E-03
   8  Prefactor     38.539        2.7383        .82910E-08   -.83393E-01
   9  Prefactor     .49405E-08    1.8759       -.16049E-06** at limit **
  10  Prefactor     2.8476        .29613        .22532E-07    .26626E-04
  11  Prefactor     41.529        48.866        .42085E-06   -.46909E-02
  12  Prefactor      .0000        3.1767        .54718E-07** at limit **
  13  Prefactor     22.966        4.1112        .30834E-07    .26497E-01
  14  Prefactor     12.230        8.2320       -.14143E-07   -.64476E-02
  15  Prefactor     .14988E-08    9.7712       -.24725E-06** at limit **
  16  Prefactor     .11102E-09    16.838        .74185E-06** at limit **
  17  norm          16.002        8.2206        .29365E-07   -.29926E-02
  18  Prefactor     .78029        2.6472        .13715E-06    .48516E-02
  19  norm          6.0767        7.3002        .15750E-06    .54853E-03
  20  Normalizat    1.1778        .29417       -.38562E-05   -.11715E-04
  21  Prefactor     .87304        .15142        .31259E-06   -.19841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  norm       = 1.93648
  Prefactor  = 3.66374e-09
  Prefactor  = 7.72012
  Prefactor  = 3.08014
  Prefactor  = 7.06356
  norm       = 2.73662
  Prefactor  = 38.5394
  Prefactor  = 4.94049e-09
  Prefactor  = 2.84761
  Prefactor  = 41.5294
  Prefactor  = 0
  Prefactor  = 22.9658
  Prefactor  = 12.2297
  Prefactor  = 1.4988e-09
  Prefactor  = 1.11022e-10
  norm       = 16.0022
  Prefactor  = 0.780294
  norm       = 6.07667
  Normalizat = 1.17779
  Prefactor  = 0.873035
 **********
 **   18 **HESSE 
 **********

 FCN=   9329.919     FROM HESSE     STATUS=OK           367 CALLS     1975 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    7.4116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9365        2.3882        .74610E-03   -1.5680    
   3  Prefactor     .36637E-08    8.4434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7201        9.9161        .36327E-03   -1.5652    
   5  Prefactor     3.0801        .37990        .44741E-02   -1.5357    
   6  Prefactor     7.0636        7.7378        .37813E-02   -1.5176    
   7  norm          2.7366        1.7026        .61578E-03   -1.5675    
   8  Prefactor     38.539        30.225        .16103E-03   -1.5584    
   9  Prefactor     .49405E-08    5.9399        .12130E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8476        .29903        .36261E-02   -1.5370    
  11  Prefactor     41.529        48.778        .15780E-03   -1.5579    
  12  Prefactor      .0000        3.1739        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.966        28.257        .20963E-03   -1.5612    
  14  Prefactor     12.230        8.2166        .28689E-03   -1.5638    
  15  Prefactor     .14988E-08    9.7737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    16.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.002        13.244        .24890E-03   -1.5628    
  18  Prefactor     .78029        24.014        .57683E-03   -1.5690    
  19  norm          6.0767        7.3008        .40715E-03   -1.5659    
  20  Normalizat    1.1778        .25050        .86602E-01   -.87292    
  21  Prefactor     .87304        .12752        .44659E-01   -.97090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96765e-07
Minuit parameter uncertainties:
  1  0.000115987
  2  2.38815
  3  0.000350509
  4  9.91616
  5  0.379898
  6  7.73892
  7  1.70258
  8  30.2256
  9  0.000342743
  10  0.299029
  11  48.7787
  12  4.30345e-06
  13  28.2574
  14  8.21665
  15  0.000243369
  16  7.87395e-05
  17  13.2443
  18  8.65757
  19  7.30084
  20  0.250752
  21  0.127568
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.848e+00  2.990e-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.730e-01  1.276e-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.178e+00  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 311.45
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.04e-06 +/- 1.09e-07
Energy Flux (Fixed Index): 3.33e-04 +/- 3.50e-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) = 9329.37853885
delta logL = 0.540098771111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9329.37683407
delta logL = 0.541803545106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6952       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9024       1.0000          .0000       10.000    
     3 'Normalizat'    1.2346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85122       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=   9329.377     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      198 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6955        .30716        .35716E-02   -.97257E-04
   2  Index1        1.9024        .10476        .52216E-01   -.83471E-04
   3  Normalizat    1.2345        .23544        .85053E-01    .20704E-04
   4  Prefactor     .85127        .12709        .44380E-01    .14707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69547
  Index1     = 1.90238
  Normalizat = 1.23446
  Prefactor  = 0.851266
 **********
 **   18 **HESSE 
 **********

 FCN=   9329.377     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .16E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6955        .32505        .15785E-04   -1.5380    
   2  Index1        1.9024        .11130        .23005E-03   -.66814    
   3  Normalizat    1.2345        .27993        .37660E-03   -.85545    
   4  Prefactor     .85127        .15075        .24210E-03   -.97865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59853e-14
Minuit parameter uncertainties:
  1  0.325046
  2  0.111318
  3  0.280271
  4  0.150824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28447': 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) = 9329.37683369
delta logL = 0.541803924536

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.695e+00  3.250e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.902e+00  1.113e-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.513e-01  1.508e-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.234e+00  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 309.00
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.90 +/- 0.11
Photon Flux (Free Index): 9.79e-07 +/- 1.18e-07
Energy Flux (Free Index): 3.54e-04 +/- 4.31e-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/28447/cmap_HighResolution_692928001_693187201_4FGL_J2253.9+1609_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-06', energy_flux2='3.54e-04', photon_flux_error='1.09e-07', dlogl='5.42e-01', energy_flux='3.33e-04', photon_flux2='9.79e-07', job_status='DONE', time_completed='2022-12-20 02:07:45.306438', photon_index_error2='0.11', photon_index2='1.90', ts='311.45', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='4.31e-05', EG='1.18', time_epoch_completed='1671530865.31', return_code='0', job_id='28447', GAL2='0.85', EG2='1.23', return_code2='0', energy_flux_error='3.50e-05', photon_flux_error2='1.18e-07', ts2='309.00', photon_index='2.02' WHERE bin_id='1750' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 02:07:45 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 28447: <4FGL_J2253.9+1609_daily_bin1750> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 01:55:20 2022
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:55:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:55:20 2022
Terminated at Tue Dec 20 02:07:45 2022
Results reported at Tue Dec 20 02:07:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1750 343.496 16.1506 692928001 693187201 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 :                                   634.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             359.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            745 sec.

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

