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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1289
RA = 329.714, Dec = -30.2251
tmin = 573436801, tmax = 573696001
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='64145', job_status='RUN', time_executed='2021-09-27 22:34:13.653832', time_epoch_executed='1632807253.65' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64145

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64145/ft1_4FGL_J2158.8-3013_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64145/ft2_4FGL_J2158.8-3013_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64145/ft1_4FGL_J2158.8-3013_daily_bin1289.fits outfile=/scratch/kocevski/64145/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1289.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=573436801.0 tmax=573696001.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.39
user 5.11
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/64145/ft2_4FGL_J2158.8-3013_daily_bin1289.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/64145/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1289.fits evtable="EVENTS" outfile="/scratch/kocevski/64145/ft1_filtered_4FGL_J2158.8-3013_daily_bin1289.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64145/ft1_filtered_4FGL_J2158.8-3013_daily_bin1289.fits" evtable="EVENTS" scfile=/scratch/kocevski/64145/ft2_4FGL_J2158.8-3013_daily_bin1289.fits sctable="SC_DATA" outfile=/scratch/kocevski/64145/ltcube_573436801_573696001_4FGL_J2158.8-3013_daily_bin1289.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/64145/ft2_4FGL_J2158.8-3013_daily_bin1289.fits
.....................!
real 14.83
user 13.86
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64145/ft1_filtered_4FGL_J2158.8-3013_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/64145/ft2_4FGL_J2158.8-3013_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/64145/ltcube_573436801_573696001_4FGL_J2158.8-3013_daily_bin1289.fits outfile=/scratch/kocevski/64145/expmap_573436801_573696001_4FGL_J2158.8-3013_daily_bin1289.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/64145/ltcube_573436801_573696001_4FGL_J2158.8-3013_daily_bin1289.fits
.....................!
real 190.59
user 186.05
sys 4.03

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/64145/ft1_filtered_4FGL_J2158.8-3013_daily_bin1289.fits scfile=/scratch/kocevski/64145/ft2_4FGL_J2158.8-3013_daily_bin1289.fits outfile=/scratch/kocevski/64145/cmap_573436801_573696001_4FGL_J2158.8-3013_daily_bin1289.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64145/ft1_filtered_4FGL_J2158.8-3013_daily_bin1289.fits scfile=/scratch/kocevski/64145/ft2_4FGL_J2158.8-3013_daily_bin1289.fits outfile=/scratch/kocevski/64145/cmap_HighResolution_573436801_573696001_4FGL_J2158.8-3013_daily_bin1289.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64145/ft1_filtered_4FGL_J2158.8-3013_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/64145/ft2_4FGL_J2158.8-3013_daily_bin1289.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64145/Model_4FGL_J2158.8-3013_daily_bin1289.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/64145/ft1_filtered_4FGL_J2158.8-3013_daily_bin1289.fits.....................!
real 39.15
user 37.83
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/64145/ft1_filtered_4FGL_J2158.8-3013_daily_bin1289.fits', '/scratch/kocevski/64145/ft2_4FGL_J2158.8-3013_daily_bin1289.fits', expMap='/scratch/kocevski/64145/expmap_573436801_573696001_4FGL_J2158.8-3013_daily_bin1289.fits', expCube='/scratch/kocevski/64145/ltcube_573436801_573696001_4FGL_J2158.8-3013_daily_bin1289.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/64145/Model_4FGL_J2158.8-3013_daily_bin1289.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  1.000e-04  1.000e+04 ( 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  0.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/64145/ft1_filtered_4FGL_J2158.8-3013_daily_bin1289.fits
Spacecraft file(s): /scratch/kocevski/64145/ft2_4FGL_J2158.8-3013_daily_bin1289.fits
Exposure map: /scratch/kocevski/64145/expmap_573436801_573696001_4FGL_J2158.8-3013_daily_bin1289.fits
Exposure cube: /scratch/kocevski/64145/ltcube_573436801_573696001_4FGL_J2158.8-3013_daily_bin1289.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/64145/Model_4FGL_J2158.8-3013_daily_bin1289.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) = 3813.12944413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.695       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.679       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6633       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.392       1.0000         .10000E-03   10000.    
     6 'norm      '    7.8220       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0024       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    118.99       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.519       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.709       1.0000         .10000E-03   10000.    
    17 'norm      '    .11557E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6771       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3973       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .61768       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3813.105     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2345 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.696        10.332        .45122E-09   -.17362E-05
   2  Prefactor     .10000E-03    5.2397        .22661E-07** at limit **
   3  Prefactor     10.682        15.065       -.35072E-06   -.12891E-04
   4  Prefactor     3.6354        32.673        .53963E-06   -.22770E-04
   5  Prefactor     10.392        10.620        .46037E-07    .16761E-05
   6  norm          7.8206        11.396        .23106E-05    .62156E-05
   7  Prefactor     .10000E-03    13.057        .33156E-07** at limit **
   8  Prefactor     .10000E-03    64.681       -.17404E-06** at limit **
   9  norm          .10000E-03    4.5302       -.46795E-07** at limit **
  10  norm          2.0026        .62808       -.91208E-08   -.21054E-04
  11  Prefactor     .10000E-03    8.6554        .13592E-07** at limit **
  12  Prefactor     .10000E-03    12.128       -.65950E-07** at limit **
  13  Prefactor     .10000E-03    15.467        .15608E-06** at limit **
  14  norm          118.99        51.523        .98422E-07    .35069E-04
  15  Prefactor     24.522        25.792        .64376E-08    .12458E-04
  16  Prefactor     25.715        23.689       -.37569E-08    .42304E-04
  17  norm          .10000E-03    2.2740       -.19987E-05** at limit **
  18  Prefactor     9.6384        69.423        .94229E-06   -.13314E-04
  19  Prefactor     .10000E-03    29.543        .14377E-06** at limit **
  20  norm          .10000E-03    4.0324       -.17719E-06** at limit **
  21  Normalizat    1.3968        .26478        .74870E-06   -.10789E-04
  22  Prefactor     .61803        .17536       -.13167E-05    .38853E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6958
  Prefactor  = 0.0001
  Prefactor  = 10.6819
  Prefactor  = 3.63539
  Prefactor  = 10.3919
  norm       = 7.82059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.00255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 118.995
  Prefactor  = 24.5223
  Prefactor  = 25.7148
  norm       = 0.0001
  Prefactor  = 9.6384
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.39682
  Prefactor  = 0.618026
 **********
 **   18 **HESSE 
 **********

 FCN=   3813.105     FROM HESSE     STATUS=OK           342 CALLS     2687 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.696        10.335        .11242E-03   -1.4995    
   2  Prefactor     .10000E-03    5.2585        .13804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.682        15.106        .12261E-03   -1.5054    
   4  Prefactor     3.6354        32.705        .21104E-03   -1.5327    
   5  Prefactor     10.392        10.608        .12429E-03   -1.5063    
   6  norm          7.8206        11.370        .71686E-03   -1.5149    
   7  Prefactor     .10000E-03    13.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    64.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.5739        .12818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0026        .62800        .26464E-04   -1.5425    
  11  Prefactor     .10000E-03    8.6762        .17741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.981        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          118.99        51.553        .18445E-03   -1.3522    
  15  Prefactor     24.522        25.829        .80898E-04   -1.4717    
  16  Prefactor     25.715        23.733        .79006E-04   -1.4693    
  17  norm          .10000E-03    2.2907        .90502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.6384        68.472        .12882E-03   -1.5087    
  19  Prefactor     .10000E-03    29.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.0579        .12108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3968        .30795        .25867E-03   -.80721    
  22  Prefactor     .61803        .20160        .25267E-03   -1.0683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25923e-11
