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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin213
RA = 329.714, Dec = -30.2251
tmin = 294537601, tmax = 294796801
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='59591', job_status='RUN', time_executed='2021-09-27 22:19:24.283723', time_epoch_executed='1632806364.28' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='213'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59591

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59591/ft1_4FGL_J2158.8-3013_daily_bin213.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59591/ft2_4FGL_J2158.8-3013_daily_bin213.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59591/ft1_4FGL_J2158.8-3013_daily_bin213.fits outfile=/scratch/kocevski/59591/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin213.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=294537601.0 tmax=294796801.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 2.36
user 2.17
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/59591/ft2_4FGL_J2158.8-3013_daily_bin213.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/59591/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin213.fits evtable="EVENTS" outfile="/scratch/kocevski/59591/ft1_filtered_4FGL_J2158.8-3013_daily_bin213.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59591/ft1_filtered_4FGL_J2158.8-3013_daily_bin213.fits" evtable="EVENTS" scfile=/scratch/kocevski/59591/ft2_4FGL_J2158.8-3013_daily_bin213.fits sctable="SC_DATA" outfile=/scratch/kocevski/59591/ltcube_294537601_294796801_4FGL_J2158.8-3013_daily_bin213.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/59591/ft2_4FGL_J2158.8-3013_daily_bin213.fits
.....................!
real 14.93
user 14.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59591/ft1_filtered_4FGL_J2158.8-3013_daily_bin213.fits evtable="EVENTS" scfile=/scratch/kocevski/59591/ft2_4FGL_J2158.8-3013_daily_bin213.fits sctable="SC_DATA" expcube=/scratch/kocevski/59591/ltcube_294537601_294796801_4FGL_J2158.8-3013_daily_bin213.fits outfile=/scratch/kocevski/59591/expmap_294537601_294796801_4FGL_J2158.8-3013_daily_bin213.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/59591/ltcube_294537601_294796801_4FGL_J2158.8-3013_daily_bin213.fits
.....................!
real 194.58
user 187.71
sys 6.34

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/59591/ft1_filtered_4FGL_J2158.8-3013_daily_bin213.fits scfile=/scratch/kocevski/59591/ft2_4FGL_J2158.8-3013_daily_bin213.fits outfile=/scratch/kocevski/59591/cmap_294537601_294796801_4FGL_J2158.8-3013_daily_bin213.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/59591/ft1_filtered_4FGL_J2158.8-3013_daily_bin213.fits scfile=/scratch/kocevski/59591/ft2_4FGL_J2158.8-3013_daily_bin213.fits outfile=/scratch/kocevski/59591/cmap_HighResolution_294537601_294796801_4FGL_J2158.8-3013_daily_bin213.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/59591/ft1_filtered_4FGL_J2158.8-3013_daily_bin213.fits evtable="EVENTS" scfile=/scratch/kocevski/59591/ft2_4FGL_J2158.8-3013_daily_bin213.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59591/Model_4FGL_J2158.8-3013_daily_bin213.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/59591/ft1_filtered_4FGL_J2158.8-3013_daily_bin213.fits.....................!
real 56.08
user 54.52
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.544       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.4968       1.0000         .10000E-03   10000.    
    10 'norm      '    .79425       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.717       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.868       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9182       1.0000         .10000E-03   10000.    
    17 'norm      '    .10897E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.268       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.9955       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72654       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3668       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=   6832.961     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2057 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1785        .47726E-07** at limit **
   2  Prefactor     .10000E-03    2.9352       -.46492E-07** at limit **
   3  Prefactor     .10000E-03    2.7754        .31836E-07** at limit **
   4  Prefactor     .10000E-03    11.339        .95069E-06** at limit **
   5  Prefactor     .10000E-03    4.7253       -.78573E-07** at limit **
   6  norm          11.544        10.161        .14368E-06    .23036E-04
   7  Prefactor     .10000E-03    9.9784       -.54902E-06** at limit **
   8  Prefactor     .10000E-03    35.669       -.26595E-05** at limit **
   9  norm          6.4971        5.5063       -.75336E-07    .35753E-03
  10  norm          .79424        .33688        .15602E-07    .26955E-03
  11  Prefactor     13.718        10.136        .70904E-07    .17170E-04
  12  Prefactor     13.867        14.800        .32760E-07    .16110E-04
  13  Prefactor     .10000E-03    5.8647       -.31625E-07** at limit **
  14  norm          .10000E-03    41.115        .26001E-05** at limit **
  15  Prefactor     .10000E-03    10.793        .23043E-06** at limit **
  16  Prefactor     5.9210        13.564       -.96480E-06    .89704E-04
  17  norm          .10000E-03    2.3481       -.30013E-05** at limit **
  18  Prefactor     17.220        41.048        .39297E-05    .23723E-03
  19  Prefactor     .10000E-03    5.8510        .23399E-06** at limit **
  20  norm          7.9955        5.0564       -.21640E-06    .33383E-03
  21  Normalizat    .72642        .19640       -.68595E-07    .13828E-03
  22  Prefactor     1.3669        .14754       -.27259E-06    .14442E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.49711
  norm       = 0.79424
  Prefactor  = 13.7183
  Prefactor  = 13.8672
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.92096
  norm       = 0.0001
  Prefactor  = 17.2205
  Prefactor  = 0.0001
  norm       = 7.9955
  Normalizat = 0.726422
  Prefactor  = 1.36687
 **********
 **   18 **HESSE 
 **********

 FCN=   6832.961     FROM HESSE     STATUS=OK           338 CALLS     2395 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1892        .14393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.9468        .13829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7958        .13446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.7590        .17546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.544        10.167        .11791E-03   -1.5028    
   7  Prefactor     .10000E-03    9.9550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.4971        5.7751        .78727E-03   -1.5198    
  10  norm          .79424        .33900        .29548E-04   -1.5530    
  11  Prefactor     13.718        10.135        .10815E-03   -1.4967    
  12  Prefactor     13.867        14.806        .10756E-03   -1.4963    
  13  Prefactor     .10000E-03    5.9987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    41.641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9210        13.562        .16507E-03   -1.5221    
  17  norm          .10000E-03    2.3983        .18102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.220        43.561        .96382E-04   -1.4878    
  19  Prefactor     .10000E-03    5.8738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.9955        5.0558        .70899E-03   -1.5142    
  21  Normalizat    .72642        .22529        .34006E-03   -1.0286    
  22  Prefactor     1.3669        .16975        .19969E-03   -.81340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96156e-10
