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


Performing analysis on: 4FGL_J2158.1-1501_daily_bin1761
RA = 329.527, Dec = -15.0237
tmin = 695779201, tmax = 696038401
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='933648', job_status='RUN', time_executed='2023-01-22 01:38:07.577185', time_epoch_executed='1674380287.58' WHERE source_name='4FGL J2158.1-1501' and cadence='daily' and bin_id='1761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933648

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933648/ft1_4FGL_J2158.1-1501_daily_bin1761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933648/ft2_4FGL_J2158.1-1501_daily_bin1761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933648/ft1_4FGL_J2158.1-1501_daily_bin1761.fits outfile=/scratch/kocevski/933648/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1761.fits ra=329.527 dec=-15.0237 rad=12.0 tmin=695779201.0 tmax=696038401.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 5.13
user 4.83
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/933648/ft2_4FGL_J2158.1-1501_daily_bin1761.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933648/ft2_4FGL_J2158.1-1501_daily_bin1761.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/933648/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1761.fits evtable="EVENTS" outfile="/scratch/kocevski/933648/ft1_filtered_4FGL_J2158.1-1501_daily_bin1761.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.54
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 441

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933648/ft1_filtered_4FGL_J2158.1-1501_daily_bin1761.fits" evtable="EVENTS" scfile=/scratch/kocevski/933648/ft2_4FGL_J2158.1-1501_daily_bin1761.fits sctable="SC_DATA" outfile=/scratch/kocevski/933648/ltcube_695779201_696038401_4FGL_J2158.1-1501_daily_bin1761.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/933648/ft2_4FGL_J2158.1-1501_daily_bin1761.fits
.....................!
real 14.99
user 14.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933648/ft1_filtered_4FGL_J2158.1-1501_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/933648/ft2_4FGL_J2158.1-1501_daily_bin1761.fits sctable="SC_DATA" expcube=/scratch/kocevski/933648/ltcube_695779201_696038401_4FGL_J2158.1-1501_daily_bin1761.fits outfile=/scratch/kocevski/933648/expmap_695779201_696038401_4FGL_J2158.1-1501_daily_bin1761.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/933648/ltcube_695779201_696038401_4FGL_J2158.1-1501_daily_bin1761.fits
.....................!
real 193.74
user 187.72
sys 5.56

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 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J2158.1-1501 @ 329.527 -15.0237

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/933648/ft1_filtered_4FGL_J2158.1-1501_daily_bin1761.fits scfile=/scratch/kocevski/933648/ft2_4FGL_J2158.1-1501_daily_bin1761.fits outfile=/scratch/kocevski/933648/cmap_695779201_696038401_4FGL_J2158.1-1501_daily_bin1761.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.527 yref=-15.0237 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.62
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933648/ft1_filtered_4FGL_J2158.1-1501_daily_bin1761.fits scfile=/scratch/kocevski/933648/ft2_4FGL_J2158.1-1501_daily_bin1761.fits outfile=/scratch/kocevski/933648/cmap_HighResolution_695779201_696038401_4FGL_J2158.1-1501_daily_bin1761.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.527 yref=-15.0237 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.59
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933648/ft1_filtered_4FGL_J2158.1-1501_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/933648/ft2_4FGL_J2158.1-1501_daily_bin1761.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933648/Model_4FGL_J2158.1-1501_daily_bin1761.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/933648/ft1_filtered_4FGL_J2158.1-1501_daily_bin1761.fits.....................!
real 51.73
user 50.37
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933648/ft1_filtered_4FGL_J2158.1-1501_daily_bin1761.fits', '/scratch/kocevski/933648/ft2_4FGL_J2158.1-1501_daily_bin1761.fits', expMap='/scratch/kocevski/933648/expmap_695779201_696038401_4FGL_J2158.1-1501_daily_bin1761.fits', expCube='/scratch/kocevski/933648/ltcube_695779201_696038401_4FGL_J2158.1-1501_daily_bin1761.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933648/Model_4FGL_J2158.1-1501_daily_bin1761.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2158.1-1501'

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  6.798e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
270        Index:  2.181e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.246e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/933648/ft1_filtered_4FGL_J2158.1-1501_daily_bin1761.fits
Spacecraft file(s): /scratch/kocevski/933648/ft2_4FGL_J2158.1-1501_daily_bin1761.fits
Exposure map: /scratch/kocevski/933648/expmap_695779201_696038401_4FGL_J2158.1-1501_daily_bin1761.fits
Exposure cube: /scratch/kocevski/933648/ltcube_695779201_696038401_4FGL_J2158.1-1501_daily_bin1761.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933648/Model_4FGL_J2158.1-1501_daily_bin1761.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) = 5037.84760761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90268E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    22.492       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.8127       1.0000          .0000       .10000E+07
     4 'Prefactor '    .70436E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .45422E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .30516E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .33307E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    .59156E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    40.316       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11740E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .64024E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .12687E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32565       1.0000          .0000       .10000E+07
    14 'norm      '    .24042E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .58545       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.5767       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .74233       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5037.818     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     1209 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37748E-08    6.6983       -.10108E-06** at limit **
   2  Prefactor     22.458        1.1542       -.10374E-07   -.25819E-02
   3  Prefactor     2.8131        3.3326        .31146E-06   -.12902E-02
   4  Prefactor     .65931E-06    4.8882       -.91444E-06** at limit **
   5  Prefactor     .19945E-06    18.388        .36548E-06** at limit **
   6  Prefactor     .39163E-06    5.6963        .32163E-07** at limit **
   7  norm          .11102E-09    2.7894       -.51828E-07** at limit **
   8  Prefactor     .14599E-07    5.2676       -.35156E-06** at limit **
   9  Prefactor     40.226        3.2834       -.10405E-07   -.74481E-01
  10  Prefactor     .99920E-08    4.8946       -.15537E-06** at limit **
  11  Prefactor     .72164E-09    4.9139       -.17147E-06** at limit **
  12  Prefactor     .64393E-08    6.7750       -.10076E-05** at limit **
  13  Prefactor     .85885E-05    10.213       -.68483E-06** at limit **
  14  norm          .30531E-08    7.1129        .19960E-06** at limit **
  15  norm          .58593        .86931        .49860E-07   -.21638E-04
  16  Normalizat    1.5768        .30460       -.45568E-05   -.31946E-04
  17  Prefactor     .74241        .19056        .60878E-05   -.48153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.77476e-09
  Prefactor  = 22.458
  Prefactor  = 2.81306
  Prefactor  = 6.59306e-07
  Prefactor  = 1.99452e-07
  Prefactor  = 3.91631e-07
  norm       = 1.11022e-10
  Prefactor  = 1.45994e-08
  Prefactor  = 40.226
  Prefactor  = 9.99201e-09
  Prefactor  = 7.21645e-10
  Prefactor  = 6.43929e-09
  Prefactor  = 8.58852e-06
  norm       = 3.05311e-09
  norm       = 0.585934
  Normalizat = 1.5768
  Prefactor  = 0.742412
 **********
 **   18 **HESSE 
 **********

 FCN=   5037.818     FROM HESSE     STATUS=OK           249 CALLS     1458 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37748E-08    16.607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.458        20.212        .21091E-03   -1.5613    
   3  Prefactor     2.8131        3.3398        .60625E-03   -1.5674    
   4  Prefactor     .65931E-06    13.345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19945E-06    20.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .39163E-06    17.556        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .11102E-09    2.7901        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .14599E-07    17.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.226        26.674        .15751E-03   -1.5581    
  10  Prefactor     .99920E-08    4.9329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .72164E-09    4.9209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .64393E-08    12.165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .85885E-05    58.268        .98662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .30531E-08    7.0115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .58593        .88357        .70541E-03   -1.5693    
  16  Normalizat    1.5768        .25151        .60143E-01   -.75643    
  17  Prefactor     .74241        .15751        .42962E-01   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28774e-07
