/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 197 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 = 7498
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2158.8-3013_daily_bin160
RA = 329.714, Dec = -30.2251
tmin = 280800001, tmax = 281059201
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='58481', job_status='RUN', time_executed='2021-09-27 22:15:08.816743', time_epoch_executed='1632806108.82' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58481

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58481/ft1_4FGL_J2158.8-3013_daily_bin160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58481/ft2_4FGL_J2158.8-3013_daily_bin160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58481/ft1_4FGL_J2158.8-3013_daily_bin160.fits outfile=/scratch/kocevski/58481/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin160.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=280800001.0 tmax=281059201.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.87
user 3.64
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58481/ft1_filtered_4FGL_J2158.8-3013_daily_bin160.fits" evtable="EVENTS" scfile=/scratch/kocevski/58481/ft2_4FGL_J2158.8-3013_daily_bin160.fits sctable="SC_DATA" outfile=/scratch/kocevski/58481/ltcube_280800001_281059201_4FGL_J2158.8-3013_daily_bin160.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/58481/ft2_4FGL_J2158.8-3013_daily_bin160.fits
.....................!
real 14.58
user 14.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58481/ft1_filtered_4FGL_J2158.8-3013_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/58481/ft2_4FGL_J2158.8-3013_daily_bin160.fits sctable="SC_DATA" expcube=/scratch/kocevski/58481/ltcube_280800001_281059201_4FGL_J2158.8-3013_daily_bin160.fits outfile=/scratch/kocevski/58481/expmap_280800001_281059201_4FGL_J2158.8-3013_daily_bin160.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/58481/ltcube_280800001_281059201_4FGL_J2158.8-3013_daily_bin160.fits
.....................!
real 190.89
user 185.57
sys 4.60

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/58481/ft1_filtered_4FGL_J2158.8-3013_daily_bin160.fits scfile=/scratch/kocevski/58481/ft2_4FGL_J2158.8-3013_daily_bin160.fits outfile=/scratch/kocevski/58481/cmap_280800001_281059201_4FGL_J2158.8-3013_daily_bin160.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58481/ft1_filtered_4FGL_J2158.8-3013_daily_bin160.fits scfile=/scratch/kocevski/58481/ft2_4FGL_J2158.8-3013_daily_bin160.fits outfile=/scratch/kocevski/58481/cmap_HighResolution_280800001_281059201_4FGL_J2158.8-3013_daily_bin160.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20729E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5354       1.0000         .10000E-03   10000.    
     6 'norm      '    16.692       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13128E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    104.54       1.0000         .10000E-03   10000.    
     9 'norm      '    6.2114       1.0000         .10000E-03   10000.    
    10 'norm      '    .49767       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.928       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16204E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12393E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5447       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29270E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6078       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0065       1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.694       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1734       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95119       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0181       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=   6626.641     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2390 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5997        .16600E-07** at limit **
   2  Prefactor     .10000E-03    1.5564        .20114E-07** at limit **
   3  Prefactor     .10028E-03    5.2712        .10349E-05** at limit **
   4  Prefactor     .10000E-03    5.3138       -.17093E-06** at limit **
   5  Prefactor     8.5250        10.118       -.58766E-07   -.24008E-03
   6  norm          16.687        9.1511       -.27866E-06   -.15905E-03
   7  Prefactor     .10000E-03    11.490       -.12090E-05** at limit **
   8  Prefactor     104.50        68.740       -.29679E-05   -.15084E-03
   9  norm          6.2143        4.9058        .24205E-05   -.20526E-03
  10  norm          .49791        .30742       -.12577E-06   -.23572E-03
  11  Prefactor     19.930        11.397        .10833E-06   -.12296E-05
  12  Prefactor     .10000E-03    27.624       -.18298E-06** at limit **
  13  Prefactor     .10000E-03    16.395        .91219E-06** at limit **
  14  norm          1.4703        60.885        .13495E-05   -.22187E-04
  15  Prefactor     .10005E-03    10.032        .11282E-05** at limit **
  16  Prefactor     7.6141        12.550        .21485E-06    .28827E-05
  17  norm          3.0070        2.8555        .20538E-06   -.35038E-04
  18  Prefactor     47.637        57.242       -.18999E-05   -.19710E-03
  19  Prefactor     6.1774        9.3333        .74880E-07   -.34271E-04
  20  norm          .10000E-03    .99270       -.88260E-07** at limit **
  21  Normalizat    .95072        .19563        .11839E-05   -.29755E-03
  22  Prefactor     1.0184        .13930       -.15254E-05   -.18128E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100284
  Prefactor  = 0.0001
  Prefactor  = 8.52501
  norm       = 16.6872
  Prefactor  = 0.0001
  Prefactor  = 104.499
  norm       = 6.21426
  norm       = 0.497906
  Prefactor  = 19.9301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.47026
  Prefactor  = 0.000100051
  Prefactor  = 7.61411
  norm       = 3.00704
  Prefactor  = 47.6372
  Prefactor  = 6.17736
  norm       = 0.0001
  Normalizat = 0.950723
  Prefactor  = 1.01844
 **********
 **   18 **HESSE 
 **********

 FCN=   6626.641     FROM HESSE     STATUS=OK           344 CALLS     2734 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6183        .15083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5576        .99180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10028E-03    55.375        .33739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.5250        9.7924        .13721E-03   -1.5124    
   6  norm          16.687        9.1154        .98033E-04   -1.4891    
   7  Prefactor     .10000E-03    11.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     104.50        68.643        .19664E-03   -1.3660    
   9  norm          6.2143        4.9644        .71440E-03   -1.5209    
  10  norm          .49791        .30897        .33371E-04   -1.5567    
  11  Prefactor     19.930        11.395        .89722E-04   -1.4815    
  12  Prefactor     .10000E-03    28.836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4703        61.434        .34291E-03   -1.5465    
  15  Prefactor     .10005E-03    46.399        .49397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.6141        12.560        .14539E-03   -1.5156    
  17  norm          3.0070        2.8559        .11276E-03   -1.5361    
  18  Prefactor     47.637        58.166        .58062E-04   -1.4326    
  19  Prefactor     6.1774        9.3406        .16157E-03   -1.5211    
  20  norm          .10000E-03    .99345        .79200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95072        .21878        .28733E-03   -.94700    
  22  Prefactor     1.0184        .15678        .21093E-03   -.92117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42634e-09
