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


Performing analysis on: 4FGL_J2158.1-1501_daily_bin1737
RA = 329.527, Dec = -15.0237
tmin = 689558401, tmax = 689817601
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='163133', job_status='RUN', time_executed='2022-11-11 00:59:52.979628', time_epoch_executed='1668157192.98' WHERE source_name='4FGL J2158.1-1501' and cadence='daily' and bin_id='1737'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163133

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163133/ft1_4FGL_J2158.1-1501_daily_bin1737.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163133/ft2_4FGL_J2158.1-1501_daily_bin1737.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163133/ft1_4FGL_J2158.1-1501_daily_bin1737.fits outfile=/scratch/kocevski/163133/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1737.fits ra=329.527 dec=-15.0237 rad=12.0 tmin=689558401.0 tmax=689817601.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.73
user 3.48
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163133/ft2_4FGL_J2158.1-1501_daily_bin1737.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/163133/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1737.fits evtable="EVENTS" outfile="/scratch/kocevski/163133/ft1_filtered_4FGL_J2158.1-1501_daily_bin1737.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.36
sys 0.15

Number of photons that the gtmktime cut: 804

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163133/ft1_filtered_4FGL_J2158.1-1501_daily_bin1737.fits" evtable="EVENTS" scfile=/scratch/kocevski/163133/ft2_4FGL_J2158.1-1501_daily_bin1737.fits sctable="SC_DATA" outfile=/scratch/kocevski/163133/ltcube_689558401_689817601_4FGL_J2158.1-1501_daily_bin1737.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/163133/ft2_4FGL_J2158.1-1501_daily_bin1737.fits
.....................!
real 16.42
user 15.95
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163133/ft1_filtered_4FGL_J2158.1-1501_daily_bin1737.fits evtable="EVENTS" scfile=/scratch/kocevski/163133/ft2_4FGL_J2158.1-1501_daily_bin1737.fits sctable="SC_DATA" expcube=/scratch/kocevski/163133/ltcube_689558401_689817601_4FGL_J2158.1-1501_daily_bin1737.fits outfile=/scratch/kocevski/163133/expmap_689558401_689817601_4FGL_J2158.1-1501_daily_bin1737.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/163133/ltcube_689558401_689817601_4FGL_J2158.1-1501_daily_bin1737.fits
.....................!
real 192.90
user 186.94
sys 5.23

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/163133/ft1_filtered_4FGL_J2158.1-1501_daily_bin1737.fits scfile=/scratch/kocevski/163133/ft2_4FGL_J2158.1-1501_daily_bin1737.fits outfile=/scratch/kocevski/163133/cmap_689558401_689817601_4FGL_J2158.1-1501_daily_bin1737.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163133/ft1_filtered_4FGL_J2158.1-1501_daily_bin1737.fits scfile=/scratch/kocevski/163133/ft2_4FGL_J2158.1-1501_daily_bin1737.fits outfile=/scratch/kocevski/163133/cmap_HighResolution_689558401_689817601_4FGL_J2158.1-1501_daily_bin1737.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.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/163133/ft1_filtered_4FGL_J2158.1-1501_daily_bin1737.fits', '/scratch/kocevski/163133/ft2_4FGL_J2158.1-1501_daily_bin1737.fits', expMap='/scratch/kocevski/163133/expmap_689558401_689817601_4FGL_J2158.1-1501_daily_bin1737.fits', expCube='/scratch/kocevski/163133/ltcube_689558401_689817601_4FGL_J2158.1-1501_daily_bin1737.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/163133/Model_4FGL_J2158.1-1501_daily_bin1737.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/163133/ft1_filtered_4FGL_J2158.1-1501_daily_bin1737.fits
Spacecraft file(s): /scratch/kocevski/163133/ft2_4FGL_J2158.1-1501_daily_bin1737.fits
Exposure map: /scratch/kocevski/163133/expmap_689558401_689817601_4FGL_J2158.1-1501_daily_bin1737.fits
Exposure cube: /scratch/kocevski/163133/ltcube_689558401_689817601_4FGL_J2158.1-1501_daily_bin1737.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/163133/Model_4FGL_J2158.1-1501_daily_bin1737.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) = 8584.66275143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7366       1.0000          .0000       .10000E+07
     2 'Prefactor '    .45089E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.8085       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3037       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13067       1.0000          .0000       .10000E+07
     6 'Prefactor '    .93037E-07   1.0000          .0000       .10000E+07
     7 'norm      '    2.9018       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.770       1.0000          .0000       .10000E+07
     9 'Prefactor '    .26090E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .24275E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11557E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.4037       1.0000          .0000       .10000E+07
    13 'Prefactor '    .39375E-05   1.0000          .0000       .10000E+07
    14 'norm      '    3.5801       1.0000          .0000       .10000E+07
    15 'norm      '    .16811       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0948       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89633       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=   8584.621     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      947 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7026        1.3596        .72164E-07   -.92071E-02
   2  Prefactor      .0000        6.2657        .32158E-06** at limit **
   3  Prefactor     2.8351        4.4167       -.43062E-06    .52710E-03
   4  Prefactor     3.2881        3.4572       -.13544E-06   -.51383E-04
   5  Prefactor     .51266E-05    1.6050       -.30117E-07** at limit **
   6  Prefactor     .14921E-06    1.9547        .33100E-06** at limit **
   7  norm          2.8997        3.3480        .16046E-06    .17427E-03
   8  Prefactor     14.740        5.6821        .53013E-08    .28017E-04
   9  Prefactor     .17519E-06    1.8914        .43290E-06** at limit **
  10  Prefactor     .20484E-07    4.2786        .39780E-06** at limit **
  11  Prefactor     .68279E-08    3.0803       -.47444E-07** at limit **
  12  Prefactor     8.4221        1.0177        .29113E-09   -.32718E-02
  13  Prefactor     .34972E-08    10.492       -.91142E-06** at limit **
  14  norm          3.5958        3.0068        .99490E-07   -.80058E-03
  15  norm          .16768        .61428       -.31822E-06** at limit **
  16  Normalizat    1.0950        .20178        .11016E-04    .30135E-04
  17  Prefactor     .89631        .13725       -.99894E-05    .84132E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.70256
  Prefactor  = 0
  Prefactor  = 2.83513
  Prefactor  = 3.28808
  Prefactor  = 5.12657e-06
  Prefactor  = 1.49214e-07
  norm       = 2.89969
  Prefactor  = 14.7401
  Prefactor  = 1.75193e-07
  Prefactor  = 2.04836e-08
  Prefactor  = 6.82787e-09
  Prefactor  = 8.42207
  Prefactor  = 3.4972e-09
  norm       = 3.59578
  norm       = 0.167679
  Normalizat = 1.09499
  Prefactor  = 0.896309
 **********
 **   18 **HESSE 
 **********

 FCN=   8584.621     FROM HESSE     STATUS=OK           265 CALLS     1212 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7026        14.809        .52211E-03   -1.5669    
   2  Prefactor      .0000        6.3575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8351        4.4372        .60673E-03   -1.5674    
   4  Prefactor     3.2881        3.4687        .55674E-03   -1.5672    
   5  Prefactor     .51266E-05    7.8121        .90525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .14921E-06    3.3704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8997        3.3489        .59625E-03   -1.5674    
   8  Prefactor     14.740        5.6841        .26035E-03   -1.5631    
   9  Prefactor     .17519E-06    3.6288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .20484E-07    4.5687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .68279E-08    3.1434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.4221        11.244        .34557E-03   -1.5650    
  13  Prefactor     .34972E-08    10.526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5958        3.0149        .53385E-03   -1.5670    
  15  norm          .16768        .44850        .28164E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0950        .16755        .59733E-01   -.89913    
  17  Prefactor     .89631        .11222        .44958E-01   -.96270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10816e-07
