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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1574
RA = 329.714, Dec = -30.2251
tmin = 647308801, tmax = 647568001
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='65713', job_status='RUN', time_executed='2021-09-27 22:37:02.272562', time_epoch_executed='1632807422.27' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/65713

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/65713/ft1_4FGL_J2158.8-3013_daily_bin1574.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/65713/ft2_4FGL_J2158.8-3013_daily_bin1574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/65713/ft1_4FGL_J2158.8-3013_daily_bin1574.fits outfile=/scratch/kocevski/65713/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1574.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=647308801.0 tmax=647568001.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.55
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/65713/ft1_filtered_4FGL_J2158.8-3013_daily_bin1574.fits" evtable="EVENTS" scfile=/scratch/kocevski/65713/ft2_4FGL_J2158.8-3013_daily_bin1574.fits sctable="SC_DATA" outfile=/scratch/kocevski/65713/ltcube_647308801_647568001_4FGL_J2158.8-3013_daily_bin1574.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/65713/ft2_4FGL_J2158.8-3013_daily_bin1574.fits
.....................!
real 15.36
user 14.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/65713/ft1_filtered_4FGL_J2158.8-3013_daily_bin1574.fits evtable="EVENTS" scfile=/scratch/kocevski/65713/ft2_4FGL_J2158.8-3013_daily_bin1574.fits sctable="SC_DATA" expcube=/scratch/kocevski/65713/ltcube_647308801_647568001_4FGL_J2158.8-3013_daily_bin1574.fits outfile=/scratch/kocevski/65713/expmap_647308801_647568001_4FGL_J2158.8-3013_daily_bin1574.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/65713/ltcube_647308801_647568001_4FGL_J2158.8-3013_daily_bin1574.fits
.....................!
real 192.21
user 185.79
sys 5.67

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/65713/ft1_filtered_4FGL_J2158.8-3013_daily_bin1574.fits scfile=/scratch/kocevski/65713/ft2_4FGL_J2158.8-3013_daily_bin1574.fits outfile=/scratch/kocevski/65713/cmap_647308801_647568001_4FGL_J2158.8-3013_daily_bin1574.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/65713/ft1_filtered_4FGL_J2158.8-3013_daily_bin1574.fits scfile=/scratch/kocevski/65713/ft2_4FGL_J2158.8-3013_daily_bin1574.fits outfile=/scratch/kocevski/65713/cmap_HighResolution_647308801_647568001_4FGL_J2158.8-3013_daily_bin1574.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11721E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6150       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.216       1.0000         .10000E-03   10000.    
     6 'norm      '    15.375       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    121.15       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3778       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1489       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3191       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9657       1.0000         .10000E-03   10000.    
    14 'norm      '    43.334       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .48978E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2243       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.468       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.159       1.0000         .10000E-03   10000.    
    20 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .60563       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0872       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5747.688     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     2796 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10074E-03    5.2049        .60097E-01** at limit **
   2  Prefactor     2.6148        5.9501        .25223E-03   -.26593E-04
   3  Prefactor     .10000E-03    3.6285        .14044E-02** at limit **
   4  Prefactor     .10000E-03    10.012        .18142E-02** at limit **
   5  Prefactor     15.219        10.742        .10268E-03    .34324E-05
   6  norm          15.375        8.8305        .10214E-03    .10351E-04
   7  Prefactor     .10000E-03    7.7089        .18142E-02** at limit **
   8  Prefactor     121.17        65.365        .36563E-04    .30782E-04
   9  norm          1.3797        3.8063        .22755E-03   -.59404E-04
  10  norm          1.1489        .38697        .25906E-04   -.47394E-04
  11  Prefactor     .10000E-03    21.793        .36285E-03** at limit **
  12  Prefactor     8.3199        18.176        .13899E-03   -.52348E-05
  13  Prefactor     4.9677        6.5502        .90237E-03   -.82420E-04
  14  norm          43.328        27.912        .60900E-04    .77285E-04
  15  Prefactor     .10000E-03    9.6654        .18142E-02** at limit **
  16  Prefactor     .10147E-03    13.729        .70449E-01** at limit **
  17  norm          1.2258        1.7832        .11462E-03   -.15780E-03
  18  Prefactor     28.370        48.957        .75088E-04   -.68284E-04
  19  Prefactor     17.164        13.749        .96688E-04   -.42094E-04
  20  norm          .10000E-03    3.4680        .13624E-02** at limit **
  21  Normalizat    .60528        .22626        .32833E-03    .51142E-04
  22  Prefactor     1.0874        .16039        .19152E-03    .12475E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100737
  Prefactor  = 2.61478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2191
  norm       = 15.375
  Prefactor  = 0.0001
  Prefactor  = 121.167
  norm       = 1.37972
  norm       = 1.1489
  Prefactor  = 0.0001
  Prefactor  = 8.31994
  Prefactor  = 4.96774
  norm       = 43.3275
  Prefactor  = 0.0001
  Prefactor  = 0.000101467
  norm       = 1.22579
  Prefactor  = 28.37
  Prefactor  = 17.1637
  norm       = 0.0001
  Normalizat = 0.605277
  Prefactor  = 1.08741
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.688     FROM HESSE     STATUS=OK           342 CALLS     3138 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10074E-03    5.1727        .60476E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6148        5.9498        .10089E-04   -1.5385    
   3  Prefactor     .10000E-03    3.6291        .28089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.014        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.219        10.741        .41071E-05   -1.4928    
   6  norm          15.375        8.8300        .40858E-05   -1.4924    
   7  Prefactor     .10000E-03    7.7090        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     121.17        65.352        .73127E-05   -1.3502    
   9  norm          1.3797        3.8047        .91021E-05   -1.5473    
  10  norm          1.1489        .38693        .10363E-05   -1.5494    
  11  Prefactor     .10000E-03    21.794        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3199        18.174        .55597E-05   -1.5131    
  13  Prefactor     4.9677        6.5485        .36095E-04   -1.5262    
  14  norm          43.328        27.912        .12180E-04   -1.4391    
  15  Prefactor     .10000E-03    9.6661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10147E-03    12.511        .75290E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2258        1.7830        .45849E-05   -1.5487    
  18  Prefactor     28.370        48.956        .15018E-04   -1.4642    
  19  Prefactor     17.164        13.748        .38675E-05   -1.4879    
  20  norm          .10000E-03    3.4698        .27248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .60528        .22633        .13133E-04   -1.0776    
  22  Prefactor     1.0874        .16048        .38303E-04   -.89870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95156e-10
