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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1629
RA = 329.714, Dec = -30.2251
tmin = 661564801, tmax = 661824001
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='447452', job_status='RUN', time_executed='2021-12-22 02:46:46.428342', time_epoch_executed='1640170006.43' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1629'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447452

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447452/ft1_4FGL_J2158.8-3013_daily_bin1629.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447452/ft2_4FGL_J2158.8-3013_daily_bin1629.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447452/ft1_4FGL_J2158.8-3013_daily_bin1629.fits outfile=/scratch/kocevski/447452/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1629.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=661564801.0 tmax=661824001.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.61
user 3.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447452/ft2_4FGL_J2158.8-3013_daily_bin1629.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/447452/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1629.fits evtable="EVENTS" outfile="/scratch/kocevski/447452/ft1_filtered_4FGL_J2158.8-3013_daily_bin1629.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/447452/ft1_filtered_4FGL_J2158.8-3013_daily_bin1629.fits" evtable="EVENTS" scfile=/scratch/kocevski/447452/ft2_4FGL_J2158.8-3013_daily_bin1629.fits sctable="SC_DATA" outfile=/scratch/kocevski/447452/ltcube_661564801_661824001_4FGL_J2158.8-3013_daily_bin1629.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/447452/ft2_4FGL_J2158.8-3013_daily_bin1629.fits
.....................!
real 13.37
user 12.85
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447452/ft1_filtered_4FGL_J2158.8-3013_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/447452/ft2_4FGL_J2158.8-3013_daily_bin1629.fits sctable="SC_DATA" expcube=/scratch/kocevski/447452/ltcube_661564801_661824001_4FGL_J2158.8-3013_daily_bin1629.fits outfile=/scratch/kocevski/447452/expmap_661564801_661824001_4FGL_J2158.8-3013_daily_bin1629.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/447452/ltcube_661564801_661824001_4FGL_J2158.8-3013_daily_bin1629.fits
.....................!
real 191.21
user 185.62
sys 5.03

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/447452/ft1_filtered_4FGL_J2158.8-3013_daily_bin1629.fits scfile=/scratch/kocevski/447452/ft2_4FGL_J2158.8-3013_daily_bin1629.fits outfile=/scratch/kocevski/447452/cmap_661564801_661824001_4FGL_J2158.8-3013_daily_bin1629.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/447452/ft1_filtered_4FGL_J2158.8-3013_daily_bin1629.fits scfile=/scratch/kocevski/447452/ft2_4FGL_J2158.8-3013_daily_bin1629.fits outfile=/scratch/kocevski/447452/cmap_HighResolution_661564801_661824001_4FGL_J2158.8-3013_daily_bin1629.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/447452/ft1_filtered_4FGL_J2158.8-3013_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/447452/ft2_4FGL_J2158.8-3013_daily_bin1629.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447452/Model_4FGL_J2158.8-3013_daily_bin1629.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/447452/ft1_filtered_4FGL_J2158.8-3013_daily_bin1629.fits.....................!
real 56.63
user 55.27
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10774E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33483E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.484       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.2537       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .99848       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2466       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.083       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.1457       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.837       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5135       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4972       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6142       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83114       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0081       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=   7126.780     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2369 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    3.7474        .59457E-01** at limit **
   2  Prefactor     .10115E-03    4.2625        .56283E-01** at limit **
   3  Prefactor     .10000E-03    3.1718        .90712E-02** at limit **
   4  Prefactor     11.486        11.135        .29553E-02    .35551E-03
   5  Prefactor     .10000E-03    1.7270        .90712E-02** at limit **
   6  norm          7.2538        7.7081        .37232E-02    .15995E-02
   7  Prefactor     .10000E-03    4.7978        .90712E-02** at limit **
   8  Prefactor     .10000E-03    21.780        .90712E-02** at limit **
   9  norm          .99963        3.3452        .13160E-01    .13842E-02
  10  norm          1.2466        .37558        .58184E-02    .17390E-04
  11  Prefactor     .10000E-03    4.7377        .90712E-02** at limit **
  12  Prefactor     37.083        19.768        .16454E-02   -.45928E-04
  13  Prefactor     .10000E-03    4.6567        .90712E-02** at limit **
  14  norm          9.1439        15.425        .33132E-02   -.44623E-03
  15  Prefactor     11.839        12.796        .29108E-02    .37737E-03
  16  Prefactor     2.5058        8.8746        .64428E-02   -.12218E-02
  17  norm          1.4945        1.5392        .87523E-02    .51402E-04
  18  Prefactor     .10035E-03    86.555        .90712E-02** at limit **
  19  Prefactor     7.6149        7.3685        .36333E-02    .19790E-02
  20  norm          .10000E-03    1.0707        .90712E-02** at limit **
  21  Normalizat    .83090        .16472        .44015E-01   -.24751E-04
  22  Prefactor     1.0083        .12291        .43621E-01   -.93783E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100047
  Prefactor  = 0.000101151
  Prefactor  = 0.0001
  Prefactor  = 11.4863
  Prefactor  = 0.0001
  norm       = 7.25378
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.999627
  norm       = 1.24661
  Prefactor  = 0.0001
  Prefactor  = 37.0829
  Prefactor  = 0.0001
  norm       = 9.14389
  Prefactor  = 11.8387
  Prefactor  = 2.50578
  norm       = 1.49453
  Prefactor  = 0.000100351
  Prefactor  = 7.61494
  norm       = 0.0001
  Normalizat = 0.830899
  Prefactor  = 1.00827
 **********
 **   18 **HESSE 
 **********

 FCN=   7126.780     FROM HESSE     STATUS=OK           354 CALLS     2723 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    23.849        .31842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10115E-03    4.5245        .53777E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2078        .14677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.486        11.129        .11821E-03   -1.5030    
   5  Prefactor     .10000E-03    1.7298        .10834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.2538        7.6912        .14893E-03   -1.5169    
   7  Prefactor     .10000E-03    4.8012        .18057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .99963        3.3087        .24734E-03   -1.5508    
  10  norm          1.2466        .37083        .25679E-04   -1.5485    
  11  Prefactor     .10000E-03    4.7815        .17941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.083        19.792        .65814E-04   -1.4489    
  13  Prefactor     .10000E-03    4.7627        .17775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.1439        15.416        .13253E-03   -1.5103    
  15  Prefactor     11.839        12.800        .11643E-03   -1.5020    
  16  Prefactor     2.5058        8.8508        .25771E-03   -1.5391    
  17  norm          1.4945        1.5170        .10256E-03   -1.5463    
  18  Prefactor     .10035E-03    87.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.6149        7.3717        .14533E-03   -1.5156    
  20  norm          .10000E-03    1.0772        .85302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .83090        .18756        .27470E-03   -.98933    
  22  Prefactor     1.0083        .14096        .19573E-03   -.92455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82043e-08
