/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 70 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 = 7643
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2158.1-1501_daily_bin1336
RA = 329.527, Dec = -15.0237
tmin = 585619201, tmax = 585878401
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='57753', job_status='RUN', time_executed='2021-09-27 22:11:38.548541', time_epoch_executed='1632805898.55' WHERE source_name='4FGL J2158.1-1501' and cadence='daily' and bin_id='1336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57753

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57753/ft1_4FGL_J2158.1-1501_daily_bin1336.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57753/ft2_4FGL_J2158.1-1501_daily_bin1336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57753/ft1_4FGL_J2158.1-1501_daily_bin1336.fits outfile=/scratch/kocevski/57753/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1336.fits ra=329.527 dec=-15.0237 rad=12.0 tmin=585619201.0 tmax=585878401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.71
user 2.50
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57753/ft1_filtered_4FGL_J2158.1-1501_daily_bin1336.fits" evtable="EVENTS" scfile=/scratch/kocevski/57753/ft2_4FGL_J2158.1-1501_daily_bin1336.fits sctable="SC_DATA" outfile=/scratch/kocevski/57753/ltcube_585619201_585878401_4FGL_J2158.1-1501_daily_bin1336.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/57753/ft2_4FGL_J2158.1-1501_daily_bin1336.fits
.....................!
real 13.02
user 12.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57753/ft1_filtered_4FGL_J2158.1-1501_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/57753/ft2_4FGL_J2158.1-1501_daily_bin1336.fits sctable="SC_DATA" expcube=/scratch/kocevski/57753/ltcube_585619201_585878401_4FGL_J2158.1-1501_daily_bin1336.fits outfile=/scratch/kocevski/57753/expmap_585619201_585878401_4FGL_J2158.1-1501_daily_bin1336.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/57753/ltcube_585619201_585878401_4FGL_J2158.1-1501_daily_bin1336.fits
.....................!
real 192.84
user 187.00
sys 5.42

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/57753/ft1_filtered_4FGL_J2158.1-1501_daily_bin1336.fits scfile=/scratch/kocevski/57753/ft2_4FGL_J2158.1-1501_daily_bin1336.fits outfile=/scratch/kocevski/57753/cmap_585619201_585878401_4FGL_J2158.1-1501_daily_bin1336.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57753/ft1_filtered_4FGL_J2158.1-1501_daily_bin1336.fits scfile=/scratch/kocevski/57753/ft2_4FGL_J2158.1-1501_daily_bin1336.fits outfile=/scratch/kocevski/57753/cmap_HighResolution_585619201_585878401_4FGL_J2158.1-1501_daily_bin1336.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57753/ft1_filtered_4FGL_J2158.1-1501_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/57753/ft2_4FGL_J2158.1-1501_daily_bin1336.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57753/Model_4FGL_J2158.1-1501_daily_bin1336.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/57753/ft1_filtered_4FGL_J2158.1-1501_daily_bin1336.fits.....................!
real 29.39
user 28.09
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/57753/ft1_filtered_4FGL_J2158.1-1501_daily_bin1336.fits', '/scratch/kocevski/57753/ft2_4FGL_J2158.1-1501_daily_bin1336.fits', expMap='/scratch/kocevski/57753/expmap_585619201_585878401_4FGL_J2158.1-1501_daily_bin1336.fits', expCube='/scratch/kocevski/57753/ltcube_585619201_585878401_4FGL_J2158.1-1501_daily_bin1336.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/57753/Model_4FGL_J2158.1-1501_daily_bin1336.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  1.000e-04  1.000e+04 ( 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/57753/ft1_filtered_4FGL_J2158.1-1501_daily_bin1336.fits
Spacecraft file(s): /scratch/kocevski/57753/ft2_4FGL_J2158.1-1501_daily_bin1336.fits
Exposure map: /scratch/kocevski/57753/expmap_585619201_585878401_4FGL_J2158.1-1501_daily_bin1336.fits
Exposure cube: /scratch/kocevski/57753/ltcube_585619201_585878401_4FGL_J2158.1-1501_daily_bin1336.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/57753/Model_4FGL_J2158.1-1501_daily_bin1336.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) = 1951.11401025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    124.55       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28057E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10654E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.630       1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.472       1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.639       1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.882       1.0000         .10000E-03   10000.    
    13 'Prefactor '    159.89       1.0000         .10000E-03   10000.    
    14 'Prefactor '    202.03       1.0000         .10000E-03   10000.    
    15 'Prefactor '    141.73       1.0000         .10000E-03   10000.    
    16 'norm      '    .10641E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.1451       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .66134       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2443       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.

 FCN=   1951.083     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1947 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.424        .18003E-05** at limit **
   2  Prefactor     124.53        155.27       -.56974E-05   -.15435E-04
   3  Prefactor     .19074        725.44        .21450E-03   -.25684E-05
   4  Prefactor     .10000E-03    32.721        .82673E-06** at limit **
   5  Prefactor     .10000E-03    103.33        .31253E-05** at limit **
   6  Prefactor     .10000E-03    46.730        .35690E-06** at limit **
   7  Prefactor     .10000E-03    26.978        .41705E-06** at limit **
   8  norm          .10000E-03    15.079        .36150E-06** at limit **
   9  Prefactor     13.625        28.468       -.22062E-05    .54009E-04
  10  Prefactor     46.558        77.908        .40356E-05   -.72239E-04
  11  Prefactor     38.654        48.745        .98640E-06   -.85598E-04
  12  Prefactor     51.839        48.814        .82097E-06   -.33033E-03
  13  Prefactor     159.76        116.48        .29249E-05    .29037E-05
  14  Prefactor     202.17        176.06        .23008E-05   -.83826E-04
  15  Prefactor     141.78        154.75        .26373E-05   -.31596E-04
  16  norm          .10001E-03    3.7910        .11812E-05** at limit **
  17  norm          7.1496        3.2473        .68600E-06   -.26242E-04
  18  Normalizat    .66242        .56649       -.16156E-05   -.31250E-04
  19  Prefactor     1.2427        .34364       -.12415E-04   -.17040E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 124.533
  Prefactor  = 0.190735
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6253
  Prefactor  = 46.5578
  Prefactor  = 38.654
  Prefactor  = 51.8393
  Prefactor  = 159.764
  Prefactor  = 202.168
  Prefactor  = 141.782
  norm       = 0.000100007
  norm       = 7.14957
  Normalizat = 0.66242
  Prefactor  = 1.24266
 **********
 **   18 **HESSE 
 **********

 FCN=   1951.083     FROM HESSE     STATUS=OK           270 CALLS     2217 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     124.53        155.62        .18034E-03   -1.3471    
   3  Prefactor     .19074        49.133        .75860E-01   -1.5621    
   4  Prefactor     .10000E-03    32.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    103.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.081        .16756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.625        28.414        .10849E-03   -1.4970    
  10  Prefactor     46.558        77.931        .58817E-04   -1.4342    
  11  Prefactor     38.654        48.727        .64480E-04   -1.4464    
  12  Prefactor     51.839        48.713        .27840E-03   -1.4267    
  13  Prefactor     159.76        116.60        .15945E-03   -1.3173    
  14  Prefactor     202.17        175.97        .14215E-03   -1.2855    
  15  Prefactor     141.78        154.70        .16920E-03   -1.3321    
  16  norm          .10001E-03    3.8362        .84151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.1496        3.2431        .48339E-04   -1.5173    
  18  Normalizat    .66242        .61438        .49758E-03   -1.0540    
  19  Prefactor     1.2427        .38115        .23392E-03   -.85028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69253e-09
