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


Performing analysis on: 4FGL_J2158.1-1501_daily_bin1707
RA = 329.527, Dec = -15.0237
tmin = 681782401, tmax = 682041601
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='550248', job_status='RUN', time_executed='2022-08-13 00:31:04.930281', time_epoch_executed='1660375864.93' WHERE source_name='4FGL J2158.1-1501' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550248

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550248/ft1_4FGL_J2158.1-1501_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550248/ft2_4FGL_J2158.1-1501_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550248/ft1_4FGL_J2158.1-1501_daily_bin1707.fits outfile=/scratch/kocevski/550248/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1707.fits ra=329.527 dec=-15.0237 rad=12.0 tmin=681782401.0 tmax=682041601.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 5.44
user 5.14
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550248/ft2_4FGL_J2158.1-1501_daily_bin1707.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/550248/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1707.fits evtable="EVENTS" outfile="/scratch/kocevski/550248/ft1_filtered_4FGL_J2158.1-1501_daily_bin1707.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 524

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550248/ft1_filtered_4FGL_J2158.1-1501_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/550248/ft2_4FGL_J2158.1-1501_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/550248/ltcube_681782401_682041601_4FGL_J2158.1-1501_daily_bin1707.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/550248/ft2_4FGL_J2158.1-1501_daily_bin1707.fits
.....................!
real 11.80
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550248/ft1_filtered_4FGL_J2158.1-1501_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/550248/ft2_4FGL_J2158.1-1501_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/550248/ltcube_681782401_682041601_4FGL_J2158.1-1501_daily_bin1707.fits outfile=/scratch/kocevski/550248/expmap_681782401_682041601_4FGL_J2158.1-1501_daily_bin1707.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/550248/ltcube_681782401_682041601_4FGL_J2158.1-1501_daily_bin1707.fits
.....................!
real 192.33
user 186.20
sys 5.73

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/550248/ft1_filtered_4FGL_J2158.1-1501_daily_bin1707.fits scfile=/scratch/kocevski/550248/ft2_4FGL_J2158.1-1501_daily_bin1707.fits outfile=/scratch/kocevski/550248/cmap_681782401_682041601_4FGL_J2158.1-1501_daily_bin1707.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550248/ft1_filtered_4FGL_J2158.1-1501_daily_bin1707.fits scfile=/scratch/kocevski/550248/ft2_4FGL_J2158.1-1501_daily_bin1707.fits outfile=/scratch/kocevski/550248/cmap_HighResolution_681782401_682041601_4FGL_J2158.1-1501_daily_bin1707.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550248/ft1_filtered_4FGL_J2158.1-1501_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/550248/ft2_4FGL_J2158.1-1501_daily_bin1707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550248/Model_4FGL_J2158.1-1501_daily_bin1707.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/550248/ft1_filtered_4FGL_J2158.1-1501_daily_bin1707.fits.....................!
real 57.85
user 56.46
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .92533E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9298       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20092E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.333       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11206E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.870       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11870E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10850E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6565       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.277       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11192E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10845E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.062       1.0000         .10000E-03   10000.    
    16 'norm      '    .15853E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .19316E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5403       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .82282       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.

 FCN=   5706.251     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2030 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7393       -.14228E-06** at limit **
   2  Prefactor     .10008E-03    16.308       -.57735E-05** at limit **
   3  Prefactor     1.9298        4.2943       -.16063E-05   -.67662E-03
   4  Prefactor     .10002E-03    13.423       -.59054E-05** at limit **
   5  Prefactor     23.348        51.879        .23862E-06    .73398E-05
   6  Prefactor     .10345E-03    22.760        .71746E-05** at limit **
   7  Prefactor     24.894        22.351        .92973E-06    .19630E-03
   8  norm          .10000E-03    2.5197       -.12251E-07** at limit **
   9  Prefactor     .10002E-03    12.915       -.58214E-05** at limit **
  10  Prefactor     .10000E-03    21.657        .74857E-07** at limit **
  11  Prefactor     2.6567        5.3263       -.90138E-06   -.36430E-03
  12  Prefactor     39.283        20.290       -.18745E-06   -.15895E-03
  13  Prefactor     .10000E-03    15.585       -.48680E-06** at limit **
  14  Prefactor     .10000E-03    29.475       -.19171E-06** at limit **
  15  Prefactor     39.916        72.267       -.44526E-05   -.12716E-03
  16  norm          .10000E-03    2.7082        .93807E-06** at limit **
  17  norm          .10000E-03    1.0586       -.12926E-05** at limit **
  18  Normalizat    1.5400        .26265       -.49356E-06    .14702E-03
  19  Prefactor     .82311        .16310        .33483E-06   -.37131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100082
  Prefactor  = 1.9298
  Prefactor  = 0.000100017
  Prefactor  = 23.3478
  Prefactor  = 0.00010345
  Prefactor  = 24.8942
  norm       = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 2.65675
  Prefactor  = 39.2832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.9158
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.54004
  Prefactor  = 0.823108
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.251     FROM HESSE     STATUS=OK           280 CALLS     2310 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7439        .17673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10008E-03    81.855        .40932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9298        4.3409        .22904E-03   -1.5430    
   4  Prefactor     .10002E-03    41.390        .32958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.348        51.874        .82924E-04   -1.4741    
   6  Prefactor     .10345E-03    11.143        .75373E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.894        22.249        .80325E-04   -1.4710    
   8  norm          .10000E-03    2.5206        .11710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    23.623        .35689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6567        5.3530        .24213E-03   -1.5382    
  12  Prefactor     39.283        20.262        .63956E-04   -1.4454    
  13  Prefactor     .10000E-03    15.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     39.916        73.222        .31664E-03   -1.4444    
  16  norm          .10000E-03    21.794        .22953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.0297        .11520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.5400        .28581        .26977E-03   -.76659    
  19  Prefactor     .82311        .17526        .22630E-03   -.98882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70773e-09
