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


Performing analysis on: 4FGL_J2158.1-1501_daily_bin1765
RA = 329.527, Dec = -15.0237
tmin = 696816001, tmax = 697075201
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='647083', job_status='RUN', time_executed='2023-02-03 01:44:38.806981', time_epoch_executed='1675417478.81' WHERE source_name='4FGL J2158.1-1501' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647083

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647083/ft1_4FGL_J2158.1-1501_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647083/ft2_4FGL_J2158.1-1501_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647083/ft1_4FGL_J2158.1-1501_daily_bin1765.fits outfile=/scratch/kocevski/647083/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1765.fits ra=329.527 dec=-15.0237 rad=12.0 tmin=696816001.0 tmax=697075201.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.76
user 3.49
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647083/ft2_4FGL_J2158.1-1501_daily_bin1765.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/647083/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/647083/ft1_filtered_4FGL_J2158.1-1501_daily_bin1765.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.52
user 0.33
sys 0.18

Number of photons that the gtmktime cut: 457

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647083/ft1_filtered_4FGL_J2158.1-1501_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/647083/ft2_4FGL_J2158.1-1501_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/647083/ltcube_696816001_697075201_4FGL_J2158.1-1501_daily_bin1765.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/647083/ft2_4FGL_J2158.1-1501_daily_bin1765.fits
.....................!
real 17.21
user 16.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647083/ft1_filtered_4FGL_J2158.1-1501_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/647083/ft2_4FGL_J2158.1-1501_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/647083/ltcube_696816001_697075201_4FGL_J2158.1-1501_daily_bin1765.fits outfile=/scratch/kocevski/647083/expmap_696816001_697075201_4FGL_J2158.1-1501_daily_bin1765.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/647083/ltcube_696816001_697075201_4FGL_J2158.1-1501_daily_bin1765.fits
.....................!
real 194.00
user 187.81
sys 5.58

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/647083/ft1_filtered_4FGL_J2158.1-1501_daily_bin1765.fits scfile=/scratch/kocevski/647083/ft2_4FGL_J2158.1-1501_daily_bin1765.fits outfile=/scratch/kocevski/647083/cmap_696816001_697075201_4FGL_J2158.1-1501_daily_bin1765.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.61
user 0.41
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647083/ft1_filtered_4FGL_J2158.1-1501_daily_bin1765.fits scfile=/scratch/kocevski/647083/ft2_4FGL_J2158.1-1501_daily_bin1765.fits outfile=/scratch/kocevski/647083/cmap_HighResolution_696816001_697075201_4FGL_J2158.1-1501_daily_bin1765.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.58
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647083/ft1_filtered_4FGL_J2158.1-1501_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/647083/ft2_4FGL_J2158.1-1501_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647083/Model_4FGL_J2158.1-1501_daily_bin1765.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/647083/ft1_filtered_4FGL_J2158.1-1501_daily_bin1765.fits.....................!
real 51.96
user 50.48
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647083/ft1_filtered_4FGL_J2158.1-1501_daily_bin1765.fits', '/scratch/kocevski/647083/ft2_4FGL_J2158.1-1501_daily_bin1765.fits', expMap='/scratch/kocevski/647083/expmap_696816001_697075201_4FGL_J2158.1-1501_daily_bin1765.fits', expCube='/scratch/kocevski/647083/ltcube_696816001_697075201_4FGL_J2158.1-1501_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647083/Model_4FGL_J2158.1-1501_daily_bin1765.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/647083/ft1_filtered_4FGL_J2158.1-1501_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/647083/ft2_4FGL_J2158.1-1501_daily_bin1765.fits
Exposure map: /scratch/kocevski/647083/expmap_696816001_697075201_4FGL_J2158.1-1501_daily_bin1765.fits
Exposure cube: /scratch/kocevski/647083/ltcube_696816001_697075201_4FGL_J2158.1-1501_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647083/Model_4FGL_J2158.1-1501_daily_bin1765.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) = 5217.13840363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.180       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.6965       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12079E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .29809E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    25.165       1.0000          .0000       .10000E+07
     6 'Prefactor '    .32157E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .43154E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    11.505       1.0000          .0000       .10000E+07
     9 'Prefactor '    .47124E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    11.277       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.100       1.0000          .0000       .10000E+07
    12 'Prefactor '    41.473       1.0000          .0000       .10000E+07
    13 'Prefactor '    .24040E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .93847E-06   1.0000          .0000       .10000E+07
    15 'norm      '    3.2655       1.0000          .0000       .10000E+07
    16 'Normalizat'    .83352       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1152       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=   5217.030     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1423 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.731        20.050       -.81947E-06    .46728E-03
   2  Prefactor     5.3486        18.765       -.19980E-05   -.17680E-03
   3  Prefactor     .27756E-09    16.376        .70772E-06** at limit **
   4  Prefactor      .0000        2.3214        .21147E-08** at limit **
   5  Prefactor     24.761        19.365        .39854E-06   -.15528E-03
   6  Prefactor      .0000        7.5852        .11302E-06** at limit **
   7  norm           .0000        5.5619        .21089E-08** at limit **
   8  Prefactor     11.503        8.3863        .45611E-07   -.49543E-03
   9  Prefactor      .0000        19.368       -.68423E-06** at limit **
  10  Prefactor     11.457        14.751        .13899E-05   -.42919E-03
  11  Prefactor     15.963        17.822       -.77170E-07   -.12921E-03
  12  Prefactor     40.232        27.042        .74396E-06   -.15922E-03
  13  Prefactor      .0000        61.326       -.41057E-06** at limit **
  14  norm           .0000        .92876       -.53734E-09** at limit **
  15  norm          3.2624        1.4085        .13512E-08   -.12594E-02
  16  Normalizat    .83595        .25124       -.24594E-05    .36610E-04
  17  Prefactor     1.1150        .15730        .13069E-05   -.12576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7311
  Prefactor  = 5.34858
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 24.7608
  Prefactor  = 0
  norm       = 0
  Prefactor  = 11.5026
  Prefactor  = 0
  Prefactor  = 11.4569
  Prefactor  = 15.9628
  Prefactor  = 40.2321
  Prefactor  = 0
  norm       = 0
  norm       = 3.2624
  Normalizat = 0.835949
  Prefactor  = 1.11504
 **********
 **   18 **HESSE 
 **********

 FCN=   5217.030     FROM HESSE     STATUS=OK           223 CALLS     1646 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.731        19.935        .43471E-04   -1.5617    
   2  Prefactor     5.3486        18.701        .16825E-04   -1.5662    
   3  Prefactor     .27756E-09    16.685        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.3224        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.761        19.367        .79753E-05   -1.5608    
   6  Prefactor      .0000        7.5892        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        5.5809        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.503        8.3857        .11804E-04   -1.5640    
   9  Prefactor      .0000        19.404        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.457        14.724        .11923E-04   -1.5640    
  11  Prefactor     15.963        17.917        .99739E-05   -1.5628    
  12  Prefactor     40.232        27.041        .62118E-05   -1.5581    
  13  Prefactor      .0000        61.345        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .92918        .67979E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2624        1.4066        .53881E-05   -1.5672    
  16  Normalizat    .83595        .29026        .34125E-03   -.98749    
  17  Prefactor     1.1150        .18234        .19660E-03   -.88987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5384e-10
