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 172 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7494
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2158.1-1501_daily_bin1701
RA = 329.527, Dec = -15.0237
tmin = 680227201, tmax = 680486401
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='192025', job_status='RUN', time_executed='2022-07-26 02:14:57.304043', time_epoch_executed='1658826897.3' WHERE source_name='4FGL J2158.1-1501' and cadence='daily' and bin_id='1701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192025

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192025/ft1_4FGL_J2158.1-1501_daily_bin1701.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192025/ft2_4FGL_J2158.1-1501_daily_bin1701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192025/ft1_4FGL_J2158.1-1501_daily_bin1701.fits outfile=/scratch/kocevski/192025/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1701.fits ra=329.527 dec=-15.0237 rad=12.0 tmin=680227201.0 tmax=680486401.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.94
user 2.70
sys 0.21

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

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

Number of photons that the gtmktime cut: 33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192025/ft1_filtered_4FGL_J2158.1-1501_daily_bin1701.fits" evtable="EVENTS" scfile=/scratch/kocevski/192025/ft2_4FGL_J2158.1-1501_daily_bin1701.fits sctable="SC_DATA" outfile=/scratch/kocevski/192025/ltcube_680227201_680486401_4FGL_J2158.1-1501_daily_bin1701.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/192025/ft2_4FGL_J2158.1-1501_daily_bin1701.fits
.....................!
real 16.39
user 16.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192025/ft1_filtered_4FGL_J2158.1-1501_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/192025/ft2_4FGL_J2158.1-1501_daily_bin1701.fits sctable="SC_DATA" expcube=/scratch/kocevski/192025/ltcube_680227201_680486401_4FGL_J2158.1-1501_daily_bin1701.fits outfile=/scratch/kocevski/192025/expmap_680227201_680486401_4FGL_J2158.1-1501_daily_bin1701.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/192025/ltcube_680227201_680486401_4FGL_J2158.1-1501_daily_bin1701.fits
.....................!
real 191.86
user 186.56
sys 4.82

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/192025/ft1_filtered_4FGL_J2158.1-1501_daily_bin1701.fits scfile=/scratch/kocevski/192025/ft2_4FGL_J2158.1-1501_daily_bin1701.fits outfile=/scratch/kocevski/192025/cmap_680227201_680486401_4FGL_J2158.1-1501_daily_bin1701.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192025/ft1_filtered_4FGL_J2158.1-1501_daily_bin1701.fits scfile=/scratch/kocevski/192025/ft2_4FGL_J2158.1-1501_daily_bin1701.fits outfile=/scratch/kocevski/192025/cmap_HighResolution_680227201_680486401_4FGL_J2158.1-1501_daily_bin1701.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.63
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/192025/ft1_filtered_4FGL_J2158.1-1501_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/192025/ft2_4FGL_J2158.1-1501_daily_bin1701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/192025/Model_4FGL_J2158.1-1501_daily_bin1701.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/192025/ft1_filtered_4FGL_J2158.1-1501_daily_bin1701.fits.................................!
real 18.64
user 15.34
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/192025/ft1_filtered_4FGL_J2158.1-1501_daily_bin1701.fits', '/scratch/kocevski/192025/ft2_4FGL_J2158.1-1501_daily_bin1701.fits', expMap='/scratch/kocevski/192025/expmap_680227201_680486401_4FGL_J2158.1-1501_daily_bin1701.fits', expCube='/scratch/kocevski/192025/ltcube_680227201_680486401_4FGL_J2158.1-1501_daily_bin1701.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/192025/Model_4FGL_J2158.1-1501_daily_bin1701.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  1.000e-04  1.000e+04 ( 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/192025/ft1_filtered_4FGL_J2158.1-1501_daily_bin1701.fits
Spacecraft file(s): /scratch/kocevski/192025/ft2_4FGL_J2158.1-1501_daily_bin1701.fits
Exposure map: /scratch/kocevski/192025/expmap_680227201_680486401_4FGL_J2158.1-1501_daily_bin1701.fits
Exposure cube: /scratch/kocevski/192025/ltcube_680227201_680486401_4FGL_J2158.1-1501_daily_bin1701.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/192025/Model_4FGL_J2158.1-1501_daily_bin1701.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) = 420.266780218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13663E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24338E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.037       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13629E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12905E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    88.667       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42732E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10907E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    384.56       1.0000         .10000E-03   10000.    
    15 'Prefactor '    85.337       1.0000         .10000E-03   10000.    
    16 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5461       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .37211E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .72809       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=   420.2202     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     1558 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    68.855        .46879E-05** at limit **
   2  Prefactor     .11055E-03    79.122        .13590E-05** at limit **
   3  Prefactor     .10007E-03    31.610        .21165E-05** at limit **
   4  Prefactor     .20101E-03    127.97       -.53596E-06** at limit **
   5  Prefactor     71.032        1.4421       -.10597E-07    .14858E-02
   6  Prefactor     .54719E-03    7.5878       -.42502E-06** at limit **
   7  Prefactor     .12371E-03    57.785        .26151E-05** at limit **
   8  norm          .10157E-03    36.745        .17224E-05** at limit **
   9  Prefactor     .10000E-03    26.114       -.25018E-05** at limit **
  10  Prefactor     88.659        1.8485       -.15395E-07    .23927E-02
  11  Prefactor     .10574E-03    37.915        .23786E-05** at limit **
  12  Prefactor     .13360E-03    4.2575       -.23878E-06** at limit **
  13  Prefactor     .10732E-03    43.394        .40791E-05** at limit **
  14  Prefactor     384.57        2.7034        .11783E-07   -.85563E-02
  15  Prefactor     85.364        5.8073        .55361E-07   -.90920E-02
  16  norm          .10000E-03    5.4061        .12395E-05** at limit **
  17  norm          1.5461        1.8601       -.46530E-06   -.73811E-03
  18  Normalizat    .32419E-01    6.3602       -.62936E-04   -.17926E-04
  19  Prefactor     .73101        .38141        .64922E-05   -.30938E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100204
  Prefactor  = 0.000110552
  Prefactor  = 0.000100068
  Prefactor  = 0.000201011
  Prefactor  = 71.0324
  Prefactor  = 0.000547194
  Prefactor  = 0.000123706
  norm       = 0.000101566
  Prefactor  = 0.0001
  Prefactor  = 88.6589
  Prefactor  = 0.000105739
  Prefactor  = 0.000133595
  Prefactor  = 0.00010732
  Prefactor  = 384.569
  Prefactor  = 85.3641
  norm       = 0.0001
  norm       = 1.54613
  Normalizat = 0.0324186
  Prefactor  = 0.731012
 **********
 **   18 **HESSE 
 **********

 FCN=   420.2202     FROM HESSE     STATUS=NOT POSDEF   294 CALLS     1852 TOTAL
                     EDM=   .35E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    100.09        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11055E-03    192.68        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10007E-03    28.528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .20101E-03    305.40        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     71.032        171.49        .11907E-02   -1.4020    
   6  Prefactor     .54719E-03    1238.4        .10272E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12371E-03    154.52        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10157E-03    35.516        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.632        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     88.659        264.16        .10667E-02   -1.3822    
  11  Prefactor     .10574E-03    45.213        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13360E-03    793.43        .10617E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10732E-03    63.145        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     384.57        790.53        .52004E-03   -1.1760    
  15  Prefactor     85.364        329.21        .10872E-02   -1.3857    
  16  norm          .10000E-03    5.1579        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5461        1.9311        .66274E-02   -1.5459    
  18  Normalizat    .32419E-01    5.2903        .17285       -1.4760    
  19  Prefactor     .73101        2.0588        .42774E-01   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.49376e-05
