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


Performing analysis on: 4FGL_J2158.1-1501_daily_bin1768
RA = 329.527, Dec = -15.0237
tmin = 697593601, tmax = 697852801
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='283215', job_status='RUN', time_executed='2023-02-12 01:44:48.460112', time_epoch_executed='1676195088.46' WHERE source_name='4FGL J2158.1-1501' and cadence='daily' and bin_id='1768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283215

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283215/ft1_4FGL_J2158.1-1501_daily_bin1768.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283215/ft2_4FGL_J2158.1-1501_daily_bin1768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283215/ft1_4FGL_J2158.1-1501_daily_bin1768.fits outfile=/scratch/kocevski/283215/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1768.fits ra=329.527 dec=-15.0237 rad=12.0 tmin=697593601.0 tmax=697852801.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.68
user 3.44
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/283215/ft2_4FGL_J2158.1-1501_daily_bin1768.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/283215/ft2_4FGL_J2158.1-1501_daily_bin1768.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/283215/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1768.fits evtable="EVENTS" outfile="/scratch/kocevski/283215/ft1_filtered_4FGL_J2158.1-1501_daily_bin1768.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.52
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 615

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283215/ft1_filtered_4FGL_J2158.1-1501_daily_bin1768.fits" evtable="EVENTS" scfile=/scratch/kocevski/283215/ft2_4FGL_J2158.1-1501_daily_bin1768.fits sctable="SC_DATA" outfile=/scratch/kocevski/283215/ltcube_697593601_697852801_4FGL_J2158.1-1501_daily_bin1768.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/283215/ft2_4FGL_J2158.1-1501_daily_bin1768.fits
.....................!
real 14.29
user 13.85
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283215/ft1_filtered_4FGL_J2158.1-1501_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/283215/ft2_4FGL_J2158.1-1501_daily_bin1768.fits sctable="SC_DATA" expcube=/scratch/kocevski/283215/ltcube_697593601_697852801_4FGL_J2158.1-1501_daily_bin1768.fits outfile=/scratch/kocevski/283215/expmap_697593601_697852801_4FGL_J2158.1-1501_daily_bin1768.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/283215/ltcube_697593601_697852801_4FGL_J2158.1-1501_daily_bin1768.fits
.....................!
real 191.72
user 186.60
sys 4.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 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J2158.1-1501 @ 329.527 -15.0237

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/283215/ft1_filtered_4FGL_J2158.1-1501_daily_bin1768.fits scfile=/scratch/kocevski/283215/ft2_4FGL_J2158.1-1501_daily_bin1768.fits outfile=/scratch/kocevski/283215/cmap_697593601_697852801_4FGL_J2158.1-1501_daily_bin1768.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=329.527 yref=-15.0237 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283215/ft1_filtered_4FGL_J2158.1-1501_daily_bin1768.fits scfile=/scratch/kocevski/283215/ft2_4FGL_J2158.1-1501_daily_bin1768.fits outfile=/scratch/kocevski/283215/cmap_HighResolution_697593601_697852801_4FGL_J2158.1-1501_daily_bin1768.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=329.527 yref=-15.0237 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/283215/ft1_filtered_4FGL_J2158.1-1501_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/283215/ft2_4FGL_J2158.1-1501_daily_bin1768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/283215/Model_4FGL_J2158.1-1501_daily_bin1768.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/283215/ft1_filtered_4FGL_J2158.1-1501_daily_bin1768.fits.....................!
real 65.99
user 64.43
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/283215/ft1_filtered_4FGL_J2158.1-1501_daily_bin1768.fits', '/scratch/kocevski/283215/ft2_4FGL_J2158.1-1501_daily_bin1768.fits', expMap='/scratch/kocevski/283215/expmap_697593601_697852801_4FGL_J2158.1-1501_daily_bin1768.fits', expCube='/scratch/kocevski/283215/ltcube_697593601_697852801_4FGL_J2158.1-1501_daily_bin1768.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/283215/Model_4FGL_J2158.1-1501_daily_bin1768.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2158.1-1501'

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  6.798e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
270        Index:  2.181e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.246e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/283215/ft1_filtered_4FGL_J2158.1-1501_daily_bin1768.fits
Spacecraft file(s): /scratch/kocevski/283215/ft2_4FGL_J2158.1-1501_daily_bin1768.fits
Exposure map: /scratch/kocevski/283215/expmap_697593601_697852801_4FGL_J2158.1-1501_daily_bin1768.fits
Exposure cube: /scratch/kocevski/283215/ltcube_697593601_697852801_4FGL_J2158.1-1501_daily_bin1768.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/283215/Model_4FGL_J2158.1-1501_daily_bin1768.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) = 6904.15580554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2346       1.0000          .0000       .10000E+07
     2 'Prefactor '    .52225       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15676E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.900       1.0000          .0000       .10000E+07
     5 'Prefactor '    .78409E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    46.014       1.0000          .0000       .10000E+07
     7 'norm      '    .23129E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .18650E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .18262E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .23248E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.9575       1.0000          .0000       .10000E+07
    12 'Prefactor '    22.235       1.0000          .0000       .10000E+07
    13 'Prefactor '    .20126E-01   1.0000          .0000       .10000E+07
    14 'norm      '    2.0723       1.0000          .0000       .10000E+07
    15 'norm      '    .12820       1.0000          .0000       .10000E+07
    16 'Normalizat'    .74808       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.4651       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6904.121     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1259 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7836        21.981        .35445E-06    .35481E-01
   2  Prefactor     .21151E-04    909.15       -.69495E-05** at limit **
   3  Prefactor      .0000        2.1058        .11498E-06** at limit **
   4  Prefactor     16.856        8.9101        .56016E-07   -.28270E-02
   5  Prefactor      .0000        11.814        .34325E-06** at limit **
   6  Prefactor     46.769        27.724        .18951E-06   -.29909E-01
   7  norm          .22204E-09    16.586        .35139E-06** at limit **
   8  Prefactor     .11102E-09    7.7865        .10563E-06** at limit **
   9  Prefactor     .11102E-09    96.668       -.25408E-05** at limit **
  10  Prefactor      .0000        3.1594        .52411E-07** at limit **
  11  Prefactor     7.9477        5.5761       -.68309E-07   -.58034E-01
  12  Prefactor     22.228        11.703       -.61573E-07   -.64518E-01
  13  Prefactor     .11102E-09    26.046        .68896E-06** at limit **
  14  norm          2.0761        4.0263       -.12357E-06    .56575E-03
  15  norm          .12869        .86818       -.84674E-07** at limit **
  16  Normalizat    .74655        .27861        .10262E-05   -.43069E-05
  17  Prefactor     1.4655        .18453        .13374E-05   -.15048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.7836
  Prefactor  = 2.1151e-05
  Prefactor  = 0
  Prefactor  = 16.856
  Prefactor  = 0
  Prefactor  = 46.7694
  norm       = 2.22045e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 7.94774
  Prefactor  = 22.2281
  Prefactor  = 1.11022e-10
  norm       = 2.07606
  norm       = 0.128692
  Normalizat = 0.74655
  Prefactor  = 1.46554
 **********
 **   18 **HESSE 
 **********

 FCN=   6904.121     FROM HESSE     STATUS=OK           275 CALLS     1534 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7836        28.014        .34913E-03   -1.5649    
   2  Prefactor     .21151E-04    17.520        .97305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.1106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.856        8.9331        .24336E-03   -1.5626    
   5  Prefactor      .0000        11.804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.769        29.385        .14743E-03   -1.5571    
   7  norm          .22204E-09    16.525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11102E-09    7.7994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-09    15.657        .10672E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        3.1729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9477        14.745        .35520E-03   -1.5652    
  12  Prefactor     22.228        20.093        .21213E-03   -1.5614    
  13  Prefactor     .11102E-09    26.009        .17028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0761        4.0532        .71728E-03   -1.5679    
  15  norm          .12869        .50401        .22147E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .74655        .25017        .89274E-01   -1.0208    
  17  Prefactor     1.4655        .15966        .44817E-01   -.78510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86994e-07
