/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 56 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7400
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1238
RA = 329.714, Dec = -30.2251
tmin = 560217601, tmax = 560476801
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='63280', job_status='RUN', time_executed='2021-09-27 22:32:15.921875', time_epoch_executed='1632807135.92' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63280

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63280/ft1_4FGL_J2158.8-3013_daily_bin1238.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63280/ft2_4FGL_J2158.8-3013_daily_bin1238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63280/ft1_4FGL_J2158.8-3013_daily_bin1238.fits outfile=/scratch/kocevski/63280/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1238.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=560217601.0 tmax=560476801.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.66
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63280/ft1_filtered_4FGL_J2158.8-3013_daily_bin1238.fits" evtable="EVENTS" scfile=/scratch/kocevski/63280/ft2_4FGL_J2158.8-3013_daily_bin1238.fits sctable="SC_DATA" outfile=/scratch/kocevski/63280/ltcube_560217601_560476801_4FGL_J2158.8-3013_daily_bin1238.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/63280/ft2_4FGL_J2158.8-3013_daily_bin1238.fits
.....................!
real 15.21
user 14.85
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63280/ft1_filtered_4FGL_J2158.8-3013_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/63280/ft2_4FGL_J2158.8-3013_daily_bin1238.fits sctable="SC_DATA" expcube=/scratch/kocevski/63280/ltcube_560217601_560476801_4FGL_J2158.8-3013_daily_bin1238.fits outfile=/scratch/kocevski/63280/expmap_560217601_560476801_4FGL_J2158.8-3013_daily_bin1238.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/63280/ltcube_560217601_560476801_4FGL_J2158.8-3013_daily_bin1238.fits
.....................!
real 191.16
user 186.34
sys 4.15

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/63280/ft1_filtered_4FGL_J2158.8-3013_daily_bin1238.fits scfile=/scratch/kocevski/63280/ft2_4FGL_J2158.8-3013_daily_bin1238.fits outfile=/scratch/kocevski/63280/cmap_560217601_560476801_4FGL_J2158.8-3013_daily_bin1238.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63280/ft1_filtered_4FGL_J2158.8-3013_daily_bin1238.fits scfile=/scratch/kocevski/63280/ft2_4FGL_J2158.8-3013_daily_bin1238.fits outfile=/scratch/kocevski/63280/cmap_HighResolution_560217601_560476801_4FGL_J2158.8-3013_daily_bin1238.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63280/ft1_filtered_4FGL_J2158.8-3013_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/63280/ft2_4FGL_J2158.8-3013_daily_bin1238.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63280/Model_4FGL_J2158.8-3013_daily_bin1238.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/63280/ft1_filtered_4FGL_J2158.8-3013_daily_bin1238.fits......................!
real 31.41
user 30.20
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96018       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2267       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.022       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    20.533       1.0000         .10000E-03   10000.    
    10 'norm      '    .46026       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.295       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.978       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    72.859       1.0000         .10000E-03   10000.    
    19 'Prefactor '    82.054       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .22781       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3034       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2494.893     FROM MIGRAD    STATUS=CONVERGED     65 CALLS     2297 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96021        1.2761        .99626E-08    .89997E-05
   2  Prefactor     2.2274        1.0285       -.62101E-07    .36733E-05
   3  Prefactor     .10017E-03    6.9514       -.11082E-04** at limit **
   4  Prefactor     50.024        1.0308        .26017E-06   -.10217E-02
   5  Prefactor     .10003E-03    10.624        .32357E-04** at limit **
   6  norm          .10013E-03    8.1209        .26957E-04** at limit **
   7  Prefactor     .10023E-03    6.7062       -.83860E-05** at limit **
   8  Prefactor     .10082E-03    29.887       -.46652E-04** at limit **
   9  norm          20.534        1.0022        .18895E-07    .56716E-05
  10  norm          .46026        .43179        .19660E-06    .18668E-03
  11  Prefactor     29.300        1.1828        .83461E-06   -.17046E-02
  12  Prefactor     .10000E-03    8.3551       -.27400E-04** at limit **
  13  Prefactor     .10001E-03    8.7102       -.14793E-04** at limit **
  14  norm          .10000E-03    10.412        .31440E-04** at limit **
  15  Prefactor     .10076E-03    14.246       -.57067E-05** at limit **
  16  Prefactor     70.978        1.0008        .37319E-07   -.33116E-03
  17  norm          .10000E-03    2.8780        .79393E-06** at limit **
  18  Prefactor     72.857        1.0519       -.29087E-06    .19342E-02
  19  Prefactor     82.054        1.0043       -.77021E-07    .53028E-03
  20  norm          .10000E-03    7.7533        .33809E-05** at limit **
  21  Normalizat    .22774        .37370       -.30447E-06   -.40441E-05
  22  Prefactor     1.3034        .26211       -.21207E-05    .59737E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.960209
  Prefactor  = 2.22739
  Prefactor  = 0.000100173
  Prefactor  = 50.0238
  Prefactor  = 0.000100025
  norm       = 0.000100126
  Prefactor  = 0.000100229
  Prefactor  = 0.00010082
  norm       = 20.5339
  norm       = 0.460255
  Prefactor  = 29.2997
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.000100003
  Prefactor  = 0.000100759
  Prefactor  = 70.9779
  norm       = 0.000100001
  Prefactor  = 72.857
  Prefactor  = 82.0538
  norm       = 0.0001
  Normalizat = 0.227744
  Prefactor  = 1.30341
 **********
 **   18 **HESSE 
 **********

 FCN=   2494.893     FROM HESSE     STATUS=OK           384 CALLS     2681 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96021        20.438        .13024E-01   -1.5512    
   2  Prefactor     2.2274        8.4498        .68883E-02   -1.5409    
   3  Prefactor     .10017E-03    18.286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     50.024        34.700        .14175E-02   -1.4292    
   5  Prefactor     .10003E-03    25.442        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10013E-03    10.688        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10023E-03    12.563        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10082E-03    45.093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          20.534        14.039        .22098E-02   -1.4801    
  10  norm          .46026        .43230        .70006E-02   -1.5572    
  11  Prefactor     29.300        27.865        .18506E-02   -1.4625    
  12  Prefactor     .10000E-03    16.367        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    8.8867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    24.887        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10076E-03    37.242        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     70.978        46.638        .11912E-02   -1.4021    
  17  norm          .10000E-03    2.8789        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     72.857        103.66        .11759E-02   -1.3999    
  19  Prefactor     82.054        67.133        .11085E-02   -1.3894    
  20  norm          .10000E-03    7.6750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .22774        .91782        .14105       -1.2744    
  22  Prefactor     1.3034        .51990        .32551E-01   -.83206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42275e-07
