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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin739
RA = 329.714, Dec = -30.2251
tmin = 430876801, tmax = 431136001
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='61439', job_status='RUN', time_executed='2021-09-27 22:24:51.233816', time_epoch_executed='1632806691.23' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61439

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61439/ft1_4FGL_J2158.8-3013_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61439/ft2_4FGL_J2158.8-3013_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61439/ft1_4FGL_J2158.8-3013_daily_bin739.fits outfile=/scratch/kocevski/61439/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin739.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=430876801.0 tmax=431136001.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 5.43
user 5.12
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61439/ft1_filtered_4FGL_J2158.8-3013_daily_bin739.fits" evtable="EVENTS" scfile=/scratch/kocevski/61439/ft2_4FGL_J2158.8-3013_daily_bin739.fits sctable="SC_DATA" outfile=/scratch/kocevski/61439/ltcube_430876801_431136001_4FGL_J2158.8-3013_daily_bin739.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/61439/ft2_4FGL_J2158.8-3013_daily_bin739.fits
.....................!
real 16.76
user 16.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61439/ft1_filtered_4FGL_J2158.8-3013_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/61439/ft2_4FGL_J2158.8-3013_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/61439/ltcube_430876801_431136001_4FGL_J2158.8-3013_daily_bin739.fits outfile=/scratch/kocevski/61439/expmap_430876801_431136001_4FGL_J2158.8-3013_daily_bin739.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/61439/ltcube_430876801_431136001_4FGL_J2158.8-3013_daily_bin739.fits
.....................!
real 193.09
user 186.55
sys 5.62

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/61439/ft1_filtered_4FGL_J2158.8-3013_daily_bin739.fits scfile=/scratch/kocevski/61439/ft2_4FGL_J2158.8-3013_daily_bin739.fits outfile=/scratch/kocevski/61439/cmap_430876801_431136001_4FGL_J2158.8-3013_daily_bin739.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/61439/ft1_filtered_4FGL_J2158.8-3013_daily_bin739.fits scfile=/scratch/kocevski/61439/ft2_4FGL_J2158.8-3013_daily_bin739.fits outfile=/scratch/kocevski/61439/cmap_HighResolution_430876801_431136001_4FGL_J2158.8-3013_daily_bin739.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=329.714 yref=-30.2251 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/61439/ft1_filtered_4FGL_J2158.8-3013_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/61439/ft2_4FGL_J2158.8-3013_daily_bin739.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61439/Model_4FGL_J2158.8-3013_daily_bin739.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/61439/ft1_filtered_4FGL_J2158.8-3013_daily_bin739.fits.....................!
real 52.52
user 51.20
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3303       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5791       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.1937       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6864       1.0000         .10000E-03   10000.    
     9 'norm      '    13.788       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3025       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4694       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.838       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56537       1.0000         .10000E-03   10000.    
    14 'norm      '    89.394       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43925E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    194.66       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73996       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1317       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=   5883.944     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2412 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2184       -.36750E-09** at limit **
   2  Prefactor     6.3323        6.1425        .17336E-06    .45120E-04
   3  Prefactor     2.5916        10.894       -.28433E-06   -.12100E-03
   4  Prefactor     .10000E-03    5.6807       -.29808E-07** at limit **
   5  Prefactor     .10000E-03    9.0778       -.40515E-06** at limit **
   6  norm          1.1947        4.2562        .20676E-05   -.11890E-02
   7  Prefactor     .10000E-03    12.348        .67694E-07** at limit **
   8  Prefactor     5.7421        141.99        .12214E-05   -.60001E-05
   9  norm          13.791        7.9672        .15887E-06    .22361E-04
  10  norm          1.3025        .50337       -.94908E-08   -.33486E-03
  11  Prefactor     7.4716        10.475       -.64496E-06   -.39040E-03
  12  Prefactor     14.826        16.133        .97402E-06    .27865E-03
  13  Prefactor     .67738        12.034        .26456E-05   -.29951E-03
  14  norm          89.319        54.397        .99273E-06    .61635E-04
  15  Prefactor     .10000E-03    21.219        .15093E-06** at limit **
  16  Prefactor     .10158E-03    24.021        .16804E-05** at limit **
  17  norm          .10000E-03    1.7241        .41814E-06** at limit **
  18  Prefactor     194.64        120.76       -.53706E-05   -.29666E-03
  19  Prefactor     .10000E-03    8.4613        .20205E-07** at limit **
  20  norm          .10000E-03    3.2034        .17856E-06** at limit **
  21  Normalizat    .73918        .25446       -.34355E-05   -.34962E-03
  22  Prefactor     1.1320        .15375        .10295E-05   -.45848E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.3323
  Prefactor  = 2.59162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.19465
  Prefactor  = 0.0001
  Prefactor  = 5.74212
  norm       = 13.7913
  norm       = 1.3025
  Prefactor  = 7.47155
  Prefactor  = 14.8258
  Prefactor  = 0.677375
  norm       = 89.3193
  Prefactor  = 0.0001
  Prefactor  = 0.000101582
  norm       = 0.0001
  Prefactor  = 194.644
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.739184
  Prefactor  = 1.13197
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.944     FROM HESSE     STATUS=OK           350 CALLS     2762 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2222        .11158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3323        6.1430        .15953E-03   -1.5205    
   3  Prefactor     2.5916        10.964        .25413E-03   -1.5386    
   4  Prefactor     .10000E-03    5.6911        .17852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.1947        21.555        .20823E-02   -1.5489    
   7  Prefactor     .10000E-03    12.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7421        140.61        .16845E-03   -1.5229    
   9  norm          13.791        8.0958        .10787E-03   -1.4965    
  10  norm          1.3025        .50396        .30576E-04   -1.5480    
  11  Prefactor     7.4716        10.604        .14674E-03   -1.5161    
  12  Prefactor     14.826        16.204        .10398E-03   -1.4938    
  13  Prefactor     .67738        51.124        .45264E-02   -1.5543    
  14  norm          89.319        54.477        .42498E-04   -1.3815    
  15  Prefactor     .10000E-03    21.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10158E-03    32.965        .10319       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.7438        .98791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     194.64        139.43        .14477E-03   -1.2909    
  19  Prefactor     .10000E-03    8.4638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.2091        .13413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73918        .28701        .35696E-03   -1.0237    
  22  Prefactor     1.1320        .17597        .19627E-03   -.88451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41961e-08
