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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin790
RA = 329.714, Dec = -30.2251
tmin = 444096001, tmax = 444355201
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='61515', job_status='RUN', time_executed='2021-09-27 22:23:17.593886', time_epoch_executed='1632806597.59' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='790'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61515

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61515/ft1_4FGL_J2158.8-3013_daily_bin790.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61515/ft2_4FGL_J2158.8-3013_daily_bin790.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61515/ft1_4FGL_J2158.8-3013_daily_bin790.fits outfile=/scratch/kocevski/61515/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin790.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=444096001.0 tmax=444355201.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.81
user 3.54
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61515/ft1_filtered_4FGL_J2158.8-3013_daily_bin790.fits" evtable="EVENTS" scfile=/scratch/kocevski/61515/ft2_4FGL_J2158.8-3013_daily_bin790.fits sctable="SC_DATA" outfile=/scratch/kocevski/61515/ltcube_444096001_444355201_4FGL_J2158.8-3013_daily_bin790.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/61515/ft2_4FGL_J2158.8-3013_daily_bin790.fits
.....................!
real 14.31
user 13.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61515/ft1_filtered_4FGL_J2158.8-3013_daily_bin790.fits evtable="EVENTS" scfile=/scratch/kocevski/61515/ft2_4FGL_J2158.8-3013_daily_bin790.fits sctable="SC_DATA" expcube=/scratch/kocevski/61515/ltcube_444096001_444355201_4FGL_J2158.8-3013_daily_bin790.fits outfile=/scratch/kocevski/61515/expmap_444096001_444355201_4FGL_J2158.8-3013_daily_bin790.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/61515/ltcube_444096001_444355201_4FGL_J2158.8-3013_daily_bin790.fits
.....................!
real 193.10
user 186.65
sys 5.65

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/61515/ft1_filtered_4FGL_J2158.8-3013_daily_bin790.fits scfile=/scratch/kocevski/61515/ft2_4FGL_J2158.8-3013_daily_bin790.fits outfile=/scratch/kocevski/61515/cmap_444096001_444355201_4FGL_J2158.8-3013_daily_bin790.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61515/ft1_filtered_4FGL_J2158.8-3013_daily_bin790.fits scfile=/scratch/kocevski/61515/ft2_4FGL_J2158.8-3013_daily_bin790.fits outfile=/scratch/kocevski/61515/cmap_HighResolution_444096001_444355201_4FGL_J2158.8-3013_daily_bin790.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/61515/ft1_filtered_4FGL_J2158.8-3013_daily_bin790.fits evtable="EVENTS" scfile=/scratch/kocevski/61515/ft2_4FGL_J2158.8-3013_daily_bin790.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61515/Model_4FGL_J2158.8-3013_daily_bin790.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/61515/ft1_filtered_4FGL_J2158.8-3013_daily_bin790.fits.....................!
real 55.81
user 54.38
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    6.1902       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29145       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.442       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .44811E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10988E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.2613       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2500       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0748       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .13312E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .22684E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.293       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.066       1.0000         .10000E-03   10000.    
    20 'norm      '    .11462E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76105       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1383       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=   6712.895     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2086 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4768       -.38826E-07** at limit **
   2  Prefactor     6.1909        4.3325        .11337E-06    .85690E-04
   3  Prefactor     .10000E-03    6.8114        .37481E-06** at limit **
   4  Prefactor     .41002        8.2689       -.91240E-06    .32899E-03
   5  Prefactor     .10000E-03    7.8715       -.44854E-06** at limit **
   6  norm          18.444        8.5587        .18168E-06    .27181E-04
   7  Prefactor     .10177E-03    12.377       -.22317E-05** at limit **
   8  Prefactor     .10000E-03    55.732       -.44002E-05** at limit **
   9  norm          5.2598        4.2491        .67311E-06    .63853E-03
  10  norm          1.2501        .40260       -.11122E-07    .74540E-03
  11  Prefactor     9.0713        10.166        .55233E-06    .50619E-04
  12  Prefactor     .10000E-03    5.6636        .87181E-06** at limit **
  13  Prefactor     .10000E-03    3.3260       -.74091E-07** at limit **
  14  norm          .10001E-03    68.154        .64219E-05** at limit **
  15  Prefactor     .10000E-03    10.572        .93538E-07** at limit **
  16  Prefactor     .10000E-03    5.7930        .99844E-07** at limit **
  17  norm          .10010E-03    1.8149        .10620E-05** at limit **
  18  Prefactor     10.344        55.154        .79635E-07   -.11572E-03
  19  Prefactor     15.081        12.991        .10655E-05    .80394E-04
  20  norm          .10000E-03    2.2122        .89197E-06** at limit **
  21  Normalizat    .76106        .19510       -.59199E-05   -.45137E-03
  22  Prefactor     1.1381        .13948        .19115E-05   -.68185E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.19091
  Prefactor  = 0.0001
  Prefactor  = 0.410019
  Prefactor  = 0.0001
  norm       = 18.4438
  Prefactor  = 0.000101772
  Prefactor  = 0.000100003
  norm       = 5.25982
  norm       = 1.25008
  Prefactor  = 9.07126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100102
  Prefactor  = 10.3441
  Prefactor  = 15.0811
  norm       = 0.0001
  Normalizat = 0.761063
  Prefactor  = 1.13813
 **********
 **   18 **HESSE 
 **********

 FCN=   6712.895     FROM HESSE     STATUS=OK           350 CALLS     2436 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4812        .12592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1909        4.3363        .13911E-03   -1.5210    
   3  Prefactor     .10000E-03    6.9506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41002        73.745        .43458E-02   -1.5580    
   5  Prefactor     .10000E-03    7.9682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.444        8.5626        .93264E-04   -1.4849    
   7  Prefactor     .10177E-03    12.970        .86763E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    56.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.2598        4.2531        .13619E-03   -1.5249    
  10  norm          1.2501        .40343        .27356E-04   -1.5484    
  11  Prefactor     9.0713        10.158        .13305E-03   -1.5106    
  12  Prefactor     .10000E-03    5.6958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3401        .14582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    70.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.8250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10010E-03    13.894        .18018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.344        56.374        .12489E-03   -1.5065    
  19  Prefactor     15.081        12.993        .10319E-03   -1.4931    
  20  norm          .10000E-03    4.2011        .23060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .76106        .20593        .30329E-03   -1.0153    
  22  Prefactor     1.1381        .15049        .19181E-03   -.88257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31007e-08
