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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1726
RA = 343.496, Dec = 16.1506
tmin = 686707201, tmax = 686966401
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='88385', job_status='RUN', time_executed='2022-10-09 00:36:47.872400', time_epoch_executed='1665301007.87' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88385

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88385/ft1_4FGL_J2253.9+1609_daily_bin1726.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88385/ft2_4FGL_J2253.9+1609_daily_bin1726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88385/ft1_4FGL_J2253.9+1609_daily_bin1726.fits outfile=/scratch/kocevski/88385/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1726.fits ra=343.496 dec=16.1506 rad=12.0 tmin=686707201.0 tmax=686966401.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.06
user 2.85
sys 0.19

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

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

Number of photons that the gtmktime cut: 265

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88385/ft1_filtered_4FGL_J2253.9+1609_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88385/ft2_4FGL_J2253.9+1609_daily_bin1726.fits sctable="SC_DATA" expcube=/scratch/kocevski/88385/ltcube_686707201_686966401_4FGL_J2253.9+1609_daily_bin1726.fits outfile=/scratch/kocevski/88385/expmap_686707201_686966401_4FGL_J2253.9+1609_daily_bin1726.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/88385/ltcube_686707201_686966401_4FGL_J2253.9+1609_daily_bin1726.fits
.....................!
real 192.31
user 186.08
sys 4.93

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/88385/ft1_filtered_4FGL_J2253.9+1609_daily_bin1726.fits scfile=/scratch/kocevski/88385/ft2_4FGL_J2253.9+1609_daily_bin1726.fits outfile=/scratch/kocevski/88385/cmap_686707201_686966401_4FGL_J2253.9+1609_daily_bin1726.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/88385/ft1_filtered_4FGL_J2253.9+1609_daily_bin1726.fits scfile=/scratch/kocevski/88385/ft2_4FGL_J2253.9+1609_daily_bin1726.fits outfile=/scratch/kocevski/88385/cmap_HighResolution_686707201_686966401_4FGL_J2253.9+1609_daily_bin1726.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/88385/ft1_filtered_4FGL_J2253.9+1609_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88385/ft2_4FGL_J2253.9+1609_daily_bin1726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88385/Model_4FGL_J2253.9+1609_daily_bin1726.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/88385/ft1_filtered_4FGL_J2253.9+1609_daily_bin1726.fits.....................!
real 41.45
user 39.90
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.201       1.0000          .0000       .10000E+07
     2 'norm      '    .37959E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.764       1.0000          .0000       .10000E+07
     4 'Prefactor '    .91719       1.0000          .0000       .10000E+07
     5 'Prefactor '    .59834       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .14388E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .18118E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    62.408       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.4540       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1050       1.0000          .0000       .10000E+07
    12 'Prefactor '    .49903E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    30.405       1.0000          .0000       .10000E+07
    14 'Prefactor '    .23812E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    8.2513       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.0366       1.0000          .0000       .10000E+07
    17 'norm      '    70.939       1.0000          .0000       .10000E+07
    18 'Prefactor '    .31961E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .28841       1.0000          .0000       .10000E+07
    20 'Normalizat'    .89241       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91974       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=   2911.173     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     2399 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.207        8.7786        .36940E-07   -.83019E-01
   2  norm           .0000        2.8126        .45873E-06** at limit **
   3  Prefactor     10.905        7.1693        .87104E-07   -.68346E-01
   4  Prefactor     1.0563        4.8646        .35129E-07   -.14549E-01
   5  Prefactor     .59832        .38261       -.20483E-05   -.19296E-03
   6  Prefactor     .10000E-03    5.6096        .33637E-05** at limit **
   7  norm           .0000        1.7872       -.47810E-06** at limit **
   8  Prefactor     .17489E-04    182.83        .30526E-05** at limit **
   9  Prefactor     63.208        39.732        .50766E-06    .48635E-01
  10  Prefactor     6.4523        .85561       -.21140E-05   -.42572E-03
  11  Prefactor     8.7837        10.011        .59733E-07    .81845E-02
  12  Prefactor      .0000        18.779        .12988E-05** at limit **
  13  Prefactor     30.960        14.968       -.13076E-06    .19367E-01
  14  Prefactor     .28866E-08    16.924       -.12850E-05** at limit **
  15  Prefactor     6.8387        73.648        .43411E-06    .55647E-01
  16  Prefactor     3.1336        3.0934       -.20479E-06    .29328E-02
  17  norm          71.314        54.313       -.53616E-07    .97316E-01
  18  Prefactor     .66613E-09    16.613       -.21934E-05** at limit **
  19  norm           .0000        48.157        .42500E-06** at limit **
  20  Normalizat    .88930        .55255        .28745E-04   -.13390E-04
  21  Prefactor     .92043        .27929       -.15711E-04   -.28341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.2066
  norm       = 0
  Prefactor  = 10.9049
  Prefactor  = 1.05633
  Prefactor  = 0.598317
  Prefactor  = 0.0001
  norm       = 0
  Prefactor  = 1.74895e-05
  Prefactor  = 63.2083
  Prefactor  = 6.45234
  Prefactor  = 8.78369
  Prefactor  = 0
  Prefactor  = 30.9604
  Prefactor  = 2.88658e-09
  Prefactor  = 6.83872
  Prefactor  = 3.13362
  norm       = 71.3136
  Prefactor  = 6.66134e-10
  norm       = 0
  Normalizat = 0.8893
  Prefactor  = 0.920427
 **********
 **   18 **HESSE 
 **********

 FCN=   2911.173     FROM HESSE     STATUS=OK           359 CALLS     2758 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.207        47.692        .14115E-03   -1.5566    
   2  norm           .0000        2.8126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.905        30.188        .30513E-03   -1.5642    
   4  Prefactor     1.0563        160.57        .44579E-03   -1.5687    
   5  Prefactor     .59832        .40384        .57090E-02   -1.5553    
   6  Prefactor     .10000E-03    5.6059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        1.7837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .17489E-04    191.57        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     63.208        40.678        .12659E-03   -1.5549    
  10  Prefactor     6.4523        .85803        .38653E-02   -1.5200    
  11  Prefactor     8.7837        314.08        .33191E-03   -1.5649    
  12  Prefactor      .0000        18.800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.960        75.109        .18138E-03   -1.5597    
  14  Prefactor     .28866E-08    16.918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8387        209.96        .34877E-03   -1.5656    
  16  Prefactor     3.1336        394.36        .58204E-03   -1.5673    
  17  norm          71.314        62.053        .11874E-03   -1.5539    
  18  Prefactor     .66613E-09    16.609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        48.157        .10376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .88930        .53499        .10689       -.96837    
  21  Prefactor     .92043        .24450        .45256E-01   -.95431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03519e-06