Minuit parameter uncertainties:
  1  0.000501443
  2  20.2122
  3  3.33977
  4  0.00593234
  5  0.00405831
  6  0.00524409
  7  3.59003e-05
  8  0.00100559
  9  26.6743
  10  0.000444177
  11  0.000121075
  12  0.000560287
  13  0.0447413
  14  0.0002928
  15  0.883567
  16  0.25171
  17  0.157607
Done.

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

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  4.023e+01  2.667e+01  0.000e+00  1.000e+06 ( 1.000e-13)
270        Index:  2.181e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.246e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  7.424e-01  1.576e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.577e+00  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.66
Ra Dec: 329.527 -15.024
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 8.35e-08 +/- 5.53e-08
Energy Flux (Fixed Index): 3.88e-05 +/- 2.58e-05

TS (Fixed Index): 3.66
Ra Dec: 329.527 -15.024
Photon Flux Upper Limit: 1.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933648/likelihoodResults_695779201_696038401_4FGL_J2158.1-1501_daily_bin1761.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) = 5037.6013115
delta logL = 0.216359868682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5037.58865259
delta logL = 0.229018776115

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.801       1.0000          .0000       .10000E+07
     2 'Index     '    2.5185       1.0000          .0000       10.000    
     3 'Normalizat'    1.5437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75573       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5037.589     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      291 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.785        28.377        .73284E-05    .72757E-03
   2  Index         2.5179        .55580        .47332E-02    .37490E-03
   3  Normalizat    1.5437        .31103        .26818E-03    .80213E-04
   4  Prefactor     .75591        .19207        .22862E-03   -.23969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7845
  Index      = 2.51785
  Normalizat = 1.54371
  Prefactor  = 0.755907
 **********
 **   18 **HESSE 
 **********

 FCN=   5037.589     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.785        26.946        .29314E-06   -1.5599    
   2  Index         2.5179        .52756        .94663E-03   -.51948    
   3  Normalizat    1.5437        .31105        .53637E-04   -.76557    
   4  Prefactor     .75591        .19208        .91448E-05   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71977e-11