Minuit parameter uncertainties:
  1  28.0148
  2  0.0384999
  3  5.16646e-06
  4  8.93315
  5  2.61369e-05
  6  29.385
  7  0.000127336
  8  5.26094e-05
  9  8.08543e-05
  10  4.30772e-06
  11  14.7446
  12  20.093
  13  9.79462e-05
  14  4.05325
  15  0.504013
  16  0.250555
  17  0.159718
Done.

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

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  1.110e-10  8.085e-05  0.000e+00  1.000e+06 ( 1.000e-13)
270        Index:  2.181e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.246e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  1.466e+00  1.597e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  7.465e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 329.527 -15.024
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283215/likelihoodResults_697593601_697852801_4FGL_J2158.1-1501_daily_bin1768.txt

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) = 6903.85390884
delta logL = 0.267443373496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6903.84894873
delta logL = 0.272403490627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4721       1.0000          .0000       .10000E+07
     2 'Index     '    3.3765       1.0000          .0000       10.000    
     3 'Normalizat'    .69673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4805       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6903.849     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      333 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4717        11.673        .17772E-04   -.64898E-02
   2  Index         3.3767        1.9774        .64441E-02   -.20821E-03
   3  Normalizat    .69673        .27935        .40797E-03   -.22820E-03
   4  Prefactor     1.4805        .18589        .19713E-03   -.32079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.47166
  Index      = 3.37667
  Normalizat = 0.696731
  Prefactor  = 1.48046
 **********
 **   18 **HESSE 
 **********

 FCN=   6903.849     FROM HESSE     STATUS=OK            25 CALLS      358 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4717        6.8448        .71087E-06   -1.5677    
   2  Index         3.3767        1.2809        .25776E-03   -.33066    
   3  Normalizat    .69673        .27932        .16319E-04   -1.0402    
   4  Prefactor     1.4805        .18560        .39426E-04   -.78088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57176e-09
Minuit parameter uncertainties:
  1  6.84479
  2  1.29713
  3  0.279887
  4  0.185684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283215': 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) = 6903.84894871
delta logL = 0.272403504713

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  2.472e+00  6.845e+00  0.000e+00  1.000e+06 ( 1.000e-13)
270        Index:  3.377e+00  1.297e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  1.246e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  1.480e+00  1.857e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  6.967e-01  2.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 329.527 -15.024

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/283215/cmap_HighResolution_697593601_697852801_4FGL_J2158.1-1501_daily_bin1768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2023-02-12 01:53:33.715368', job_id='283215', GAL2='1.48', fit_tolerance='1e-08', EG2='0.70', EG='0.75', time_epoch_completed='1676195613.72', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='2.72e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1768' AND source_name='4FGL J2158.1-1501' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Feb 12 01:53:33 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 283215: <4FGL_J2158.1-1501_daily_bin1768> in cluster <slac> Done

Job <4FGL_J2158.1-1501_daily_bin1768> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Feb 12 01:40:14 2023
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 12 01:40:35 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 12 01:40:35 2023
Terminated at Sun Feb 12 01:53:34 2023
Results reported at Sun Feb 12 01:53:34 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.1-1501_daily_bin1768 329.527 -15.0237 697593601 697852801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2158.1-1501 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   526.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             253.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            800 sec.

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