Minuit parameter uncertainties:
  1  4.94914e-07
  2  2.25732e-06
  3  1.50617e-06
  4  1.86212e-06
  5  3.91111e-06
  6  10.1689
  7  5.63083e-05
  8  0.000257311
  9  5.77556
  10  0.338997
  11  10.1363
  12  14.8099
  13  1.17811e-05
  14  0.000318837
  15  1.60236e-06
  16  13.5693
  17  2.58619e-05
  18  43.6412
  19  2.1992e-07
  20  5.05608
  21  0.225582
  22  0.169824
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  7.942e-01  3.390e-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.367e+00  1.698e-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.264e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.34
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 6.58e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 7.46e-05 +/- 3.19e-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) = 6832.84493513
delta logL = 0.115647209215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6832.83669999
delta logL = 0.123882352724

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77440       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9186       1.0000          .0000       5.0000    
     3 'Normalizat'    .71782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3691       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=   6832.837     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      269 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77440        .32587        .28491E-04    .10534E-02
   2  alpha         1.9186        .30825        .90421E-02    .10590E-04
   3  Normalizat    .71779        .21556        .34181E-03   -.19657E-04
   4  Prefactor     1.3691        .16853        .19949E-03    .48383E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.774395
  alpha      = 1.91861
  Normalizat = 0.717794
  Prefactor  = 1.36914
 **********
 **   18 **HESSE 
 **********

 FCN=   6832.837     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77440        .32404        .11396E-05   -1.5532    
   2  alpha         1.9186        .30647        .36169E-03   -.23470    
   3  Normalizat    .71779        .21570        .13672E-04   -1.0319    
   4  Prefactor     1.3691        .16865        .79797E-05   -.81274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9567e-11
Minuit parameter uncertainties:
  1  0.324045
  2  0.307287
  3  0.215952
  4  0.168715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59591': 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) = 6832.83669997
delta logL = 0.12388236986

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  7.744e-01  3.240e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.919e+00  3.073e-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.369e+00  1.687e-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.178e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.61
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.92 +/- 0.31
Photon Flux (Free Index): 7.71e-08 +/- 3.87e-08
Energy Flux (Free Index): 5.98e-05 +/- 3.48e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/59591/cmap_HighResolution_294537601_294796801_4FGL_J2158.8-3013_daily_bin213.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.58e-08', energy_flux2='5.98e-05', photon_flux_error='2.81e-08', dlogl='1.24e-01', energy_flux='7.46e-05', photon_flux2='7.71e-08', job_status='DONE', time_completed='2021-09-27 22:28:47.933551', photon_index_error2='0.31', photon_index2='1.92', ts='22.34', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', energy_flux_error2='3.48e-05', EG='0.73', time_epoch_completed='1632806927.93', return_code='0', job_id='59591', GAL2='1.37', EG2='0.72', return_code2='0', energy_flux_error='3.19e-05', photon_flux_error2='3.87e-08', ts2='22.61', photon_index='1.77' WHERE bin_id='213' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:28:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 59591: <4FGL_J2158.8-3013_daily_bin213> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin213> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:15:13 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:15:30 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:15:30 2021
Terminated at Mon Sep 27 22:28:48 2021
Results reported at Mon Sep 27 22:28:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin213 329.714 -30.2251 294537601 294796801 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 :                                   562.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            815 sec.

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

