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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1420
RA = 329.714, Dec = -30.2251
tmin = 607392001, tmax = 607651201
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='64344', job_status='RUN', time_executed='2021-09-27 22:34:42.224386', time_epoch_executed='1632807282.22' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64344/ft1_4FGL_J2158.8-3013_daily_bin1420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64344/ft2_4FGL_J2158.8-3013_daily_bin1420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64344/ft1_4FGL_J2158.8-3013_daily_bin1420.fits outfile=/scratch/kocevski/64344/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1420.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=607392001.0 tmax=607651201.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.30
user 5.00
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64344/ft1_filtered_4FGL_J2158.8-3013_daily_bin1420.fits" evtable="EVENTS" scfile=/scratch/kocevski/64344/ft2_4FGL_J2158.8-3013_daily_bin1420.fits sctable="SC_DATA" outfile=/scratch/kocevski/64344/ltcube_607392001_607651201_4FGL_J2158.8-3013_daily_bin1420.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/64344/ft2_4FGL_J2158.8-3013_daily_bin1420.fits
.....................!
real 13.28
user 12.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64344/ft1_filtered_4FGL_J2158.8-3013_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/64344/ft2_4FGL_J2158.8-3013_daily_bin1420.fits sctable="SC_DATA" expcube=/scratch/kocevski/64344/ltcube_607392001_607651201_4FGL_J2158.8-3013_daily_bin1420.fits outfile=/scratch/kocevski/64344/expmap_607392001_607651201_4FGL_J2158.8-3013_daily_bin1420.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/64344/ltcube_607392001_607651201_4FGL_J2158.8-3013_daily_bin1420.fits
.....................!
real 191.40
user 186.02
sys 4.83

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/64344/ft1_filtered_4FGL_J2158.8-3013_daily_bin1420.fits scfile=/scratch/kocevski/64344/ft2_4FGL_J2158.8-3013_daily_bin1420.fits outfile=/scratch/kocevski/64344/cmap_607392001_607651201_4FGL_J2158.8-3013_daily_bin1420.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64344/ft1_filtered_4FGL_J2158.8-3013_daily_bin1420.fits scfile=/scratch/kocevski/64344/ft2_4FGL_J2158.8-3013_daily_bin1420.fits outfile=/scratch/kocevski/64344/cmap_HighResolution_607392001_607651201_4FGL_J2158.8-3013_daily_bin1420.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.61
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64344/ft1_filtered_4FGL_J2158.8-3013_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/64344/ft2_4FGL_J2158.8-3013_daily_bin1420.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64344/Model_4FGL_J2158.8-3013_daily_bin1420.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/64344/ft1_filtered_4FGL_J2158.8-3013_daily_bin1420.fits.....................!
real 59.37
user 57.88
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/64344/ft1_filtered_4FGL_J2158.8-3013_daily_bin1420.fits', '/scratch/kocevski/64344/ft2_4FGL_J2158.8-3013_daily_bin1420.fits', expMap='/scratch/kocevski/64344/expmap_607392001_607651201_4FGL_J2158.8-3013_daily_bin1420.fits', expCube='/scratch/kocevski/64344/ltcube_607392001_607651201_4FGL_J2158.8-3013_daily_bin1420.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/64344/Model_4FGL_J2158.8-3013_daily_bin1420.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/64344/ft1_filtered_4FGL_J2158.8-3013_daily_bin1420.fits
Spacecraft file(s): /scratch/kocevski/64344/ft2_4FGL_J2158.8-3013_daily_bin1420.fits
Exposure map: /scratch/kocevski/64344/expmap_607392001_607651201_4FGL_J2158.8-3013_daily_bin1420.fits
Exposure cube: /scratch/kocevski/64344/ltcube_607392001_607651201_4FGL_J2158.8-3013_daily_bin1420.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/64344/Model_4FGL_J2158.8-3013_daily_bin1420.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) = 7691.07861711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42021       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2383       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .56397E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37746E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14409E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.727       1.0000         .10000E-03   10000.    
     9 'norm      '    4.0533       1.0000         .10000E-03   10000.    
    10 'norm      '    .82986       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1756       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6485       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.435       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7380       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.303       1.0000         .10000E-03   10000.    
    20 'norm      '    .76349       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .55281       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0565       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=   7690.991     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2091 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41890        4.3976       -.10958E-05   -.19851E-03
   2  Prefactor     .10000E-03    1.2152        .13133E-06** at limit **
   3  Prefactor     2.2412        4.6825       -.52049E-05   -.36985E-03
   4  Prefactor     .10004E-03    3.8788        .35623E-06** at limit **
   5  Prefactor     .10002E-03    4.1584        .11578E-05** at limit **
   6  norm          .10000E-03    2.6162        .13721E-06** at limit **
   7  Prefactor     .10000E-03    7.3666        .11408E-05** at limit **
   8  Prefactor     12.716        34.585       -.18354E-04    .28048E-03
   9  norm          4.0527        3.4622        .41630E-06   -.22645E-03
  10  norm          .82976        .30009        .23521E-07    .62889E-03
  11  Prefactor     8.1755        8.5278        .23927E-06   -.14596E-03
  12  Prefactor     .10000E-03    12.081       -.66998E-06** at limit **
  13  Prefactor     .10000E-03    2.8111       -.11225E-07** at limit **
  14  norm          1.6363        33.243       -.45011E-05   -.96741E-04
  15  Prefactor     36.431        17.856       -.12154E-05    .17756E-03
  16  Prefactor     .10000E-03    5.7691       -.28428E-06** at limit **
  17  norm          1.7372        1.6078        .35900E-07    .16453E-03
  18  Prefactor     .10000E-03    25.519       -.55976E-06** at limit **
  19  Prefactor     17.298        11.409       -.12185E-06    .75104E-05
  20  norm          .76291        2.9451       -.20494E-05   -.14277E-02
  21  Normalizat    .55292        .14590        .31580E-05   -.19051E-05
  22  Prefactor     1.0566        .10746       -.89895E-07    .16182E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.418901
  Prefactor  = 0.0001
  Prefactor  = 2.24122
  Prefactor  = 0.00010004
  Prefactor  = 0.000100022
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.7158
  norm       = 4.05271
  norm       = 0.82976
  Prefactor  = 8.1755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.63628
  Prefactor  = 36.4315
  Prefactor  = 0.0001
  norm       = 1.73723
  Prefactor  = 0.0001
  Prefactor  = 17.2982
  norm       = 0.762912
  Normalizat = 0.552922
  Prefactor  = 1.05658
 **********
 **   18 **HESSE 
 **********

 FCN=   7690.991     FROM HESSE     STATUS=OK           350 CALLS     2441 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41890        16.300        .35708E-02   -1.5579    
   2  Prefactor     .10000E-03    1.2184        .94403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2412        4.8202        .27000E-03   -1.5409    
   4  Prefactor     .10004E-03    36.930        .33236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    31.917        .34148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6502        .13849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.4200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.716        33.259        .11228E-03   -1.4995    
   9  norm          4.0527        3.4469        .13176E-03   -1.5305    
  10  norm          .82976        .30008        .26586E-04   -1.5526    
  11  Prefactor     8.1755        8.5150        .14022E-03   -1.5136    
  12  Prefactor     .10000E-03    12.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8331        .14350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6363        33.605        .32889E-03   -1.5452    
  15  Prefactor     36.431        17.853        .66395E-04   -1.4500    
  16  Prefactor     .10000E-03    5.8118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7372        1.5927        .10234E-03   -1.5444    
  18  Prefactor     .10000E-03    25.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.298        11.447        .96285E-04   -1.4876    
  20  norm          .76291        3.0664        .29718E-03   -1.5533    
  21  Normalizat    .55292        .16463        .29858E-03   -1.1002    
  22  Prefactor     1.0566        .12257        .17384E-03   -.90866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12475e-08
