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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1142
RA = 329.714, Dec = -30.2251
tmin = 535334401, tmax = 535593601
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='63154', job_status='RUN', time_executed='2021-09-27 22:30:40.378939', time_epoch_executed='1632807040.38' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63154

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63154/ft1_4FGL_J2158.8-3013_daily_bin1142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63154/ft2_4FGL_J2158.8-3013_daily_bin1142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63154/ft1_4FGL_J2158.8-3013_daily_bin1142.fits outfile=/scratch/kocevski/63154/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1142.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=535334401.0 tmax=535593601.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 7.97
user 4.88
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63154/ft1_filtered_4FGL_J2158.8-3013_daily_bin1142.fits" evtable="EVENTS" scfile=/scratch/kocevski/63154/ft2_4FGL_J2158.8-3013_daily_bin1142.fits sctable="SC_DATA" outfile=/scratch/kocevski/63154/ltcube_535334401_535593601_4FGL_J2158.8-3013_daily_bin1142.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/63154/ft2_4FGL_J2158.8-3013_daily_bin1142.fits
.....................!
real 12.94
user 12.10
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63154/ft1_filtered_4FGL_J2158.8-3013_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/63154/ft2_4FGL_J2158.8-3013_daily_bin1142.fits sctable="SC_DATA" expcube=/scratch/kocevski/63154/ltcube_535334401_535593601_4FGL_J2158.8-3013_daily_bin1142.fits outfile=/scratch/kocevski/63154/expmap_535334401_535593601_4FGL_J2158.8-3013_daily_bin1142.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/63154/ltcube_535334401_535593601_4FGL_J2158.8-3013_daily_bin1142.fits
.....................!
real 190.55
user 184.82
sys 5.15

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/63154/ft1_filtered_4FGL_J2158.8-3013_daily_bin1142.fits scfile=/scratch/kocevski/63154/ft2_4FGL_J2158.8-3013_daily_bin1142.fits outfile=/scratch/kocevski/63154/cmap_535334401_535593601_4FGL_J2158.8-3013_daily_bin1142.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63154/ft1_filtered_4FGL_J2158.8-3013_daily_bin1142.fits scfile=/scratch/kocevski/63154/ft2_4FGL_J2158.8-3013_daily_bin1142.fits outfile=/scratch/kocevski/63154/cmap_HighResolution_535334401_535593601_4FGL_J2158.8-3013_daily_bin1142.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63154/ft1_filtered_4FGL_J2158.8-3013_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/63154/ft2_4FGL_J2158.8-3013_daily_bin1142.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63154/Model_4FGL_J2158.8-3013_daily_bin1142.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/63154/ft1_filtered_4FGL_J2158.8-3013_daily_bin1142.fits.....................!
real 64.34
user 62.72
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.683       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7699       1.0000         .10000E-03   10000.    
     6 'norm      '    .11664E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5378       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4435       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9994       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0145       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.006       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3264       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.837       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6959       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2772       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88026       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=   7912.067     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2404 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1233        .13766E-07** at limit **
   2  Prefactor     .10000E-03    1.9562        .35183E-07** at limit **
   3  Prefactor     .10000E-03    5.6506        .11211E-06** at limit **
   4  Prefactor     13.681        10.872        .12200E-06   -.45065E-04
   5  Prefactor     2.7648        8.8039        .11635E-05    .34980E-04
   6  norm          .10002E-03    4.6320       -.19173E-05** at limit **
   7  Prefactor     .10000E-03    9.0294        .48904E-06** at limit **
   8  Prefactor     .10000E-03    27.248        .16799E-06** at limit **
   9  norm          .10001E-03    1.6776        .66889E-06** at limit **
  10  norm          2.5379        .49511       -.46624E-08   -.15646E-02
  11  Prefactor     5.4542        9.8946        .15456E-06   -.19331E-04
  12  Prefactor     1.9783        50.438       -.32171E-05   -.12574E-03
  13  Prefactor     1.0155        5.3582        .37860E-05    .12876E-03
  14  norm          .10000E-03    16.319        .42737E-06** at limit **
  15  Prefactor     .10000E-03    6.4224       -.22527E-06** at limit **
  16  Prefactor     12.007        11.762       -.31815E-07   -.17999E-04
  17  norm          1.3264        1.6207       -.73620E-07   -.79691E-05
  18  Prefactor     20.850        39.314        .23341E-05    .13247E-03
  19  Prefactor     .10000E-03    3.5748        .55024E-07** at limit **
  20  norm          1.6963        3.3014        .82432E-06    .25437E-03
  21  Normalizat    1.2771        .18179       -.89993E-06   -.92254E-04
  22  Prefactor     .88043        .12633       -.29802E-06   -.12493E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6815
  Prefactor  = 2.76479
  norm       = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100007
  norm       = 2.53787
  Prefactor  = 5.45422
  Prefactor  = 1.97832
  Prefactor  = 1.01549
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0069
  norm       = 1.32636
  Prefactor  = 20.8505
  Prefactor  = 0.0001
  norm       = 1.69631
  Normalizat = 1.27706
  Prefactor  = 0.880431
 **********
 **   18 **HESSE 
 **********

 FCN=   7912.067     FROM HESSE     STATUS=OK           344 CALLS     2748 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1278        .12658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9611        .12150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.681        10.871        .10828E-03   -1.4968    
   5  Prefactor     2.7648        8.8265        .24454E-03   -1.5375    
   6  norm          .10002E-03    10.830        .33368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    9.2350        .21115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5379        .48719        .26185E-04   -1.5389    
  11  Prefactor     5.4542        9.8506        .17223E-03   -1.5241    
  12  Prefactor     1.9783        55.050        .29290E-03   -1.5427    
  13  Prefactor     1.0155        5.6984        .40278E-03   -1.5506    
  14  norm          .10000E-03    16.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.007        11.772        .11561E-03   -1.5015    
  17  norm          1.3264        1.6102        .11522E-03   -1.5478    
  18  Prefactor     20.850        39.857        .87744E-04   -1.4794    
  19  Prefactor     .10000E-03    3.5829        .16424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6963        3.2886        .22004E-03   -1.5447    
  21  Normalizat    1.2771        .21415        .26075E-03   -.84254    
  22  Prefactor     .88043        .14992        .22511E-03   -.96828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38192e-09
