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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1014
RA = 329.714, Dec = -30.2251
tmin = 502156801, tmax = 502416001
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='62964', job_status='RUN', time_executed='2021-09-27 22:29:29.617587', time_epoch_executed='1632806969.62' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62964

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62964/ft1_4FGL_J2158.8-3013_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62964/ft2_4FGL_J2158.8-3013_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62964/ft1_4FGL_J2158.8-3013_daily_bin1014.fits outfile=/scratch/kocevski/62964/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1014.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=502156801.0 tmax=502416001.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.37
user 3.11
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62964/ft2_4FGL_J2158.8-3013_daily_bin1014.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/62964/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1014.fits evtable="EVENTS" outfile="/scratch/kocevski/62964/ft1_filtered_4FGL_J2158.8-3013_daily_bin1014.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62964/ft1_filtered_4FGL_J2158.8-3013_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/62964/ft2_4FGL_J2158.8-3013_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/62964/ltcube_502156801_502416001_4FGL_J2158.8-3013_daily_bin1014.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/62964/ft2_4FGL_J2158.8-3013_daily_bin1014.fits
.....................!
real 13.73
user 13.42
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62964/ft1_filtered_4FGL_J2158.8-3013_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/62964/ft2_4FGL_J2158.8-3013_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/62964/ltcube_502156801_502416001_4FGL_J2158.8-3013_daily_bin1014.fits outfile=/scratch/kocevski/62964/expmap_502156801_502416001_4FGL_J2158.8-3013_daily_bin1014.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/62964/ltcube_502156801_502416001_4FGL_J2158.8-3013_daily_bin1014.fits
.....................!
real 155.52
user 151.01
sys 4.22

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/62964/ft1_filtered_4FGL_J2158.8-3013_daily_bin1014.fits scfile=/scratch/kocevski/62964/ft2_4FGL_J2158.8-3013_daily_bin1014.fits outfile=/scratch/kocevski/62964/cmap_502156801_502416001_4FGL_J2158.8-3013_daily_bin1014.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.48
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62964/ft1_filtered_4FGL_J2158.8-3013_daily_bin1014.fits scfile=/scratch/kocevski/62964/ft2_4FGL_J2158.8-3013_daily_bin1014.fits outfile=/scratch/kocevski/62964/cmap_HighResolution_502156801_502416001_4FGL_J2158.8-3013_daily_bin1014.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.48
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62964/ft1_filtered_4FGL_J2158.8-3013_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/62964/ft2_4FGL_J2158.8-3013_daily_bin1014.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62964/Model_4FGL_J2158.8-3013_daily_bin1014.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/62964/ft1_filtered_4FGL_J2158.8-3013_daily_bin1014.fits.....................!
real 51.15
user 49.97
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8071       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6527       1.0000         .10000E-03   10000.    
     6 'norm      '    11.229       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11103E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28866E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.2252       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3736       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1048       1.0000         .10000E-03   10000.    
    12 'Prefactor '    72.481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .33635E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    47.093       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .53630E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0532       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0296       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86780       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87618       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=   8143.958     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2047 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1063        .49761E-07** at limit **
   2  Prefactor     .10000E-03    1.6132        .52914E-07** at limit **
   3  Prefactor     .10000E-03    4.1735       -.41101E-07** at limit **
   4  Prefactor     9.7974        9.7416       -.32418E-06    .22685E-04
   5  Prefactor     6.6515        6.1325        .21171E-05    .10855E-04
   6  norm          11.228        6.2034        .66098E-07   -.35308E-04
   7  Prefactor     .10000E-03    16.059       -.82214E-06** at limit **
   8  Prefactor     .10001E-03    182.32       -.76501E-05** at limit **
   9  norm          7.2194        4.1403       -.29967E-06   -.88745E-04
  10  norm          1.3736        .37039       -.17167E-07   -.13927E-03
  11  Prefactor     6.1035        5.0390       -.29326E-07    .16238E-04
  12  Prefactor     72.472        19.717       -.95219E-07   -.14238E-03
  13  Prefactor     .10004E-03    5.3180        .13801E-05** at limit **
  14  norm          47.091        18.742       -.33081E-07   -.24758E-04
  15  Prefactor     .10000E-03    5.7775        .80636E-07** at limit **
  16  Prefactor     .10000E-03    17.329       -.35165E-05** at limit **
  17  norm          2.0536        1.7659        .16226E-06    .72527E-04
  18  Prefactor     6.0047        36.876       -.21915E-05   -.55095E-04
  19  Prefactor     .10000E-03    15.657        .50779E-06** at limit **
  20  norm          .10000E-03    1.0251       -.47460E-07** at limit **
  21  Normalizat    .86798        .15140       -.45591E-06   -.28505E-03
  22  Prefactor     .87611        .10984       -.85179E-06   -.18861E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.79743
  Prefactor  = 6.65151
  norm       = 11.2284
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 7.21936
  norm       = 1.37355
  Prefactor  = 6.1035
  Prefactor  = 72.472
  Prefactor  = 0.000100044
  norm       = 47.0906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.05358
  Prefactor  = 6.00475
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.86798
  Prefactor  = 0.87611
 **********
 **   18 **HESSE 
 **********

 FCN=   8143.958     FROM HESSE     STATUS=OK           348 CALLS     2395 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1259        .15534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.6171        .11195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2421        .17988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7974        9.7215        .12796E-03   -1.5082    
   5  Prefactor     6.6515        6.2011        .77789E-03   -1.5192    
   6  norm          11.228        6.2007        .11956E-03   -1.5038    
   7  Prefactor     .10000E-03    16.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    188.14        .42812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.2194        4.1379        .12484E-03   -1.5171    
  10  norm          1.3736        .37174        .26381E-04   -1.5474    
  11  Prefactor     6.1035        5.0358        .16249E-03   -1.5214    
  12  Prefactor     72.472        19.741        .23578E-03   -1.4003    
  13  Prefactor     .10004E-03    28.111        .37798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          47.091        18.739        .58430E-04   -1.4334    
  15  Prefactor     .10000E-03    5.7921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.511        .42245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0536        1.7670        .96586E-04   -1.5421    
  18  Prefactor     6.0047        37.529        .16351E-03   -1.5218    
  19  Prefactor     .10000E-03    16.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.1065        .17824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .86798        .16667        .26601E-03   -.97595    
  22  Prefactor     .87611        .12376        .20208E-03   -.96981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70011e-09
