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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1744
RA = 343.496, Dec = 16.1506
tmin = 691372801, tmax = 691632001
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='597046', job_status='RUN', time_executed='2022-12-02 02:02:02.087884', time_epoch_executed='1669975322.09' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597046

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597046/ft1_4FGL_J2253.9+1609_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597046/ft2_4FGL_J2253.9+1609_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597046/ft1_4FGL_J2253.9+1609_daily_bin1744.fits outfile=/scratch/kocevski/597046/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1744.fits ra=343.496 dec=16.1506 rad=12.0 tmin=691372801.0 tmax=691632001.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 2.61
user 2.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597046/ft2_4FGL_J2253.9+1609_daily_bin1744.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/597046/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/597046/ft1_filtered_4FGL_J2253.9+1609_daily_bin1744.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.58
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 1476

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597046/ft1_filtered_4FGL_J2253.9+1609_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/597046/ft2_4FGL_J2253.9+1609_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/597046/ltcube_691372801_691632001_4FGL_J2253.9+1609_daily_bin1744.fits outfile=/scratch/kocevski/597046/expmap_691372801_691632001_4FGL_J2253.9+1609_daily_bin1744.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/597046/ltcube_691372801_691632001_4FGL_J2253.9+1609_daily_bin1744.fits
.....................!
real 193.96
user 187.73
sys 5.61

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/597046/ft1_filtered_4FGL_J2253.9+1609_daily_bin1744.fits scfile=/scratch/kocevski/597046/ft2_4FGL_J2253.9+1609_daily_bin1744.fits outfile=/scratch/kocevski/597046/cmap_691372801_691632001_4FGL_J2253.9+1609_daily_bin1744.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 1.29
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597046/ft1_filtered_4FGL_J2253.9+1609_daily_bin1744.fits scfile=/scratch/kocevski/597046/ft2_4FGL_J2253.9+1609_daily_bin1744.fits outfile=/scratch/kocevski/597046/cmap_HighResolution_691372801_691632001_4FGL_J2253.9+1609_daily_bin1744.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 1.05
user 0.36
sys 0.22

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.997       1.0000          .0000       .10000E+07
     2 'norm      '    2.4838       1.0000          .0000       .10000E+07
     3 'Prefactor '    .46299E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    10.992       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.6104       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.8862       1.0000          .0000       .10000E+07
     8 'Prefactor '    46.563       1.0000          .0000       .10000E+07
     9 'Prefactor '    .14124E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.4034       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.020       1.0000          .0000       .10000E+07
    12 'Prefactor '    .58692E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    13.243       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16653E-09   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.8065       1.0000          .0000       .10000E+07
    16 'Prefactor '    .26020E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .10815E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .21060       1.0000          .0000       .10000E+07
    19 'norm      '    11.860       1.0000          .0000       .10000E+07
    20 'Normalizat'    .77173       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1113       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=   14385.35     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1585 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.109        3.5074        .27944E-06   -.11267    
   2  norm          2.4844        2.4106        .18415E-06    .59779E-03
   3  Prefactor     .86042E-08    3.6419       -.77764E-06** at limit **
   4  Prefactor     11.034        8.6088        .76136E-06   -.72315E-02
   5  Prefactor     1.6109        .23541        .73621E-07   -.81849E-03
   6  Prefactor     .10000E-03    1.6963        .41664E-05** at limit **
   7  norm          2.8864        1.4023       -.63973E-07    .72245E-02
   8  Prefactor     45.872        24.996       -.10888E-05    .95561E-01
   9  Prefactor     .83267E-09    9.7268        .68444E-06** at limit **
  10  Prefactor     5.4051        .30859        .12276E-06    .91310E-03
  11  Prefactor     17.347        16.264       -.82989E-06   -.50896E-01
  12  Prefactor     .55511E-10    2.3420        .14650E-05** at limit **
  13  Prefactor     13.813        7.7325        .11756E-06   -.53413E-01
  14  Prefactor      .0000        1.4480        .32839E-06** at limit **
  15  Prefactor     4.8316        6.6698        .72864E-06    .73179E-02
  16  Prefactor     .75662E-07    25.670       -.18115E-05** at limit **
  17  norm          .44409E-08    3.1390        .21849E-06** at limit **
  18  Prefactor     .29941        11.539       -.51702E-05   -.18994E-01
  19  norm          11.880        9.0577        .19904E-05   -.11449E-01
  20  Normalizat    .77044        .22561       -.32800E-05    .14052E-03
  21  Prefactor     1.1116        .12448        .26234E-05    .34174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.1089
  norm       = 2.4844
  Prefactor  = 8.60423e-09
  Prefactor  = 11.0337
  Prefactor  = 1.61093
  Prefactor  = 0.0001
  norm       = 2.88642
  Prefactor  = 45.872
  Prefactor  = 8.32667e-10
  Prefactor  = 5.40508
  Prefactor  = 17.3469
  Prefactor  = 5.55112e-11
  Prefactor  = 13.8129
  Prefactor  = 0
  Prefactor  = 4.83162
  Prefactor  = 7.56617e-08
  norm       = 4.44089e-09
  Prefactor  = 0.299413
  norm       = 11.8799
  Normalizat = 0.770443
  Prefactor  = 1.11162
 **********
 **   18 **HESSE 
 **********

 FCN=   14385.35     FROM HESSE     STATUS=OK           367 CALLS     1952 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.109        18.076        .16442E-03   -1.5586    
   2  norm          2.4844        2.4115        .64838E-03   -1.5676    
   3  Prefactor     .86042E-08    3.7739        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.034        9.3075        .30194E-03   -1.5642    
   5  Prefactor     1.6109        .23663        .47890E-02   -1.5454    
   6  Prefactor     .10000E-03    1.6991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8864        1.4060        .59796E-03   -1.5674    
   8  Prefactor     45.872        31.820        .14656E-03   -1.5573    
   9  Prefactor     .83267E-09    9.6926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.4051        .31241        .33783E-02   -1.5243    
  11  Prefactor     17.347        27.928        .23566E-03   -1.5625    
  12  Prefactor     .55511E-10    2.3410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.813        23.873        .27499E-03   -1.5634    
  14  Prefactor      .0000        1.4476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8316        6.7209        .45865E-03   -1.5664    
  16  Prefactor     .75662E-07    26.335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .44409E-08    3.1776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .29941        3.5002        .71297E-02   -1.5697    
  19  norm          11.880        10.701        .29063E-03   -1.5639    
  20  Normalizat    .77044        .21223        .10483       -1.0117    
  21  Prefactor     1.1116        .11175        .37172E-01   -.89096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82073e-07
