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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1687
RA = 329.714, Dec = -30.2251
tmin = 676598401, tmax = 676857601
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='700242', job_status='RUN', time_executed='2022-06-14 01:38:48.314208', time_epoch_executed='1655195928.31' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1687'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700242

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700242/ft1_4FGL_J2158.8-3013_daily_bin1687.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700242/ft2_4FGL_J2158.8-3013_daily_bin1687.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700242/ft1_4FGL_J2158.8-3013_daily_bin1687.fits outfile=/scratch/kocevski/700242/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1687.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=676598401.0 tmax=676857601.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.92
user 2.72
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/700242/ft2_4FGL_J2158.8-3013_daily_bin1687.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/700242/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1687.fits evtable="EVENTS" outfile="/scratch/kocevski/700242/ft1_filtered_4FGL_J2158.8-3013_daily_bin1687.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.51
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 652

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700242/ft1_filtered_4FGL_J2158.8-3013_daily_bin1687.fits" evtable="EVENTS" scfile=/scratch/kocevski/700242/ft2_4FGL_J2158.8-3013_daily_bin1687.fits sctable="SC_DATA" outfile=/scratch/kocevski/700242/ltcube_676598401_676857601_4FGL_J2158.8-3013_daily_bin1687.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/700242/ft2_4FGL_J2158.8-3013_daily_bin1687.fits
.....................!
real 15.18
user 14.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700242/ft1_filtered_4FGL_J2158.8-3013_daily_bin1687.fits evtable="EVENTS" scfile=/scratch/kocevski/700242/ft2_4FGL_J2158.8-3013_daily_bin1687.fits sctable="SC_DATA" expcube=/scratch/kocevski/700242/ltcube_676598401_676857601_4FGL_J2158.8-3013_daily_bin1687.fits outfile=/scratch/kocevski/700242/expmap_676598401_676857601_4FGL_J2158.8-3013_daily_bin1687.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/700242/ltcube_676598401_676857601_4FGL_J2158.8-3013_daily_bin1687.fits
.....................!
real 194.11
user 188.20
sys 5.47

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/700242/ft1_filtered_4FGL_J2158.8-3013_daily_bin1687.fits scfile=/scratch/kocevski/700242/ft2_4FGL_J2158.8-3013_daily_bin1687.fits outfile=/scratch/kocevski/700242/cmap_676598401_676857601_4FGL_J2158.8-3013_daily_bin1687.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700242/ft1_filtered_4FGL_J2158.8-3013_daily_bin1687.fits scfile=/scratch/kocevski/700242/ft2_4FGL_J2158.8-3013_daily_bin1687.fits outfile=/scratch/kocevski/700242/cmap_HighResolution_676598401_676857601_4FGL_J2158.8-3013_daily_bin1687.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.56
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/700242/ft1_filtered_4FGL_J2158.8-3013_daily_bin1687.fits evtable="EVENTS" scfile=/scratch/kocevski/700242/ft2_4FGL_J2158.8-3013_daily_bin1687.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/700242/Model_4FGL_J2158.8-3013_daily_bin1687.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/700242/ft1_filtered_4FGL_J2158.8-3013_daily_bin1687.fits.....................!
real 57.41
user 56.06
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/700242/ft1_filtered_4FGL_J2158.8-3013_daily_bin1687.fits', '/scratch/kocevski/700242/ft2_4FGL_J2158.8-3013_daily_bin1687.fits', expMap='/scratch/kocevski/700242/expmap_676598401_676857601_4FGL_J2158.8-3013_daily_bin1687.fits', expCube='/scratch/kocevski/700242/ltcube_676598401_676857601_4FGL_J2158.8-3013_daily_bin1687.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/700242/Model_4FGL_J2158.8-3013_daily_bin1687.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/700242/ft1_filtered_4FGL_J2158.8-3013_daily_bin1687.fits
Spacecraft file(s): /scratch/kocevski/700242/ft2_4FGL_J2158.8-3013_daily_bin1687.fits
Exposure map: /scratch/kocevski/700242/expmap_676598401_676857601_4FGL_J2158.8-3013_daily_bin1687.fits
Exposure cube: /scratch/kocevski/700242/ltcube_676598401_676857601_4FGL_J2158.8-3013_daily_bin1687.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/700242/Model_4FGL_J2158.8-3013_daily_bin1687.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) = 7040.07749951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0708       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8975       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12755E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.660       1.0000         .10000E-03   10000.    
     9 'norm      '    .11842E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .87053       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4984       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.1562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.633       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2717       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.7285       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3263       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83354       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7040.025     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2071 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9642        .22548E-06** at limit **
   2  Prefactor     3.0721        4.7144        .29633E-06    .21376E-04
   3  Prefactor     .10007E-03    4.5720       -.15518E-05** at limit **
   4  Prefactor     .10000E-03    4.4669       -.65921E-06** at limit **
   5  Prefactor     2.8986        7.7792        .12646E-06    .18454E-03
   6  norm          .10000E-03    4.4281        .30621E-07** at limit **
   7  Prefactor     .10000E-03    39.057       -.20335E-04** at limit **
   8  Prefactor     16.573        52.214        .45384E-05    .82405E-04
   9  norm          .10000E-03    4.9314       -.54692E-05** at limit **
  10  norm          .87049        .32837        .22550E-07    .34730E-02
  11  Prefactor     9.4986        8.8294       -.86375E-07    .91612E-04
  12  Prefactor     .10000E-03    3.9245       -.47047E-07** at limit **
  13  Prefactor     .10000E-03    1.9030        .96461E-07** at limit **
  14  norm          5.1554        14.454        .94625E-07    .63983E-05
  15  Prefactor     30.629        20.269       -.38532E-06    .21950E-05
  16  Prefactor     .10000E-03    6.3542        .97836E-07** at limit **
  17  norm          1.2716        1.2589       -.19735E-07   -.15844E-05
  18  Prefactor     .10000E-03    22.278        .52622E-06** at limit **
  19  Prefactor     .10000E-03    3.8941        .20094E-06** at limit **
  20  norm          5.7281        3.9742       -.57210E-08    .14291E-03
  21  Normalizat    1.3265        .17792        .30780E-05    .50243E-03
  22  Prefactor     .83341        .13271       -.28217E-05    .77730E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.07213
  Prefactor  = 0.00010007
  Prefactor  = 0.0001
  Prefactor  = 2.89856
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 16.573
  norm       = 0.0001
  norm       = 0.870487
  Prefactor  = 9.4986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.1554
  Prefactor  = 30.6289
  Prefactor  = 0.0001
  norm       = 1.27162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.72814
  Normalizat = 1.3265
  Prefactor  = 0.833415
 **********
 **   18 **HESSE 
 **********

 FCN=   7040.025     FROM HESSE     STATUS=OK           336 CALLS     2407 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0721        4.6993        .21930E-03   -1.5357    
   3  Prefactor     .10007E-03    18.874        .32891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4749        .17320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8986        7.6331        .23872E-03   -1.5367    
   6  norm          .10000E-03    4.4551        .17238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.573        52.660        .98124E-04   -1.4894    
   9  norm          .10000E-03    5.0923        .36106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .87049        .32841        .28269E-04   -1.5521    
  11  Prefactor     9.4986        8.8245        .13003E-03   -1.5091    
  12  Prefactor     .10000E-03    3.9275        .16233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9076        .11301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1554        14.433        .17704E-03   -1.5254    
  15  Prefactor     30.629        20.337        .72392E-04   -1.4601    
  16  Prefactor     .10000E-03    6.3884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2716        1.2736        .90959E-04   -1.5482    
  18  Prefactor     .10000E-03    22.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9062        .16167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.7281        3.9740        .13482E-03   -1.5229    
  21  Normalizat    1.3265        .20182        .24668E-03   -.82779    
  22  Prefactor     .83341        .14934        .23053E-03   -.98508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38438e-09
