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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin987
RA = 329.714, Dec = -30.2251
tmin = 495158401, tmax = 495417601
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='62924', job_status='RUN', time_executed='2021-09-27 22:30:32.716874', time_epoch_executed='1632807032.72' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='987'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62924/ft1_4FGL_J2158.8-3013_daily_bin987.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62924/ft2_4FGL_J2158.8-3013_daily_bin987.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62924/ft1_4FGL_J2158.8-3013_daily_bin987.fits outfile=/scratch/kocevski/62924/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin987.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=495158401.0 tmax=495417601.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 4.22
user 3.82
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62924/ft1_filtered_4FGL_J2158.8-3013_daily_bin987.fits" evtable="EVENTS" scfile=/scratch/kocevski/62924/ft2_4FGL_J2158.8-3013_daily_bin987.fits sctable="SC_DATA" outfile=/scratch/kocevski/62924/ltcube_495158401_495417601_4FGL_J2158.8-3013_daily_bin987.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/62924/ft2_4FGL_J2158.8-3013_daily_bin987.fits
.....................!
real 15.10
user 14.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62924/ft1_filtered_4FGL_J2158.8-3013_daily_bin987.fits evtable="EVENTS" scfile=/scratch/kocevski/62924/ft2_4FGL_J2158.8-3013_daily_bin987.fits sctable="SC_DATA" expcube=/scratch/kocevski/62924/ltcube_495158401_495417601_4FGL_J2158.8-3013_daily_bin987.fits outfile=/scratch/kocevski/62924/expmap_495158401_495417601_4FGL_J2158.8-3013_daily_bin987.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/62924/ltcube_495158401_495417601_4FGL_J2158.8-3013_daily_bin987.fits
.....................!
real 193.32
user 186.64
sys 5.30

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

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62924/ft1_filtered_4FGL_J2158.8-3013_daily_bin987.fits evtable="EVENTS" scfile=/scratch/kocevski/62924/ft2_4FGL_J2158.8-3013_daily_bin987.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62924/Model_4FGL_J2158.8-3013_daily_bin987.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/62924/ft1_filtered_4FGL_J2158.8-3013_daily_bin987.fits.....................!
real 43.89
user 42.49
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2706       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12056E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13232E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .22237E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3625       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.311       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4229       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.0333       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0561       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1384       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=   4762.870     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2042 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9203        .10445E-07** at limit **
   2  Prefactor     .10000E-03    2.8698       -.15934E-07** at limit **
   3  Prefactor     9.2576        12.591       -.42201E-06    .28811E-04
   4  Prefactor     .10001E-03    59.592        .16794E-04** at limit **
   5  Prefactor     .10000E-03    19.180       -.14254E-06** at limit **
   6  norm          .10000E-03    3.8715       -.25170E-07** at limit **
   7  Prefactor     .10000E-03    15.434       -.41240E-06** at limit **
   8  Prefactor     .10000E-03    65.790       -.38961E-05** at limit **
   9  norm          .10000E-03    6.6737       -.46292E-05** at limit **
  10  norm          1.3627        .57316       -.47581E-07    .11376E-03
  11  Prefactor     .10000E-03    5.5151       -.12888E-06** at limit **
  12  Prefactor     14.309        19.521       -.82322E-07   -.17784E-05
  13  Prefactor     .10000E-03    5.6724        .54468E-07** at limit **
  14  norm          .10000E-03    29.597        .15984E-05** at limit **
  15  Prefactor     .10000E-03    7.6865       -.46784E-07** at limit **
  16  Prefactor     2.4121        33.804        .54512E-06   -.40634E-04
  17  norm          .10000E-03    2.8906        .45925E-06** at limit **
  18  Prefactor     .10001E-03    106.19        .80059E-05** at limit **
  19  Prefactor     .10000E-03    18.517       -.34683E-06** at limit **
  20  norm          6.0311        6.1095       -.15823E-05    .19007E-03
  21  Normalizat    1.0562        .24593        .20539E-07   -.20058E-04
  22  Prefactor     1.1384        .17178        .63177E-06   -.18628E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.25756
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.000100002
  norm       = 1.36272
  Prefactor  = 0.0001
  Prefactor  = 14.3092
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.41206
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 6.03111
  Normalizat = 1.05616
  Prefactor  = 1.13836
 **********
 **   18 **HESSE 
 **********

 FCN=   4762.870     FROM HESSE     STATUS=OK           338 CALLS     2380 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9293        .13345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.8739        .11418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.2576        12.565        .13163E-03   -1.5099    
   4  Prefactor     .10001E-03    75.896        .51855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.8792        .13260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    66.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.400        .24318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3627        .55151        .31340E-04   -1.5474    
  11  Prefactor     .10000E-03    5.5301        .15829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.309        19.528        .10588E-03   -1.4951    
  13  Prefactor     .10000E-03    5.7242        .16049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    29.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4121        33.880        .26294E-03   -1.5397    
  17  norm          .10000E-03    3.0292        .22903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    109.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.0311        6.1590        .81733E-03   -1.5217    
  21  Normalizat    1.0562        .28154        .30041E-03   -.91172    
  22  Prefactor     1.1384        .19857        .21100E-03   -.88250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80926e-10