Minuit parameter uncertainties:
  1  0.00904725
  2  0.0904755
  3  0.00278473
  4  0.353091
  5  172.705
  6  1.52091
  7  0.12136
  8  0.014924
  9  0.000108655
  10  267.789
  11  0.032242
  12  0.331009
  13  0.0430428
  14  814.684
  15  336.673
  16  9.45935e-05
  17  1.93113
  18  3.25163
  19  2.37472
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 420.22017259

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  8.866e+01  2.678e+02  1.000e-04  1.000e+04 ( 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:  7.310e-01  2.375e+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:  3.242e-02  3.252e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.80
Ra Dec: 329.527 -15.024
Photon Flux Upper Limit: 9.80e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192025/likelihoodResults_680227201_680486401_4FGL_J2158.1-1501_daily_bin1701.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) = 419.62161825
delta logL = 0.598554340263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 419.590185922
delta logL = 0.629986668141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.730       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6652       1.0000          .0000       10.000    
     3 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71448       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=   419.5902     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      318 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.741        44.752        .77264E-04   -.85009E-04
   2  Index         3.6637        1.4910        .21087E-03   -.32143E-04
   3  Normalizat    .10000E-01    1.8444        .10340E-01** at limit **
   4  Prefactor     .71446        .19862        .15155E-03    .48645E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7415
  Index      = 3.66366
  Normalizat = 0.01
  Prefactor  = 0.714456
 **********
 **   18 **HESSE 
 **********

 FCN=   419.5902     FROM HESSE     STATUS=OK            23 CALLS      341 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.741        43.946        .15453E-04   -1.4914    
   2  Index         3.6637        1.4649        .84348E-05   -.27056    
   3  Normalizat    .10000E-01    1.8469        .20680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .71446        .19825        .30309E-04   -1.0296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62645e-11
Minuit parameter uncertainties:
  1  44.0365
  2  1.48847
  3  2.66357e-05
  4  0.198447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192025': 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) = 419.590182118
delta logL = 0.629990471554

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  1.574e+01  4.404e+01  1.000e-04  1.000e+04 ( 1.000e-13)
270        Index:  3.664e+00  1.488e+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:  7.145e-01  1.984e-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.000e-02  2.664e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 329.527 -15.024
Photon Index (Free Index): 3.66 +/- 1.49
Photon Flux (Free Index): 6.11e-07 +/- 6.98e-07
Energy Flux (Free Index): 9.76e-05 +/- 9.94e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/192025/cmap_HighResolution_680227201_680486401_4FGL_J2158.1-1501_daily_bin1701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.45e-02', comment='SUCCESS', energy_flux2='9.76e-05', dlogl='6.30e-01', photon_flux2='6.11e-07', job_status='DONE', time_completed='2022-07-26 02:20:29.434627', photon_index_error2='1.49', photon_index2='3.66', ts='0.80', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='9.80e-07', energy_flux_error2='9.94e-05', EG='0.03', time_epoch_completed='1658827229.43', return_code='102', job_id='192025', GAL2='0.71', EG2='0.01', return_code2='0', photon_flux_error2='6.98e-07', ts2='2.07', photon_index='2.18' WHERE bin_id='1701' AND source_name='4FGL J2158.1-1501' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 26 02:20:29 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 192025: <4FGL_J2158.1-1501_daily_bin1701> in cluster <slac> Done

Job <4FGL_J2158.1-1501_daily_bin1701> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jul 26 02:10:23 2022
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 02:11:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 02:11:56 2022
Terminated at Tue Jul 26 02:20:30 2022
Results reported at Tue Jul 26 02:20:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.1-1501_daily_bin1701 329.527 -15.0237 680227201 680486401 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 :                                   333.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             354.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   513 sec.
    Turnaround time :                            607 sec.

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

