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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1769
RA = 343.496, Dec = 16.1506
tmin = 697852801, tmax = 698112001
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='446442', job_status='RUN', time_executed='2023-02-15 01:37:59.069701', time_epoch_executed='1676453879.07' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446442

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446442/ft1_4FGL_J2253.9+1609_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446442/ft2_4FGL_J2253.9+1609_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446442/ft1_4FGL_J2253.9+1609_daily_bin1769.fits outfile=/scratch/kocevski/446442/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1769.fits ra=343.496 dec=16.1506 rad=12.0 tmin=697852801.0 tmax=698112001.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.41
user 4.17
sys 0.20

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

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

Number of photons that the gtmktime cut: 937

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446442/ft1_filtered_4FGL_J2253.9+1609_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/446442/ft2_4FGL_J2253.9+1609_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/446442/ltcube_697852801_698112001_4FGL_J2253.9+1609_daily_bin1769.fits outfile=/scratch/kocevski/446442/expmap_697852801_698112001_4FGL_J2253.9+1609_daily_bin1769.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/446442/ltcube_697852801_698112001_4FGL_J2253.9+1609_daily_bin1769.fits
.....................!
real 189.60
user 184.86
sys 4.42

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/446442/ft1_filtered_4FGL_J2253.9+1609_daily_bin1769.fits scfile=/scratch/kocevski/446442/ft2_4FGL_J2253.9+1609_daily_bin1769.fits outfile=/scratch/kocevski/446442/cmap_697852801_698112001_4FGL_J2253.9+1609_daily_bin1769.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.53
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.603       1.0000          .0000       .10000E+07
     2 'norm      '    .27200E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.6596       1.0000          .0000       .10000E+07
     4 'Prefactor '    10.032       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.2753       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19463E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    4.2180       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22032E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .37342E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.2615       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23412E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22129E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    33.105       1.0000          .0000       .10000E+07
    14 'Prefactor '    .52532E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .18657E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    58.328       1.0000          .0000       .10000E+07
    17 'norm      '    .36590E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .67911       1.0000          .0000       .10000E+07
    19 'norm      '    .16176E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.3030       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72813       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=   9752.425     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     1652 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.713        2.5047        .83554E-08   -.42343E-01
   2  norm           .0000        2.4823        .80053E-07** at limit **
   3  Prefactor     6.6663        1.5561        .18192E-08    .12521E-01
   4  Prefactor     10.062        2.4053        .25882E-07   -.12490E-01
   5  Prefactor     3.2770        .40612       -.99279E-07   -.18758E-02
   6  Prefactor     .10000E-03    9.9902        .23664E-05** at limit **
   7  norm          4.2219        2.1462       -.56662E-08   -.65424E-03
   8  Prefactor     .98904E-06    3.7353        .21069E-07** at limit **
   9  Prefactor      .0000        5.6381        .55838E-07** at limit **
  10  Prefactor     5.2620        .39552       -.12666E-07   -.35756E-03
  11  Prefactor     .31042E-06    14.108       -.16616E-07** at limit **
  12  Prefactor     .25591E-06    3.1863        .36190E-07** at limit **
  13  Prefactor     33.626        4.2486        .87926E-08    .27626E-01
  14  Prefactor     .22204E-09    5.1851       -.45373E-07** at limit **
  15  Prefactor     .71587E-06    5.5286        .59752E-07** at limit **
  16  Prefactor     60.079        30.101        .52668E-07   -.60337E-02
  17  norm          .63782E-07    4.6943        .58189E-07** at limit **
  18  Prefactor     .68636        8.6668       -.18223E-06   -.24830E-02
  19  norm          .22204E-08    7.5109        .14846E-06** at limit **
  20  Normalizat    1.2985        .28949        .34884E-05   -.38840E-05
  21  Prefactor     .72891        .14521       -.23487E-05   -.84400E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7128
  norm       = 0
  Prefactor  = 6.66634
  Prefactor  = 10.0623
  Prefactor  = 3.27697
  Prefactor  = 0.0001
  norm       = 4.22187
  Prefactor  = 9.89042e-07
  Prefactor  = 0
  Prefactor  = 5.26204
  Prefactor  = 3.10418e-07
  Prefactor  = 2.55906e-07
  Prefactor  = 33.6264
  Prefactor  = 2.22045e-10
  Prefactor  = 7.15872e-07
  Prefactor  = 60.0792
  norm       = 6.37823e-08
  Prefactor  = 0.686359
  norm       = 2.22045e-09
  Normalizat = 1.29849
  Prefactor  = 0.728913
 **********
 **   18 **HESSE 
 **********

 FCN=   9752.425     FROM HESSE     STATUS=OK           359 CALLS     2011 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.713        23.499        .30745E-03   -1.5643    
   2  norm           .0000        2.4789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.6663        16.137        .38861E-03   -1.5656    
   4  Prefactor     10.062        10.347        .31613E-03   -1.5645    
   5  Prefactor     3.2770        .41554        .47744E-02   -1.5346    
   6  Prefactor     .10000E-03    9.7450        .10127E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.2219        2.1472        .49042E-03   -1.5667    
   8  Prefactor     .98904E-06    14.620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.6386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2620        .39457        .36345E-02   -1.5249    
  11  Prefactor     .31042E-06    16.908        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .25591E-06    14.950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.626        25.548        .17382E-03   -1.5592    
  14  Prefactor     .22204E-09    5.1711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .71587E-06    14.119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     60.079        30.146        .13095E-03   -1.5553    
  17  norm          .63782E-07    14.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .68636        9.0923        .62421E-03   -1.5691    
  19  norm          .22204E-08    7.5318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2985        .24836        .88945E-01   -.83611    
  21  Prefactor     .72891        .12384        .42774E-01   -1.0240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03785e-07
