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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1379
RA = 329.714, Dec = -30.2251
tmin = 596764801, tmax = 597024001
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='64278', job_status='RUN', time_executed='2021-09-27 22:33:41.635990', time_epoch_executed='1632807221.64' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64278

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64278/ft1_4FGL_J2158.8-3013_daily_bin1379.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64278/ft2_4FGL_J2158.8-3013_daily_bin1379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64278/ft1_4FGL_J2158.8-3013_daily_bin1379.fits outfile=/scratch/kocevski/64278/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1379.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=596764801.0 tmax=597024001.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.59
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/64278/ft2_4FGL_J2158.8-3013_daily_bin1379.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/64278/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1379.fits evtable="EVENTS" outfile="/scratch/kocevski/64278/ft1_filtered_4FGL_J2158.8-3013_daily_bin1379.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64278/ft1_filtered_4FGL_J2158.8-3013_daily_bin1379.fits" evtable="EVENTS" scfile=/scratch/kocevski/64278/ft2_4FGL_J2158.8-3013_daily_bin1379.fits sctable="SC_DATA" outfile=/scratch/kocevski/64278/ltcube_596764801_597024001_4FGL_J2158.8-3013_daily_bin1379.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/64278/ft2_4FGL_J2158.8-3013_daily_bin1379.fits
.....................!
real 15.80
user 15.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64278/ft1_filtered_4FGL_J2158.8-3013_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/64278/ft2_4FGL_J2158.8-3013_daily_bin1379.fits sctable="SC_DATA" expcube=/scratch/kocevski/64278/ltcube_596764801_597024001_4FGL_J2158.8-3013_daily_bin1379.fits outfile=/scratch/kocevski/64278/expmap_596764801_597024001_4FGL_J2158.8-3013_daily_bin1379.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/64278/ltcube_596764801_597024001_4FGL_J2158.8-3013_daily_bin1379.fits
.....................!
real 194.04
user 186.04
sys 5.57

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/64278/ft1_filtered_4FGL_J2158.8-3013_daily_bin1379.fits scfile=/scratch/kocevski/64278/ft2_4FGL_J2158.8-3013_daily_bin1379.fits outfile=/scratch/kocevski/64278/cmap_596764801_597024001_4FGL_J2158.8-3013_daily_bin1379.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64278/ft1_filtered_4FGL_J2158.8-3013_daily_bin1379.fits scfile=/scratch/kocevski/64278/ft2_4FGL_J2158.8-3013_daily_bin1379.fits outfile=/scratch/kocevski/64278/cmap_HighResolution_596764801_597024001_4FGL_J2158.8-3013_daily_bin1379.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64278/ft1_filtered_4FGL_J2158.8-3013_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/64278/ft2_4FGL_J2158.8-3013_daily_bin1379.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64278/Model_4FGL_J2158.8-3013_daily_bin1379.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/64278/ft1_filtered_4FGL_J2158.8-3013_daily_bin1379.fits.....................!
real 46.49
user 44.64
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4456       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7373       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.609       1.0000         .10000E-03   10000.    
     6 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .75120E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .15806E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .85630       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9004       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.456       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.601       1.0000         .10000E-03   10000.    
    17 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1394       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5115       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4347       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3518       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86525       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=   5020.230     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2385 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9849        .25450E-08** at limit **
   2  Prefactor     3.4464        6.0552       -.50160E-05    .13316E-03
   3  Prefactor     .10000E-03    9.8476       -.10210E-06** at limit **
   4  Prefactor     9.7348        15.888       -.33346E-05    .12281E-03
   5  Prefactor     15.612        11.926        .15163E-05   -.10615E-03
   6  norm          .10000E-03    5.7054        .56659E-07** at limit **
   7  Prefactor     15.555        23.911        .14566E-04    .60436E-04
   8  Prefactor     .10007E-03    218.94       -.19411E-04** at limit **
   9  norm          .10000E-03    3.5612       -.17246E-05** at limit **
  10  norm          .85659        .41563       -.10982E-06    .26957E-02
  11  Prefactor     .10000E-03    5.5014       -.19107E-06** at limit **
  12  Prefactor     .10000E-03    21.391       -.31253E-06** at limit **
  13  Prefactor     .10000E-03    19.786        .88012E-06** at limit **
  14  norm          4.8954        22.408        .59101E-05   -.72810E-04
  15  Prefactor     19.466        33.443       -.72395E-06    .44069E-05
  16  Prefactor     13.608        14.492        .29188E-05   -.12908E-03
  17  norm          .10000E-03    1.4499        .21965E-06** at limit **
  18  Prefactor     6.1251        71.281       -.14616E-04    .15294E-04
  19  Prefactor     9.5126        13.644        .95171E-06   -.67707E-04
  20  norm          3.4351        3.6041        .95596E-07    .65657E-04
  21  Normalizat    1.3522        .23786       -.56549E-06    .41074E-03
  22  Prefactor     .86499        .16230       -.14343E-06    .32717E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.4464
  Prefactor  = 0.0001
  Prefactor  = 9.73477
  Prefactor  = 15.6121
  norm       = 0.0001
  Prefactor  = 15.5548
  Prefactor  = 0.000100069
  norm       = 0.000100004
  norm       = 0.856587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.89544
  Prefactor  = 19.4661
  Prefactor  = 13.6076
  norm       = 0.0001
  Prefactor  = 6.12512
  Prefactor  = 9.51262
  norm       = 3.43513
  Normalizat = 1.35224
  Prefactor  = 0.864992
 **********
 **   18 **HESSE 
 **********

 FCN=   5020.230     FROM HESSE     STATUS=OK           344 CALLS     2729 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9925        .13813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4464        6.0669        .21789E-03   -1.5337    
   3  Prefactor     .10000E-03    9.9339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7348        15.874        .12842E-03   -1.5084    
   5  Prefactor     15.612        11.903        .10138E-03   -1.4918    
   6  norm          .10000E-03    5.7247        .16525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.555        23.863        .10147E-03   -1.4919    
   8  Prefactor     .10007E-03    225.26        .18584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    69.883        .24103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .85659        .41031        .29977E-04   -1.5523    
  11  Prefactor     .10000E-03    5.5179        .16230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8954        22.201        .18170E-03   -1.5265    
  15  Prefactor     19.466        33.622        .90804E-04   -1.4825    
  16  Prefactor     13.608        14.450        .10861E-03   -1.4970    
  17  norm          .10000E-03    1.4555        .82655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.1251        70.587        .16203E-03   -1.5213    
  19  Prefactor     9.5126        13.663        .12994E-03   -1.5091    
  20  norm          3.4351        3.6054        .13397E-03   -1.5337    
  21  Normalizat    1.3522        .27827        .26724E-03   -.82020    
  22  Prefactor     .86499        .19164        .23266E-03   -.97375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11555e-09
