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


Performing analysis on: 4FGL_J2253.9+1609_weekly_bin740
RA = 343.496, Dec = 16.1506
tmin = 686534401, tmax = 687139201
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='835736', job_status='RUN', time_executed='2022-10-11 00:59:17.583071', time_epoch_executed='1665475157.58' WHERE source_name='4FGL J2253.9+1609' and cadence='weekly' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835736

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835736/ft1_4FGL_J2253.9+1609_weekly_bin740.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835736/ft2_4FGL_J2253.9+1609_weekly_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835736/ft1_4FGL_J2253.9+1609_weekly_bin740.fits outfile=/scratch/kocevski/835736/ft1_filteredMKT_4FGL_J2253.9+1609_weekly_bin740.fits ra=343.496 dec=16.1506 rad=12.0 tmin=686534401.0 tmax=687139201.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 7.20
user 6.90
sys 0.28

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

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

Number of photons that the gtmktime cut: 944

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835736/ft1_filtered_4FGL_J2253.9+1609_weekly_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/835736/ft2_4FGL_J2253.9+1609_weekly_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/835736/ltcube_686534401_687139201_4FGL_J2253.9+1609_weekly_bin740.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/835736/ft2_4FGL_J2253.9+1609_weekly_bin740.fits
.....................!
real 27.63
user 27.19
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835736/ft1_filtered_4FGL_J2253.9+1609_weekly_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/835736/ft2_4FGL_J2253.9+1609_weekly_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/835736/ltcube_686534401_687139201_4FGL_J2253.9+1609_weekly_bin740.fits outfile=/scratch/kocevski/835736/expmap_686534401_687139201_4FGL_J2253.9+1609_weekly_bin740.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/835736/ltcube_686534401_687139201_4FGL_J2253.9+1609_weekly_bin740.fits
.....................!
real 191.27
user 185.53
sys 5.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/835736/ft1_filtered_4FGL_J2253.9+1609_weekly_bin740.fits scfile=/scratch/kocevski/835736/ft2_4FGL_J2253.9+1609_weekly_bin740.fits outfile=/scratch/kocevski/835736/cmap_686534401_687139201_4FGL_J2253.9+1609_weekly_bin740.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.57
user 0.39
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.085       1.0000          .0000       .10000E+07
     2 'norm      '    .12392E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .30150E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11311E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .44327       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .16255E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    71.093       1.0000          .0000       .10000E+07
     9 'Prefactor '    44.833       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.6787       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.616       1.0000          .0000       .10000E+07
    12 'Prefactor '    .73598E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    35.706       1.0000          .0000       .10000E+07
    14 'Prefactor '    .36522E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .18621E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18162E-03   1.0000          .0000       .10000E+07
    17 'norm      '    11.892       1.0000          .0000       .10000E+07
    18 'Prefactor '    .27195E-01   1.0000          .0000       .10000E+07
    19 'norm      '    .21513E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0856       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98239       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=   9948.510     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1620 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.305        20.252        .12316E-08   -.25801    
   2  norm           .0000        1.1019        .16870E-07** at limit **
   3  Prefactor     .23426E-07    7.9900        .32122E-06** at limit **
   4  Prefactor      .0000        4.9181        .23914E-06** at limit **
   5  Prefactor     .44361        .20511       -.11131E-06   -.17328E-02
   6  Prefactor     .10000E-03    3.4023       -.23202E-06** at limit **
   7  norm           .0000        1.5897       -.57256E-07** at limit **
   8  Prefactor     70.512        21.312        .21845E-07    .21297    
   9  Prefactor     44.806        2.2979        .80536E-08   -.62334E-01
  10  Prefactor     5.6804        .41669        .60423E-07    .59987E-03
  11  Prefactor     18.378        20.048       -.58834E-07   -.68996E-01
  12  Prefactor     .11102E-09    2.2829       -.23046E-06** at limit **
  13  Prefactor     35.825        3.8995       -.46149E-08   -.66690E-02
  14  Prefactor     .21982E-07    14.672       -.25445E-06** at limit **
  15  Prefactor     .18818E-07    6.3320        .17017E-07** at limit **
  16  Prefactor     .56148E-05    68.798        .72213E-06** at limit **
  17  norm          11.951        12.078        .42780E-07    .61156E-01
  18  Prefactor     .55511E-10    18.046       -.19903E-06** at limit **
  19  norm          .14772E-06    4.5860        .39708E-07** at limit **
  20  Normalizat    1.0850        .28821       -.11648E-04   -.17814E-03
  21  Prefactor     .98229        .15098        .52714E-05   -.73409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.3048
  norm       = 0
  Prefactor  = 2.34257e-08
  Prefactor  = 0
  Prefactor  = 0.443612
  Prefactor  = 0.0001
  norm       = 0
  Prefactor  = 70.5121
  Prefactor  = 44.8062
  Prefactor  = 5.68037
  Prefactor  = 18.3783
  Prefactor  = 1.11022e-10
  Prefactor  = 35.8251
  Prefactor  = 2.19824e-08
  Prefactor  = 1.88183e-08
  Prefactor  = 5.61479e-06
  norm       = 11.951
  Prefactor  = 5.55112e-11
  norm       = 1.47715e-07
  Normalizat = 1.08499
  Prefactor  = 0.982291
 **********
 **   18 **HESSE 
 **********

 FCN=   9948.510     FROM HESSE     STATUS=OK           359 CALLS     1979 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.305        26.242        .15796E-03   -1.5581    
   2  norm           .0000        1.1030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .23426E-07    8.1662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        4.9282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .44361        .20977        .65798E-02   -1.5575    
   6  Prefactor     .10000E-03    3.3816        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        1.5636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     70.512        47.045        .11861E-03   -1.5540    
   9  Prefactor     44.806        18.465        .14936E-03   -1.5574    
  10  Prefactor     5.6804        .42529        .37138E-02   -1.5231    
  11  Prefactor     18.378        46.352        .23835E-03   -1.5622    
  12  Prefactor     .11102E-09    2.2868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     35.825        29.958        .16737E-03   -1.5588    
  14  Prefactor     .21982E-07    14.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .18818E-07    9.2156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .56148E-05    70.541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.951        13.924        .29024E-03   -1.5639    
  18  Prefactor     .55511E-10    8.4398        .90028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .14772E-06    9.0409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0850        .25182        .97286E-01   -.90235    
  21  Prefactor     .98229        .12933        .46047E-01   -.93322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33947e-06