Minuit parameter uncertainties:
  1  1.39852e-06
  2  2.66152e-06
  3  12.5684
  4  0.00162472
  5  5.40769e-06
  6  2.24515e-06
  7  4.27439e-05
  8  0.000972649
  9  0.000338661
  10  0.551513
  11  1.20081e-05
  12  19.5372
  13  9.4574e-07
  14  0.00023573
  15  5.19705e-06
  16  18.0918
  17  3.51702e-06
  18  0.00232344
  19  3.18063e-05
  20  6.15962
  21  0.28194
  22  0.1987
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.363e+00  5.515e-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.138e+00  1.987e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.056e+00  2.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.06
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 4.57e-08
Energy Flux (Fixed Index): 1.28e-04 +/- 5.18e-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) = 4761.87446933
delta logL = 0.995239973904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4761.87323949
delta logL = 0.996469816365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2084       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2227       1.0000          .0000       5.0000    
     3 'Normalizat'    .97597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1682       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=   4761.873     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      249 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2084        .54040        .25827E-04   -.26983E-03
   2  alpha         2.2227        .33729        .65860E-02   -.33052E-04
   3  Normalizat    .97597        .27892        .31040E-03    .51276E-05
   4  Prefactor     1.1682        .19968        .20841E-03    .47283E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.20844
  alpha      = 2.22272
  Normalizat = 0.975969
  Prefactor  = 1.16816
 **********
 **   18 **HESSE 
 **********

 FCN=   4761.873     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2084        .52920        .10331E-05   -1.5488    
   2  alpha         2.2227        .33007        .26344E-03   -.11114    
   3  Normalizat    .97597        .27897        .12416E-04   -.93840    
   4  Prefactor     1.1682        .19976        .41682E-04   -.87317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.687e-11
Minuit parameter uncertainties:
  1  0.529197
  2  0.331053
  3  0.279389
  4  0.199885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62924': 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) = 4761.87323948
delta logL = 0.996469820348

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.208e+00  5.292e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.223e+00  3.311e-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.168e+00  1.999e-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:  9.760e-01  2.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.07
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 2.22 +/- 0.33
Photon Flux (Free Index): 1.86e-07 +/- 8.24e-08
Energy Flux (Free Index): 7.99e-05 +/- 3.54e-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/62924/cmap_HighResolution_495158401_495417601_4FGL_J2158.8-3013_daily_bin987.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='7.99e-05', photon_flux_error='4.57e-08', dlogl='9.96e-01', energy_flux='1.28e-04', photon_flux2='1.86e-07', job_status='DONE', time_completed='2021-09-27 22:38:47.939724', photon_index_error2='0.33', photon_index2='2.22', ts='15.06', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='3.54e-05', EG='1.06', time_epoch_completed='1632807527.94', return_code='0', job_id='62924', GAL2='1.17', EG2='0.98', return_code2='0', energy_flux_error='5.18e-05', photon_flux_error2='8.24e-08', ts2='17.07', photon_index='1.77' WHERE bin_id='987' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:38:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 62924: <4FGL_J2158.8-3013_daily_bin987> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin987 329.714 -30.2251 495158401 495417601 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 :                                   489.25 sec.
    Max Memory :                                 1077 MB
    Average Memory :                             299.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            793 sec.

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