Minuit parameter uncertainties:
  1  0.000307513
  2  156.133
  3  6.126
  4  0.00010115
  5  0.000555003
  6  0.000130215
  7  7.07686e-05
  8  6.76111e-05
  9  28.4425
  10  78.1021
  11  48.7777
  12  48.7507
  13  116.77
  14  176.429
  15  155.144
  16  0.000323251
  17  3.24315
  18  0.620908
  19  0.382008
Done.

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

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  4.656e+01  7.810e+01  1.000e-04  1.000e+04 ( 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:  1.243e+00  3.820e-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:  6.624e-01  6.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/57753/likelihoodResults_585619201_585878401_4FGL_J2158.1-1501_daily_bin1336.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) = 1951.06820404
delta logL = 0.0151522405858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1951.06302783
delta logL = 0.0203284483177

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.038       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9585       1.0000          .0000       10.000    
     3 'Normalizat'    .67586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2357       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=   1951.063     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      283 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.088        89.743        .54069E-04    .68336E-05
   2  Index         1.9578        1.0434        .89951E-02    .70670E-05
   3  Normalizat    .67656        .58119        .49285E-03   -.21660E-04
   4  Prefactor     1.2350        .37010        .23452E-03    .85732E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.0878
  Index      = 1.95781
  Normalizat = 0.676563
  Prefactor  = 1.23498
 **********
 **   18 **HESSE 
 **********

 FCN=   1951.063     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.088        88.566        .21628E-05   -1.4222    
   2  Index         1.9578        1.0298        .35980E-03   -.65409    
   3  Normalizat    .67656        .58113        .19714E-04   -1.0483    
   4  Prefactor     1.2350        .37006        .46903E-04   -.85262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08337e-10
Minuit parameter uncertainties:
  1  88.7785
  2  1.04171
  3  0.586521
  4  0.370846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57753': 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) = 1951.06302555
delta logL = 0.0203307334662

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  5.509e+01  8.878e+01  1.000e-04  1.000e+04 ( 1.000e-13)
270        Index:  1.958e+00  1.042e+00  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:  1.235e+00  3.708e-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:  6.766e-01  5.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
Ra Dec: 329.527 -15.024

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/57753/cmap_HighResolution_585619201_585878401_4FGL_J2158.1-1501_daily_bin1336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-02', job_status='DONE', photon_flux_upper_limit='4.85e-07', time_completed='2021-09-27 22:18:13.296533', job_id='57753', GAL2='1.23', fit_tolerance='1e-08', EG2='0.68', EG='0.66', time_epoch_completed='1632806293.3', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='2.03e-02', ts2='0.55', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1336' AND source_name='4FGL J2158.1-1501' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:18:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 57753: <4FGL_J2158.1-1501_daily_bin1336> in cluster <slac> Done

Job <4FGL_J2158.1-1501_daily_bin1336> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep 27 22:10:15 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:10:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 22:10:18 2021
Terminated at Mon Sep 27 22:18:14 2021
Results reported at Mon Sep 27 22:18:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.1-1501_daily_bin1336 329.527 -15.0237 585619201 585878401 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 :                                   385.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   477 sec.
    Turnaround time :                            479 sec.

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

