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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1627
RA = 329.714, Dec = -30.2251
tmin = 661046401, tmax = 661305601
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='250940', job_status='RUN', time_executed='2021-12-16 00:35:54.983985', time_epoch_executed='1639643754.98' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250940

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250940/ft1_4FGL_J2158.8-3013_daily_bin1627.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250940/ft2_4FGL_J2158.8-3013_daily_bin1627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250940/ft1_4FGL_J2158.8-3013_daily_bin1627.fits outfile=/scratch/kocevski/250940/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1627.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=661046401.0 tmax=661305601.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.55
user 3.31
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250940/ft1_filtered_4FGL_J2158.8-3013_daily_bin1627.fits" evtable="EVENTS" scfile=/scratch/kocevski/250940/ft2_4FGL_J2158.8-3013_daily_bin1627.fits sctable="SC_DATA" outfile=/scratch/kocevski/250940/ltcube_661046401_661305601_4FGL_J2158.8-3013_daily_bin1627.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/250940/ft2_4FGL_J2158.8-3013_daily_bin1627.fits
.....................!
real 12.48
user 12.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250940/ft1_filtered_4FGL_J2158.8-3013_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/250940/ft2_4FGL_J2158.8-3013_daily_bin1627.fits sctable="SC_DATA" expcube=/scratch/kocevski/250940/ltcube_661046401_661305601_4FGL_J2158.8-3013_daily_bin1627.fits outfile=/scratch/kocevski/250940/expmap_661046401_661305601_4FGL_J2158.8-3013_daily_bin1627.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/250940/ltcube_661046401_661305601_4FGL_J2158.8-3013_daily_bin1627.fits
.....................!
real 191.83
user 186.12
sys 5.09

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/250940/ft1_filtered_4FGL_J2158.8-3013_daily_bin1627.fits scfile=/scratch/kocevski/250940/ft2_4FGL_J2158.8-3013_daily_bin1627.fits outfile=/scratch/kocevski/250940/cmap_661046401_661305601_4FGL_J2158.8-3013_daily_bin1627.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250940/ft1_filtered_4FGL_J2158.8-3013_daily_bin1627.fits scfile=/scratch/kocevski/250940/ft2_4FGL_J2158.8-3013_daily_bin1627.fits outfile=/scratch/kocevski/250940/cmap_HighResolution_661046401_661305601_4FGL_J2158.8-3013_daily_bin1627.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51108E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2448       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16064E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22119E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5853       1.0000         .10000E-03   10000.    
     6 'norm      '    18.552       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20163E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.933       1.0000         .10000E-03   10000.    
     9 'norm      '    7.6110       1.0000         .10000E-03   10000.    
    10 'norm      '    .20746       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14855E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .82863E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    26.830       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13438E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.825       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3229       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6929       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .54460       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=   5569.427     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2113 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    15.055        .10573E-01** at limit **
   2  Prefactor     6.2566        5.8071        .40159E-02    .12453E-02
   3  Prefactor     .10000E-03    3.7855        .90712E-02** at limit **
   4  Prefactor     .10000E-03    6.1667        .90712E-02** at limit **
   5  Prefactor     5.5827        5.7680        .42498E-02    .34057E-03
   6  norm          18.400        10.033        .23247E-02    .15429E-04
   7  Prefactor     .10000E-03    9.9870        .90712E-02** at limit **
   8  Prefactor     35.338        39.490        .16951E-02   -.28216E-04
   9  norm          7.5888        5.1816        .36340E-02    .19160E-03
  10  norm          .20777        .29035        .91443E-02    .13338E-02
  11  Prefactor     .10000E-03    3.9853        .90712E-02** at limit **
  12  Prefactor     .10000E-03    12.564        .90712E-02** at limit **
  13  Prefactor     .11733        5.3689        .60337E-01    .53770E-03
  14  norm          27.412        28.474        .19335E-02   -.11624E-04
  15  Prefactor     .10001E-03    13.748        .10278E-01** at limit **
  16  Prefactor     .10000E-03    5.9554        .90712E-02** at limit **
  17  norm          .10000E-03    1.3987        .28695E-01** at limit **
  18  Prefactor     .10000E-03    40.497        .90712E-02** at limit **
  19  Prefactor     23.447        16.062        .20516E-02    .25534E-03
  20  norm          3.3242        3.5589        .55515E-02    .13974E-03
  21  Normalizat    1.6933        .20638        .53148E-01   -.14204E-04
  22  Prefactor     .54439        .13908        .61105E-01    .13172E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100023
  Prefactor  = 6.25662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.58273
  norm       = 18.3998
  Prefactor  = 0.0001
  Prefactor  = 35.3382
  norm       = 7.58879
  norm       = 0.207771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.117325
  norm       = 27.4116
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4465
  norm       = 3.32416
  Normalizat = 1.69327
  Prefactor  = 0.54439
 **********
 **   18 **HESSE 
 **********

 FCN=   5569.427     FROM HESSE     STATUS=OK           350 CALLS     2463 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    15.722        .42293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2566        5.8047        .80319E-03   -1.5208    
   3  Prefactor     .10000E-03    3.8029        .14177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1796        .18099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5827        5.7691        .16999E-03   -1.5235    
   6  norm          18.400        10.033        .92987E-04   -1.4850    
   7  Prefactor     .10000E-03    9.9912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.338        39.482        .67802E-04   -1.4518    
   9  norm          7.5888        5.1420        .12823E-03   -1.5157    
  10  norm          .20777        .26009        .44519E-03   -1.5617    
  11  Prefactor     .10000E-03    3.9944        .14549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11733        52.854        .33134E-02   -1.5639    
  14  norm          27.412        28.456        .77340E-04   -1.4660    
  15  Prefactor     .10001E-03    13.811        .20555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9675        .17786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.4002        .17152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    40.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.447        16.132        .82065E-04   -1.4739    
  20  norm          3.3242        3.5505        .14173E-03   -1.5343    
  21  Normalizat    1.6933        .23674        .23496E-03   -.72483    
  22  Prefactor     .54439        .15815        .27035E-03   -1.0998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27001e-09