Minuit parameter uncertainties:
  1  4.18654e-05
  2  4.69989
  3  0.00230456
  4  1.04641e-05
  5  7.63563
  6  2.71266e-06
  7  0.000522061
  8  52.8086
  9  1.3938e-05
  10  0.328415
  11  8.82573
  12  3.79936e-06
  13  1.15846e-06
  14  14.4423
  15  20.3419
  16  4.46984e-05
  17  1.27359
  18  9.88351e-05
  19  1.0695e-06
  20  3.97418
  21  0.201942
  22  0.149416
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  8.705e-01  3.284e-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:  8.334e-01  1.494e-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.327e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.42
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 7.21e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 8.18e-05 +/- 3.09e-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) = 7040.02311843
delta logL = 0.00192522731595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7040.02303501
delta logL = 0.00200864674298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87275       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7864       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83385       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=   7040.023     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87269        2.3209        .63820E-02   -.37533E-04
   2  alpha         1.7865        1.7842        .23470        .62747E-05
   3  Normalizat    1.3248        .21056        .55814E-01    .10982E-05
   4  Prefactor     .83386        .13749        .44156E-01    .10176E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.872688
  alpha      = 1.78652
  Normalizat = 1.32475
  Prefactor  = 0.833864
 **********
 **   18 **HESSE 
 **********

 FCN=   7040.023     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .79E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87269        .32531        .28157E-04   -1.5521    
   2  alpha         1.7865        .30970        .93381E-02   -.28942    
   3  Normalizat    1.3248        .19568        .24680E-03   -.82831    
   4  Prefactor     .83386        .14793        .23046E-03   -.98492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94413e-14
Minuit parameter uncertainties:
  1  0.325307
  2  0.310566
  3  0.195791
  4  0.147996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700242': 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) = 7040.02303491
delta logL = 0.00200874902748

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  8.727e-01  3.253e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.787e+00  3.106e-01  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:  8.339e-01  1.480e-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.325e+00  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.40
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.79 +/- 0.31
Photon Flux (Free Index): 7.39e-08 +/- 3.93e-08
Energy Flux (Free Index): 7.96e-05 +/- 4.56e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/700242/cmap_HighResolution_676598401_676857601_4FGL_J2158.8-3013_daily_bin1687.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.21e-08', energy_flux2='7.96e-05', photon_flux_error='2.72e-08', dlogl='2.01e-03', energy_flux='8.18e-05', photon_flux2='7.39e-08', job_status='DONE', time_completed='2022-06-14 01:48:18.206538', photon_index_error2='0.31', photon_index2='1.79', ts='26.42', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='4.56e-05', EG='1.33', time_epoch_completed='1655196498.21', return_code='0', job_id='700242', GAL2='0.83', EG2='1.32', return_code2='0', energy_flux_error='3.09e-05', photon_flux_error2='3.93e-08', ts2='26.40', photon_index='1.77' WHERE bin_id='1687' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jun 14 01:48:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 700242: <4FGL_J2158.8-3013_daily_bin1687> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1687> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jun 14 01:35:20 2022
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 14 01:35:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 14 01:35:49 2022
Terminated at Tue Jun 14 01:48:19 2022
Results reported at Tue Jun 14 01:48:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1687 329.714 -30.2251 676598401 676857601 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 :                                   572.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            779 sec.

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

