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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1683
RA = 329.714, Dec = -30.2251
tmin = 675561601, tmax = 675820801
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='52866', job_status='RUN', time_executed='2022-06-02 01:39:17.188668', time_epoch_executed='1654159157.19' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1683'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52866

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52866/ft1_4FGL_J2158.8-3013_daily_bin1683.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52866/ft2_4FGL_J2158.8-3013_daily_bin1683.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52866/ft1_4FGL_J2158.8-3013_daily_bin1683.fits outfile=/scratch/kocevski/52866/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1683.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=675561601.0 tmax=675820801.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.45
user 3.21
sys 0.22

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

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

Number of photons that the gtmktime cut: 786

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/52866/ft1_filtered_4FGL_J2158.8-3013_daily_bin1683.fits" evtable="EVENTS" scfile=/scratch/kocevski/52866/ft2_4FGL_J2158.8-3013_daily_bin1683.fits sctable="SC_DATA" outfile=/scratch/kocevski/52866/ltcube_675561601_675820801_4FGL_J2158.8-3013_daily_bin1683.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/52866/ft2_4FGL_J2158.8-3013_daily_bin1683.fits
.....................!
real 14.07
user 13.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52866/ft1_filtered_4FGL_J2158.8-3013_daily_bin1683.fits evtable="EVENTS" scfile=/scratch/kocevski/52866/ft2_4FGL_J2158.8-3013_daily_bin1683.fits sctable="SC_DATA" expcube=/scratch/kocevski/52866/ltcube_675561601_675820801_4FGL_J2158.8-3013_daily_bin1683.fits outfile=/scratch/kocevski/52866/expmap_675561601_675820801_4FGL_J2158.8-3013_daily_bin1683.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/52866/ltcube_675561601_675820801_4FGL_J2158.8-3013_daily_bin1683.fits
.....................!
real 193.90
user 187.19
sys 5.89

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/52866/ft1_filtered_4FGL_J2158.8-3013_daily_bin1683.fits scfile=/scratch/kocevski/52866/ft2_4FGL_J2158.8-3013_daily_bin1683.fits outfile=/scratch/kocevski/52866/cmap_675561601_675820801_4FGL_J2158.8-3013_daily_bin1683.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/52866/ft1_filtered_4FGL_J2158.8-3013_daily_bin1683.fits scfile=/scratch/kocevski/52866/ft2_4FGL_J2158.8-3013_daily_bin1683.fits outfile=/scratch/kocevski/52866/cmap_HighResolution_675561601_675820801_4FGL_J2158.8-3013_daily_bin1683.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/52866/ft1_filtered_4FGL_J2158.8-3013_daily_bin1683.fits evtable="EVENTS" scfile=/scratch/kocevski/52866/ft2_4FGL_J2158.8-3013_daily_bin1683.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/52866/Model_4FGL_J2158.8-3013_daily_bin1683.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/52866/ft1_filtered_4FGL_J2158.8-3013_daily_bin1683.fits.....................!
real 66.91
user 65.13
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9034       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5890       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.948       1.0000         .10000E-03   10000.    
     9 'norm      '    .14082E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .55332       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.450       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .47547       1.0000         .10000E-03   10000.    
    14 'norm      '    18.455       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8516       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.617       1.0000         .10000E-03   10000.    
    20 'norm      '    4.9567       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1311       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89663       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=   8370.824     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2111 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9033        5.1106        .35573E-05   -.25410E-04
   2  Prefactor     .10000E-03    3.3295       -.12919E-06** at limit **
   3  Prefactor     .10000E-03    5.0462       -.84075E-07** at limit **
   4  Prefactor     .10000E-03    25.292        .19445E-05** at limit **
   5  Prefactor     6.5865        5.5832       -.44717E-06    .14015E-04
   6  norm          .10000E-03    3.1860       -.56906E-07** at limit **
   7  Prefactor     .10001E-03    14.408        .20906E-05** at limit **
   8  Prefactor     12.989        41.692       -.11249E-04   -.24145E-04
   9  norm          .10000E-03    2.6954        .12198E-05** at limit **
  10  norm          .55361        .22508        .48044E-07    .31426E-03
  11  Prefactor     .10000E-03    14.803        .17501E-05** at limit **
  12  Prefactor     12.453        18.130        .64799E-06   -.27910E-04
  13  Prefactor     .47427        4.8055        .34311E-05   -.47990E-03
  14  norm          18.448        15.826       -.56250E-06    .84406E-05
  15  Prefactor     .10000E-03    8.8759        .87116E-07** at limit **
  16  Prefactor     .10000E-03    9.5867       -.42096E-06** at limit **
  17  norm          1.8515        1.3779        .10513E-07    .26148E-04
  18  Prefactor     .10000E-03    14.929        .14764E-06** at limit **
  19  Prefactor     27.619        12.565        .60312E-07   -.18727E-04
  20  norm          4.9566        2.8225        .63718E-08    .41121E-05
  21  Normalizat    1.1310        .16182       -.60109E-06   -.26269E-03
  22  Prefactor     .89684        .11463        .91281E-06   -.27987E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.90326
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.58654
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 12.9887
  norm       = 0.000100001
  norm       = 0.553609
  Prefactor  = 0.0001
  Prefactor  = 12.4528
  Prefactor  = 0.47427
  norm       = 18.4482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.85154
  Prefactor  = 0.0001
  Prefactor  = 27.6187
  norm       = 4.95663
  Normalizat = 1.13098
  Prefactor  = 0.89684
 **********
 **   18 **HESSE 
 **********

 FCN=   8370.824     FROM HESSE     STATUS=OK           356 CALLS     2467 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9033        5.3712        .11923E-02   -1.5367    
   2  Prefactor     .10000E-03    3.6613        .53593E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.052        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5865        5.5761        .15634E-03   -1.5195    
   6  norm          .10000E-03    3.2420        .15945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    14.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.989        41.964        .11132E-03   -1.4987    
   9  norm          .10000E-03    2.8408        .29452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55361        .22575        .26726E-04   -1.5559    
  11  Prefactor     .10000E-03    15.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.453        18.191        .11353E-03   -1.5002    
  13  Prefactor     .47427        8.7937        .33056E-02   -1.5570    
  14  norm          18.448        15.815        .93232E-04   -1.4849    
  15  Prefactor     .10000E-03    8.9065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8515        1.3690        .90141E-04   -1.5436    
  18  Prefactor     .10000E-03    14.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.619        12.636        .76233E-04   -1.4656    
  20  norm          4.9566        2.8222        .11304E-03   -1.5263    
  21  Normalizat    1.1310        .18925        .25199E-03   -.88763    
  22  Prefactor     .89684        .13535        .21127E-03   -.96252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51847e-09
