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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1695
RA = 329.714, Dec = -30.2251
tmin = 678672001, tmax = 678931201
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='731178', job_status='RUN', time_executed='2022-07-08 00:36:21.750883', time_epoch_executed='1657265781.75' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731178

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731178/ft1_4FGL_J2158.8-3013_daily_bin1695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731178/ft2_4FGL_J2158.8-3013_daily_bin1695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731178/ft1_4FGL_J2158.8-3013_daily_bin1695.fits outfile=/scratch/kocevski/731178/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1695.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=678672001.0 tmax=678931201.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.60
user 3.38
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/731178/ft2_4FGL_J2158.8-3013_daily_bin1695.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731178/ft2_4FGL_J2158.8-3013_daily_bin1695.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/731178/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1695.fits evtable="EVENTS" outfile="/scratch/kocevski/731178/ft1_filtered_4FGL_J2158.8-3013_daily_bin1695.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 429

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731178/ft1_filtered_4FGL_J2158.8-3013_daily_bin1695.fits" evtable="EVENTS" scfile=/scratch/kocevski/731178/ft2_4FGL_J2158.8-3013_daily_bin1695.fits sctable="SC_DATA" outfile=/scratch/kocevski/731178/ltcube_678672001_678931201_4FGL_J2158.8-3013_daily_bin1695.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/731178/ft2_4FGL_J2158.8-3013_daily_bin1695.fits
.....................!
real 12.43
user 12.05
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731178/ft1_filtered_4FGL_J2158.8-3013_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731178/ft2_4FGL_J2158.8-3013_daily_bin1695.fits sctable="SC_DATA" expcube=/scratch/kocevski/731178/ltcube_678672001_678931201_4FGL_J2158.8-3013_daily_bin1695.fits outfile=/scratch/kocevski/731178/expmap_678672001_678931201_4FGL_J2158.8-3013_daily_bin1695.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/731178/ltcube_678672001_678931201_4FGL_J2158.8-3013_daily_bin1695.fits
.....................!
real 193.10
user 187.18
sys 5.54

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2158.8-3013 @ 329.714 -30.2251

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/731178/ft1_filtered_4FGL_J2158.8-3013_daily_bin1695.fits scfile=/scratch/kocevski/731178/ft2_4FGL_J2158.8-3013_daily_bin1695.fits outfile=/scratch/kocevski/731178/cmap_678672001_678931201_4FGL_J2158.8-3013_daily_bin1695.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.714 yref=-30.2251 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/731178/ft1_filtered_4FGL_J2158.8-3013_daily_bin1695.fits scfile=/scratch/kocevski/731178/ft2_4FGL_J2158.8-3013_daily_bin1695.fits outfile=/scratch/kocevski/731178/cmap_HighResolution_678672001_678931201_4FGL_J2158.8-3013_daily_bin1695.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.714 yref=-30.2251 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731178/ft1_filtered_4FGL_J2158.8-3013_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731178/ft2_4FGL_J2158.8-3013_daily_bin1695.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731178/Model_4FGL_J2158.8-3013_daily_bin1695.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/731178/ft1_filtered_4FGL_J2158.8-3013_daily_bin1695.fits.....................!
real 44.66
user 43.33
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731178/ft1_filtered_4FGL_J2158.8-3013_daily_bin1695.fits', '/scratch/kocevski/731178/ft2_4FGL_J2158.8-3013_daily_bin1695.fits', expMap='/scratch/kocevski/731178/expmap_678672001_678931201_4FGL_J2158.8-3013_daily_bin1695.fits', expCube='/scratch/kocevski/731178/ltcube_678672001_678931201_4FGL_J2158.8-3013_daily_bin1695.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731178/Model_4FGL_J2158.8-3013_daily_bin1695.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2158.8-3013'

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.436e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.767e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  4.097e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/731178/ft1_filtered_4FGL_J2158.8-3013_daily_bin1695.fits
Spacecraft file(s): /scratch/kocevski/731178/ft2_4FGL_J2158.8-3013_daily_bin1695.fits
Exposure map: /scratch/kocevski/731178/expmap_678672001_678931201_4FGL_J2158.8-3013_daily_bin1695.fits
Exposure cube: /scratch/kocevski/731178/ltcube_678672001_678931201_4FGL_J2158.8-3013_daily_bin1695.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731178/Model_4FGL_J2158.8-3013_daily_bin1695.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) = 4917.52474107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3253       1.0000         .10000E-03   10000.    
     6 'norm      '    9.4869       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22068E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.6310       1.0000         .10000E-03   10000.    
    10 'norm      '    .55536       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3386       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.422       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.368       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.388       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.618       1.0000         .10000E-03   10000.    
    20 'norm      '    4.7998       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74145       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1340       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4917.513     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2352 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5266        .90712E-02** at limit **
   2  Prefactor     .10000E-03    3.5716        .90712E-02** at limit **
   3  Prefactor     .10000E-03    4.5653        .90712E-02** at limit **
   4  Prefactor     .10000E-03    35.039        .90712E-02** at limit **
   5  Prefactor     6.3261        6.4726        .39900E-02   -.51730E-03
   6  norm          9.4892        9.1098        .32528E-02   -.20913E-03
   7  Prefactor     .10000E-03    13.228        .90712E-02** at limit **
   8  Prefactor     .10000E-03    165.24        .90712E-02** at limit **
   9  norm          4.6268        6.9328        .46757E-02    .21320E-02
  10  norm          .55531        .38220        .73373E-02    .46630E-03
  11  Prefactor     6.3370        11.833        .39857E-02    .14643E-02
  12  Prefactor     14.424        18.053        .26367E-02    .86045E-03
  13  Prefactor     14.376        13.787        .26417E-02    .17624E-03
  14  norm          .10000E-03    6.2768        .90712E-02** at limit **
  15  Prefactor     27.390        22.945        .19138E-02    .22573E-03
  16  Prefactor     .10000E-03    7.2025        .90712E-02** at limit **
  17  norm          .10000E-03    .69726        .90712E-02** at limit **
  18  Prefactor     .10000E-03    13.033        .90712E-02** at limit **
  19  Prefactor     17.626        19.228        .23855E-02    .16987E-02
  20  norm          4.8006        4.9298        .45908E-02   -.48804E-03
  21  Normalizat    .74098        .24842        .72905E-01    .20127E-04
  22  Prefactor     1.1343        .16452        .36416E-01   -.52656E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.32606
  norm       = 9.48921
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  norm       = 4.62683
  norm       = 0.555312
  Prefactor  = 6.33702
  Prefactor  = 14.4238
  Prefactor  = 14.3761
  norm       = 0.0001
  Prefactor  = 27.3904
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.6258
  norm       = 4.80057
  Normalizat = 0.740978
  Prefactor  = 1.13429
 **********
 **   18 **HESSE 
 **********

 FCN=   4917.513     FROM HESSE     STATUS=OK           338 CALLS     2690 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5324        .14571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.5892        .12942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5921        .14629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3261        6.4738        .15960E-03   -1.5205    
   6  norm          9.4892        9.1028        .13011E-03   -1.5092    
   7  Prefactor     .10000E-03    13.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    166.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.6268        6.9551        .18703E-03   -1.5278    
  10  norm          .55531        .38263        .32310E-04   -1.5559    
  11  Prefactor     6.3370        11.828        .15943E-03   -1.5204    
  12  Prefactor     14.424        18.054        .10547E-03   -1.4948    
  13  Prefactor     14.376        13.998        .10567E-03   -1.4949    
  14  norm          .10000E-03    6.2782        .17159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.390        22.939        .76550E-04   -1.4661    
  16  Prefactor     .10000E-03    7.2293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .69888        .57181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.626        19.380        .95421E-04   -1.4868    
  20  norm          4.8006        4.9246        .15290E-03   -1.5270    
  21  Normalizat    .74098        .29263        .32268E-03   -1.0230    
  22  Prefactor     1.1343        .19370        .19535E-03   -.88378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69153e-08
