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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1182
RA = 329.714, Dec = -30.2251
tmin = 545702401, tmax = 545961601
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='63212', job_status='RUN', time_executed='2021-09-27 22:30:52.990186', time_epoch_executed='1632807052.99' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63212/ft1_4FGL_J2158.8-3013_daily_bin1182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63212/ft2_4FGL_J2158.8-3013_daily_bin1182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63212/ft1_4FGL_J2158.8-3013_daily_bin1182.fits outfile=/scratch/kocevski/63212/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1182.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=545702401.0 tmax=545961601.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.12
user 3.76
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/63212/ft2_4FGL_J2158.8-3013_daily_bin1182.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/63212/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1182.fits evtable="EVENTS" outfile="/scratch/kocevski/63212/ft1_filtered_4FGL_J2158.8-3013_daily_bin1182.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63212/ft1_filtered_4FGL_J2158.8-3013_daily_bin1182.fits" evtable="EVENTS" scfile=/scratch/kocevski/63212/ft2_4FGL_J2158.8-3013_daily_bin1182.fits sctable="SC_DATA" outfile=/scratch/kocevski/63212/ltcube_545702401_545961601_4FGL_J2158.8-3013_daily_bin1182.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/63212/ft2_4FGL_J2158.8-3013_daily_bin1182.fits
.....................!
real 15.05
user 14.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63212/ft1_filtered_4FGL_J2158.8-3013_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/63212/ft2_4FGL_J2158.8-3013_daily_bin1182.fits sctable="SC_DATA" expcube=/scratch/kocevski/63212/ltcube_545702401_545961601_4FGL_J2158.8-3013_daily_bin1182.fits outfile=/scratch/kocevski/63212/expmap_545702401_545961601_4FGL_J2158.8-3013_daily_bin1182.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/63212/ltcube_545702401_545961601_4FGL_J2158.8-3013_daily_bin1182.fits
.....................!
real 192.55
user 186.03
sys 5.94

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/63212/ft1_filtered_4FGL_J2158.8-3013_daily_bin1182.fits scfile=/scratch/kocevski/63212/ft2_4FGL_J2158.8-3013_daily_bin1182.fits outfile=/scratch/kocevski/63212/cmap_545702401_545961601_4FGL_J2158.8-3013_daily_bin1182.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63212/ft1_filtered_4FGL_J2158.8-3013_daily_bin1182.fits scfile=/scratch/kocevski/63212/ft2_4FGL_J2158.8-3013_daily_bin1182.fits outfile=/scratch/kocevski/63212/cmap_HighResolution_545702401_545961601_4FGL_J2158.8-3013_daily_bin1182.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/63212/ft1_filtered_4FGL_J2158.8-3013_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/63212/ft2_4FGL_J2158.8-3013_daily_bin1182.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63212/Model_4FGL_J2158.8-3013_daily_bin1182.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/63212/ft1_filtered_4FGL_J2158.8-3013_daily_bin1182.fits.....................!
real 53.77
user 52.42
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3338       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.615       1.0000         .10000E-03   10000.    
     6 'norm      '    16.628       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    97.785       1.0000         .10000E-03   10000.    
     9 'norm      '    .61130       1.0000         .10000E-03   10000.    
    10 'norm      '    .45243       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28672E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.644       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .28462       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.287       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3232       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93566       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=   6221.452     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2396 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3329        7.5117        .32545E-07   -.17018E-05
   2  Prefactor     .10000E-03    5.4031       -.55521E-07** at limit **
   3  Prefactor     6.1464        10.724        .13092E-05    .20220E-03
   4  Prefactor     .10000E-03    5.0477        .93993E-07** at limit **
   5  Prefactor     13.613        10.663       -.27183E-06    .12488E-04
   6  norm          16.629        8.6277       -.78009E-07   -.62015E-04
   7  Prefactor     .10000E-03    18.411        .11561E-05** at limit **
   8  Prefactor     97.819        66.701       -.38527E-05   -.14390E-03
   9  norm          .61090        2.0620        .11603E-05    .44610E-03
  10  norm          .45244        .25655        .15683E-07    .44609E-04
  11  Prefactor     .10009E-03    12.951        .31280E-05** at limit **
  12  Prefactor     .10000E-03    36.258        .10366E-05** at limit **
  13  Prefactor     .10001E-03    5.5173        .12804E-05** at limit **
  14  norm          11.643        17.075        .26419E-07    .19003E-07
  15  Prefactor     .10000E-03    13.505       -.59701E-07** at limit **
  16  Prefactor     .10000E-03    4.5551       -.93690E-08** at limit **
  17  norm          .28455        2.0358        .21782E-06    .76016E-04
  18  Prefactor     .10000E-03    68.873        .10520E-05** at limit **
  19  Prefactor     15.285        17.099        .19493E-06   -.61100E-05
  20  norm          .10000E-03    3.1351       -.29405E-07** at limit **
  21  Normalizat    1.3231        .22285       -.90021E-06   -.23495E-03
  22  Prefactor     .93580        .14888        .90910E-06   -.17036E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.33294
  Prefactor  = 0.0001
  Prefactor  = 6.14637
  Prefactor  = 0.0001
  Prefactor  = 13.6135
  norm       = 16.6292
  Prefactor  = 0.000100001
  Prefactor  = 97.8191
  norm       = 0.610904
  norm       = 0.45244
  Prefactor  = 0.000100089
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 11.6427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.284553
  Prefactor  = 0.0001
  Prefactor  = 15.2847
  norm       = 0.0001
  Normalizat = 1.32306
  Prefactor  = 0.935805
 **********
 **   18 **HESSE 
 **********

 FCN=   6221.452     FROM HESSE     STATUS=OK           348 CALLS     2744 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3329        7.5167        .15949E-03   -1.5205    
   2  Prefactor     .10000E-03    5.4238        .17906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1464        11.088        .80969E-03   -1.5212    
   4  Prefactor     .10000E-03    5.0514        .17309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.613        10.681        .10855E-03   -1.4970    
   6  norm          16.629        8.6303        .98219E-04   -1.4892    
   7  Prefactor     .10000E-03    18.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     97.819        68.101        .20325E-03   -1.3727    
   9  norm          .61090        2.2024        .19650E-02   -1.5552    
  10  norm          .45244        .25604        .29065E-04   -1.5573    
  11  Prefactor     .10009E-03    39.480        .42494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    20.744        .32431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.643        17.062        .11740E-03   -1.5025    
  15  Prefactor     .10000E-03    13.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5572        .16441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .28455        2.0163        .22043E-03   -1.5601    
  18  Prefactor     .10000E-03    69.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.285        17.259        .10244E-03   -1.4926    
  20  norm          .10000E-03    3.1717        .13637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3231        .25840        .28121E-03   -.82881    
  22  Prefactor     .93580        .17380        .23070E-03   -.94901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46922e-09
