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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1780
RA = 329.714, Dec = -30.2251
tmin = 700704001, tmax = 700963201
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='77944', job_status='RUN', time_executed='2023-03-20 01:48:27.620819', time_epoch_executed='1679302107.62' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77944

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77944/ft1_4FGL_J2158.8-3013_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77944/ft2_4FGL_J2158.8-3013_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77944/ft1_4FGL_J2158.8-3013_daily_bin1780.fits outfile=/scratch/kocevski/77944/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1780.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.13
user 3.87
sys 0.23

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

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

Number of photons that the gtmktime cut: 582

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77944/ft1_filtered_4FGL_J2158.8-3013_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/77944/ft2_4FGL_J2158.8-3013_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/77944/ltcube_700704001_700963201_4FGL_J2158.8-3013_daily_bin1780.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/77944/ft2_4FGL_J2158.8-3013_daily_bin1780.fits
.....................!
real 12.42
user 12.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77944/ft1_filtered_4FGL_J2158.8-3013_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/77944/ft2_4FGL_J2158.8-3013_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/77944/ltcube_700704001_700963201_4FGL_J2158.8-3013_daily_bin1780.fits outfile=/scratch/kocevski/77944/expmap_700704001_700963201_4FGL_J2158.8-3013_daily_bin1780.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/77944/ltcube_700704001_700963201_4FGL_J2158.8-3013_daily_bin1780.fits
.....................!
real 190.94
user 186.31
sys 4.30

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/77944/ft1_filtered_4FGL_J2158.8-3013_daily_bin1780.fits scfile=/scratch/kocevski/77944/ft2_4FGL_J2158.8-3013_daily_bin1780.fits outfile=/scratch/kocevski/77944/cmap_700704001_700963201_4FGL_J2158.8-3013_daily_bin1780.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77944/ft1_filtered_4FGL_J2158.8-3013_daily_bin1780.fits scfile=/scratch/kocevski/77944/ft2_4FGL_J2158.8-3013_daily_bin1780.fits outfile=/scratch/kocevski/77944/cmap_HighResolution_700704001_700963201_4FGL_J2158.8-3013_daily_bin1780.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/77944/ft1_filtered_4FGL_J2158.8-3013_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/77944/ft2_4FGL_J2158.8-3013_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77944/Model_4FGL_J2158.8-3013_daily_bin1780.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/77944/ft1_filtered_4FGL_J2158.8-3013_daily_bin1780.fits.....................!
real 53.87
user 52.59
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24076E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11170E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.5909       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.9063       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36760E-05   1.0000          .0000       .10000E+07
     6 'norm      '    2.8536       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.8086       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14815E-03   1.0000          .0000       .10000E+07
     9 'norm      '    3.3591       1.0000          .0000       .10000E+07
    10 'norm      '    .30214       1.0000          .0000       .10000E+07
    11 'Prefactor '    36.946       1.0000          .0000       .10000E+07
    12 'Prefactor '    .94222       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.7023       1.0000          .0000       .10000E+07
    14 'norm      '    .11244E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .64356E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .73669E-02   1.0000          .0000       .10000E+07
    17 'norm      '    2.0915       1.0000          .0000       .10000E+07
    18 'Prefactor '    25.184       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.1785       1.0000          .0000       .10000E+07
    20 'norm      '    .13101E-07   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0530       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0506       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=   6368.810     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     1434 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        3.0491       -.44081E-07** at limit **
   2  Prefactor     .16653E-09    6.5721        .45125E-06** at limit **
   3  Prefactor     2.5717        7.3578        .36394E-06    .27907E-03
   4  Prefactor     8.8953        9.1370       -.22098E-06   -.10340E-02
   5  Prefactor     .55511E-10    2.4395       -.29384E-07** at limit **
   6  norm          2.8488        6.3640       -.14847E-06   -.21255E-02
   7  Prefactor     4.5865        15.690        .21702E-05    .75334E-02
   8  Prefactor     .17764E-08    17.572       -.20981E-06** at limit **
   9  norm          3.3620        4.1196       -.87375E-07   -.20361E-02
  10  norm          .30222        .26306       -.18305E-07   -.10544E-01
  11  Prefactor     36.962        13.473        .20331E-05    .89297E-01
  12  Prefactor     .77610        4.9631        .32128E-05   -.63180E-01
  13  Prefactor     5.6756        6.8678       -.61782E-07   -.45250E-03
  14  norm          .40579E-07    23.810        .10772E-05** at limit **
  15  Prefactor     .65109E-06    48.966       -.58922E-06** at limit **
  16  Prefactor     .45181E-06    34.095       -.38616E-06** at limit **
  17  norm          2.1538        2.7714        .40803E-06    .45228E-02
  18  Prefactor     22.124        71.406       -.38455E-06    .64279E-02
  19  Prefactor     6.2409        13.990       -.67285E-06   -.87461E-03
  20  norm           .0000        1.3675        .52919E-07** at limit **
  21  Normalizat    1.0550        .23684       -.23654E-05   -.16495E-04
  22  Prefactor     1.0500        .16217       -.30293E-05    .13008E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 2.57171
  Prefactor  = 8.89527
  Prefactor  = 5.55112e-11
  norm       = 2.84884
  Prefactor  = 4.58647
  Prefactor  = 1.77636e-09
  norm       = 3.36203
  norm       = 0.302219
  Prefactor  = 36.9625
  Prefactor  = 0.7761
  Prefactor  = 5.67562
  norm       = 4.05787e-08
  Prefactor  = 6.5109e-07
  Prefactor  = 4.51805e-07
  norm       = 2.15376
  Prefactor  = 22.1242
  Prefactor  = 6.2409
  norm       = 0
  Normalizat = 1.055
  Prefactor  = 1.05002
 **********
 **   18 **HESSE 
 **********

 FCN=   6368.810     FROM HESSE     STATUS=OK           390 CALLS     1824 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        3.0527        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16653E-09    6.5562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5717        7.3999        .63366E-03   -1.5676    
   4  Prefactor     8.8953        9.1385        .33561E-03   -1.5648    
   5  Prefactor     .55511E-10    2.4437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8488        6.3971        .60160E-03   -1.5674    
   7  Prefactor     4.5865        15.738        .45854E-03   -1.5665    
   8  Prefactor     .17764E-08    17.575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3620        4.1514        .55191E-03   -1.5671    
  10  norm          .30222        .24910        .81543E-03   -1.5697    
  11  Prefactor     36.962        13.982        .16454E-03   -1.5586    
  12  Prefactor     .77610        93.782        .42884E-03   -1.5690    
  13  Prefactor     5.6756        6.8515        .42040E-03   -1.5660    
  14  norm          .40579E-07    24.003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .65109E-06    49.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .45181E-06    34.350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1538        2.7427        .71352E-03   -1.5679    
  18  Prefactor     22.124        70.444        .19931E-03   -1.5614    
  19  Prefactor     6.2409        13.958        .40364E-03   -1.5658    
  20  norm           .0000        1.3693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0550        .20273        .64429E-01   -.91210    
  22  Prefactor     1.0500        .13903        .39874E-01   -.91080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76435e-06