Minuit parameter uncertainties:
  1  10.3369
  2  1.7114e-06
  3  15.1118
  4  21.8233
  5  10.6095
  6  11.373
  7  4.25153e-05
  8  5.27487e-05
  9  3.74293e-06
  10  0.628002
  11  1.83582e-06
  12  3.03518e-05
  13  1.71063e-05
  14  51.5727
  15  25.8407
  16  23.7412
  17  4.22829e-06
  18  51.4629
  19  2.42315e-06
  20  4.45896e-07
  21  0.308358
  22  0.201837
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  2.003e+00  6.280e-01  1.000e-04  1.000e+04 ( 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  0.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:  6.180e-01  2.018e-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.397e+00  3.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 41.46
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.66e-07 +/- 5.20e-08
Energy Flux (Fixed Index): 1.88e-04 +/- 5.90e-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) = 3813.08454434
delta logL = 0.0206010442976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3813.08402527
delta logL = 0.0211201122256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0101       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7184       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61665       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=   3813.084     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      189 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0101        .69961        .60495E-02   -.21368E-02
   2  alpha         1.7184        .25264        .13313        .48536E-05
   3  Normalizat    1.4025        .25380        .58407E-01    .11590E-04
   4  Prefactor     .61664        .17214        .41281E-01    .87250E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.01011
  alpha      = 1.71843
  Normalizat = 1.40252
  Prefactor  = 0.616635
 **********
 **   18 **HESSE 
 **********

 FCN=   3813.084     FROM HESSE     STATUS=OK            29 CALLS      218 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0101        .63473        .26730E-04   -1.5424    
   2  alpha         1.7184        .23412        .57584E-03   -.31796    
   3  Normalizat    1.4025        .29358        .25828E-03   -.80556    
   4  Prefactor     .61664        .19902        .25299E-03   -1.0689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.08923e-11
Minuit parameter uncertainties:
  1  0.634727
  2  0.234501
  3  0.293938
  4  0.19925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64145': 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) = 3813.08402527
delta logL = 0.0211201161587

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  2.010e+00  6.347e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.718e+00  2.345e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  4.097e-02  0.000e+00  0.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:  6.166e-01  1.992e-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.403e+00  2.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 41.35
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.72 +/- 0.23
Photon Flux (Free Index): 1.58e-07 +/- 6.27e-08
Energy Flux (Free Index): 2.04e-04 +/- 1.05e-04

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/64145/cmap_HighResolution_573436801_573696001_4FGL_J2158.8-3013_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.66e-07', energy_flux2='2.04e-04', photon_flux_error='5.20e-08', dlogl='2.11e-02', energy_flux='1.88e-04', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-27 22:42:13.348944', photon_index_error2='0.23', photon_index2='1.72', ts='41.46', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='1.05e-04', EG='1.40', time_epoch_completed='1632807733.35', return_code='0', job_id='64145', GAL2='0.62', EG2='1.40', return_code2='0', energy_flux_error='5.90e-05', photon_flux_error2='6.27e-08', ts2='41.35', photon_index='1.77' WHERE bin_id='1289' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:42:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 64145: <4FGL_J2158.8-3013_daily_bin1289> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1289> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:30:16 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:31:40 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:31:40 2021
Terminated at Mon Sep 27 22:42:14 2021
Results reported at Mon Sep 27 22:42:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1289 329.714 -30.2251 573436801 573696001 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 :                                   468.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            718 sec.

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

