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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1698
RA = 329.714, Dec = -30.2251
tmin = 679449601, tmax = 679708801
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='925665', job_status='RUN', time_executed='2022-07-17 00:38:41.506773', time_epoch_executed='1658043521.51' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925665/ft1_4FGL_J2158.8-3013_daily_bin1698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925665/ft2_4FGL_J2158.8-3013_daily_bin1698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925665/ft1_4FGL_J2158.8-3013_daily_bin1698.fits outfile=/scratch/kocevski/925665/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1698.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=679449601.0 tmax=679708801.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.44
user 3.20
sys 0.22

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

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

Number of photons that the gtmktime cut: 535

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925665/ft1_filtered_4FGL_J2158.8-3013_daily_bin1698.fits" evtable="EVENTS" scfile=/scratch/kocevski/925665/ft2_4FGL_J2158.8-3013_daily_bin1698.fits sctable="SC_DATA" outfile=/scratch/kocevski/925665/ltcube_679449601_679708801_4FGL_J2158.8-3013_daily_bin1698.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/925665/ft2_4FGL_J2158.8-3013_daily_bin1698.fits
.....................!
real 12.13
user 11.72
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925665/ft1_filtered_4FGL_J2158.8-3013_daily_bin1698.fits evtable="EVENTS" scfile=/scratch/kocevski/925665/ft2_4FGL_J2158.8-3013_daily_bin1698.fits sctable="SC_DATA" expcube=/scratch/kocevski/925665/ltcube_679449601_679708801_4FGL_J2158.8-3013_daily_bin1698.fits outfile=/scratch/kocevski/925665/expmap_679449601_679708801_4FGL_J2158.8-3013_daily_bin1698.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/925665/ltcube_679449601_679708801_4FGL_J2158.8-3013_daily_bin1698.fits
.....................!
real 191.28
user 185.73
sys 5.18

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/925665/ft1_filtered_4FGL_J2158.8-3013_daily_bin1698.fits scfile=/scratch/kocevski/925665/ft2_4FGL_J2158.8-3013_daily_bin1698.fits outfile=/scratch/kocevski/925665/cmap_679449601_679708801_4FGL_J2158.8-3013_daily_bin1698.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/925665/ft1_filtered_4FGL_J2158.8-3013_daily_bin1698.fits scfile=/scratch/kocevski/925665/ft2_4FGL_J2158.8-3013_daily_bin1698.fits outfile=/scratch/kocevski/925665/cmap_HighResolution_679449601_679708801_4FGL_J2158.8-3013_daily_bin1698.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    11.616       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41612E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3287       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .26081E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8827       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    19.279       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5900       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.207       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1793       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .51842       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3420       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5967.437     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2465 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1454         .0000    ** at limit **
   2  Prefactor     11.618        10.847         .0000       -.10753E-03
   3  Prefactor     .10005E-03    5.4804         .0000    ** at limit **
   4  Prefactor     .10000E-03    7.2723         .0000    ** at limit **
   5  Prefactor     6.3253        8.7033         .0000        .22248E-02
   6  norm          .10000E-03    3.8009         .0000    ** at limit **
   7  Prefactor     .10000E-03    7.1080         .0000    ** at limit **
   8  Prefactor     .10000E-03    46.188         .0000    ** at limit **
   9  norm          .10004E-03    1.6392         .0000    ** at limit **
  10  norm          .10000E-03    .79538E-01     .0000    ** at limit **
  11  Prefactor     1.8808        15.181         .0000        .68909E-02
  12  Prefactor     .10000E-03    19.510         .0000    ** at limit **
  13  Prefactor     .10000E-03    3.9900         .0000    ** at limit **
  14  norm          19.280        22.018         .0000        .77087E-04
  15  Prefactor     .10000E-03    6.7429         .0000    ** at limit **
  16  Prefactor     .10000E-03    14.418         .0000    ** at limit **
  17  norm          2.5897        2.0795         .0000        .40282E-03
  18  Prefactor     .10000E-03    128.47         .0000    ** at limit **
  19  Prefactor     37.208        14.471         .0000       -.11368E-03
  20  norm          1.1794        2.4414         .0000        .48925E-03
  21  Normalizat    .51834        .19629         .0000        .43681E-04
  22  Prefactor     1.3420        .14965         .0000        .22481E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 11.618
  Prefactor  = 0.000100051
  Prefactor  = 0.0001
  Prefactor  = 6.3253
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100041
  norm       = 0.0001
  Prefactor  = 1.8808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.2801
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.58974
  Prefactor  = 0.000100001
  Prefactor  = 37.2084
  norm       = 1.17938
  Normalizat = 0.518339
  Prefactor  = 1.342
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.437     FROM HESSE     STATUS=OK           344 CALLS     2809 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1457        .11050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.618        10.841        .11754E-03   -1.5026    
   3  Prefactor     .10005E-03    20.924        .34325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3253        8.5859        .79778E-03   -1.5205    
   6  norm          .10000E-03    3.8173        .14705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10004E-03    21.658        .18783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .88516E-01    .42360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8808        15.101        .15168E-02   -1.5434    
  12  Prefactor     .10000E-03    19.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0269        .15061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          19.280        21.976        .91219E-04   -1.4830    
  15  Prefactor     .10000E-03    6.7482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5897        2.0645        .95863E-04   -1.5386    
  18  Prefactor     .10000E-03    129.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.208        14.465        .65705E-04   -1.4487    
  20  norm          1.1794        1.9073        .16896E-02   -1.5491    
  21  Normalizat    .51834        .21013        .35278E-03   -1.1157    
  22  Prefactor     1.3420        .16472        .18237E-03   -.82067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82223e-09