Minuit parameter uncertainties:
  1  7.26212e-07
  2  1.80032e-06
  3  1.71188e-05
  4  10.8729
  5  8.83061
  6  0.00100085
  7  6.39061e-05
  8  4.65693e-05
  9  0.000491179
  10  0.487191
  11  9.85356
  12  20.8924
  13  4.81158
  14  6.0435e-05
  15  2.77643e-05
  16  11.7743
  17  1.61026
  18  39.9078
  19  1.71254e-06
  20  3.28898
  21  0.214297
  22  0.149994
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  2.538e+00  4.872e-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:  8.804e-01  1.500e-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.277e+00  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 118.34
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.10e-07 +/- 4.04e-08
Energy Flux (Fixed Index): 2.38e-04 +/- 4.58e-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) = 7911.64835261
delta logL = 0.41890128604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7911.64818326
delta logL = 0.419070640992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5770       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6380       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87233       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=   7911.648     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      203 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5770        .53458        .61111E-02    .39547E-03
   2  alpha         1.6380        .14531        .11512       -.24379E-06
   3  Normalizat    1.3005        .17266        .58550E-01   -.16935E-04
   4  Prefactor     .87233        .12616        .44651E-01    .25393E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.57699
  alpha      = 1.63797
  Normalizat = 1.30051
  Prefactor  = 0.872329
 **********
 **   18 **HESSE 
 **********

 FCN=   7911.648     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5770        .50470        .26995E-04   -1.5387    
   2  alpha         1.6380        .13963        .49990E-03   -.35204    
   3  Normalizat    1.3005        .20414        .25893E-03   -.83551    
   4  Prefactor     .87233        .14905        .22615E-03   -.97115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41065e-12
Minuit parameter uncertainties:
  1  0.504705
  2  0.139708
  3  0.204268
  4  0.149117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63154': 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) = 7911.64818326
delta logL = 0.419070641026

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  2.577e+00  5.047e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.638e+00  1.397e-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:  8.723e-01  1.491e-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.301e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 119.07
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.64 +/- 0.14
Photon Flux (Free Index): 1.87e-07 +/- 4.45e-08
Energy Flux (Free Index): 3.04e-04 +/- 1.01e-04

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/63154/cmap_HighResolution_535334401_535593601_4FGL_J2158.8-3013_daily_bin1142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.10e-07', energy_flux2='3.04e-04', photon_flux_error='4.04e-08', dlogl='4.19e-01', energy_flux='2.38e-04', photon_flux2='1.87e-07', job_status='DONE', time_completed='2021-09-27 22:41:32.085665', photon_index_error2='0.14', photon_index2='1.64', ts='118.34', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.01e-04', EG='1.28', time_epoch_completed='1632807692.09', return_code='0', job_id='63154', GAL2='0.87', EG2='1.30', return_code2='0', energy_flux_error='4.58e-05', photon_flux_error2='4.45e-08', ts2='119.07', photon_index='1.77' WHERE bin_id='1142' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:41:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 63154: <4FGL_J2158.8-3013_daily_bin1142> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1142> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:25:54 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:30:08 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:30:08 2021
Terminated at Mon Sep 27 22:41:32 2021
Results reported at Mon Sep 27 22:41:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1142 329.714 -30.2251 535334401 535593601 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 :                                   638.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            938 sec.

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