Minuit parameter uncertainties:
  1  4.20522e-06
  2  2.42881e-06
  3  1.48966e-05
  4  9.72308
  5  6.20169
  6  6.20102
  7  8.6935e-05
  8  0.00216298
  9  4.13808
  10  0.371737
  11  5.03611
  12  19.7423
  13  0.00223615
  14  18.7416
  15  2.11482e-06
  16  2.97622e-05
  17  1.76709
  18  30.0511
  19  4.77676e-05
  20  1.85831e-05
  21  0.166773
  22  0.123801
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.374e+00  3.717e-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.761e-01  1.238e-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:  8.680e-01  1.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 63.13
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 3.08e-08
Energy Flux (Fixed Index): 1.29e-04 +/- 3.49e-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) = 8143.55367828
delta logL = 0.404751658963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8143.55367071
delta logL = 0.404759230437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3212       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9597       1.0000          .0000       5.0000    
     3 'Normalizat'    .84532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88387       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=   8143.554     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      248 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3212        .34696        .24508E-04    .32517E-03
   2  alpha         1.9597        .21654        .66772E-02    .30800E-04
   3  Normalizat    .84532        .16251        .26873E-03    .68112E-05
   4  Prefactor     .88387        .12312        .20108E-03   -.17018E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32125
  alpha      = 1.95967
  Normalizat = 0.845324
  Prefactor  = 0.88387
 **********
 **   18 **HESSE 
 **********

 FCN=   8143.554     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3212        .34427        .98033E-06   -1.5478    
   2  alpha         1.9597        .21477        .26709E-03   -.21785    
   3  Normalizat    .84532        .16260        .10749E-04   -.98409    
   4  Prefactor     .88387        .12320        .80433E-05   -.96707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92888e-12
Minuit parameter uncertainties:
  1  0.344272
  2  0.215047
  3  0.162696
  4  0.12324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62964': 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) = 8143.55367071
delta logL = 0.404759230437

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.321e+00  3.443e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.960e+00  2.150e-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.839e-01  1.232e-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:  8.453e-01  1.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 64.15
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.96 +/- 0.22
Photon Flux (Free Index): 1.39e-07 +/- 4.39e-08
Energy Flux (Free Index): 9.82e-05 +/- 3.64e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='9.82e-05', photon_flux_error='3.08e-08', dlogl='4.05e-01', energy_flux='1.29e-04', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-27 22:38:06.357418', photon_index_error2='0.22', photon_index2='1.96', ts='63.13', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='3.64e-05', EG='0.87', time_epoch_completed='1632807486.36', return_code='0', job_id='62964', GAL2='0.88', EG2='0.85', return_code2='0', energy_flux_error='3.49e-05', photon_flux_error2='4.39e-08', ts2='64.15', photon_index='1.77' WHERE bin_id='1014' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:38:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 62964: <4FGL_J2158.8-3013_daily_bin1014> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1014> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:25:38 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:28:29 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:28:29 2021
Terminated at Mon Sep 27 22:38:07 2021
Results reported at Mon Sep 27 22:38:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1014 329.714 -30.2251 502156801 502416001 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 :                                   511.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            749 sec.

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