Minuit parameter uncertainties:
  1  8.86306
  2  8.45434
  3  0.00355728
  4  34.7143
  5  0.00160322
  6  0.00231785
  7  0.00339277
  8  0.0121701
  9  14.0414
  10  0.432305
  11  27.8775
  12  9.414e-05
  13  0.000595203
  14  0.000505287
  15  0.0106384
  16  46.6623
  17  9.27561e-05
  18  103.92
  19  67.195
  20  1.39783e-05
  21  0.919364
  22  0.521989
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  4.603e-01  4.323e-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.303e+00  5.220e-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:  2.277e-01  9.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.36
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 3.81e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 4.32e-05 +/- 4.06e-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) = 2494.00782504
delta logL = 0.885350389975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2493.97512672
delta logL = 0.918048703965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12742       1.0000         .10000E-03   10000.    
     2 'alpha     '    .76415       1.0000          .0000       5.0000    
     3 'Normalizat'    .23920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3055       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=   2493.975     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12684        .15811        .39363E-02   -.12332E-02
   2  alpha         .76209        .48155        .23157        .74904E-06
   3  Normalizat    .23935        .47514        .13769        .30611E-04
   4  Prefactor     1.3055        .33641        .32514E-01   -.73054E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.12684
  alpha      = 0.762093
  Normalizat = 0.239352
  Prefactor  = 1.30545
 **********
 **   18 **HESSE 
 **********

 FCN=   2493.975     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12684        .26230        .16707E-03   -1.5637    
   2  alpha         .76209        .75361        .10205E-02   -.76865    
   3  Normalizat    .23935        .37434        .60678E-03   -1.2666    
   4  Prefactor     1.3055        .26264        .18780E-03   -.83145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03131e-12
Minuit parameter uncertainties:
  1  0.262307
  2  0.777647
  3  0.378364
  4  0.262905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63280': 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) = 2493.97512288
delta logL = 0.918052546328

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.268e-01  2.623e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  7.621e-01  7.776e-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.305e+00  2.629e-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:  2.394e-01  3.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.19
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 0.76 +/- 0.78
Photon Flux (Free Index): 1.07e-08 +/- 1.25e-08
Energy Flux (Free Index): 1.90e-04 +/- 2.60e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/63280/cmap_HighResolution_560217601_560476801_4FGL_J2158.8-3013_daily_bin1238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.81e-08', energy_flux2='1.90e-04', photon_flux_error='3.58e-08', dlogl='9.18e-01', energy_flux='4.32e-05', photon_flux2='1.07e-08', job_status='DONE', time_completed='2021-09-27 22:40:27.731987', photon_index_error2='0.78', photon_index2='0.76', ts='6.36', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='2.60e-04', EG='0.23', time_epoch_completed='1632807627.73', return_code='0', job_id='63280', GAL2='1.31', EG2='0.24', return_code2='0', energy_flux_error='4.06e-05', photon_flux_error2='1.25e-08', ts2='8.19', photon_index='1.77' WHERE bin_id='1238' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:40:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 63280: <4FGL_J2158.8-3013_daily_bin1238> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1238> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:26:04 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:31:08 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:31:08 2021
Terminated at Mon Sep 27 22:40:28 2021
Results reported at Mon Sep 27 22:40:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1238 329.714 -30.2251 560217601 560476801 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 :                                   412.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            864 sec.

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

