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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1751
RA = 329.714, Dec = -30.2251
tmin = 693187201, tmax = 693446401
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='87795', job_status='RUN', time_executed='2022-12-23 01:22:55.771357', time_epoch_executed='1671787375.77' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87795

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87795/ft1_4FGL_J2158.8-3013_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87795/ft2_4FGL_J2158.8-3013_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87795/ft1_4FGL_J2158.8-3013_daily_bin1751.fits outfile=/scratch/kocevski/87795/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1751.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=693187201.0 tmax=693446401.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.63
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87795/ft2_4FGL_J2158.8-3013_daily_bin1751.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/87795/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/87795/ft1_filtered_4FGL_J2158.8-3013_daily_bin1751.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.33
sys 0.14

Number of photons that the gtmktime cut: 556

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87795/ft1_filtered_4FGL_J2158.8-3013_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/87795/ft2_4FGL_J2158.8-3013_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/87795/ltcube_693187201_693446401_4FGL_J2158.8-3013_daily_bin1751.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/87795/ft2_4FGL_J2158.8-3013_daily_bin1751.fits
.....................!
real 11.99
user 11.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87795/ft1_filtered_4FGL_J2158.8-3013_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/87795/ft2_4FGL_J2158.8-3013_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/87795/ltcube_693187201_693446401_4FGL_J2158.8-3013_daily_bin1751.fits outfile=/scratch/kocevski/87795/expmap_693187201_693446401_4FGL_J2158.8-3013_daily_bin1751.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/87795/ltcube_693187201_693446401_4FGL_J2158.8-3013_daily_bin1751.fits
.....................!
real 190.34
user 185.55
sys 4.44

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/87795/ft1_filtered_4FGL_J2158.8-3013_daily_bin1751.fits scfile=/scratch/kocevski/87795/ft2_4FGL_J2158.8-3013_daily_bin1751.fits outfile=/scratch/kocevski/87795/cmap_693187201_693446401_4FGL_J2158.8-3013_daily_bin1751.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87795/ft1_filtered_4FGL_J2158.8-3013_daily_bin1751.fits scfile=/scratch/kocevski/87795/ft2_4FGL_J2158.8-3013_daily_bin1751.fits outfile=/scratch/kocevski/87795/cmap_HighResolution_693187201_693446401_4FGL_J2158.8-3013_daily_bin1751.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/87795/ft1_filtered_4FGL_J2158.8-3013_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/87795/ft2_4FGL_J2158.8-3013_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/87795/Model_4FGL_J2158.8-3013_daily_bin1751.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/87795/ft1_filtered_4FGL_J2158.8-3013_daily_bin1751.fits.....................!
real 49.89
user 48.49
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/87795/ft1_filtered_4FGL_J2158.8-3013_daily_bin1751.fits', '/scratch/kocevski/87795/ft2_4FGL_J2158.8-3013_daily_bin1751.fits', expMap='/scratch/kocevski/87795/expmap_693187201_693446401_4FGL_J2158.8-3013_daily_bin1751.fits', expCube='/scratch/kocevski/87795/ltcube_693187201_693446401_4FGL_J2158.8-3013_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/87795/Model_4FGL_J2158.8-3013_daily_bin1751.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  0.000e+00  1.000e+06 ( 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 -5.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/87795/ft1_filtered_4FGL_J2158.8-3013_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/87795/ft2_4FGL_J2158.8-3013_daily_bin1751.fits
Exposure map: /scratch/kocevski/87795/expmap_693187201_693446401_4FGL_J2158.8-3013_daily_bin1751.fits
Exposure cube: /scratch/kocevski/87795/ltcube_693187201_693446401_4FGL_J2158.8-3013_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/87795/Model_4FGL_J2158.8-3013_daily_bin1751.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) = 6075.48653737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19229E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .19069E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .17054E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.455       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.9200       1.0000          .0000       .10000E+07
     6 'norm      '    8.3465       1.0000          .0000       .10000E+07
     7 'Prefactor '    .95628E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .31870E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .21627E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .56186       1.0000          .0000       .10000E+07
    11 'Prefactor '    21.846       1.0000          .0000       .10000E+07
    12 'Prefactor '    .36769E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14059E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .23037E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    39.336       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.5011       1.0000          .0000       .10000E+07
    17 'norm      '    2.7718       1.0000          .0000       .10000E+07
    18 'Prefactor '    .39579E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    8.7067       1.0000          .0000       .10000E+07
    20 'norm      '    2.4591       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0671       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83547       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6075.284     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1678 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61062E-09    4.6590       -.33801E-06** at limit **
   2  Prefactor     .55511E-10    2.0673        .84086E-06** at limit **
   3  Prefactor     .33307E-09    6.9426       -.38753E-06** at limit **
   4  Prefactor     16.517        1.6045       -.21833E-07    .20442E-03
   5  Prefactor     6.7772        8.9539        .94940E-06    .43674E-02
   6  norm          8.3198        6.2629        .44669E-07   -.40402E-03
   7  Prefactor      .0000        10.982       -.86750E-06** at limit **
   8  Prefactor     .55511E-09    3.7472        .91208E-06** at limit **
   9  norm          .11147E-06    2.3699        .23323E-06** at limit **
  10  norm          .56201        .28354        .55532E-07   -.27163E-02
  11  Prefactor     21.860        2.0161       -.10550E-06    .94747E-02
  12  Prefactor     .22093E-07    6.7387        .24334E-06** at limit **
  13  Prefactor     .11102E-09    3.3165        .51586E-06** at limit **
  14  norm          .11102E-09    4.1067       -.50257E-06** at limit **
  15  Prefactor     40.588        23.192       -.38083E-06    .30181E-02
  16  Prefactor     7.5781        1.5384       -.80377E-07    .13505E-03
  17  norm          2.7718        1.8351        .16668E-06    .23355E-03
  18  Prefactor      .0000        35.111       -.96121E-06** at limit **
  19  Prefactor     8.7266        1.9580       -.82485E-07    .83124E-02
  20  norm          2.4465        3.9256       -.18136E-06    .31538E-04
  21  Normalizat    1.0657        .21128       -.80813E-05   -.23566E-04
  22  Prefactor     .83602        .15636        .34237E-05   -.96283E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.10623e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 3.33067e-10
  Prefactor  = 16.5175
  Prefactor  = 6.77717
  norm       = 8.31977
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  norm       = 1.11466e-07
  norm       = 0.56201
  Prefactor  = 21.8598
  Prefactor  = 2.20934e-08
  Prefactor  = 1.11022e-10
  norm       = 1.11022e-10
  Prefactor  = 40.5879
  Prefactor  = 7.5781
  norm       = 2.77181
  Prefactor  = 0
  Prefactor  = 8.72659
  norm       = 2.44651
  Normalizat = 1.06566
  Prefactor  = 0.836017
 **********
 **   18 **HESSE 
 **********

 FCN=   6075.284     FROM HESSE     STATUS=OK           388 CALLS     2066 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61062E-09    4.6988        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    2.0693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    6.9807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.517        15.320        .24664E-03   -1.5627    
   5  Prefactor     6.7772        9.5475        .38115E-03   -1.5656    
   6  norm          8.3198        6.2717        .34676E-03   -1.5650    
   7  Prefactor      .0000        11.036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-09    60.308        .16353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .11147E-06    9.9171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .56201        .28282        .64644E-03   -1.5693    
  11  Prefactor     21.860        11.003        .21401E-03   -1.5614    
  12  Prefactor     .22093E-07    8.5081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-09    3.3204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .11102E-09    4.1158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.588        23.264        .15946E-03   -1.5581    
  16  Prefactor     7.5781        11.809        .36594E-03   -1.5653    
  17  norm          2.7718        1.8410        .61102E-03   -1.5675    
  18  Prefactor      .0000        35.090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.7266        11.783        .33946E-03   -1.5649    
  20  norm          2.4465        3.9543        .65193E-03   -1.5677    
  21  Normalizat    1.0657        .18681        .58096E-01   -.90862    
  22  Prefactor     .83602        .13359        .44177E-01   -.98414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60319e-08