Minuit parameter uncertainties:
  1  5.37212
  2  0.000232575
  3  7.6894e-06
  4  0.000461884
  5  5.57651
  6  4.4639e-06
  7  0.000672841
  8  42.059
  9  8.65736e-05
  10  0.225755
  11  1.13496e-05
  12  18.1989
  13  4.08466
  14  15.8185
  15  2.2022e-05
  16  2.87353e-05
  17  1.36903
  18  1.10139e-05
  19  12.6376
  20  2.82225
  21  0.189365
  22  0.135404
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.536e-01  2.258e-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.968e-01  1.354e-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.131e+00  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.31
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.59e-08 +/- 1.87e-08
Energy Flux (Fixed Index): 5.20e-05 +/- 2.12e-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) = 8370.81796239
delta logL = 0.00589836167092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8370.81780732
delta logL = 0.00605343078496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55428       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8053       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89762       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=   8370.818     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      235 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55428        .22367        .26557E-04   -.63186E-03
   2  alpha         1.8053        .34950        .11124E-01   -.13859E-05
   3  Normalizat    1.1286        .17619        .25221E-03   -.53099E-04
   4  Prefactor     .89762        .13281        .21118E-03   -.10498E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.554277
  alpha      = 1.80527
  Normalizat = 1.12862
  Prefactor  = 0.897617
 **********
 **   18 **HESSE 
 **********

 FCN=   8370.818     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55428        .22357        .10623E-05   -1.5559    
   2  alpha         1.8053        .34923        .44495E-03   -.28160    
   3  Normalizat    1.1286        .17630        .10089E-04   -.88838    
   4  Prefactor     .89762        .13292        .84473E-05   -.96224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08702e-11
Minuit parameter uncertainties:
  1  0.223573
  2  0.350473
  3  0.176396
  4  0.132966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52866': 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) = 8370.81780732
delta logL = 0.00605343078496

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.543e-01  2.236e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.805e+00  3.505e-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.976e-01  1.330e-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.129e+00  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.30
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.81 +/- 0.35
Photon Flux (Free Index): 4.80e-08 +/- 2.75e-08
Energy Flux (Free Index): 4.92e-05 +/- 3.16e-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/52866/cmap_HighResolution_675561601_675820801_4FGL_J2158.8-3013_daily_bin1683.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.59e-08', energy_flux2='4.92e-05', photon_flux_error='1.87e-08', dlogl='6.05e-03', energy_flux='5.20e-05', photon_flux2='4.80e-08', job_status='DONE', time_completed='2022-06-02 01:49:47.644367', photon_index_error2='0.35', photon_index2='1.81', ts='25.31', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='3.16e-05', EG='1.13', time_epoch_completed='1654159787.64', return_code='0', job_id='52866', GAL2='0.90', EG2='1.13', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='2.75e-08', ts2='25.30', photon_index='1.77' WHERE bin_id='1683' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jun  2 01:49:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 52866: <4FGL_J2158.8-3013_daily_bin1683> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1683> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun  2 01:35:24 2022
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun  2 01:36:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun  2 01:36:10 2022
Terminated at Thu Jun  2 01:49:48 2022
Results reported at Thu Jun  2 01:49:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1683 329.714 -30.2251 675561601 675820801 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 :                                   631.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             228.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            864 sec.

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