Minuit parameter uncertainties:
  1  26.9462
  2  0.528864
  3  0.311437
  4  0.192252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933648': 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) = 5037.58864793
delta logL = 0.22902343321

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  2.978e+01  2.695e+01  0.000e+00  1.000e+06 ( 1.000e-13)
270        Index:  2.518e+00  5.289e-01  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  1.246e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  7.559e-01  1.923e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.544e+00  3.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.12
Ra Dec: 329.527 -15.024
Photon Index (Free Index): 2.52 +/- 0.53
Photon Flux (Free Index): 1.13e-07 +/- 7.82e-08
Energy Flux (Free Index): 3.20e-05 +/- 2.12e-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/933648/cmap_HighResolution_695779201_696038401_4FGL_J2158.1-1501_daily_bin1761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', comment='SUCCESS', photon_flux='8.35e-08', energy_flux2='3.20e-05', photon_flux_error='5.53e-08', dlogl='2.29e-01', energy_flux='3.88e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2023-01-22 01:45:58.752893', photon_index_error2='0.53', photon_index2='2.52', ts='3.66', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='2.12e-05', EG='1.58', time_epoch_completed='1674380758.75', return_code='0', job_id='933648', GAL2='0.76', EG2='1.54', return_code2='0', energy_flux_error='2.58e-05', photon_flux_error2='7.82e-08', ts2='4.12', photon_index='2.18' WHERE bin_id='1761' AND source_name='4FGL J2158.1-1501' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 22 01:45:58 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 933648: <4FGL_J2158.1-1501_daily_bin1761> in cluster <slac> Done

Job <4FGL_J2158.1-1501_daily_bin1761> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan 22 01:35:31 2023
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 22 01:36:58 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 22 01:36:58 2023
Terminated at Sun Jan 22 01:45:59 2023
Results reported at Sun Jan 22 01:45:59 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.1-1501_daily_bin1761 329.527 -15.0237 695779201 696038401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2158.1-1501 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   473.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             281.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   541 sec.
    Turnaround time :                            628 sec.

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

