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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1776
RA = 343.496, Dec = 16.1506
tmin = 699667201, tmax = 699926401
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='846282', job_status='RUN', time_executed='2023-03-08 01:28:26.073381', time_epoch_executed='1678267706.07' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846282/ft1_4FGL_J2253.9+1609_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846282/ft2_4FGL_J2253.9+1609_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846282/ft1_4FGL_J2253.9+1609_daily_bin1776.fits outfile=/scratch/kocevski/846282/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1776.fits ra=343.496 dec=16.1506 rad=12.0 tmin=699667201.0 tmax=699926401.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.97
user 3.74
sys 0.20

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

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

Number of photons that the gtmktime cut: 755

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846282/ft1_filtered_4FGL_J2253.9+1609_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/846282/ft2_4FGL_J2253.9+1609_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/846282/ltcube_699667201_699926401_4FGL_J2253.9+1609_daily_bin1776.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/846282/ft2_4FGL_J2253.9+1609_daily_bin1776.fits
.....................!
real 12.41
user 12.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846282/ft1_filtered_4FGL_J2253.9+1609_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/846282/ft2_4FGL_J2253.9+1609_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/846282/ltcube_699667201_699926401_4FGL_J2253.9+1609_daily_bin1776.fits outfile=/scratch/kocevski/846282/expmap_699667201_699926401_4FGL_J2253.9+1609_daily_bin1776.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/846282/ltcube_699667201_699926401_4FGL_J2253.9+1609_daily_bin1776.fits
.....................!
real 191.81
user 185.53
sys 5.68

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/846282/ft1_filtered_4FGL_J2253.9+1609_daily_bin1776.fits scfile=/scratch/kocevski/846282/ft2_4FGL_J2253.9+1609_daily_bin1776.fits outfile=/scratch/kocevski/846282/cmap_699667201_699926401_4FGL_J2253.9+1609_daily_bin1776.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846282/ft1_filtered_4FGL_J2253.9+1609_daily_bin1776.fits scfile=/scratch/kocevski/846282/ft2_4FGL_J2253.9+1609_daily_bin1776.fits outfile=/scratch/kocevski/846282/cmap_HighResolution_699667201_699926401_4FGL_J2253.9+1609_daily_bin1776.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=343.496 yref=16.1506 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.085       1.0000          .0000       .10000E+07
     2 'norm      '    4.0142       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.632       1.0000          .0000       .10000E+07
     4 'Prefactor '    15.430       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.2635       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9906       1.0000         .10000E-03   10000.    
     7 'norm      '    .78604E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    19.457       1.0000          .0000       .10000E+07
     9 'Prefactor '    .87166E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .50271       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26280       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.4653       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.2358       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13145E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19249E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .13354E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .33884E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .26308       1.0000          .0000       .10000E+07
    19 'norm      '    1.5064       1.0000          .0000       .10000E+07
    20 'Normalizat'    .78795       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1015       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=   8291.982     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     1332 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.208        3.1348       -.20878E-08   -.31949E-01
   2  norm          4.0933        5.7635        .37848E-06   -.99764E-03
   3  Prefactor     10.633        1.3216       -.81200E-08   -.29830E-02
   4  Prefactor     15.462        2.7771       -.80245E-08   -.25789E-01
   5  Prefactor     2.2643        .33932       -.24117E-06    .28744E-02
   6  Prefactor     6.9677        6.2531       -.23579E-06    .61065E-04
   7  norm           .0000        .59586        .50757E-07** at limit **
   8  Prefactor     19.644        3.1633       -.28682E-07    .34305E-01
   9  Prefactor      .0000        3.6071        .31012E-07** at limit **
  10  Prefactor     .50270        .17261        .10829E-06   -.24856E-03
  11  Prefactor     .18430E-07    185.36        .34327E-06** at limit **
  12  Prefactor     6.4731        1.1539       -.12335E-07    .92896E-03
  13  Prefactor     1.8044        35.003        .47168E-06    .29783E-02
  14  Prefactor      .0000        3.0584       -.57209E-07** at limit **
  15  Prefactor      .0000        4.1496       -.42855E-06** at limit **
  16  Prefactor      .0000        14.546        .32747E-07** at limit **
  17  norm          .11102E-09    5.4802        .91962E-07** at limit **
  18  Prefactor     .27690        12.757        .28902E-06   -.53434E-02
  19  norm          1.4804        11.446        .23395E-06   -.61624E-03
  20  Normalizat    .78743        .26279       -.47388E-05    .11434E-03
  21  Prefactor     1.1011        .14484       -.10253E-05    .19804E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.2078
  norm       = 4.09325
  Prefactor  = 10.6327
  Prefactor  = 15.4621
  Prefactor  = 2.26426
  Prefactor  = 6.96775
  norm       = 0
  Prefactor  = 19.6438
  Prefactor  = 0
  Prefactor  = 0.502704
  Prefactor  = 1.84297e-08
  Prefactor  = 6.47307
  Prefactor  = 1.80437
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.11022e-10
  Prefactor  = 0.2769
  norm       = 1.4804
  Normalizat = 0.787435
  Prefactor  = 1.10106
 **********
 **   18 **HESSE 
 **********

 FCN=   8291.982     FROM HESSE     STATUS=OK           369 CALLS     1701 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.208        28.351        .15997E-03   -1.5583    
   2  norm          4.0933        5.8405        .50310E-03   -1.5667    
   3  Prefactor     10.633        16.975        .30703E-03   -1.5643    
   4  Prefactor     15.462        13.941        .25471E-03   -1.5629    
   5  Prefactor     2.2643        .35221        .43571E-02   -1.5407    
   6  Prefactor     6.9677        6.2563        .37933E-02   -1.5180    
   7  norm           .0000        .59408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.644        21.804        .22678E-03   -1.5619    
   9  Prefactor      .0000        3.6062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .50270        .17772        .47230E-02   -1.5566    
  11  Prefactor     .18430E-07    183.05        .10750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.4731        8.9958        .39447E-03   -1.5657    
  13  Prefactor     1.8044        45.522        .10096E-02   -1.5681    
  14  Prefactor      .0000        3.0648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        4.1523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        14.582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-09    5.4915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .27690        6.0503        .73178E-02   -1.5697    
  19  norm          1.4804        11.538        .87156E-03   -1.5684    
  20  Normalizat    .78743        .24417        .91668E-01   -1.0054    
  21  Prefactor     1.1011        .12736        .37531E-01   -.89433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72568e-07