Minuit parameter uncertainties:
  1  23.4988
  2  1.62095e-05
  3  16.137
  4  10.3469
  5  0.415545
  6  6.39481e-05
  7  2.14715
  8  0.00760523
  9  2.30208e-05
  10  0.394566
  11  0.00458201
  12  0.00391182
  13  25.5482
  14  7.18747e-05
  15  0.0063583
  16  30.1465
  17  0.00194598
  18  4.99624
  19  0.000257215
  20  0.248592
  21  0.123884
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.262e+00  3.946e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  7.289e-01  1.239e-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.298e+00  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 698.97
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.92e-06 +/- 1.44e-07
Energy Flux (Fixed Index): 6.16e-04 +/- 4.62e-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) = 9751.70156176
delta logL = 0.723670546246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9751.69565646
delta logL = 0.729575851992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0023       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9176       1.0000          .0000       10.000    
     3 'Normalizat'    1.3774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70050       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=   9751.696     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0023        .42238        .35854E-02   -.37192E-02
   2  Index1        1.9177        .79438E-01    .39303E-01   -.86974E-04
   3  Normalizat    1.3774        .23722        .87098E-01    .20843E-04
   4  Prefactor     .70051        .12139        .61310E-01    .23761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.00228
  Index1     = 1.91765
  Normalizat = 1.37743
  Prefactor  = 0.700514
 **********
 **   18 **HESSE 
 **********

 FCN=   9751.696     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0023        .44434        .15843E-04   -1.5261    
   2  Index1        1.9177        .83679E-01    .17347E-03   -.66425    
   3  Normalizat    1.3774        .28650        .38565E-03   -.81284    
   4  Prefactor     .70051        .14588        .27119E-03   -1.0351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47068e-11
Minuit parameter uncertainties:
  1  0.444342
  2  0.0836849
  3  0.286835
  4  0.145956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446442': 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) = 9751.69565644
delta logL = 0.729575867806

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.002e+00  4.443e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.918e+00  8.368e-02  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:  7.005e-01  1.460e-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.377e+00  2.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 684.28
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.92 +/- 0.08
Photon Flux (Free Index): 1.82e-06 +/- 1.62e-07
Energy Flux (Free Index): 6.47e-04 +/- 5.64e-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/446442/cmap_HighResolution_697852801_698112001_4FGL_J2253.9+1609_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.92e-06', energy_flux2='6.47e-04', photon_flux_error='1.44e-07', dlogl='7.30e-01', energy_flux='6.16e-04', photon_flux2='1.82e-06', job_status='DONE', time_completed='2023-02-15 01:48:49.023048', photon_index_error2='0.08', photon_index2='1.92', ts='698.97', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='5.64e-05', EG='1.30', time_epoch_completed='1676454529.02', return_code='0', job_id='446442', GAL2='0.70', EG2='1.38', return_code2='0', energy_flux_error='4.62e-05', photon_flux_error2='1.62e-07', ts2='684.28', photon_index='2.02' WHERE bin_id='1769' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:48:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 446442: <4FGL_J2253.9+1609_daily_bin1769> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1769> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Feb 15 01:35:17 2023
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 01:35:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 01:35:18 2023
Terminated at Wed Feb 15 01:48:49 2023
Results reported at Wed Feb 15 01:48:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1769 343.496 16.1506 697852801 698112001 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 :                                   650.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             319.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            812 sec.

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