Minuit parameter uncertainties:
  1  47.6924
  2  9.94912e-07
  3  30.1882
  4  26.0476
  5  0.403837
  6  8.49538e-07
  7  2.37378e-06
  8  0.115769
  9  40.6777
  10  0.85803
  11  105.054
  12  2.62401e-07
  13  75.1115
  14  0.000440529
  15  75.7892
  16  70.3121
  17  62.0534
  18  0.000206678
  19  2.19729e-05
  20  0.538225
  21  0.24479
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.452e+00  8.580e-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:  9.204e-01  2.448e-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:  8.893e-01  5.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 224.78
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.35e-06 +/- 3.13e-07
Energy Flux (Fixed Index): 7.55e-04 +/- 1.00e-04

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) = 2909.31809485
delta logL = 1.85481098387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2909.30944202
delta logL = 1.86346381535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4416       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.7482       1.0000          .0000       10.000    
     3 'Normalizat'    1.1108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84500       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=   2909.309     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      201 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4416        .90651        .36513E-02   -.71695E-02
   2  Index1        1.7482        .13263        .27475E-01   -.34404E-04
   3  Normalizat    1.1108        .47059        .97820E-01    .80940E-06
   4  Prefactor     .84504        .23655        .44300E-01    .96459E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.44159
  Index1     = 1.7482
  Normalizat = 1.11078
  Prefactor  = 0.845039
 **********
 **   18 **HESSE 
 **********

 FCN=   2909.309     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4416        .94523        .16135E-04   -1.5241    
   2  Index1        1.7482        .13837        .14890E-03   -.70806    
   3  Normalizat    1.1108        .55718        .43345E-03   -.89407    
   4  Prefactor     .84504        .28021        .24941E-03   -.98089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30838e-10
Minuit parameter uncertainties:
  1  0.945234
  2  0.138398
  3  0.560169
  4  0.280685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88385': 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) = 2909.30944199
delta logL = 1.86346384831

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.442e+00  9.452e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.748e+00  1.384e-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.450e-01  2.807e-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.111e+00  5.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 226.16
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.75 +/- 0.14
Photon Flux (Free Index): 1.99e-06 +/- 3.30e-07
Energy Flux (Free Index): 8.65e-04 +/- 1.37e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/88385/cmap_HighResolution_686707201_686966401_4FGL_J2253.9+1609_daily_bin1726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.35e-06', energy_flux2='8.65e-04', photon_flux_error='3.13e-07', dlogl='1.86e+00', energy_flux='7.55e-04', photon_flux2='1.99e-06', job_status='DONE', time_completed='2022-10-09 00:43:59.284670', photon_index_error2='0.14', photon_index2='1.75', ts='224.78', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.37e-04', EG='0.89', time_epoch_completed='1665301439.28', return_code='0', job_id='88385', GAL2='0.85', EG2='1.11', return_code2='0', energy_flux_error='1.00e-04', photon_flux_error2='3.30e-07', ts2='226.16', photon_index='2.02' WHERE bin_id='1726' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:43:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 88385: <4FGL_J2253.9+1609_daily_bin1726> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1726> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Oct  9 00:35:56 2022
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:36:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:36:07 2022
Terminated at Sun Oct  9 00:44:00 2022
Results reported at Sun Oct  9 00:44:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1726 343.496 16.1506 686707201 686966401 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 :                                   431.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             374.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   472 sec.
    Turnaround time :                            484 sec.

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