Minuit parameter uncertainties:
  1  0.00010898
  2  1.99273e-05
  3  9.61732e-05
  4  15.3202
  5  9.54755
  6  6.27169
  7  1.85802e-05
  8  0.000357367
  9  0.00210279
  10  0.282819
  11  11.0033
  12  0.000867644
  13  3.3813e-05
  14  3.76326e-05
  15  23.2637
  16  11.8095
  17  1.84096
  18  6.22856e-05
  19  11.7834
  20  3.9543
  21  0.186924
  22  0.133646
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.620e-01  2.828e-01  0.000e+00  1.000e+06 ( 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 -5.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:  8.360e-01  1.336e-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:  1.066e+00  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.54
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.66e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 5.28e-05 +/- 2.66e-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) = 6074.99885946
delta logL = 0.2855977361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6074.99448034
delta logL = 0.289976847658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53865       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0864       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84412       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=   6074.994     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      203 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53867        4.3351        .58258E-03    .24546E-01
   2  alpha         2.0864        3.5108        .26483        .13201E-04
   3  Normalizat    1.0421        .10580        .41119E-01    .89962E-05
   4  Prefactor     .84411        .57246E-01    .44289E-01    .10675E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.538675
  alpha      = 2.08643
  Normalizat = 1.04208
  Prefactor  = 0.844111
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.994     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53867        .27561        .25724E-05   -1.5693    
   2  alpha         2.0864        .42744        .10020E-01   -.16619    
   3  Normalizat    1.0421        .21180        .25921E-03   -.91634    
   4  Prefactor     .84411        .15631        .21218E-03   -.98122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12917e-10
Minuit parameter uncertainties:
  1  0.275612
  2  0.429608
  3  0.211971
  4  0.156395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87795': 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) = 6074.9944803
delta logL = 0.289976895026

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.387e-01  2.756e-01  0.000e+00  1.000e+06 ( 1.000e-11)
262        alpha:  2.086e+00  4.296e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  4.097e-02  0.000e+00 -5.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:  8.441e-01  1.564e-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:  1.042e+00  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.10
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 2.09 +/- 0.43
Photon Flux (Free Index): 6.76e-08 +/- 4.22e-08
Energy Flux (Free Index): 3.68e-05 +/- 2.27e-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/87795/cmap_HighResolution_693187201_693446401_4FGL_J2158.8-3013_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.66e-08', energy_flux2='3.68e-05', photon_flux_error='2.34e-08', dlogl='2.90e-01', energy_flux='5.28e-05', photon_flux2='6.76e-08', job_status='DONE', time_completed='2022-12-23 01:31:15.033394', photon_index_error2='0.43', photon_index2='2.09', ts='14.54', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='1.07', time_epoch_completed='1671787875.03', return_code='0', job_id='87795', GAL2='0.84', EG2='1.04', return_code2='0', energy_flux_error='2.66e-05', photon_flux_error2='4.22e-08', ts2='15.10', photon_index='1.77' WHERE bin_id='1751' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:31:15 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 87795: <4FGL_J2158.8-3013_daily_bin1751> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 23 01:20:17 2022
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 01:20:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 01:20:19 2022
Terminated at Fri Dec 23 01:31:15 2022
Results reported at Fri Dec 23 01:31:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1751 329.714 -30.2251 693187201 693446401 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.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            658 sec.

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