Minuit parameter uncertainties:
  1  7.51786
  2  4.83241e-06
  3  11.092
  4  1.03806e-05
  5  10.6821
  6  8.63097
  7  0.000261745
  8  68.1555
  9  2.20273
  10  0.256044
  11  0.00374239
  12  7.48038e-05
  13  0.00103647
  14  17.0687
  15  1.6682e-05
  16  1.07685e-06
  17  1.51473
  18  0.000184274
  19  17.2649
  20  2.46991e-06
  21  0.258657
  22  0.173898
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  4.524e-01  2.560e-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:  9.358e-01  1.739e-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.323e+00  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.71
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 4.25e-05 +/- 2.41e-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) = 6221.39070129
delta logL = 0.0614443059922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6221.3900877
delta logL = 0.0620578947892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45172       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6240       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93425       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=   6221.390     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      195 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45172        .32799        .66023E-02    .23428E-02
   2  alpha         1.6239        .46091        .29306       -.12432E-04
   3  Normalizat    1.3277        .20736        .63487E-01    .34493E-06
   4  Prefactor     .93421        .14649        .45440E-01    .10600E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.45172
  alpha      = 1.62395
  Normalizat = 1.3277
  Prefactor  = 0.934209
 **********
 **   18 **HESSE 
 **********

 FCN=   6221.390     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45172        .25618        .29180E-04   -1.5574    
   2  alpha         1.6239        .39502        .11817E-01   -.35802    
   3  Normalizat    1.3277        .24128        .28082E-03   -.82743    
   4  Prefactor     .93421        .17074        .23089E-03   -.94956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66848e-10
Minuit parameter uncertainties:
  1  0.256185
  2  0.396919
  3  0.241483
  4  0.17084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63212': 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) = 6221.39008767
delta logL = 0.0620579275819

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  4.517e-01  2.562e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.624e+00  3.969e-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:  9.342e-01  1.708e-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.328e+00  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.84
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.62 +/- 0.40
Photon Flux (Free Index): 3.24e-08 +/- 2.26e-08
Energy Flux (Free Index): 5.47e-05 +/- 5.11e-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/63212/cmap_HighResolution_545702401_545961601_4FGL_J2158.8-3013_daily_bin1182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='5.47e-05', photon_flux_error='2.12e-08', dlogl='6.21e-02', energy_flux='4.25e-05', photon_flux2='3.24e-08', job_status='DONE', time_completed='2021-09-27 22:40:37.628036', photon_index_error2='0.40', photon_index2='1.62', ts='11.71', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='5.11e-05', EG='1.32', time_epoch_completed='1632807637.63', return_code='0', job_id='63212', GAL2='0.93', EG2='1.33', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='2.26e-08', ts2='11.84', photon_index='1.77' WHERE bin_id='1182' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:40:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 63212: <4FGL_J2158.8-3013_daily_bin1182> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1182> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:25:58 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:30:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 22:30:30 2021
Terminated at Mon Sep 27 22:40:38 2021
Results reported at Mon Sep 27 22:40:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1182 329.714 -30.2251 545702401 545961601 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.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             323.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            880 sec.

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