Minuit parameter uncertainties:
  1  1.88289e-06
  2  10.8425
  3  0.00206425
  4  7.47197e-05
  5  8.58756
  6  6.13341e-07
  7  9.60492e-05
  8  7.66109e-05
  9  0.00187432
  10  2.63461e-08
  11  10.6621
  12  0.00014682
  13  7.20288e-07
  14  21.9852
  15  1.67108e-05
  16  0.000272803
  17  2.06451
  18  0.000865283
  19  14.4667
  20  1.90743
  21  0.210454
  22  0.164782
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.000e-04  2.635e-08  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.342e+00  1.648e-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:  5.183e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 329.714 -30.225
Photon Flux Upper Limit: 3.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925665/likelihoodResults_679449601_679708801_4FGL_J2158.8-3013_daily_bin1698.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5967.43712669
delta logL = -3.63960107279e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5967.43704998
delta logL = 4.03137601097e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10342E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0052       1.0000          .0000       5.0000    
     3 'Normalizat'    .51834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3420       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=   5967.437     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      257 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .10063        .90712E-02** at limit **
   2  alpha         2.4596        3.2829        .42219       -.10394E-06
   3  Normalizat    .51832        .58979E-02    .79653E-01    .75488E-04
   4  Prefactor     1.3420        .47339E-02    .31915E-01    .49050E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.45961
  Normalizat = 0.518324
  Prefactor  = 1.342
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.437     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .11251        .37294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4596        3.4982        .16888       -.16155E-01
   3  Normalizat    .51832        .20225        .35278E-03   -1.1157    
   4  Prefactor     1.3420        .16293        .18237E-03   -.82066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13003e-12
Minuit parameter uncertainties:
  1  2.69051e-07
  2  57.1762
  3  0.202539
  4  0.162995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925665': 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) = 5967.43699642
delta logL = 9.38791790759e-05

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.000e-04  2.691e-07  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.460e+00  5.718e+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:  1.342e+00  1.630e-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:  5.183e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 329.714 -30.225

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/925665/cmap_HighResolution_679449601_679708801_4FGL_J2158.8-3013_daily_bin1698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-05', job_status='DONE', photon_flux_upper_limit='3.41e-08', time_completed='2022-07-17 00:48:33.486524', job_id='925665', GAL2='1.34', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1658044113.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='9.39e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='1698' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 17 00:48:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 925665: <4FGL_J2158.8-3013_daily_bin1698> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1698> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jul 17 00:35:22 2022
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 17 00:35:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 17 00:35:24 2022
Terminated at Sun Jul 17 00:48:34 2022
Results reported at Sun Jul 17 00:48:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1698 329.714 -30.2251 679449601 679708801 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 :                                   594.16 sec.
    Max Memory :                                 1187 MB
    Average Memory :                             296.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