Minuit parameter uncertainties:
  1  1.93526e-07
  2  6.61109e-05
  3  7.39988
  4  9.13851
  5  1.68849e-05
  6  6.39709
  7  15.7386
  8  0.000355749
  9  4.15142
  10  0.249098
  11  13.9822
  12  17.063
  13  6.85148
  14  0.00197419
  15  0.0113286
  16  0.00787905
  17  2.74275
  18  70.4465
  19  13.958
  20  9.09694e-06
  21  0.202875
  22  0.139077
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  3.022e-01  2.491e-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:  1.050e+00  1.391e-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.055e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.54
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.50e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 2.34e-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) = 6368.76689999
delta logL = 0.0435161799214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6368.7329208
delta logL = 0.0774953740674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20257       1.0000          .0000       .10000E+07
     2 'alpha     '    1.4195       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0503       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=   6368.733     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20199        .16958        .74497E-03** at limit **
   2  alpha         1.4162        .44222        .40493       -.19601E-04
   3  Normalizat    1.0632        .18851        .64232E-01    .94538E-04
   4  Prefactor     1.0505        .13765        .39890E-01    .71915E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.201993
  alpha      = 1.41621
  Normalizat = 1.06324
  Prefactor  = 1.0505
 **********
 **   18 **HESSE 
 **********

 FCN=   6368.733     FROM HESSE     STATUS=OK            35 CALLS      249 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20199        .34627        .29337E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4162        .91558        .15347E-01   -.44839    
   3  Normalizat    1.0632        .21745        .28412E-03   -.90941    
   4  Prefactor     1.0505        .15897        .20779E-03   -.91064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89919e-11
Minuit parameter uncertainties:
  1  0.346267
  2  0.942868
  3  0.21763
  4  0.159042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77944': 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) = 6368.73291199
delta logL = 0.0775041829056

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  2.020e-01  3.463e-01  0.000e+00  1.000e+06 ( 1.000e-11)
262        alpha:  1.416e+00  9.429e-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:  1.051e+00  1.590e-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.063e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.69
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.42 +/- 0.94
Photon Flux (Free Index): 1.25e-08 +/- 2.64e-08
Energy Flux (Free Index): 3.94e-05 +/- 5.36e-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/77944/cmap_HighResolution_700704001_700963201_4FGL_J2158.8-3013_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.50e-08', energy_flux2='3.94e-05', photon_flux_error='2.06e-08', dlogl='7.75e-02', energy_flux='2.84e-05', photon_flux2='1.25e-08', job_status='DONE', time_completed='2023-03-20 01:56:50.436661', photon_index_error2='0.94', photon_index2='1.42', ts='8.54', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='5.36e-05', EG='1.05', time_epoch_completed='1679302610.44', return_code='0', job_id='77944', GAL2='1.05', EG2='1.06', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='2.64e-08', ts2='8.69', photon_index='1.77' WHERE bin_id='1780' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:56:50 PDT 2023


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

Job <4FGL_J2158.8-3013_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 01:45:18 2023
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:45:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:45:20 2023
Terminated at Mon Mar 20 01:56:51 2023
Results reported at Mon Mar 20 01:56:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1780 329.714 -30.2251 700704001 700963201 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 :                                   503.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            693 sec.

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