Minuit parameter uncertainties:
  1  6.68055e-07
  2  6.06794
  3  2.31529e-05
  4  15.8813
  5  11.9051
  6  2.06079e-06
  7  23.8776
  8  0.00790311
  9  0.00111673
  10  0.410311
  11  3.93317e-07
  12  6.55913e-06
  13  3.99464e-06
  14  20.8629
  15  33.6544
  16  14.454
  17  2.88233e-05
  18  41.6478
  19  13.6671
  20  3.6056
  21  0.278583
  22  0.19179
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  8.566e-01  4.103e-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.650e-01  1.918e-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.352e+00  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.78
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 7.10e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 8.05e-05 +/- 3.86e-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) = 5020.22904437
delta logL = 0.00123916249868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5020.22897503
delta logL = 0.00130849815287

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86020       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7863       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86544       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=   5020.229     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      197 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86013        .68300        .68032E-02   -.11118E-03
   2  alpha         1.7865        .58263        .24467       -.23410E-05
   3  Normalizat    1.3504        .22828        .60459E-01    .13299E-05
   4  Prefactor     .86548        .16152        .44563E-01    .73628E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.860131
  alpha      = 1.78651
  Normalizat = 1.35041
  Prefactor  = 0.865477
 **********
 **   18 **HESSE 
 **********

 FCN=   5020.229     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86013        .41037        .29915E-04   -1.5522    
   2  alpha         1.7865        .38289        .98175E-02   -.28942    
   3  Normalizat    1.3504        .26553        .26739E-03   -.82074    
   4  Prefactor     .86548        .18895        .23260E-03   -.97358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94042e-12
Minuit parameter uncertainties:
  1  0.410371
  2  0.384535
  3  0.265796
  4  0.189094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64278': 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) = 5020.22897488
delta logL = 0.00130864584753

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  8.601e-01  4.104e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.787e+00  3.845e-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.655e-01  1.891e-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.350e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.77
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.79 +/- 0.38
Photon Flux (Free Index): 7.29e-08 +/- 5.03e-08
Energy Flux (Free Index): 7.84e-05 +/- 5.44e-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/64278/cmap_HighResolution_596764801_597024001_4FGL_J2158.8-3013_daily_bin1379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.10e-08', energy_flux2='7.84e-05', photon_flux_error='3.40e-08', dlogl='1.31e-03', energy_flux='8.05e-05', photon_flux2='7.29e-08', job_status='DONE', time_completed='2021-09-27 22:42:29.440328', photon_index_error2='0.38', photon_index2='1.79', ts='21.78', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='5.44e-05', EG='1.35', time_epoch_completed='1632807749.44', return_code='0', job_id='64278', GAL2='0.87', EG2='1.35', return_code2='0', energy_flux_error='3.86e-05', photon_flux_error2='5.03e-08', ts2='21.77', photon_index='1.77' WHERE bin_id='1379' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:42:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 64278: <4FGL_J2158.8-3013_daily_bin1379> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1379 329.714 -30.2251 596764801 597024001 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 :                                   514.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            725 sec.

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