Minuit parameter uncertainties:
  1  19.9352
  2  18.7012
  3  0.000135086
  4  1.21609e-06
  5  19.3671
  6  6.56437e-06
  7  2.9047e-07
  8  8.38566
  9  1.05506e-05
  10  14.724
  11  17.9167
  12  27.0406
  13  2.33073e-06
  14  2.01213e-07
  15  1.40663
  16  0.290801
  17  0.182438
Done.

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

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  0.000e+00  1.055e-05  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:  1.115e+00  1.824e-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:  8.359e-01  2.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 329.527 -15.024
Photon Flux Upper Limit: 8.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647083/likelihoodResults_696816001_697075201_4FGL_J2158.1-1501_daily_bin1765.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): 102
logL (Free Index) = 5217.05566943
delta logL = -0.0256413677771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5217.02032086
delta logL = 0.00970720243549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51121       1.0000          .0000       .10000E+07
     2 'Index     '    3.2487       1.0000          .0000       10.000    
     3 'Normalizat'    .82760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1174       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5217.020     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      275 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50392        28.423        .15518E-03    .52836E-03
   2  Index         3.2520        6.6170        .43129E-02    .59046E-06
   3  Normalizat    .82795        .28073        .34276E-03    .96188E-06
   4  Prefactor     1.1172        .18180        .19643E-03    .18520E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.50392
  Index      = 3.25197
  Normalizat = 0.827952
  Prefactor  = 1.1172
 **********
 **   18 **HESSE 
 **********

 FCN=   5217.020     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .27E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50392        11.183        .62072E-05   -1.5694    
   2  Index         3.2520        3.0528        .17252E-03   -.35715    
   3  Normalizat    .82795        .28015        .13710E-04   -.99040    
   4  Prefactor     1.1172        .18196        .39286E-04   -.88919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65349e-14
Minuit parameter uncertainties:
  1  4.74785
  2  3.32504
  3  0.280639
  4  0.182064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647083': 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) = 5217.02031906
delta logL = 0.00970900765697

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  5.039e-01  4.748e+00  0.000e+00  1.000e+06 ( 1.000e-13)
270        Index:  3.252e+00  3.325e+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.117e+00  1.821e-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:  8.280e-01  2.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
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/647083/cmap_HighResolution_696816001_697075201_4FGL_J2158.1-1501_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.66e-03', job_status='DONE', photon_flux_upper_limit='8.75e-08', time_completed='2023-02-03 01:52:36.863451', job_id='647083', GAL2='1.12', fit_tolerance='1e-08', EG2='0.83', EG='0.84', time_epoch_completed='1675417956.86', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='9.71e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1765' AND source_name='4FGL J2158.1-1501' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:52:36 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0130>
Subject: Job 647083: <4FGL_J2158.1-1501_daily_bin1765> in cluster <slac> Done

Job <4FGL_J2158.1-1501_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 01:40:19 2023
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:41:51 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:41:51 2023
Terminated at Fri Feb  3 01:52:37 2023
Results reported at Fri Feb  3 01:52:37 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.1-1501_daily_bin1765 329.527 -15.0237 696816001 697075201 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 :                                   480.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            738 sec.

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