Minuit parameter uncertainties:
  1  7.86271e-07
  2  4.33652
  3  6.61092e-05
  4  11.0101
  5  1.10418e-05
  6  8.56312
  7  0.00959047
  8  0.000829839
  9  4.25332
  10  0.403436
  11  10.1595
  12  7.12488e-05
  13  8.02646e-06
  14  0.00156126
  15  2.54159e-05
  16  4.39679e-07
  17  0.00238103
  18  48.3671
  19  12.9956
  20  7.97599e-05
  21  0.206139
  22  0.150542
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.250e+00  4.034e-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.505e-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.611e-01  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.20
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 3.34e-08
Energy Flux (Fixed Index): 1.17e-04 +/- 3.79e-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) = 6712.38998109
delta logL = 0.504615232713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6712.38590393
delta logL = 0.508692396043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1700       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0190       1.0000          .0000       5.0000    
     3 'Normalizat'    .73278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1482       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=   6712.386     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1702        4.8068        .56486E-02    .10453E-01
   2  alpha         2.0191        3.4952        .16524        .41144E-03
   3  Normalizat    .73275        .16317        .69639E-01    .15610E-03
   4  Prefactor     1.1482        .86721E-01    .35989E-01    .13467E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.17023
  alpha      = 2.0191
  Normalizat = 0.732746
  Prefactor  = 1.14818
 **********
 **   18 **HESSE 
 **********

 FCN=   6712.386     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1702        .37932        .24967E-04   -1.5492    
   2  alpha         2.0191        .25554        .68995E-02   -.19357    
   3  Normalizat    .73275        .19588        .30817E-03   -1.0261    
   4  Prefactor     1.1482        .14796        .19091E-03   -.87941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52628e-09
Minuit parameter uncertainties:
  1  0.379325
  2  0.256003
  3  0.196063
  4  0.148015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61515': 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) = 6712.38590365
delta logL = 0.508692675683

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.170e+00  3.793e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.019e+00  2.560e-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.148e+00  1.480e-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.327e-01  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.33
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 2.02 +/- 0.26
Photon Flux (Free Index): 1.33e-07 +/- 4.85e-08
Energy Flux (Free Index): 8.30e-05 +/- 3.56e-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/61515/cmap_HighResolution_444096001_444355201_4FGL_J2158.8-3013_daily_bin790.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='8.30e-05', photon_flux_error='3.34e-08', dlogl='5.09e-01', energy_flux='1.17e-04', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-27 22:32:45.682920', photon_index_error2='0.26', photon_index2='2.02', ts='39.20', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='3.56e-05', EG='0.76', time_epoch_completed='1632807165.68', return_code='0', job_id='61515', GAL2='1.15', EG2='0.73', return_code2='0', energy_flux_error='3.79e-05', photon_flux_error2='4.85e-08', ts2='40.33', photon_index='1.77' WHERE bin_id='790' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:32:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 61515: <4FGL_J2158.8-3013_daily_bin790> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin790> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 22:20:41 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:22:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 22:22:25 2021
Terminated at Mon Sep 27 22:32:46 2021
Results reported at Mon Sep 27 22:32:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin790 329.714 -30.2251 444096001 444355201 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 :                                   564.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            725 sec.

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