Minuit parameter uncertainties:
  1  9.07424e-06
  2  0.00518477
  3  4.34162
  4  0.00166614
  5  51.9739
  6  0.0124026
  7  22.2562
  8  2.66954e-06
  9  0.00136787
  10  4.06128e-05
  11  5.35397
  12  20.2654
  13  5.11218e-05
  14  5.58861e-05
  15  73.3879
  16  5.08696e-05
  17  6.83318e-05
  18  0.286111
  19  0.175382
Done.

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

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  4.061e-05  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:  8.231e-01  1.754e-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.540e+00  2.861e-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: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550248/likelihoodResults_681782401_682041601_4FGL_J2158.1-1501_daily_bin1707.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) = 5706.25153473
delta logL = -0.000218564668103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5706.25131641
delta logL = -2.43268004851e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0946       1.0000          .0000       10.000    
     3 'Normalizat'    1.5400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82312       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.

 FCN=   5706.251     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1682.9        .90712E-02** at limit **
   2  Index         2.1206        7.8676        .50000       -.10664E-04
   3  Normalizat    1.5400        .62085E-01    .60999E-01    .50772E-04
   4  Prefactor     .82311        .39786E-01    .44017E-01    .60646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.12062
  Normalizat = 1.54003
  Prefactor  = 0.823114
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.251     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6715.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1206        5.8856        .50000       -.61367    
   3  Normalizat    1.5400        .12430        .26977E-03   -.76660    
   4  Prefactor     .82311        .79676E-01    .22630E-03   -.98882    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.457e-09
Minuit parameter uncertainties:
  1  0.00805009
  2  56.817
  3  0.124321
  4  0.0796871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550248': 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): 102
logL (Free Index) = 5706.25131632
delta logL = -1.54123881657e-07

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  8.050e-03  1.000e-04  1.000e+04 ( 1.000e-13)
270        Index:  2.121e+00  5.682e+01  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.231e-01  7.969e-02  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.540e+00  1.243e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/550248/cmap_HighResolution_681782401_682041601_4FGL_J2158.1-1501_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.46e-03', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2022-08-13 00:40:11.144280', job_id='550248', GAL2='0.82', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1660376411.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-1.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1707' AND source_name='4FGL J2158.1-1501' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:40:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 550248: <4FGL_J2158.1-1501_daily_bin1707> in cluster <slac> Done

Job <4FGL_J2158.1-1501_daily_bin1707> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 13 00:30:36 2022
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:30:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:30:37 2022
Terminated at Sat Aug 13 00:40:11 2022
Results reported at Sat Aug 13 00:40:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.1-1501_daily_bin1707 329.527 -15.0237 681782401 682041601 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 :                                   548.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            575 sec.

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