Minuit parameter uncertainties:
  1  0.00390479
  2  5.95109
  3  4.97661e-06
  4  2.46063e-06
  5  10.7428
  6  8.83074
  7  5.56611e-06
  8  65.3914
  9  3.80538
  10  0.38693
  11  0.000121119
  12  18.1861
  13  6.54945
  14  27.9205
  15  3.01531e-05
  16  0.00857069
  17  1.78312
  18  49.0255
  19  13.7505
  20  1.2661e-05
  21  0.226674
  22  0.160548
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.149e+00  3.869e-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.087e+00  1.605e-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:  6.053e-01  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.09
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 9.52e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 1.08e-04 +/- 3.64e-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) = 5747.67648171
delta logL = 0.0111585379227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5747.67595899
delta logL = 0.0116812616679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1432       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7231       1.0000          .0000       5.0000    
     3 'Normalizat'    .60985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0860       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=   5747.676     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1432        .45169        .59305E-02   -.14847E-03
   2  alpha         1.7231        .31800        .19561       -.59760E-05
   3  Normalizat    .60992        .18356        .73909E-01    .27080E-04
   4  Prefactor     1.0860        .13903        .38144E-01   -.31319E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14316
  alpha      = 1.7231
  Normalizat = 0.609916
  Prefactor  = 1.08596
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.676     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .40E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1432        .38396        .26086E-04   -1.5494    
   2  alpha         1.7231        .28422        .81270E-02   -.31599    
   3  Normalizat    .60992        .20420        .32721E-03   -1.0756    
   4  Prefactor     1.0860        .15551        .19166E-03   -.89917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04932e-14
Minuit parameter uncertainties:
  1  0.38396
  2  0.284903
  3  0.204455
  4  0.155578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/65713': 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) = 5747.67595893
delta logL = 0.0116813210852

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.143e+00  3.840e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.723e+00  2.849e-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.086e+00  1.556e-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:  6.099e-01  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 51.11
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.72 +/- 0.28
Photon Flux (Free Index): 9.03e-08 +/- 4.30e-08
Energy Flux (Free Index): 1.15e-04 +/- 6.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/65713/cmap_HighResolution_647308801_647568001_4FGL_J2158.8-3013_daily_bin1574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.52e-08', energy_flux2='1.15e-04', photon_flux_error='3.21e-08', dlogl='1.17e-02', energy_flux='1.08e-04', photon_flux2='9.03e-08', job_status='DONE', time_completed='2021-09-27 22:46:34.496868', photon_index_error2='0.28', photon_index2='1.72', ts='51.09', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='6.39e-05', EG='0.61', time_epoch_completed='1632807994.5', return_code='0', job_id='65713', GAL2='1.09', EG2='0.61', return_code2='0', energy_flux_error='3.64e-05', photon_flux_error2='4.30e-08', ts2='51.11', photon_index='1.77' WHERE bin_id='1574' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:46:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 65713: <4FGL_J2158.8-3013_daily_bin1574> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1574> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 22:35:22 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:35:45 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:35:45 2021
Terminated at Mon Sep 27 22:46:35 2021
Results reported at Mon Sep 27 22:46:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1574 329.714 -30.2251 647308801 647568001 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 :                                   567.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             320.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            673 sec.

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

