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


Performing analysis on: 4FGL_J2253.9+1609_weekly_bin763
RA = 343.496, Dec = 16.1506
tmin = 700444801, tmax = 701049601
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='449346', job_status='RUN', time_executed='2023-03-21 03:07:15.882167', time_epoch_executed='1679393235.88' WHERE source_name='4FGL J2253.9+1609' and cadence='weekly' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449346

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449346/ft1_4FGL_J2253.9+1609_weekly_bin763.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449346/ft2_4FGL_J2253.9+1609_weekly_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449346/ft1_4FGL_J2253.9+1609_weekly_bin763.fits outfile=/scratch/kocevski/449346/ft1_filteredMKT_4FGL_J2253.9+1609_weekly_bin763.fits ra=343.496 dec=16.1506 rad=12.0 tmin=700444801.0 tmax=701049601.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 9.64
user 9.30
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449346/ft2_4FGL_J2253.9+1609_weekly_bin763.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/449346/ft1_filteredMKT_4FGL_J2253.9+1609_weekly_bin763.fits evtable="EVENTS" outfile="/scratch/kocevski/449346/ft1_filtered_4FGL_J2253.9+1609_weekly_bin763.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.54
user 0.38
sys 0.14

Number of photons that the gtmktime cut: 1190

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449346/ft1_filtered_4FGL_J2253.9+1609_weekly_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/449346/ft2_4FGL_J2253.9+1609_weekly_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/449346/ltcube_700444801_701049601_4FGL_J2253.9+1609_weekly_bin763.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/449346/ft2_4FGL_J2253.9+1609_weekly_bin763.fits
.....................!
real 27.90
user 27.56
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449346/ft1_filtered_4FGL_J2253.9+1609_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/449346/ft2_4FGL_J2253.9+1609_weekly_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/449346/ltcube_700444801_701049601_4FGL_J2253.9+1609_weekly_bin763.fits outfile=/scratch/kocevski/449346/expmap_700444801_701049601_4FGL_J2253.9+1609_weekly_bin763.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/449346/ltcube_700444801_701049601_4FGL_J2253.9+1609_weekly_bin763.fits
.....................!
real 190.55
user 186.48
sys 3.74

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/449346/ft1_filtered_4FGL_J2253.9+1609_weekly_bin763.fits scfile=/scratch/kocevski/449346/ft2_4FGL_J2253.9+1609_weekly_bin763.fits outfile=/scratch/kocevski/449346/cmap_700444801_701049601_4FGL_J2253.9+1609_weekly_bin763.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449346/ft1_filtered_4FGL_J2253.9+1609_weekly_bin763.fits scfile=/scratch/kocevski/449346/ft2_4FGL_J2253.9+1609_weekly_bin763.fits outfile=/scratch/kocevski/449346/cmap_HighResolution_700444801_701049601_4FGL_J2253.9+1609_weekly_bin763.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.58
user 0.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2256       1.0000          .0000       .10000E+07
     2 'norm      '    7.0920       1.0000          .0000       .10000E+07
     3 'Prefactor '    .24826E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.2280       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.1987       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36355E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9686       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13769E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .43507E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .22051       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17705E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    9.9215       1.0000          .0000       .10000E+07
    13 'Prefactor '    .16896E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    7.0595       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.8943       1.0000          .0000       .10000E+07
    16 'Prefactor '    .37500E-03   1.0000          .0000       .10000E+07
    17 'norm      '    15.643       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.9710       1.0000          .0000       .10000E+07
    19 'norm      '    .27094E-05   1.0000          .0000       .10000E+07
    20 'Normalizat'    .86929       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95627       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=   12633.99     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1614 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2235        7.2227       -.55982E-06   -.16678E-01
   2  norm          7.1085        4.1191       -.22544E-07   -.15998E-02
   3  Prefactor     .11102E-09    3.0315       -.77466E-07** at limit **
   4  Prefactor     4.2371        7.4501        .42451E-06    .18454E-01
   5  Prefactor     3.1985        .28705       -.43015E-07   -.12600E-01
   6  Prefactor     .10005E-03    12.610       -.23554E-04** at limit **
   7  norm          3.9687        1.5027        .15927E-07    .36277E-01
   8  Prefactor     .81657E-07    4.6278        .33413E-06** at limit **
   9  Prefactor     .65337E-07    6.6832        .73770E-06** at limit **
  10  Prefactor     .22051        .96792E-01   -.24547E-07   -.78959E-02
  11  Prefactor     .11158E-07    28.386        .39250E-06** at limit **
  12  Prefactor     9.9363        6.4016        .41650E-07    .32947E-02
  13  Prefactor     .16431E-06    3.2592       -.63766E-06** at limit **
  14  Prefactor     7.0336        5.6989       -.15200E-07    .13628E-02
  15  Prefactor     5.8716        6.2246       -.46876E-06   -.10567E-01
  16  Prefactor     .62172E-08    55.533       -.46370E-06** at limit **
  17  norm          15.672        4.5388       -.44082E-06    .66501E-02
  18  Prefactor     5.9457        5.2176        .36415E-06    .45765E-02
  19  norm          .78826E-08    7.9129       -.29019E-06** at limit **
  20  Normalizat    .86938        .20897        .68714E-06    .26553E-05
  21  Prefactor     .95621        .11442        .98241E-07   -.64610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.22352
  norm       = 7.10848
  Prefactor  = 1.11022e-10
  Prefactor  = 4.23707
  Prefactor  = 3.19853
  Prefactor  = 0.000100047
  norm       = 3.96874
  Prefactor  = 8.16569e-08
  Prefactor  = 6.53366e-08
  Prefactor  = 0.220514
  Prefactor  = 1.11577e-08
  Prefactor  = 9.93625
  Prefactor  = 1.64313e-07
  Prefactor  = 7.03359
  Prefactor  = 5.87159
  Prefactor  = 6.21725e-09
  norm       = 15.6724
  Prefactor  = 5.9457
  norm       = 7.88258e-09
  Normalizat = 0.869379
  Prefactor  = 0.956211
 **********
 **   18 **HESSE 
 **********

 FCN=   12633.99     FROM HESSE     STATUS=OK           367 CALLS     1981 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2235        7.6382        .37292E-03   -1.5654    
   2  norm          7.1085        4.1225        .37645E-03   -1.5655    
   3  Prefactor     .11102E-09    3.0293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2371        8.3061        .48982E-03   -1.5667    
   5  Prefactor     3.1985        .28842        .38601E-02   -1.5350    
   6  Prefactor     .10005E-03    3.1661        .75108E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9687        1.5060        .50607E-03   -1.5668    
   8  Prefactor     .81657E-07    5.9957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .65337E-07    7.6398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22051        .98813E-01    .49907E-02   -1.5614    
  11  Prefactor     .11158E-07    28.441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.9363        6.4072        .31788E-03   -1.5645    
  13  Prefactor     .16431E-06    6.1863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.0336        5.7056        .37732E-03   -1.5655    
  15  Prefactor     5.8716        6.6619        .41339E-03   -1.5660    
  16  Prefactor     .62172E-08    55.121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.672        8.7831        .25296E-03   -1.5629    
  18  Prefactor     5.9457        5.6638        .41069E-03   -1.5659    
  19  norm          .78826E-08    8.0273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .86938        .17873        .83512E-01   -.97545    
  21  Prefactor     .95621        .96788E-01    .45718E-01   -.94204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89897e-08