Minuit parameter uncertainties:
  1  26.2417
  2  3.7382e-06
  3  0.000875028
  4  2.12645e-05
  5  0.209772
  6  4.10388e-06
  7  5.01425e-06
  8  47.0449
  9  18.4653
  10  0.425287
  11  46.3529
  12  2.90432e-05
  13  29.9579
  14  0.00113829
  15  0.000833354
  16  0.0398036
  17  13.9237
  18  3.66434e-05
  19  0.00231144
  20  0.252102
  21  0.129369
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.680e+00  4.253e-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.823e-01  1.294e-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.085e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 644.43
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.07e-06 +/- 1.55e-07
Energy Flux (Fixed Index): 6.65e-04 +/- 4.98e-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) = 9948.15971896
delta logL = 0.350369128766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9948.1512366
delta logL = 0.358851495561

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5067       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9514       1.0000          .0000       10.000    
     3 'Normalizat'    1.1351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96377       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=   9948.151     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5067        .44045        .36795E-02   -.36872E-03
   2  Index1        1.9514        .76531E-01    .38879E-01   -.14811E-03
   3  Normalizat    1.1351        .24610        .95593E-01    .26104E-04
   4  Prefactor     .96376        .12902        .45813E-01    .87263E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.50668
  Index1     = 1.9514
  Normalizat = 1.13506
  Prefactor  = 0.963762
 **********
 **   18 **HESSE 
 **********

 FCN=   9948.151     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5067        .45882        .16260E-04   -1.5239    
   2  Index1        1.9514        .79894E-01    .17161E-03   -.65571    
   3  Normalizat    1.1351        .29030        .42352E-03   -.88634    
   4  Prefactor     .96376        .15209        .24201E-03   -.93947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67752e-12
Minuit parameter uncertainties:
  1  0.458816
  2  0.0798994
  3  0.290708
  4  0.152153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835736': 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) = 9948.1512366
delta logL = 0.358851496121

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.507e+00  4.588e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.951e+00  7.990e-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:  9.638e-01  1.522e-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.135e+00  2.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 653.92
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.95 +/- 0.08
Photon Flux (Free Index): 2.00e-06 +/- 1.69e-07
Energy Flux (Free Index): 6.88e-04 +/- 5.79e-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/835736/cmap_HighResolution_686534401_687139201_4FGL_J2253.9+1609_weekly_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.07e-06', energy_flux2='6.88e-04', photon_flux_error='1.55e-07', dlogl='3.59e-01', energy_flux='6.65e-04', photon_flux2='2.00e-06', job_status='DONE', time_completed='2022-10-11 01:10:54.640730', photon_index_error2='0.08', photon_index2='1.95', ts='644.43', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='5.79e-05', EG='1.08', time_epoch_completed='1665475854.64', return_code='0', job_id='835736', GAL2='0.96', EG2='1.14', return_code2='0', energy_flux_error='4.98e-05', photon_flux_error2='1.69e-07', ts2='653.92', photon_index='2.02' WHERE bin_id='740' AND source_name='4FGL J2253.9+1609' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 11 01:10:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 835736: <4FGL_J2253.9+1609_weekly_bin740> in cluster <slac> Done

Job <4FGL_J2253.9+1609_weekly_bin740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Oct 11 00:55:25 2022
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 11 00:55:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 11 00:55:26 2022
Terminated at Tue Oct 11 01:10:55 2022
Results reported at Tue Oct 11 01:10:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_weekly_bin740 343.496 16.1506 686534401 687139201 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 :                                   698.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            930 sec.

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

