/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 131 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7384
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2158.8-3013_daily_bin898
RA = 329.714, Dec = -30.2251
tmin = 472089601, tmax = 472348801
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='62793', job_status='RUN', time_executed='2021-09-27 22:29:35.445679', time_epoch_executed='1632806975.45' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62793

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62793/ft1_4FGL_J2158.8-3013_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62793/ft2_4FGL_J2158.8-3013_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62793/ft1_4FGL_J2158.8-3013_daily_bin898.fits outfile=/scratch/kocevski/62793/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin898.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=472089601.0 tmax=472348801.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.52
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62793/ft2_4FGL_J2158.8-3013_daily_bin898.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/62793/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin898.fits evtable="EVENTS" outfile="/scratch/kocevski/62793/ft1_filtered_4FGL_J2158.8-3013_daily_bin898.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/62793/ft1_filtered_4FGL_J2158.8-3013_daily_bin898.fits" evtable="EVENTS" scfile=/scratch/kocevski/62793/ft2_4FGL_J2158.8-3013_daily_bin898.fits sctable="SC_DATA" outfile=/scratch/kocevski/62793/ltcube_472089601_472348801_4FGL_J2158.8-3013_daily_bin898.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/62793/ft2_4FGL_J2158.8-3013_daily_bin898.fits
.....................!
real 13.99
user 13.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62793/ft1_filtered_4FGL_J2158.8-3013_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/62793/ft2_4FGL_J2158.8-3013_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/62793/ltcube_472089601_472348801_4FGL_J2158.8-3013_daily_bin898.fits outfile=/scratch/kocevski/62793/expmap_472089601_472348801_4FGL_J2158.8-3013_daily_bin898.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/62793/ltcube_472089601_472348801_4FGL_J2158.8-3013_daily_bin898.fits
.....................!
real 191.13
user 185.68
sys 4.81

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/62793/ft1_filtered_4FGL_J2158.8-3013_daily_bin898.fits scfile=/scratch/kocevski/62793/ft2_4FGL_J2158.8-3013_daily_bin898.fits outfile=/scratch/kocevski/62793/cmap_472089601_472348801_4FGL_J2158.8-3013_daily_bin898.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62793/ft1_filtered_4FGL_J2158.8-3013_daily_bin898.fits scfile=/scratch/kocevski/62793/ft2_4FGL_J2158.8-3013_daily_bin898.fits outfile=/scratch/kocevski/62793/cmap_HighResolution_472089601_472348801_4FGL_J2158.8-3013_daily_bin898.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=329.714 yref=-30.2251 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62793/ft1_filtered_4FGL_J2158.8-3013_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/62793/ft2_4FGL_J2158.8-3013_daily_bin898.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62793/Model_4FGL_J2158.8-3013_daily_bin898.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/62793/ft1_filtered_4FGL_J2158.8-3013_daily_bin898.fits.....................!
real 50.60
user 47.01
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10513E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7544       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8813       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    23.661       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0535       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.791       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.558       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    65.901       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .51638       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4342       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=   5301.237     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2408 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    27.134        .66269E-05** at limit **
   2  Prefactor     1.7523        1.8143        .10088E-06   -.58825E-03
   3  Prefactor     1.8814        10.385        .78425E-07    .29559E-04
   4  Prefactor     .10000E-03    25.369       -.30155E-05** at limit **
   5  Prefactor     .10000E-03    8.7831       -.42047E-05** at limit **
   6  norm          23.661        12.295        .64639E-07    .17532E-04
   7  Prefactor     .10000E-03    8.2733        .35670E-05** at limit **
   8  Prefactor     .10000E-03    25.539       -.34017E-05** at limit **
   9  norm          .10000E-03    6.9353       -.45215E-06** at limit **
  10  norm          2.0535        .53561       -.15905E-08    .69677E-04
  11  Prefactor     .10000E-03    4.1791        .25520E-07** at limit **
  12  Prefactor     .10000E-03    10.566        .13096E-05** at limit **
  13  Prefactor     .10000E-03    8.1143       -.35083E-09** at limit **
  14  norm          10.800        27.954        .81306E-05    .39361E-05
  15  Prefactor     .10000E-03    20.205        .22519E-06** at limit **
  16  Prefactor     10.559        23.777       -.20213E-06   -.60567E-05
  17  norm          .10000E-03    2.7669        .17907E-07** at limit **
  18  Prefactor     65.897        89.539       -.38196E-05   -.61242E-05
  19  Prefactor     .10000E-03    5.0261        .50522E-08** at limit **
  20  norm          .10000E-03    1.6317       -.50357E-08** at limit **
  21  Normalizat    .51636        .24261       -.50524E-07    .40467E-05
  22  Prefactor     1.4342        .17264       -.17784E-06    .69225E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.75231
  Prefactor  = 1.88143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.6613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.05351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.8
  Prefactor  = 0.0001
  Prefactor  = 10.5594
  norm       = 0.0001
  Prefactor  = 65.8973
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.516364
  Prefactor  = 1.43422
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.237     FROM HESSE     STATUS=OK           338 CALLS     2746 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7523        9.9477        .15823E-02   -1.5443    
   3  Prefactor     1.8814        10.311        .30350E-03   -1.5434    
   4  Prefactor     .10000E-03    25.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          23.661        12.284        .82348E-04   -1.4735    
   7  Prefactor     .10000E-03    8.2899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.1688        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0535        .53557        .26227E-04   -1.5421    
  11  Prefactor     .10000E-03    4.1852        .14536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    67.300        .37645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.800        27.977        .12196E-03   -1.5051    
  15  Prefactor     .10000E-03    20.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.559        23.626        .12331E-03   -1.5058    
  17  norm          .10000E-03    2.8038        .23472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     65.897        88.655        .49438E-04   -1.4083    
  19  Prefactor     .10000E-03    5.0301        .15941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6337        .90824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .51636        .24275        .39345E-03   -1.1166    
  22  Prefactor     1.4342        .18384        .18935E-03   -.79399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31428e-09
