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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1709
RA = 329.714, Dec = -30.2251
tmin = 682300801, tmax = 682560001
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='238617', job_status='RUN', time_executed='2022-09-16 23:38:29.524974', time_epoch_executed='1663396709.53' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/238617

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/238617/ft1_4FGL_J2158.8-3013_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/238617/ft2_4FGL_J2158.8-3013_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/238617/ft1_4FGL_J2158.8-3013_daily_bin1709.fits outfile=/scratch/kocevski/238617/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1709.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=682300801.0 tmax=682560001.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.83
user 3.56
sys 0.20

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

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

Number of photons that the gtmktime cut: 479

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/238617/ft1_filtered_4FGL_J2158.8-3013_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/238617/ft2_4FGL_J2158.8-3013_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/238617/ltcube_682300801_682560001_4FGL_J2158.8-3013_daily_bin1709.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/238617/ft2_4FGL_J2158.8-3013_daily_bin1709.fits
.....................!
real 14.87
user 14.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/238617/ft1_filtered_4FGL_J2158.8-3013_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/238617/ft2_4FGL_J2158.8-3013_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/238617/ltcube_682300801_682560001_4FGL_J2158.8-3013_daily_bin1709.fits outfile=/scratch/kocevski/238617/expmap_682300801_682560001_4FGL_J2158.8-3013_daily_bin1709.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/238617/ltcube_682300801_682560001_4FGL_J2158.8-3013_daily_bin1709.fits
.....................!
real 192.84
user 186.37
sys 5.55

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/238617/ft1_filtered_4FGL_J2158.8-3013_daily_bin1709.fits scfile=/scratch/kocevski/238617/ft2_4FGL_J2158.8-3013_daily_bin1709.fits outfile=/scratch/kocevski/238617/cmap_682300801_682560001_4FGL_J2158.8-3013_daily_bin1709.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/238617/ft1_filtered_4FGL_J2158.8-3013_daily_bin1709.fits scfile=/scratch/kocevski/238617/ft2_4FGL_J2158.8-3013_daily_bin1709.fits outfile=/scratch/kocevski/238617/cmap_HighResolution_682300801_682560001_4FGL_J2158.8-3013_daily_bin1709.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.59
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/238617/ft1_filtered_4FGL_J2158.8-3013_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/238617/ft2_4FGL_J2158.8-3013_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/238617/Model_4FGL_J2158.8-3013_daily_bin1709.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/238617/ft1_filtered_4FGL_J2158.8-3013_daily_bin1709.fits.....................!
real 48.45
user 47.02
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/238617/ft1_filtered_4FGL_J2158.8-3013_daily_bin1709.fits', '/scratch/kocevski/238617/ft2_4FGL_J2158.8-3013_daily_bin1709.fits', expMap='/scratch/kocevski/238617/expmap_682300801_682560001_4FGL_J2158.8-3013_daily_bin1709.fits', expCube='/scratch/kocevski/238617/ltcube_682300801_682560001_4FGL_J2158.8-3013_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/238617/Model_4FGL_J2158.8-3013_daily_bin1709.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/238617/ft1_filtered_4FGL_J2158.8-3013_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/238617/ft2_4FGL_J2158.8-3013_daily_bin1709.fits
Exposure map: /scratch/kocevski/238617/expmap_682300801_682560001_4FGL_J2158.8-3013_daily_bin1709.fits
Exposure cube: /scratch/kocevski/238617/ltcube_682300801_682560001_4FGL_J2158.8-3013_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/238617/Model_4FGL_J2158.8-3013_daily_bin1709.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5324.61352275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71759       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.3713       1.0000          .0000       .10000E+07
     3 'Prefactor '    .95784E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .57295       1.0000          .0000       .10000E+07
     5 'Prefactor '    28.309       1.0000          .0000       .10000E+07
     6 'norm      '    .29747E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .27980E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .14723E-02   1.0000          .0000       .10000E+07
     9 'norm      '    3.9975       1.0000          .0000       .10000E+07
    10 'norm      '    .88315       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13126E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    13.036       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10403E-03   1.0000          .0000       .10000E+07
    14 'norm      '    78.547       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.8212       1.0000          .0000       .10000E+07
    16 'Prefactor '    20.139       1.0000          .0000       .10000E+07
    17 'norm      '    .27349       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10596E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    28.594       1.0000          .0000       .10000E+07
    20 'norm      '    .96176E-05   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2182       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88114       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=   5324.411     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1392 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72043        .63415       -.15029E-07   -.10086E-02
   2  Prefactor     1.4299        20.636        .20099E-06    .90194E-03
   3  Prefactor     .13656E-07    4.7469        .98708E-07** at limit **
   4  Prefactor     .25019E-06    25.293       -.31285E-06** at limit **
   5  Prefactor     28.435        9.1212        .46495E-07    .30136E-01
   6  norm          .37970E-07    9.3404       -.80961E-07** at limit **
   7  Prefactor     .38136E-07    4.6917       -.39193E-07** at limit **
   8  Prefactor     .73624E-06    19.863       -.25725E-07** at limit **
   9  norm          4.0126        6.1626        .38208E-07    .16313E-02
  10  norm          .88250        .43846       -.14991E-08    .97540E-03
  11  Prefactor     .12546E-07    7.7780       -.86060E-07** at limit **
  12  Prefactor     13.077        2.5422        .23819E-08   -.16663E-02
  13  Prefactor     .11847E-04    20.436       -.12472E-07** at limit **
  14  norm          76.040        33.469       -.10839E-06    .63860E-01
  15  Prefactor     1.8497        19.840       -.12590E-06    .10507E-01
  16  Prefactor     19.740        12.457       -.15883E-07    .38593E-01
  17  norm          .28751        2.6792       -.49425E-07   -.12902E-02
  18  Prefactor     .60098E-05    31.055       -.18711E-06** at limit **
  19  Prefactor     29.045        11.701        .15667E-07   -.75240E-01
  20  norm           .0000        1.7430       -.38796E-07** at limit **
  21  Normalizat    1.2194        .26125        .31081E-05   -.41571E-04
  22  Prefactor     .88138        .18017       -.33938E-05   -.22973E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.720435
  Prefactor  = 1.42988
  Prefactor  = 1.36557e-08
  Prefactor  = 2.50189e-07
  Prefactor  = 28.4353
  norm       = 3.79696e-08
  Prefactor  = 3.81362e-08
  Prefactor  = 7.36244e-07
  norm       = 4.01263
  norm       = 0.882499
  Prefactor  = 1.25455e-08
  Prefactor  = 13.0767
  Prefactor  = 1.18469e-05
  norm       = 76.0398
  Prefactor  = 1.84973
  Prefactor  = 19.7404
  norm       = 0.287506
  Prefactor  = 6.0098e-06
  Prefactor  = 29.0447
  norm       = 0
  Normalizat = 1.21936
  Prefactor  = 0.881376
 **********
 **   18 **HESSE 
 **********

 FCN=   5324.411     FROM HESSE     STATUS=OK           396 CALLS     1788 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72043        16.466        .59292E-03   -1.5691    
   2  Prefactor     1.4299        20.978        .93057E-03   -1.5684    
   3  Prefactor     .13656E-07    6.5441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25019E-06    14.307        .90741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.435        12.321        .18798E-03   -1.5601    
   6  norm          .37970E-07    9.4152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38136E-07    6.6383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .73624E-06    21.123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.0126        6.1805        .50418E-03   -1.5668    
  10  norm          .88250        .44002        .46932E-03   -1.5689    
  11  Prefactor     .12546E-07    7.7946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.077        27.825        .27717E-03   -1.5636    
  13  Prefactor     .11847E-04    36.892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          76.040        37.709        .11284E-03   -1.5534    
  15  Prefactor     1.8497        20.193        .77345E-03   -1.5681    
  16  Prefactor     19.740        18.586        .22290E-03   -1.5619    
  17  norm          .28751        2.6702        .10591E-02   -1.5697    
  18  Prefactor     .60098E-05    41.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.045        18.109        .18704E-03   -1.5600    
  20  norm           .0000        1.7573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2194        .23270        .62726E-01   -.86007    
  22  Prefactor     .88138        .15616        .44764E-01   -.96795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00251e-07