Minuit parameter uncertainties:
  1  2.12029e-07
  2  6.14358
  3  10.664
  4  8.04056e-07
  5  3.64294e-05
  6  10.153
  7  5.69992e-06
  8  56.9801
  9  8.09648
  10  0.503958
  11  10.6067
  12  16.209
  13  11.7791
  14  54.5075
  15  3.21696e-05
  16  0.0144496
  17  2.67377e-05
  18  139.672
  19  1.18201e-06
  20  1.47747e-05
  21  0.2876
  22  0.176059
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.303e+00  5.040e-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.132e+00  1.761e-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:  7.392e-01  2.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.81
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 4.18e-08
Energy Flux (Fixed Index): 1.22e-04 +/- 4.74e-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) = 5882.59205939
delta logL = 1.35171001107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5882.5912433
delta logL = 1.35252609736

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1631       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2189       1.0000          .0000       5.0000    
     3 'Normalizat'    .67882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1517       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=   5882.591     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1631        5.5245        .58064E-02    .13884E-03
   2  alpha         2.2184        3.5745        .15689        .52194E-04
   3  Normalizat    .67887        .16019        .83600E-01    .30244E-04
   4  Prefactor     1.1517        .85854E-01    .35888E-01    .26220E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16313
  alpha      = 2.21835
  Normalizat = 0.678869
  Prefactor  = 1.15172
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.591     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .86E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1631        .44719        .25711E-04   -1.5492    
   2  alpha         2.2184        .28154        .66298E-02   -.11290    
   3  Normalizat    .67887        .25795        .37026E-03   -1.0473    
   4  Prefactor     1.1517        .17141        .19442E-03   -.87830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.6491e-13
Minuit parameter uncertainties:
  1  0.447187
  2  0.282142
  3  0.25841
  4  0.171494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61439': 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) = 5882.59124037
delta logL = 1.35252903122

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.163e+00  4.472e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.218e+00  2.821e-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.152e+00  1.715e-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.789e-01  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.79
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 2.22 +/- 0.28
Photon Flux (Free Index): 1.78e-07 +/- 7.07e-08
Energy Flux (Free Index): 7.69e-05 +/- 3.00e-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/61439/cmap_HighResolution_430876801_431136001_4FGL_J2158.8-3013_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='7.69e-05', photon_flux_error='4.18e-08', dlogl='1.35e+00', energy_flux='1.22e-04', photon_flux2='1.78e-07', job_status='DONE', time_completed='2021-09-27 22:34:12.948285', photon_index_error2='0.28', photon_index2='2.22', ts='21.81', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='3.00e-05', EG='0.74', time_epoch_completed='1632807252.95', return_code='0', job_id='61439', GAL2='1.15', EG2='0.68', return_code2='0', energy_flux_error='4.74e-05', photon_flux_error2='7.07e-08', ts2='24.79', photon_index='1.77' WHERE bin_id='739' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:34:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 61439: <4FGL_J2158.8-3013_daily_bin739> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin739> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 22:20:35 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:22:00 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:22:00 2021
Terminated at Mon Sep 27 22:34:13 2021
Results reported at Mon Sep 27 22:34:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin739 329.714 -30.2251 430876801 431136001 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 :                                   558.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             276.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            818 sec.

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

