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 100 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1687
RA = 343.496, Dec = 16.1506
tmin = 676598401, tmax = 676857601
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='700334', job_status='RUN', time_executed='2022-06-14 01:38:20.546308', time_epoch_executed='1655195900.55' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1687'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700334

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700334/ft1_4FGL_J2253.9+1609_daily_bin1687.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700334/ft2_4FGL_J2253.9+1609_daily_bin1687.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700334/ft1_4FGL_J2253.9+1609_daily_bin1687.fits outfile=/scratch/kocevski/700334/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1687.fits ra=343.496 dec=16.1506 rad=12.0 tmin=676598401.0 tmax=676857601.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.01
user 2.70
sys 0.20

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

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

Number of photons that the gtmktime cut: 1037

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700334/ft1_filtered_4FGL_J2253.9+1609_daily_bin1687.fits" evtable="EVENTS" scfile=/scratch/kocevski/700334/ft2_4FGL_J2253.9+1609_daily_bin1687.fits sctable="SC_DATA" outfile=/scratch/kocevski/700334/ltcube_676598401_676857601_4FGL_J2253.9+1609_daily_bin1687.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/700334/ft2_4FGL_J2253.9+1609_daily_bin1687.fits
.....................!
real 14.09
user 13.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700334/ft1_filtered_4FGL_J2253.9+1609_daily_bin1687.fits evtable="EVENTS" scfile=/scratch/kocevski/700334/ft2_4FGL_J2253.9+1609_daily_bin1687.fits sctable="SC_DATA" expcube=/scratch/kocevski/700334/ltcube_676598401_676857601_4FGL_J2253.9+1609_daily_bin1687.fits outfile=/scratch/kocevski/700334/expmap_676598401_676857601_4FGL_J2253.9+1609_daily_bin1687.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/700334/ltcube_676598401_676857601_4FGL_J2253.9+1609_daily_bin1687.fits
.....................!
real 189.83
user 185.66
sys 3.76

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/700334/ft1_filtered_4FGL_J2253.9+1609_daily_bin1687.fits scfile=/scratch/kocevski/700334/ft2_4FGL_J2253.9+1609_daily_bin1687.fits outfile=/scratch/kocevski/700334/cmap_676598401_676857601_4FGL_J2253.9+1609_daily_bin1687.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700334/ft1_filtered_4FGL_J2253.9+1609_daily_bin1687.fits scfile=/scratch/kocevski/700334/ft2_4FGL_J2253.9+1609_daily_bin1687.fits outfile=/scratch/kocevski/700334/cmap_HighResolution_676598401_676857601_4FGL_J2253.9+1609_daily_bin1687.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.400       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6533       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37312E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.514       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .91128       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1769       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.840       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .58718       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    78.242       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3331       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0890       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8311       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.787       1.0000         .10000E-03   10000.    
    20 'norm      '    8.5490       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.799       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79201       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99375       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11146.90     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2707 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.400        17.037        .50047E-07    .73892E-05
   2  norm          1.6536        3.6119        .15308E-05    .70939E-03
   3  Prefactor     .10007E-03    8.7149       -.25445E-05** at limit **
   4  Prefactor     26.516        11.545       -.87235E-07    .71007E-04
   5  Prefactor     .91136        .20522        .50147E-08    .41071E-02
   6  Prefactor     .10000E-03    3.6006        .14254E-07** at limit **
   7  norm          1.1768        1.1904        .59841E-08    .51030E-04
   8  Prefactor     .10000E-03    11.516       -.29825E-06** at limit **
   9  Prefactor     34.841        12.382        .50024E-07    .39348E-04
  10  Prefactor     .10000E-03    8.5234       -.16398E-06** at limit **
  11  Prefactor     .58719        .14145        .39499E-08    .11766E-02
  12  Prefactor     .10000E-03    2.3836        .18078E-07** at limit **
  13  Prefactor     78.242        34.706        .14435E-06   -.20397E-04
  14  Prefactor     3.3329        5.5182        .91024E-06    .22049E-03
  15  Prefactor     .10000E-03    5.7218        .33502E-07** at limit **
  16  Prefactor     6.0900        18.278        .59719E-06    .24376E-04
  17  Prefactor     .10000E-03    4.4397        .81347E-06** at limit **
  18  Prefactor     1.8316        12.537        .26422E-05    .12278E-03
  19  Prefactor     34.795        17.747       -.53090E-06    .21770E-03
  20  norm          8.5495        7.6036       -.18071E-06   -.45523E-04
  21  Prefactor     16.801        7.3665        .22724E-07   -.38891E-04
  22  norm          .10000E-03    4.1652        .16656E-06** at limit **
  23  Normalizat    .79169        .19227       -.69877E-06    .12313E-03
  24  Prefactor     .99392        .10077       -.38206E-07    .23168E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4001
  norm       = 1.65361
  Prefactor  = 0.000100075
  Prefactor  = 26.5157
  Prefactor  = 0.911359
  Prefactor  = 0.0001
  norm       = 1.1768
  Prefactor  = 0.0001
  Prefactor  = 34.8409
  Prefactor  = 0.0001
  Prefactor  = 0.587186
  Prefactor  = 0.0001
  Prefactor  = 78.2421
  Prefactor  = 3.33288
  Prefactor  = 0.0001
  Prefactor  = 6.09003
  Prefactor  = 0.0001
  Prefactor  = 1.8316
  Prefactor  = 34.7947
  norm       = 8.54951
  Prefactor  = 16.8011
  norm       = 0.0001
  Normalizat = 0.791689
  Prefactor  = 0.993921
 **********
 **   18 **HESSE 
 **********

 FCN=   11146.90     FROM HESSE     STATUS=OK           401 CALLS     3108 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.400        17.033        .79484E-04   -1.4700    
   2  norm          1.6536        3.6519        .28822E-03   -1.5451    
   3  Prefactor     .10007E-03    21.260        .44523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.516        11.536        .77800E-04   -1.4678    
   5  Prefactor     .91136        .20181        .21112E-04   -1.5517    
   6  Prefactor     .10000E-03    3.6309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1768        1.1903        .42199E-04   -1.5491    
   8  Prefactor     .10000E-03    11.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.841        12.369        .67893E-04   -1.4527    
  10  Prefactor     .10000E-03    8.5391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .58719        .14073        .18203E-04   -1.5555    
  12  Prefactor     .10000E-03    2.3878        .15917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     78.242        34.715        .45400E-04   -1.3937    
  14  Prefactor     3.3329        5.5286        .22170E-03   -1.5343    
  15  Prefactor     .10000E-03    5.7686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0900        18.255        .16270E-03   -1.5214    
  17  Prefactor     .10000E-03    4.5541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8316        12.592        .30841E-03   -1.5437    
  19  Prefactor     34.795        17.085        .67944E-04   -1.4528    
  20  norm          8.5495        7.5369        .13710E-03   -1.5123    
  21  Prefactor     16.801        7.3648        .97717E-04   -1.4888    
  22  norm          .10000E-03    4.1763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .79169        .21941        .37594E-03   -1.0038    
  24  Prefactor     .99392        .11706        .19326E-03   -.92932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15651e-09