Minuit parameter uncertainties:
  1  0.000132664
  2  8.35207
  3  8.81097
  4  1.86471e-05
  5  1.46894e-05
  6  12.2852
  7  3.59299e-06
  8  2.08772e-06
  9  6.28604e-06
  10  0.535571
  11  5.26785e-07
  12  5.52992e-07
  13  0.000379207
  14  28.0108
  15  2.04655e-06
  16  23.6468
  17  5.72071e-06
  18  88.8338
  19  1.99408e-08
  20  4.77788e-07
  21  0.243248
  22  0.183921
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  2.054e+00  5.356e-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.434e+00  1.839e-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:  5.164e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 91.59
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.70e-07 +/- 4.44e-08
Energy Flux (Fixed Index): 1.93e-04 +/- 5.03e-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) = 5300.31525323
delta logL = 0.921841840037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5300.31505563
delta logL = 0.922039436717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9252       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4854       1.0000          .0000       5.0000    
     3 'Normalizat'    .55662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4242       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=   5300.315     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9252        .52954        .60865E-02   -.12453E-03
   2  alpha         1.4854        .18707        .13234       -.24047E-04
   3  Normalizat    .55664        .21851        .85802E-01    .31250E-04
   4  Prefactor     1.4242        .16718        .30736E-01   -.50312E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.9252
  alpha      = 1.48535
  Normalizat = 0.556644
  Prefactor  = 1.42417
 **********
 **   18 **HESSE 
 **********

 FCN=   5300.315     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .61E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9252        .57104        .26837E-04   -1.5430    
   2  alpha         1.4854        .20493        .57388E-03   -.41792    
   3  Normalizat    .55664        .23538        .38012E-03   -1.0986    
   4  Prefactor     1.4242        .18083        .19017E-03   -.79686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06783e-17
Minuit parameter uncertainties:
  1  0.571046
  2  0.205209
  3  0.235805
  4  0.180907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62793': 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) = 5300.31505563
delta logL = 0.922039442647

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.925e+00  5.710e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.485e+00  2.052e-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.424e+00  1.809e-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:  5.566e-01  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 93.33
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.49 +/- 0.21
Photon Flux (Free Index): 1.24e-07 +/- 4.55e-08
Energy Flux (Free Index): 3.16e-04 +/- 1.48e-04

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/62793/cmap_HighResolution_472089601_472348801_4FGL_J2158.8-3013_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.70e-07', energy_flux2='3.16e-04', photon_flux_error='4.44e-08', dlogl='9.22e-01', energy_flux='1.93e-04', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-27 22:38:30.862413', photon_index_error2='0.21', photon_index2='1.49', ts='91.59', fit_tolerance='1e-08', GAL='1.43', photon_index_error='0.00', energy_flux_error2='1.48e-04', EG='0.52', time_epoch_completed='1632807510.86', return_code='0', job_id='62793', GAL2='1.42', EG2='0.56', return_code2='0', energy_flux_error='5.03e-05', photon_flux_error2='4.55e-08', ts2='93.33', photon_index='1.77' WHERE bin_id='898' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:38:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 62793: <4FGL_J2158.8-3013_daily_bin898> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin898 329.714 -30.2251 472089601 472348801 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 :                                   532.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            786 sec.

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