Minuit parameter uncertainties:
  1  6.88849
  2  10.9538
  3  0.000597493
  4  0.00378398
  5  12.3213
  6  0.00119553
  7  0.00100594
  8  0.00788726
  9  6.18052
  10  0.440019
  11  0.000625719
  12  27.8255
  13  0.0418121
  14  37.7087
  15  12.2231
  16  18.5859
  17  1.75236
  18  0.0314389
  19  18.109
  20  1.1095e-05
  21  0.232898
  22  0.156236
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  8.825e-01  4.400e-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:  8.814e-01  1.562e-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.219e+00  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.25
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 7.31e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 8.29e-05 +/- 4.13e-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) = 5322.69038669
delta logL = 1.72017422905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5322.66252983
delta logL = 1.74803109164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68365       1.0000          .0000       .10000E+07
     2 'alpha     '    2.5276       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92420       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=   5322.663     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      241 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68388        3.4645        .47947E-03    .18765E-02
   2  alpha         2.5274        3.6779        .16555        .64609E-04
   3  Normalizat    1.1074        .12559        .65177E-01    .12880E-04
   4  Prefactor     .92443        .68233E-01    .45313E-01    .75073E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.683883
  alpha      = 2.5274
  Normalizat = 1.10743
  Prefactor  = 0.924426
 **********
 **   18 **HESSE 
 **********

 FCN=   5322.663     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68388        .39749        .21265E-05   -1.5691    
   2  alpha         2.5274        .42580        .68585E-02    .10959E-01
   3  Normalizat    1.1074        .26284        .28832E-03   -.89514    
   4  Prefactor     .92443        .18069        .21952E-03   -.95293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04032e-09