Minuit parameter uncertainties:
  1  17.0365
  2  3.65238
  3  0.00251804
  4  11.5366
  5  0.201812
  6  6.43301e-07
  7  1.1903
  8  2.90836e-05
  9  12.3702
  10  9.48999e-06
  11  0.140734
  12  6.3437e-07
  13  34.7244
  14  5.52941
  15  2.10253e-05
  16  18.2721
  17  8.7238e-05
  18  9.60762
  19  17.0878
  20  7.53775
  21  7.36524
  22  6.45597e-06
  23  0.219654
  24  0.117092
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.872e-01  1.407e-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.939e-01  1.171e-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:  7.917e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.03
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.14e-07 +/- 5.13e-08
Energy Flux (Fixed Index): 6.88e-05 +/- 1.65e-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) = 11146.3957332
delta logL = 0.503192049195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11146.3953847
delta logL = 0.503540550144

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66226       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2951       1.0000          .0000       10.000    
     3 'Normalizat'    .73988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0147       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=   11146.40     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66220        .15142        .41537E-02    .95115E-03
   2  Index1        2.2949        .25571        .14642       -.10397E-03
   3  Normalizat    .73969        .18127        .87478E-01    .49864E-04
   4  Prefactor     1.0148        .10246        .42710E-01   -.11681E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.662202
  Index1     = 2.29492
  Normalizat = 0.739688
  Prefactor  = 1.01483
 **********
 **   18 **HESSE 
 **********

 FCN=   11146.40     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66220        .15765        .18426E-04   -1.5545    
   2  Index1        2.2949        .28148        .61742E-02   -.57165    
   3  Normalizat    .73969        .20989        .38744E-03   -1.0235    
   4  Prefactor     1.0148        .11801        .19145E-03   -.92237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87549e-12
Minuit parameter uncertainties:
  1  0.157648
  2  0.28169
  3  0.210116
  4  0.118036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700334': 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) = 11146.3953838
delta logL = 0.503541431897

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.622e-01  1.576e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.295e+00  2.817e-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:  1.015e+00  1.180e-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:  7.397e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.94
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.29 +/- 0.28
Photon Flux (Free Index): 2.51e-07 +/- 6.49e-08
Energy Flux (Free Index): 6.40e-05 +/- 1.53e-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/700334/cmap_HighResolution_676598401_676857601_4FGL_J2253.9+1609_daily_bin1687.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-07', energy_flux2='6.40e-05', photon_flux_error='5.13e-08', dlogl='5.04e-01', energy_flux='6.88e-05', photon_flux2='2.51e-07', job_status='DONE', time_completed='2022-06-14 01:51:59.168612', photon_index_error2='0.28', photon_index2='2.29', ts='39.03', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='0.79', time_epoch_completed='1655196719.17', return_code='0', job_id='700334', GAL2='1.01', EG2='0.74', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='6.49e-08', ts2='39.94', photon_index='2.02' WHERE bin_id='1687' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jun 14 01:51:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 700334: <4FGL_J2253.9+1609_daily_bin1687> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1687> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jun 14 01:35:26 2022
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 14 01:36:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 14 01:36:32 2022
Terminated at Tue Jun 14 01:52:00 2022
Results reported at Tue Jun 14 01:52:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1687 343.496 16.1506 676598401 676857601 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 :                                   820.52 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             323.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            994 sec.

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