Minuit parameter uncertainties:
  1  5.22709
  2  3.63356e-06
  3  4.82099
  4  0.00241807
  5  0.00168121
  6  2.3458e-06
  7  0.000171784
  8  33.3072
  9  3.44706
  10  0.300083
  11  8.51625
  12  1.13394e-05
  13  6.59611e-06
  14  14.8398
  15  17.8558
  16  3.09203e-06
  17  1.59274
  18  4.87878e-05
  19  11.4481
  20  3.05908
  21  0.164775
  22  0.122605
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  8.298e-01  3.001e-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:  1.057e+00  1.226e-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:  5.529e-01  1.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.10
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 6.88e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 7.80e-05 +/- 2.82e-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) = 7690.97829583
delta logL = 0.0123153119084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7690.9776939
delta logL = 0.0129172404268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82518       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8111       1.0000          .0000       5.0000    
     3 'Normalizat'    .54993       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       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=   7690.978     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      198 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82527        4.8575        .59373E-02    .12562E-03
   2  alpha         1.8109        3.3863        .21563        .18599E-04
   3  Normalizat    .55009        .13965        .67617E-01    .41154E-04
   4  Prefactor     1.0575        .81400E-01    .39492E-01   -.24941E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.825267
  alpha      = 1.81086
  Normalizat = 0.550092
  Prefactor  = 1.05747
 **********
 **   18 **HESSE 
 **********

 FCN=   7690.978     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82527        .28494        .26282E-04   -1.5526    
   2  alpha         1.8109        .27577        .86602E-02   -.27927    
   3  Normalizat    .55009        .15233        .29927E-03   -1.1015    
   4  Prefactor     1.0575        .11973        .17376E-03   -.90838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22544e-13
Minuit parameter uncertainties:
  1  0.284936
  2  0.276377
  3  0.152446
  4  0.119762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64344': 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) = 7690.97769157
delta logL = 0.0129195726131

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  8.253e-01  2.849e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.811e+00  2.764e-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:  1.057e+00  1.198e-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:  5.501e-01  1.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.19
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.81 +/- 0.28
Photon Flux (Free Index): 7.19e-08 +/- 3.11e-08
Energy Flux (Free Index): 7.27e-05 +/- 4.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/64344/cmap_HighResolution_607392001_607651201_4FGL_J2158.8-3013_daily_bin1420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.88e-08', energy_flux2='7.27e-05', photon_flux_error='2.49e-08', dlogl='1.29e-02', energy_flux='7.80e-05', photon_flux2='7.19e-08', job_status='DONE', time_completed='2021-09-27 22:44:58.138405', photon_index_error2='0.28', photon_index2='1.81', ts='28.10', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='4.06e-05', EG='0.55', time_epoch_completed='1632807898.14', return_code='0', job_id='64344', GAL2='1.06', EG2='0.55', return_code2='0', energy_flux_error='2.82e-05', photon_flux_error2='3.11e-08', ts2='28.19', photon_index='1.77' WHERE bin_id='1420' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:44:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 64344: <4FGL_J2158.8-3013_daily_bin1420> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1420 329.714 -30.2251 607392001 607651201 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 :                                   598.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            867 sec.

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

