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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1449
RA = 329.714, Dec = -30.2251
tmin = 614908801, tmax = 615168001
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='64392', job_status='RUN', time_executed='2021-09-27 22:33:39.524293', time_epoch_executed='1632807219.52' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64392

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64392/ft1_4FGL_J2158.8-3013_daily_bin1449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64392/ft2_4FGL_J2158.8-3013_daily_bin1449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64392/ft1_4FGL_J2158.8-3013_daily_bin1449.fits outfile=/scratch/kocevski/64392/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1449.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=614908801.0 tmax=615168001.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.58
user 3.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64392/ft1_filtered_4FGL_J2158.8-3013_daily_bin1449.fits" evtable="EVENTS" scfile=/scratch/kocevski/64392/ft2_4FGL_J2158.8-3013_daily_bin1449.fits sctable="SC_DATA" outfile=/scratch/kocevski/64392/ltcube_614908801_615168001_4FGL_J2158.8-3013_daily_bin1449.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/64392/ft2_4FGL_J2158.8-3013_daily_bin1449.fits
.....................!
real 15.23
user 14.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64392/ft1_filtered_4FGL_J2158.8-3013_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/64392/ft2_4FGL_J2158.8-3013_daily_bin1449.fits sctable="SC_DATA" expcube=/scratch/kocevski/64392/ltcube_614908801_615168001_4FGL_J2158.8-3013_daily_bin1449.fits outfile=/scratch/kocevski/64392/expmap_614908801_615168001_4FGL_J2158.8-3013_daily_bin1449.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/64392/ltcube_614908801_615168001_4FGL_J2158.8-3013_daily_bin1449.fits
.....................!
real 192.32
user 186.48
sys 5.25

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/64392/ft1_filtered_4FGL_J2158.8-3013_daily_bin1449.fits scfile=/scratch/kocevski/64392/ft2_4FGL_J2158.8-3013_daily_bin1449.fits outfile=/scratch/kocevski/64392/cmap_614908801_615168001_4FGL_J2158.8-3013_daily_bin1449.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64392/ft1_filtered_4FGL_J2158.8-3013_daily_bin1449.fits scfile=/scratch/kocevski/64392/ft2_4FGL_J2158.8-3013_daily_bin1449.fits outfile=/scratch/kocevski/64392/cmap_HighResolution_614908801_615168001_4FGL_J2158.8-3013_daily_bin1449.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/64392/ft1_filtered_4FGL_J2158.8-3013_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/64392/ft2_4FGL_J2158.8-3013_daily_bin1449.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64392/Model_4FGL_J2158.8-3013_daily_bin1449.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/64392/ft1_filtered_4FGL_J2158.8-3013_daily_bin1449.fits.....................!
real 46.02
user 44.76
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2231       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7459       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19279E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11160E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .89138       1.0000         .10000E-03   10000.    
     9 'norm      '    6.0707       1.0000         .10000E-03   10000.    
    10 'norm      '    .63338       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11153E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.783       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9310       1.0000         .10000E-03   10000.    
    14 'norm      '    18.937       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14182E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    48.271       1.0000         .10000E-03   10000.    
    20 'norm      '    .66694E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80149       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0868       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=   5183.046     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1694 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2186        2.2774        .30045E-06   -.32260E-02
   2  Prefactor     1.7421        5.4453       -.33233E-06    .46475E-03
   3  Prefactor     .23804E-03    201.68       -.13980E-04** at limit **
   4  Prefactor     .10021E-03    10.166        .40723E-06** at limit **
   5  Prefactor     .10000E-03    3.2890       -.87341E-06** at limit **
   6  norm          .10000E-03    5.6624       -.47093E-06** at limit **
   7  Prefactor     .10038E-03    5.7498        .49902E-07** at limit **
   8  Prefactor     .82433        36.791       -.48138E-05    .85152E-03
   9  norm          6.0762        5.9448       -.20883E-06   -.18053E-02
  10  norm          .63348        .33546        .58578E-07    .15351E-02
  11  Prefactor     .10000E-03    19.485        .14845E-05** at limit **
  12  Prefactor     11.765        13.983        .68030E-07    .22927E-02
  13  Prefactor     4.9244        1.2704       -.22178E-07    .50479E-03
  14  norm          18.939        2.1444        .32400E-07   -.15774E-03
  15  Prefactor     .10004E-03    10.784       -.12188E-05** at limit **
  16  Prefactor     .10000E-03    9.8312       -.17772E-05** at limit **
  17  norm          .10000E-03    .81412       -.65743E-06** at limit **
  18  Prefactor     .10009E-03    34.650        .13630E-05** at limit **
  19  Prefactor     48.280        9.6681       -.21695E-07   -.32554E-02
  20  norm          .70360E-03    676.13       -.24749E-04** at limit **
  21  Normalizat    .80174        .23426        .23396E-05    .30806E-03
  22  Prefactor     1.0871        .17399       -.71838E-06    .30769E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.21862
  Prefactor  = 1.74215
  Prefactor  = 0.000238036
  Prefactor  = 0.00010021
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100375
  Prefactor  = 0.824334
  norm       = 6.07622
  norm       = 0.633477
  Prefactor  = 0.000100002
  Prefactor  = 11.7655
  Prefactor  = 4.92437
  norm       = 18.9385
  Prefactor  = 0.000100037
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100089
  Prefactor  = 48.2802
  norm       = 0.000703603
  Normalizat = 0.801735
  Prefactor  = 1.08715
 **********
 **   18 **HESSE 
 **********

 FCN=   5183.046     FROM HESSE     STATUS=OK           404 CALLS     2098 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2186        6.3911        .68945E-02   -1.5410    
   2  Prefactor     1.7421        5.4898        .79353E-02   -1.5444    
   3  Prefactor     .23804E-03    6.9736        .91190E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10021E-03    13.577        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.6172        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10038E-03    12.866        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .82433        77.845        .16179       -1.5526    
   9  norm          6.0762        6.5282        .40738E-02   -1.5215    
  10  norm          .63348        .33650        .64781E-02   -1.5549    
  11  Prefactor     .10000E-03    19.059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.765        19.165        .29176E-02   -1.5022    
  13  Prefactor     4.9244        7.4289        .45280E-02   -1.5264    
  14  norm          18.939        18.581        .23010E-02   -1.4837    
  15  Prefactor     .10004E-03    11.868        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8211        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .81261        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10009E-03    34.775        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     48.280        19.054        .14429E-02   -1.4317    
  20  norm          .70360E-03    3.1349        .73788E-01   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .80174        .21793        .68435E-01   -1.0000    
  22  Prefactor     1.0871        .15161        .38109E-01   -.89878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30093e-07
