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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1421
RA = 329.714, Dec = -30.2251
tmin = 607651201, tmax = 607910401
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='64346', job_status='RUN', time_executed='2021-09-27 22:33:24.674250', time_epoch_executed='1632807204.67' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64346

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64346/ft1_4FGL_J2158.8-3013_daily_bin1421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64346/ft2_4FGL_J2158.8-3013_daily_bin1421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64346/ft1_4FGL_J2158.8-3013_daily_bin1421.fits outfile=/scratch/kocevski/64346/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1421.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=607651201.0 tmax=607910401.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.89
user 3.64
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64346/ft1_filtered_4FGL_J2158.8-3013_daily_bin1421.fits" evtable="EVENTS" scfile=/scratch/kocevski/64346/ft2_4FGL_J2158.8-3013_daily_bin1421.fits sctable="SC_DATA" outfile=/scratch/kocevski/64346/ltcube_607651201_607910401_4FGL_J2158.8-3013_daily_bin1421.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/64346/ft2_4FGL_J2158.8-3013_daily_bin1421.fits
.....................!
real 15.56
user 15.15
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64346/ft1_filtered_4FGL_J2158.8-3013_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/64346/ft2_4FGL_J2158.8-3013_daily_bin1421.fits sctable="SC_DATA" expcube=/scratch/kocevski/64346/ltcube_607651201_607910401_4FGL_J2158.8-3013_daily_bin1421.fits outfile=/scratch/kocevski/64346/expmap_607651201_607910401_4FGL_J2158.8-3013_daily_bin1421.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/64346/ltcube_607651201_607910401_4FGL_J2158.8-3013_daily_bin1421.fits
.....................!
real 195.09
user 188.78
sys 5.10

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/64346/ft1_filtered_4FGL_J2158.8-3013_daily_bin1421.fits scfile=/scratch/kocevski/64346/ft2_4FGL_J2158.8-3013_daily_bin1421.fits outfile=/scratch/kocevski/64346/cmap_607651201_607910401_4FGL_J2158.8-3013_daily_bin1421.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64346/ft1_filtered_4FGL_J2158.8-3013_daily_bin1421.fits scfile=/scratch/kocevski/64346/ft2_4FGL_J2158.8-3013_daily_bin1421.fits outfile=/scratch/kocevski/64346/cmap_HighResolution_607651201_607910401_4FGL_J2158.8-3013_daily_bin1421.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64346/ft1_filtered_4FGL_J2158.8-3013_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/64346/ft2_4FGL_J2158.8-3013_daily_bin1421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64346/Model_4FGL_J2158.8-3013_daily_bin1421.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/64346/ft1_filtered_4FGL_J2158.8-3013_daily_bin1421.fits.....................!
real 63.13
user 61.80
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0866       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .59234       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.1711       1.0000         .10000E-03   10000.    
    10 'norm      '    .96269       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8477       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .73741E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    8.2813       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.128       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11216E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1854       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .59854E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93322       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88606       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=   8093.762     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2111 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8558       -.11054E-06** at limit **
   2  Prefactor     7.0866        4.7472       -.12602E-08    .68757E-04
   3  Prefactor     .10000E-03    2.1531       -.31211E-06** at limit **
   4  Prefactor     .10000E-03    10.165        .21776E-06** at limit **
   5  Prefactor     .10000E-03    3.7976       -.21305E-06** at limit **
   6  norm          .58505        11.742       -.31667E-05    .25501E-03
   7  Prefactor     .10000E-03    4.4582       -.86299E-06** at limit **
   8  Prefactor     .10000E-03    17.714       -.15759E-05** at limit **
   9  norm          4.1708        3.8214       -.96904E-07    .11301E-03
  10  norm          .96274        .31801        .15246E-07    .11842E-02
  11  Prefactor     4.8535        8.6239        .35631E-06    .24974E-03
  12  Prefactor     .10000E-03    4.9371        .73855E-06** at limit **
  13  Prefactor     .10001E-03    87.971       -.23987E-04** at limit **
  14  norm          8.2813        8.4729       -.13567E-06    .55186E-04
  15  Prefactor     36.160        20.179        .42512E-06    .45614E-03
  16  Prefactor     .10000E-03    7.1552       -.41326E-06** at limit **
  17  norm          4.1806        2.1091       -.10277E-05    .31324E-03
  18  Prefactor     .10776E-03    6811.5       -.84521E-05** at limit **
  19  Prefactor     .10000E-03    4.4481        .90130E-07** at limit **
  20  norm          .10000E-03    1.1823        .77778E-07** at limit **
  21  Normalizat    .93303        .16795       -.46238E-06    .67773E-03
  22  Prefactor     .88608        .11903        .14890E-05    .15719E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.08661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.585045
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.17081
  norm       = 0.962744
  Prefactor  = 4.85353
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 8.28126
  Prefactor  = 36.1605
  Prefactor  = 0.0001
  norm       = 4.18058
  Prefactor  = 0.000107758
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.933027
  Prefactor  = 0.886076
 **********
 **   18 **HESSE 
 **********

 FCN=   8093.762     FROM HESSE     STATUS=OK           354 CALLS     2465 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8589        .11971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.0866        4.7487        .15069E-03   -1.5175    
   3  Prefactor     .10000E-03    2.1730        .12909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8547        .17139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .58505        11.905        .29115E-02   -1.5555    
   7  Prefactor     .10000E-03    4.4788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.1708        3.8129        .14798E-03   -1.5299    
  10  norm          .96274        .31842        .26664E-04   -1.5512    
  11  Prefactor     4.8535        8.6405        .18270E-03   -1.5267    
  12  Prefactor     .10000E-03    4.9389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    5.3876        .52317E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.2813        8.4796        .13931E-03   -1.5132    
  15  Prefactor     36.160        20.223        .66675E-04   -1.4505    
  16  Prefactor     .10000E-03    7.3072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1806        2.3816        .90147E-04   -1.5299    
  18  Prefactor     .10776E-03    44.469        .14053       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.5553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1893        .95546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93303        .17794        .25374E-03   -.95309    
  22  Prefactor     .88608        .12599        .19546E-03   -.96629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50372e-09