Minuit parameter uncertainties:
  1  0.00210712
  2  0.00456513
  3  9.79468e-07
  4  11.1309
  5  6.12368e-07
  6  7.69228
  7  1.07509e-05
  8  0.000411184
  9  3.3093
  10  0.370829
  11  5.63997e-05
  12  19.7955
  13  4.10246e-05
  14  15.4229
  15  12.8028
  16  8.85543
  17  1.51702
  18  0.011078
  19  7.37258
  20  4.63879e-07
  21  0.187711
  22  0.141009
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.247e+00  3.708e-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.008e+00  1.410e-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:  8.309e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 59.51
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 3.07e-08
Energy Flux (Fixed Index): 1.17e-04 +/- 3.48e-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) = 7126.64969604
delta logL = 0.129942765211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7126.62389286
delta logL = 0.155745950789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2513       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6472       1.0000          .0000       5.0000    
     3 'Normalizat'    .84218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0046       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=   7126.624     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2511        .40755        .59678E-02   -.74941E-04
   2  alpha         1.6472        .23077        .16619       -.46581E-05
   3  Normalizat    .84217        .15682        .44158E-01    .20461E-04
   4  Prefactor     1.0046        .12183        .44278E-01    .35036E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25109
  alpha      = 1.6472
  Normalizat = 0.842173
  Prefactor  = 1.00461
 **********
 **   18 **HESSE 
 **********

 FCN=   7126.624     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .46E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2511        .36126        .26329E-04   -1.5484    
   2  alpha         1.6472        .21229        .70544E-02   -.34811    
   3  Normalizat    .84217        .17942        .27315E-03   -.98523    
   4  Prefactor     1.0046        .13955        .19612E-03   -.92576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59437e-15
Minuit parameter uncertainties:
  1  0.361262
  2  0.212577
  3  0.179543
  4  0.139603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447452': 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) = 7126.6238927
delta logL = 0.155746112669

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.251e+00  3.613e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.647e+00  2.126e-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.005e+00  1.396e-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:  8.422e-01  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 59.83
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.65 +/- 0.21
Photon Flux (Free Index): 9.17e-08 +/- 3.32e-08
Energy Flux (Free Index): 1.45e-04 +/- 7.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/447452/cmap_HighResolution_661564801_661824001_4FGL_J2158.8-3013_daily_bin1629.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='1.45e-04', photon_flux_error='3.07e-08', dlogl='1.56e-01', energy_flux='1.17e-04', photon_flux2='9.17e-08', job_status='DONE', time_completed='2021-12-22 02:56:34.638614', photon_index_error2='0.21', photon_index2='1.65', ts='59.51', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='7.03e-05', EG='0.83', time_epoch_completed='1640170594.64', return_code='0', job_id='447452', GAL2='1.00', EG2='0.84', return_code2='0', energy_flux_error='3.48e-05', photon_flux_error2='3.32e-08', ts2='59.83', photon_index='1.77' WHERE bin_id='1629' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 22 02:56:34 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 447452: <4FGL_J2158.8-3013_daily_bin1629> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1629> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec 22 02:45:18 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 22 02:45:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 22 02:45:30 2021
Terminated at Wed Dec 22 02:56:35 2021
Results reported at Wed Dec 22 02:56:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1629 329.714 -30.2251 661564801 661824001 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 :                                   590.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            677 sec.

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