Minuit parameter uncertainties:
  1  4.83119e-06
  2  2.08791e-06
  3  7.72903e-06
  4  1.35581e-05
  5  6.47456
  6  9.10418
  7  0.000194436
  8  0.00153512
  9  6.9563
  10  0.382628
  11  11.8319
  12  18.0613
  13  14.001
  14  2.61837e-06
  15  22.9465
  16  2.07676e-06
  17  2.72786e-07
  18  0.000227561
  19  19.3867
  20  4.92497
  21  0.293253
  22  0.193826
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.553e-01  3.826e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.767e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  4.097e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.134e+00  1.938e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  7.410e-01  2.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.33
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 5.22e-05 +/- 3.60e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4917.51283658
delta logL = 2.43203703576e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4917.51283411
delta logL = 4.90158618049e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55456       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7652       1.0000          .0000       5.0000    
     3 'Normalizat'    .74123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4917.236     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      297 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14474E-01    .24398E-01    .18120E-02   -.65887E-03
   2  alpha         .23146        .61120        .43617        .28077E-04
   3  Normalizat    .77198        .21806        .71658E-01    .47630E-04
   4  Prefactor     1.1371        .16115        .36412E-01   -.12077E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0144743
  alpha      = 0.231458
  Normalizat = 0.771979
  Prefactor  = 1.13707
 **********
 **   18 **HESSE 
 **********

 FCN=   4917.236     FROM HESSE     STATUS=OK            33 CALLS      330 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14474E-01    .59304E-01    .75065E-04   -1.5684    
   2  alpha         .23146        2.6797        .22904E-01   -1.1371    
   3  Normalizat    .77198        .25116        .31713E-03   -1.0112    
   4  Prefactor     1.1371        .18602        .19562E-03   -.88290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87294e-08
Minuit parameter uncertainties:
  1  0.0583936
  2  1.19302
  3  0.25154
  4  0.186127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731178': 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) = 4917.23551905
delta logL = 0.277319962116

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.447e-02  5.839e-02  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.315e-01  1.193e+00  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  4.097e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.137e+00  1.861e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  7.720e-01  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.81
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 0.23 +/- 1.19
Photon Flux (Free Index): 4.20e-09 +/- 4.53e-09
Energy Flux (Free Index): 1.54e-04 +/- 1.84e-04

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/731178/cmap_HighResolution_678672001_678931201_4FGL_J2158.8-3013_daily_bin1695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='1.54e-04', photon_flux_error='3.17e-08', dlogl='2.77e-01', energy_flux='5.22e-05', photon_flux2='4.20e-09', job_status='DONE', time_completed='2022-07-08 00:44:40.840784', photon_index_error2='1.19', photon_index2='0.23', ts='14.33', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.84e-04', EG='0.74', time_epoch_completed='1657266280.84', return_code='0', job_id='731178', GAL2='1.14', EG2='0.77', return_code2='0', energy_flux_error='3.60e-05', photon_flux_error2='4.53e-09', ts2='14.81', photon_index='1.77' WHERE bin_id='1695' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul  8 00:44:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 731178: <4FGL_J2158.8-3013_daily_bin1695> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1695> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jul  8 00:35:17 2022
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  8 00:35:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  8 00:35:18 2022
Terminated at Fri Jul  8 00:44:41 2022
Results reported at Fri Jul  8 00:44:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1695 329.714 -30.2251 678672001 678931201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2158.8-3013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   501.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            564 sec.

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