Minuit parameter uncertainties:
  1  28.3509
  2  5.8405
  3  16.975
  4  13.9414
  5  0.352215
  6  6.25686
  7  1.91056e-06
  8  21.8043
  9  1.29861e-05
  10  0.17772
  11  0.00367551
  12  8.99583
  13  18.1263
  14  6.62367e-07
  15  1.05933e-05
  16  4.04511e-06
  17  4.43567e-05
  18  2.58869
  19  8.26591
  20  0.244506
  21  0.127397
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.027e-01  1.777e-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:  1.101e+00  1.274e-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.874e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.84
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.83e-07 +/- 6.48e-08
Energy Flux (Fixed Index): 5.89e-05 +/- 2.08e-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) = 8291.47196222
delta logL = 0.509877115031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8291.44518329
delta logL = 0.536656051498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62631       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.4044       1.0000          .0000       10.000    
     3 'Normalizat'    .71420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1282       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=   8291.445     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62628        .20276        .48318E-02    .12504E-02
   2  Index1        2.4044        .33987        .16569       -.10786E-03
   3  Normalizat    .71421        .23422        .95698E-01   -.11560E-05
   4  Prefactor     1.1282        .12993        .36603E-01    .21389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.626285
  Index1     = 2.40438
  Normalizat = 0.714214
  Prefactor  = 1.12815
 **********
 **   18 **HESSE 
 **********

 FCN=   8291.445     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62628        .20996        .21504E-04   -1.5550    
   2  Index1        2.4044        .37820        .68999E-02   -.54583    
   3  Normalizat    .71421        .26766        .42405E-03   -1.0333    
   4  Prefactor     1.1282        .14748        .19352E-03   -.88572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58411e-11
Minuit parameter uncertainties:
  1  0.209961
  2  0.378698
  3  0.26815
  4  0.147533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846282': 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) = 8291.44518327
delta logL = 0.536656066059

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.263e-01  2.100e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.404e+00  3.787e-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.128e+00  1.475e-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.142e-01  2.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.02
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.40 +/- 0.38
Photon Flux (Free Index): 2.43e-07 +/- 9.04e-08
Energy Flux (Free Index): 5.76e-05 +/- 1.84e-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/846282/cmap_HighResolution_699667201_699926401_4FGL_J2253.9+1609_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.83e-07', energy_flux2='5.76e-05', photon_flux_error='6.48e-08', dlogl='5.37e-01', energy_flux='5.89e-05', photon_flux2='2.43e-07', job_status='DONE', time_completed='2023-03-08 01:37:44.925485', photon_index_error2='0.38', photon_index2='2.40', ts='15.84', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='0.79', time_epoch_completed='1678268264.93', return_code='0', job_id='846282', GAL2='1.13', EG2='0.71', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='9.04e-08', ts2='17.02', photon_index='2.02' WHERE bin_id='1776' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 01:37:44 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 846282: <4FGL_J2253.9+1609_daily_bin1776> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1776> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Mar  8 01:25:15 2023
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 01:25:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 01:25:16 2023
Terminated at Wed Mar  8 01:37:45 2023
Results reported at Wed Mar  8 01:37:45 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1776 343.496 16.1506 699667201 699926401 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 :                                   560.14 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             296.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            750 sec.

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