Minuit parameter uncertainties:
  1  2.43795e-06
  2  4.52598e-07
  3  0.00793247
  4  4.68479e-06
  5  9.7942
  6  9.11613
  7  6.93969e-06
  8  68.6952
  9  4.96468
  10  0.308974
  11  11.3965
  12  4.36267e-06
  13  7.15181e-05
  14  19.0281
  15  0.0030745
  16  12.5644
  17  2.85605
  18  58.235
  19  9.34281
  20  3.79832e-07
  21  0.218986
  22  0.15685
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  4.979e-01  3.090e-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.018e+00  1.569e-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:  9.507e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.29
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 2.56e-08
Energy Flux (Fixed Index): 4.68e-05 +/- 2.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) = 6626.02528736
delta logL = 0.615468335477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6625.99391424
delta logL = 0.646841453039

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51020       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3435       1.0000          .0000       5.0000    
     3 'Normalizat'    .90129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0340       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=   6625.994     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      239 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51019        3.2358        .60233E-02    .40469E-03
   2  alpha         2.3433        3.6419        .27098        .60906E-04
   3  Normalizat    .90138        .75870E-01    .66400E-01    .17258E-04
   4  Prefactor     1.0340        .46960E-01    .40951E-01    .70030E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.51019
  alpha      = 2.34327
  Normalizat = 0.901375
  Prefactor  = 1.03396
 **********
 **   18 **HESSE 
 **********

 FCN=   6625.994     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51019        .29117        .26650E-04   -1.5565    
   2  alpha         2.3433        .47150        .95103E-02   -.62733E-01
   3  Normalizat    .90138        .20985        .29373E-03   -.96412    
   4  Prefactor     1.0340        .15595        .20916E-03   -.91606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20623e-09
Minuit parameter uncertainties:
  1  0.291167
  2  0.474356
  3  0.210044
  4  0.156013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58481': 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) = 6625.99391398
delta logL = 0.646841713138

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.102e-01  2.912e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.343e+00  4.744e-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.034e+00  1.560e-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:  9.014e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.64
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 2.34 +/- 0.47
Photon Flux (Free Index): 9.52e-08 +/- 6.34e-08
Energy Flux (Free Index): 3.43e-05 +/- 1.74e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/58481/cmap_HighResolution_280800001_281059201_4FGL_J2158.8-3013_daily_bin160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='3.43e-05', photon_flux_error='2.56e-08', dlogl='6.47e-01', energy_flux='4.68e-05', photon_flux2='9.52e-08', job_status='DONE', time_completed='2021-09-27 22:24:43.414369', photon_index_error2='0.47', photon_index2='2.34', ts='11.29', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='0.95', time_epoch_completed='1632806683.41', return_code='0', job_id='58481', GAL2='1.03', EG2='0.90', return_code2='0', energy_flux_error='2.90e-05', photon_flux_error2='6.34e-08', ts2='12.64', photon_index='1.77' WHERE bin_id='160' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:24:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 58481: <4FGL_J2158.8-3013_daily_bin160> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin160> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep 27 22:11:13 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:11:42 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:11:42 2021
Terminated at Mon Sep 27 22:24:44 2021
Results reported at Mon Sep 27 22:24:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin160 329.714 -30.2251 280800001 281059201 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 :                                   572.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             284.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            811 sec.

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

