/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 92 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 = 7400
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1115
RA = 329.714, Dec = -30.2251
tmin = 528336001, tmax = 528595201
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='63114', job_status='RUN', time_executed='2021-09-27 22:31:31.278960', time_epoch_executed='1632807091.28' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63114/ft1_4FGL_J2158.8-3013_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63114/ft2_4FGL_J2158.8-3013_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63114/ft1_4FGL_J2158.8-3013_daily_bin1115.fits outfile=/scratch/kocevski/63114/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1115.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=528336001.0 tmax=528595201.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.44
user 3.19
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63114/ft1_filtered_4FGL_J2158.8-3013_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/63114/ft2_4FGL_J2158.8-3013_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/63114/ltcube_528336001_528595201_4FGL_J2158.8-3013_daily_bin1115.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/63114/ft2_4FGL_J2158.8-3013_daily_bin1115.fits
.....................!
real 15.30
user 14.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63114/ft1_filtered_4FGL_J2158.8-3013_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/63114/ft2_4FGL_J2158.8-3013_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/63114/ltcube_528336001_528595201_4FGL_J2158.8-3013_daily_bin1115.fits outfile=/scratch/kocevski/63114/expmap_528336001_528595201_4FGL_J2158.8-3013_daily_bin1115.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/63114/ltcube_528336001_528595201_4FGL_J2158.8-3013_daily_bin1115.fits
.....................!
real 192.07
user 186.16
sys 4.85

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/63114/ft1_filtered_4FGL_J2158.8-3013_daily_bin1115.fits scfile=/scratch/kocevski/63114/ft2_4FGL_J2158.8-3013_daily_bin1115.fits outfile=/scratch/kocevski/63114/cmap_528336001_528595201_4FGL_J2158.8-3013_daily_bin1115.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.59
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63114/ft1_filtered_4FGL_J2158.8-3013_daily_bin1115.fits scfile=/scratch/kocevski/63114/ft2_4FGL_J2158.8-3013_daily_bin1115.fits outfile=/scratch/kocevski/63114/cmap_HighResolution_528336001_528595201_4FGL_J2158.8-3013_daily_bin1115.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63114/ft1_filtered_4FGL_J2158.8-3013_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/63114/ft2_4FGL_J2158.8-3013_daily_bin1115.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63114/Model_4FGL_J2158.8-3013_daily_bin1115.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/63114/ft1_filtered_4FGL_J2158.8-3013_daily_bin1115.fits.....................!
real 44.25
user 42.82
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    21.709       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2831       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8439       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4203       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.457       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.625       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.538       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4213       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.714       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7509       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3973       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1135       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79795       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=   4831.523     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2313 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2769        .21162E-07** at limit **
   2  Prefactor     .10000E-03    3.9120        .68453E-07** at limit **
   3  Prefactor     21.706        12.155       -.26888E-06   -.54530E-04
   4  Prefactor     .10000E-03    9.5451        .79166E-07** at limit **
   5  Prefactor     .10000E-03    13.171        .11185E-06** at limit **
   6  norm          2.2839        6.4137        .54645E-05   -.46813E-04
   7  Prefactor     .10000E-03    9.8387        .11136E-06** at limit **
   8  Prefactor     .10000E-03    29.321        .50285E-07** at limit **
   9  norm          1.8427        5.0569        .66948E-05   -.82392E-04
  10  norm          1.4204        .49023       -.21208E-06   -.19794E-03
  11  Prefactor     .10000E-03    6.3143        .34579E-07** at limit **
  12  Prefactor     13.455        18.495        .17660E-06   -.17644E-04
  13  Prefactor     11.623        8.8110        .34380E-07   -.48225E-04
  14  norm          .10000E-03    9.4957       -.35753E-06** at limit **
  15  Prefactor     10.536        20.979        .47958E-06   -.96313E-05
  16  Prefactor     .10000E-03    8.0369       -.11435E-05** at limit **
  17  norm          4.4231        3.3123       -.21284E-06    .56247E-03
  18  Prefactor     43.656        66.213        .64118E-05   -.49551E-04
  19  Prefactor     2.7467        13.292        .15624E-06   -.23291E-04
  20  norm          2.3963        4.3978       -.23269E-06   -.17794E-03
  21  Normalizat    1.1138        .21785        .14476E-05    .17699E-03
  22  Prefactor     .79776        .14902       -.31893E-05   -.20334E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.2839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.84274
  norm       = 1.42036
  Prefactor  = 0.0001
  Prefactor  = 13.4545
  Prefactor  = 11.6228
  norm       = 0.0001
  Prefactor  = 10.5355
  Prefactor  = 0.000100001
  norm       = 4.42312
  Prefactor  = 43.6562
  Prefactor  = 2.74669
  norm       = 2.39626
  Normalizat = 1.11379
  Prefactor  = 0.797755
 **********
 **   18 **HESSE 
 **********

 FCN=   4831.523     FROM HESSE     STATUS=OK           340 CALLS     2653 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2852        .12289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9208        .13426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.706        12.167        .85967E-04   -1.4776    
   4  Prefactor     .10000E-03    9.5721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2839        6.3688        .13586E-02   -1.5406    
   7  Prefactor     .10000E-03    9.8483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8427        5.0949        .11811E-02   -1.5436    
  10  norm          1.4204        .49193        .26544E-04   -1.5470    
  11  Prefactor     .10000E-03    6.3469        .17056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.455        18.526        .10919E-03   -1.4974    
  13  Prefactor     11.623        8.8493        .58749E-03   -1.5026    
  14  norm          .10000E-03    9.5058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.536        20.991        .12342E-03   -1.5059    
  16  Prefactor     .10000E-03    8.1025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4231        3.3162        .95483E-04   -1.5287    
  18  Prefactor     43.656        66.412        .60636E-04   -1.4386    
  19  Prefactor     2.7467        13.388        .24544E-03   -1.5376    
  20  norm          2.3963        4.3811        .19090E-03   -1.5398    
  21  Normalizat    1.1138        .25834        .26483E-03   -.89310    
  22  Prefactor     .79776        .17448        .22162E-03   -.99811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15778e-09