Minuit parameter uncertainties:
  1  0.39749
  2  0.427885
  3  0.263146
  4  0.180812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/238617': 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) = 5322.66252833
delta logL = 1.74803258527

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  6.839e-01  3.975e-01  0.000e+00  1.000e+06 ( 1.000e-11)
262        alpha:  2.527e+00  4.279e-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:  9.244e-01  1.808e-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.107e+00  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.90
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 2.53 +/- 0.43
Photon Flux (Free Index): 1.74e-07 +/- 8.16e-08
Energy Flux (Free Index): 5.07e-05 +/- 2.01e-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/238617/cmap_HighResolution_682300801_682560001_4FGL_J2158.8-3013_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.31e-08', energy_flux2='5.07e-05', photon_flux_error='3.65e-08', dlogl='1.75e+00', energy_flux='8.29e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2022-09-16 23:46:26.508024', photon_index_error2='0.43', photon_index2='2.53', ts='13.25', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='1.22', time_epoch_completed='1663397186.51', return_code='0', job_id='238617', GAL2='0.92', EG2='1.11', return_code2='0', energy_flux_error='4.13e-05', photon_flux_error2='8.16e-08', ts2='16.90', photon_index='1.77' WHERE bin_id='1709' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:46:26 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0130>
Subject: Job 238617: <4FGL_J2158.8-3013_daily_bin1709> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1709> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 23:35:21 2022
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:36:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:36:09 2022
Terminated at Fri Sep 16 23:46:27 2022
Results reported at Fri Sep 16 23:46:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1709 329.714 -30.2251 682300801 682560001 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 :                                   478.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            666 sec.

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