Minuit parameter uncertainties:
  1  18.076
  2  2.41149
  3  0.000360822
  4  9.30747
  5  0.236629
  6  4.24589e-06
  7  1.40601
  8  31.8197
  9  0.000177543
  10  0.312415
  11  27.928
  12  2.75797e-05
  13  23.8737
  14  2.38755e-06
  15  6.72089
  16  0.00282367
  17  0.000237829
  18  2.04744
  19  10.7013
  20  0.212462
  21  0.111775
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.405e+00  3.124e-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.112e+00  1.118e-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.704e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1114.53
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.97e-06 +/- 1.14e-07
Energy Flux (Fixed Index): 6.33e-04 +/- 3.66e-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) = 14385.2135142
delta logL = 0.138545613596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14385.2115263
delta logL = 0.140533500848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4614       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0549       1.0000          .0000       10.000    
     3 'Normalizat'    .74484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1223       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=   14385.21     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      204 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4614        .31706        .33859E-02   -.23713E-02
   2  Index1        2.0549        .65040E-01    .41154E-01   -.24681E-03
   3  Normalizat    .74484        .20135        .10633        .14801E-03
   4  Prefactor     1.1223        .11290        .36795E-01   -.11485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.4614
  Index1     = 2.05486
  Normalizat = 0.744844
  Prefactor  = 1.1223
 **********
 **   18 **HESSE 
 **********

 FCN=   14385.21     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4614        .32484        .14962E-04   -1.5241    
   2  Index1        2.0549        .66910E-01    .18158E-03   -.62986    
   3  Normalizat    .74484        .22383        .47146E-03   -1.0215    
   4  Prefactor     1.1223        .12585        .22307E-03   -.88757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45308e-11
Minuit parameter uncertainties:
  1  0.324841
  2  0.0669131
  3  0.224106
  4  0.125881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597046': 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) = 14385.2115263
delta logL = 0.140533501191

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.461e+00  3.248e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.055e+00  6.691e-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:  1.122e+00  1.259e-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.448e-01  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1110.88
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.05 +/- 0.07
Photon Flux (Free Index): 2.00e-06 +/- 1.23e-07
Energy Flux (Free Index): 6.20e-04 +/- 4.21e-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/597046/cmap_HighResolution_691372801_691632001_4FGL_J2253.9+1609_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.97e-06', energy_flux2='6.20e-04', photon_flux_error='1.14e-07', dlogl='1.41e-01', energy_flux='6.33e-04', photon_flux2='2.00e-06', job_status='DONE', time_completed='2022-12-02 02:15:49.325569', photon_index_error2='0.07', photon_index2='2.05', ts='1114.53', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='4.21e-05', EG='0.77', time_epoch_completed='1669976149.33', return_code='0', job_id='597046', GAL2='1.12', EG2='0.74', return_code2='0', energy_flux_error='3.66e-05', photon_flux_error2='1.23e-07', ts2='1110.88', photon_index='2.02' WHERE bin_id='1744' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 02:15:49 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 597046: <4FGL_J2253.9+1609_daily_bin1744> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1744> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Dec  2 02:00:25 2022
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 02:00:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 02:00:26 2022
Terminated at Fri Dec  2 02:15:50 2022
Results reported at Fri Dec  2 02:15:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1744 343.496 16.1506 691372801 691632001 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 :                                   826.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