Minuit parameter uncertainties:
  1  2.57826e-06
  2  8.82548e-06
  3  12.1683
  4  2.08523e-05
  5  1.12325e-05
  6  6.37065
  7  7.65319e-06
  8  2.00955e-05
  9  5.09611
  10  0.491932
  11  5.04711e-06
  12  18.534
  13  8.85029
  14  5.17972e-05
  15  21.0055
  16  0.000196877
  17  3.31633
  18  66.5247
  19  12.1322
  20  4.38173
  21  0.258633
  22  0.174599
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.420e+00  4.919e-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:  7.978e-01  1.746e-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.114e+00  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 61.50
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 4.08e-08
Energy Flux (Fixed Index): 1.33e-04 +/- 4.62e-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) = 4829.44004985
delta logL = 2.08307567044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4829.4384427
delta logL = 2.08468281851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0112       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2346       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79639       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=   4829.438     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0112        .43018        .56922E-02   -.45404E-02
   2  alpha         1.2346        .22098        .13798        .14415E-03
   3  Normalizat    1.1530        .20539        .59090E-01    .28176E-03
   4  Prefactor     .79638        .14870        .43670E-01    .14985E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01121
  alpha      = 1.23457
  Normalizat = 1.15301
  Prefactor  = 0.796383
 **********
 **   18 **HESSE 
 **********

 FCN=   4829.438     FROM HESSE     STATUS=OK            27 CALLS      235 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0112        .53041        .24996E-04   -1.5507    
   2  alpha         1.2346        .27493        .60089E-03   -.53074    
   3  Normalizat    1.1530        .23838        .26132E-03   -.88067    
   4  Prefactor     .79638        .17268        .22230E-03   -.99862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90425e-10
Minuit parameter uncertainties:
  1  0.530412
  2  0.275681
  3  0.2386
  4  0.172797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63114': 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) = 4829.4384427
delta logL = 2.08468281928

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.011e+00  5.304e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.235e+00  2.757e-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:  7.964e-01  1.728e-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.153e+00  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 65.60
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.23 +/- 0.28
Photon Flux (Free Index): 5.98e-08 +/- 3.15e-08
Energy Flux (Free Index): 3.25e-04 +/- 1.86e-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/63114/cmap_HighResolution_528336001_528595201_4FGL_J2158.8-3013_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='3.25e-04', photon_flux_error='4.08e-08', dlogl='2.08e+00', energy_flux='1.33e-04', photon_flux2='5.98e-08', job_status='DONE', time_completed='2021-09-27 22:40:18.218448', photon_index_error2='0.28', photon_index2='1.23', ts='61.50', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.86e-04', EG='1.11', time_epoch_completed='1632807618.22', return_code='0', job_id='63114', GAL2='0.80', EG2='1.15', return_code2='0', energy_flux_error='4.62e-05', photon_flux_error2='3.15e-08', ts2='65.60', photon_index='1.77' WHERE bin_id='1115' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:40:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 63114: <4FGL_J2158.8-3013_daily_bin1115> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1115 329.714 -30.2251 528336001 528595201 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 :                                   500.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            869 sec.

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