Minuit parameter uncertainties:
  1  14.8087
  2  1.84012e-05
  3  4.43719
  4  3.46871
  5  0.0126569
  6  0.00141827
  7  3.34893
  8  5.68412
  9  0.00159462
  10  0.000611537
  11  0.000292722
  12  11.244
  13  0.000383717
  14  3.01494
  15  0.448503
  16  0.167628
  17  0.112247
Done.

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

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  1.752e-07  1.595e-03  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:  8.963e-01  1.122e-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:  1.095e+00  1.676e-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: 3.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163133/likelihoodResults_689558401_689817601_4FGL_J2158.1-1501_daily_bin1737.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): 102
logL (Free Index) = 8584.62179266
delta logL = -0.000537025644007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8584.62125808
delta logL = -2.44464899879e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34138E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.0442       1.0000          .0000       10.000    
     3 'Normalizat'    1.0949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89646       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8584.621     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      238 TOTAL
                     EDM=   .10E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.9729        .42118E-03** at limit **
   2  Index         2.6728        1.7339        .31458E-04     .0000    
   3  Normalizat    1.0950        1.1590       -.40840E-06    .87689E-05
   4  Prefactor     .89631        1.2415       -.11343E-05    .17223E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.67282
  Normalizat = 1.09499
  Prefactor  = 0.896309
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8584.621     FROM HESSE     STATUS=FAILED         9 CALLS      247 TOTAL
                     EDM=   .10E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.9729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .80858        2.0503        .31458E-04   -.48413    
   3  Normalizat    1.0950        1.1590       -.40840E-06   -.89913    
   4  Prefactor     .89631        1.2415       -.11343E-05   -.96270    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.01997e-13
Minuit parameter uncertainties:
  1  9.95117e-08
  2  1.78162
  3  1.18771
  4  1.28429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163133': 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): 101
logL (Free Index) = 8584.62125561
delta logL = 2.41252564592e-08

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  0.000e+00  9.951e-08  0.000e+00  1.000e+06 ( 1.000e-13)
270        Index:  2.673e+00  1.782e+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:  8.963e-01  1.284e+00  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:  1.095e+00  1.188e+00  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/163133/cmap_HighResolution_689558401_689817601_4FGL_J2158.1-1501_daily_bin1737.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-03', job_status='DONE', photon_flux_upper_limit='3.47e-08', time_completed='2022-11-11 01:09:04.345174', job_id='163133', GAL2='0.90', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1668157744.35', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.41e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1737' AND source_name='4FGL J2158.1-1501' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Nov 11 01:09:04 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 163133: <4FGL_J2158.1-1501_daily_bin1737> in cluster <slac> Done

Job <4FGL_J2158.1-1501_daily_bin1737> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Nov 11 00:55:43 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Nov 11 00:58:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Nov 11 00:58:23 2022
Terminated at Fri Nov 11 01:09:05 2022
Results reported at Fri Nov 11 01:09:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.1-1501_daily_bin1737 329.527 -15.0237 689558401 689817601 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 :                                   552.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            802 sec.

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