Minuit parameter uncertainties:
  1  4.50635e-06
  2  4.74893
  3  1.72979e-05
  4  8.6772e-07
  5  1.57865e-05
  6  5.27908
  7  8.09067e-05
  8  0.000325909
  9  3.81314
  10  0.318421
  11  8.6427
  12  3.58904e-05
  13  0.000490453
  14  8.48078
  15  20.2267
  16  7.19674e-05
  17  2.38161
  18  0.0371746
  19  1.94769e-05
  20  3.5327e-06
  21  0.178056
  22  0.126029
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  9.627e-01  3.184e-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:  8.861e-01  1.260e-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:  9.330e-01  1.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.46
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 7.98e-08 +/- 2.64e-08
Energy Flux (Fixed Index): 9.05e-05 +/- 2.99e-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) = 8093.41410097
delta logL = 0.34814031196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8093.41401712
delta logL = 0.348224161336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93139       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9976       1.0000          .0000       5.0000    
     3 'Normalizat'    .90784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89542       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=   8093.414     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      211 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93139        3.5681        .54985E-02    .15916E-02
   2  alpha         1.9976        3.4850        .20089        .88519E-04
   3  Normalizat    .90783        .11500        .45002E-01   -.33743E-04
   4  Prefactor     .89542        .57023E-01    .44947E-01   -.44262E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.931394
  alpha      = 1.99761
  Normalizat = 0.907834
  Prefactor  = 0.89542
 **********
 **   18 **HESSE 
 **********

 FCN=   8093.414     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93139        .29229        .24319E-04   -1.5515    
   2  alpha         1.9976        .27784        .79395E-02   -.20234    
   3  Normalizat    .90783        .16656        .25648E-03   -.96185    
   4  Prefactor     .89542        .12403        .19440E-03   -.96301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85231e-11
Minuit parameter uncertainties:
  1  0.292287
  2  0.278439
  3  0.166654
  4  0.12407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64346': 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) = 8093.41401712
delta logL = 0.348224161527

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  9.314e-01  2.923e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.998e+00  2.784e-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:  8.954e-01  1.241e-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:  9.078e-01  1.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 44.25
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 2.00 +/- 0.28
Photon Flux (Free Index): 1.03e-07 +/- 4.04e-08
Energy Flux (Free Index): 6.71e-05 +/- 2.94e-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/64346/cmap_HighResolution_607651201_607910401_4FGL_J2158.8-3013_daily_bin1421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.98e-08', energy_flux2='6.71e-05', photon_flux_error='2.64e-08', dlogl='3.48e-01', energy_flux='9.05e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-27 22:43:54.605085', photon_index_error2='0.28', photon_index2='2.00', ts='43.46', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.94e-05', EG='0.93', time_epoch_completed='1632807834.61', return_code='0', job_id='64346', GAL2='0.90', EG2='0.91', return_code2='0', energy_flux_error='2.99e-05', photon_flux_error2='4.04e-08', ts2='44.25', photon_index='1.77' WHERE bin_id='1421' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:43:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 64346: <4FGL_J2158.8-3013_daily_bin1421> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1421> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:30:31 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:33:07 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:33:07 2021
Terminated at Mon Sep 27 22:43:55 2021
Results reported at Mon Sep 27 22:43:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1421 329.714 -30.2251 607651201 607910401 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 :                                   622.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            804 sec.

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