Minuit parameter uncertainties:
  1  6.3931
  2  5.49134
  3  0.0620593
  4  0.00337557
  5  7.0277e-05
  6  5.52474e-05
  7  0.00439612
  8  16.0418
  9  6.529
  10  0.3365
  11  0.000431191
  12  19.175
  13  7.43034
  14  18.5865
  15  0.0013224
  16  0.000304642
  17  2.62277e-05
  18  0.00351141
  19  19.0563
  20  0.0870041
  21  0.218167
  22  0.151666
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  6.335e-01  3.365e-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.087e+00  1.517e-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.017e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.70
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 5.25e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 5.95e-05 +/- 3.16e-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) = 5182.99684828
delta logL = 0.0495211677153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5182.99509394
delta logL = 0.0512755081973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62063       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6446       1.0000          .0000       5.0000    
     3 'Normalizat'    .80769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0856       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=   5182.995     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      193 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62073        .36687        .65110E-02   -.77617E-04
   2  alpha         1.6449        .38810        .24784       -.15618E-04
   3  Normalizat    .80766        .20074        .68216E-01    .17806E-04
   4  Prefactor     1.0856        .14974        .38160E-01    .86020E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.620734
  alpha      = 1.64485
  Normalizat = 0.807659
  Prefactor  = 1.08562
 **********
 **   18 **HESSE 
 **********

 FCN=   5182.995     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62073        .33019        .28720E-04   -1.5550    
   2  alpha         1.6449        .37397        .10186E-01   -.34911    
   3  Normalizat    .80766        .23041        .30183E-03   -.99785    
   4  Prefactor     1.0856        .17249        .19666E-03   -.89927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91508e-13
Minuit parameter uncertainties:
  1  0.330194
  2  0.375566
  3  0.230689
  4  0.17258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64392': 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) = 5182.99509363
delta logL = 0.0512758117502

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  6.207e-01  3.302e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.645e+00  3.756e-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.086e+00  1.726e-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.077e-01  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.82
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.64 +/- 0.38
Photon Flux (Free Index): 4.54e-08 +/- 3.14e-08
Energy Flux (Free Index): 7.22e-05 +/- 5.88e-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/64392/cmap_HighResolution_614908801_615168001_4FGL_J2158.8-3013_daily_bin1449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.25e-08', energy_flux2='7.22e-05', photon_flux_error='2.79e-08', dlogl='5.13e-02', energy_flux='5.95e-05', photon_flux2='4.54e-08', job_status='DONE', time_completed='2021-09-27 22:41:51.968666', photon_index_error2='0.38', photon_index2='1.64', ts='13.70', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='5.88e-05', EG='0.80', time_epoch_completed='1632807711.97', return_code='0', job_id='64392', GAL2='1.09', EG2='0.81', return_code2='0', energy_flux_error='3.16e-05', photon_flux_error2='3.14e-08', ts2='13.82', photon_index='1.77' WHERE bin_id='1449' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:41:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 64392: <4FGL_J2158.8-3013_daily_bin1449> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1449 329.714 -30.2251 614908801 615168001 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 :                                   482.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   509 sec.
    Turnaround time :                            679 sec.

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