Minuit parameter uncertainties:
  1  0.00121391
  2  5.80526
  3  3.3811e-06
  4  6.67117e-08
  5  5.76964
  6  10.0335
  7  2.498e-05
  8  39.5113
  9  5.14227
  10  0.260088
  11  3.05782e-06
  12  6.59523e-05
  13  4.98271
  14  28.4705
  15  0.000622684
  16  6.86086e-07
  17  4.56351e-06
  18  0.00013277
  19  16.135
  20  3.55068
  21  0.236894
  22  0.158278
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  2.078e-01  2.601e-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:  5.444e-01  1.583e-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.693e+00  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.72e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 2.44e-05

TS (Fixed Index): 1.04
Ra Dec: 329.714 -30.225
Photon Flux Upper Limit: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250940/likelihoodResults_661046401_661305601_4FGL_J2158.8-3013_daily_bin1627.txt

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) = 5569.33724002
delta logL = 0.0902592191987

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5569.33593599
delta logL = 0.0915632491051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19869       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0677       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54588       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=   5569.336     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      210 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19871        5.9486        .82818E-02    .10771E-02
   2  alpha         2.0677        3.3533        .41957        .68737E-04
   3  Normalizat    1.6878        .54053E-01    .53205E-01   -.12677E-04
   4  Prefactor     .54587        .37367E-01    .61015E-01    .32738E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.198709
  alpha      = 2.0677
  Normalizat = 1.68784
  Prefactor  = 0.545872
 **********
 **   18 **HESSE 
 **********

 FCN=   5569.336     FROM HESSE     STATUS=OK            35 CALLS      245 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19871        .25073        .39740E-03   -1.5619    
   2  alpha         2.0677        .74490        .15810E-01   -.17379    
   3  Normalizat    1.6878        .22537        .23522E-03   -.72628    
   4  Prefactor     .54587        .15684        .26995E-03   -1.0992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7674e-10
Minuit parameter uncertainties:
  1  0.250734
  2  0.756762
  3  0.225503
  4  0.156961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250940': 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) = 5569.33593598
delta logL = 0.0915632519354

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.987e-01  2.507e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.068e+00  7.568e-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:  5.459e-01  1.570e-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.688e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 2.07 +/- 0.76
Photon Flux (Free Index): 2.43e-08 +/- 3.04e-08
Energy Flux (Free Index): 1.37e-05 +/- 2.02e-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/250940/cmap_HighResolution_661046401_661305601_4FGL_J2158.8-3013_daily_bin1627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-05', comment='SUCCESS', photon_flux='1.72e-08', energy_flux2='1.37e-05', photon_flux_error='2.16e-08', dlogl='9.16e-02', energy_flux='1.95e-05', photon_flux2='2.43e-08', job_status='DONE', time_completed='2021-12-16 00:45:18.383804', photon_index_error2='0.76', photon_index2='2.07', ts='1.04', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='7.28e-08', energy_flux_error2='2.02e-05', EG='1.69', time_epoch_completed='1639644318.38', return_code='0', job_id='250940', GAL2='0.55', EG2='1.69', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='3.04e-08', ts2='1.22', photon_index='1.77' WHERE bin_id='1627' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 16 00:45:18 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 250940: <4FGL_J2158.8-3013_daily_bin1627> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1627> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Dec 16 00:35:39 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 16 00:35:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 16 00:35:41 2021
Terminated at Thu Dec 16 00:45:19 2021
Results reported at Thu Dec 16 00:45:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1627 329.714 -30.2251 661046401 661305601 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 :                                   565.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             320.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            580 sec.

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