Minuit parameter uncertainties:
  1  7.63817
  2  4.12251
  3  3.59287e-05
  4  8.30608
  5  0.288417
  6  0.00077255
  7  1.50603
  8  0.00139935
  9  0.0014133
  10  0.0988128
  11  0.00112569
  12  6.40717
  13  0.0020164
  14  5.70557
  15  6.66195
  16  0.00117224
  17  8.78311
  18  5.66384
  19  0.000503274
  20  0.17885
  21  0.0968056
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.205e-01  9.881e-02  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.562e-01  9.681e-02  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.694e-01  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.60
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 8.04e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.16e-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) = 12633.2424795
delta logL = 0.750037255531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12633.2416875
delta logL = 0.750829217641

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29313       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.5495       1.0000          .0000       10.000    
     3 'Normalizat'    .82384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97248       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=   12633.24     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      213 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29313        .14057        .50905E-02    .22415E-02
   2  Index1        2.5495        .47764        .23365       -.74911E-04
   3  Normalizat    .82384        .17220        .85484E-01    .21337E-03
   4  Prefactor     .97248        .97265E-01    .45922E-01    .41607E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.293126
  Index1     = 2.54948
  Normalizat = 0.823837
  Prefactor  = 0.972483
 **********
 **   18 **HESSE 
 **********

 FCN=   12633.24     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29313        .11642        .22812E-04   -1.5600    
   2  Index1        2.5495        .44406        .98835E-02   -.51221    
   3  Normalizat    .82384        .20443        .37856E-03   -.99191    
   4  Prefactor     .97248        .11501        .19927E-03   -.93652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1332e-11
Minuit parameter uncertainties:
  1  0.116423
  2  0.444827
  3  0.204624
  4  0.115044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449346': 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) = 12633.2416875
delta logL = 0.750829217675

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.931e-01  1.164e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.549e+00  4.448e-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:  9.725e-01  1.150e-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.238e-01  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.13
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.55 +/- 0.44
Photon Flux (Free Index): 1.18e-07 +/- 5.15e-08
Energy Flux (Free Index): 2.57e-05 +/- 1.01e-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/449346/cmap_HighResolution_700444801_701049601_4FGL_J2253.9+1609_weekly_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.04e-08', energy_flux2='2.57e-05', photon_flux_error='3.60e-08', dlogl='7.51e-01', energy_flux='2.58e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2023-03-21 03:20:25.210723', photon_index_error2='0.44', photon_index2='2.55', ts='10.60', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='0.87', time_epoch_completed='1679394025.21', return_code='0', job_id='449346', GAL2='0.97', EG2='0.82', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='5.15e-08', ts2='12.13', photon_index='2.02' WHERE bin_id='763' AND source_name='4FGL J2253.9+1609' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 21 03:20:25 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 449346: <4FGL_J2253.9+1609_weekly_bin763> in cluster <slac> Done

Job <4FGL_J2253.9+1609_weekly_bin763> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 21 03:05:18 2023
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 03:05:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 21 03:05:20 2023
Terminated at Tue Mar 21 03:20:25 2023
Results reported at Tue Mar 21 03:20:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_weekly_bin763 343.496 16.1506 700444801 701049601 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 :                                   787.15 sec.
    Max Memory :                                 785 MB
    Average Memory :                             314.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2933 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

