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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1601
RA = 329.714, Dec = -30.2251
tmin = 654307201, tmax = 654566401
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='546571', job_status='RUN', time_executed='2021-09-29 00:27:38.506015', time_epoch_executed='1632900458.51' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546571

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546571/ft1_4FGL_J2158.8-3013_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546571/ft2_4FGL_J2158.8-3013_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546571/ft1_4FGL_J2158.8-3013_daily_bin1601.fits outfile=/scratch/kocevski/546571/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1601.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=654307201.0 tmax=654566401.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 4.25
user 4.01
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546571/ft2_4FGL_J2158.8-3013_daily_bin1601.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/546571/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/546571/ft1_filtered_4FGL_J2158.8-3013_daily_bin1601.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/546571/ft1_filtered_4FGL_J2158.8-3013_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/546571/ft2_4FGL_J2158.8-3013_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/546571/ltcube_654307201_654566401_4FGL_J2158.8-3013_daily_bin1601.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/546571/ft2_4FGL_J2158.8-3013_daily_bin1601.fits
.....................!
real 14.62
user 14.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546571/ft1_filtered_4FGL_J2158.8-3013_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/546571/ft2_4FGL_J2158.8-3013_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/546571/ltcube_654307201_654566401_4FGL_J2158.8-3013_daily_bin1601.fits outfile=/scratch/kocevski/546571/expmap_654307201_654566401_4FGL_J2158.8-3013_daily_bin1601.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/546571/ltcube_654307201_654566401_4FGL_J2158.8-3013_daily_bin1601.fits
.....................!
real 191.73
user 186.22
sys 5.18

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/546571/ft1_filtered_4FGL_J2158.8-3013_daily_bin1601.fits scfile=/scratch/kocevski/546571/ft2_4FGL_J2158.8-3013_daily_bin1601.fits outfile=/scratch/kocevski/546571/cmap_654307201_654566401_4FGL_J2158.8-3013_daily_bin1601.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546571/ft1_filtered_4FGL_J2158.8-3013_daily_bin1601.fits scfile=/scratch/kocevski/546571/ft2_4FGL_J2158.8-3013_daily_bin1601.fits outfile=/scratch/kocevski/546571/cmap_HighResolution_654307201_654566401_4FGL_J2158.8-3013_daily_bin1601.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/546571/ft1_filtered_4FGL_J2158.8-3013_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/546571/ft2_4FGL_J2158.8-3013_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/546571/Model_4FGL_J2158.8-3013_daily_bin1601.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/546571/ft1_filtered_4FGL_J2158.8-3013_daily_bin1601.fits.....................!
real 54.80
user 53.44
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5559       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4559       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15421E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    110.77       1.0000         .10000E-03   10000.    
     9 'norm      '    8.8090       1.0000         .10000E-03   10000.    
    10 'norm      '    .54707       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.847       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6944       1.0000         .10000E-03   10000.    
    14 'norm      '    .12579E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    62.230       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11672E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0433       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5545       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3447       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .68258       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2468       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6751.336     FROM MIGRAD    STATUS=CONVERGED    859 CALLS     3104 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7365        .15486E-02** at limit **
   2  Prefactor     .10000E-03    5.1436        .35832E-03** at limit **
   3  Prefactor     6.5520        8.5586        .15673E-03   -.22123E-04
   4  Prefactor     .10000E-03    4.2716        .16577E-02** at limit **
   5  Prefactor     .10000E-03    3.7084        .15418E-02** at limit **
   6  norm          4.4556        5.6337        .19076E-03   -.12873E-04
   7  Prefactor     .10000E-03    11.667        .18142E-02** at limit **
   8  Prefactor     110.74        51.984        .19109E-03   -.64253E-04
   9  norm          8.8090        4.5499        .57671E-03   -.13214E-03
  10  norm          .54716        .30960        .33018E-04   -.79194E-04
  11  Prefactor     15.848        11.636        .10061E-03    .50848E-04
  12  Prefactor     .10000E-03    6.9136        .18142E-02** at limit **
  13  Prefactor     1.6945        6.8180        .16165E-02    .67673E-03
  14  norm          .10000E-03    15.388        .10166    ** at limit **
  15  Prefactor     62.230        26.609        .50866E-04    .24764E-04
  16  Prefactor     .10000E-03    9.3392        .18142E-02** at limit **
  17  norm          .10000E-03    1.9460        .16366E-02** at limit **
  18  Prefactor     2.9804        93.812        .23258E-03   -.87984E-06
  19  Prefactor     4.5529        11.399        .18863E-03   -.39236E-04
  20  norm          2.3448        3.5792        .93865E-03    .42688E-03
  21  Normalizat    .68256        .23212        .33737E-03   -.66554E-04
  22  Prefactor     1.2469        .16263        .19427E-03   -.74578E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.55202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.45557
  Prefactor  = 0.0001
  Prefactor  = 110.739
  norm       = 8.809
  norm       = 0.547165
  Prefactor  = 15.8484
  Prefactor  = 0.0001
  Prefactor  = 1.69446
  norm       = 0.0001
  Prefactor  = 62.23
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.98041
  Prefactor  = 4.55293
  norm       = 2.3448
  Normalizat = 0.682557
  Prefactor  = 1.24687
 **********
 **   18 **HESSE 
 **********

 FCN=   6751.336     FROM HESSE     STATUS=OK           334 CALLS     3438 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7368        .30973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1438        .71664E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5520        8.5569        .62694E-05   -1.5196    
   4  Prefactor     .10000E-03    4.2718        .33155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7087        .30836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4556        5.6334        .76303E-05   -1.5286    
   7  Prefactor     .10000E-03    11.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     110.74        51.979        .76437E-05   -1.3599    
   9  norm          8.8090        4.5494        .23068E-04   -1.5114    
  10  norm          .54716        .30960        .13207E-05   -1.5560    
  11  Prefactor     15.848        11.635        .40245E-05   -1.4912    
  12  Prefactor     .10000E-03    6.9140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6945        6.7962        .32330E-03   -1.5448    
  14  norm          .10000E-03    15.062        .10355       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     62.230        26.605        .10173E-04   -1.4129    
  16  Prefactor     .10000E-03    9.3420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9469        .32732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9804        93.477        .93033E-05   -1.5363    
  19  Prefactor     4.5529        11.399        .75452E-05   -1.5281    
  20  norm          2.3448        3.5787        .18773E-03   -1.5402    
  21  Normalizat    .68256        .23199        .13495E-04   -1.0459    
  22  Prefactor     1.2469        .16269        .38854E-04   -.84901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83339e-11
Minuit parameter uncertainties:
  1  1.80859e-06
  2  1.00765e-06
  3  8.55854
  4  1.26856e-06
  5  4.54481e-06
  6  5.63412
  7  2.80049e-05
  8  52.0009
  9  4.54958
  10  0.309603
  11  11.6364
  12  1.9444e-06
  13  6.78816
  14  3.11423e-05
  15  26.6104
  16  3.29388e-06
  17  9.6522e-07
  18  33.4393
  19  11.4041
  20  3.57899
  21  0.232324
  22  0.162752
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.472e-01  3.096e-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.247e+00  1.628e-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:  6.826e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.80
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.53e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 5.14e-05 +/- 2.91e-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) = 6751.18318995
delta logL = 0.152789399344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6751.16945421
delta logL = 0.166525137424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51388       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5163       1.0000          .0000       5.0000    
     3 'Normalizat'    .68970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2458       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=   6751.169     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51385        .35564        .74381E-02    .17448E-03
   2  alpha         1.5162        .40187        .30642       -.36936E-04
   3  Normalizat    .68971        .18747        .75870E-01    .30689E-04
   4  Prefactor     1.2457        .14226        .33629E-01   -.25307E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.513848
  alpha      = 1.51624
  Normalizat = 0.689706
  Prefactor  = 1.24575
 **********
 **   18 **HESSE 
 **********

 FCN=   6751.169     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51385        .32038        .33186E-04   -1.5565    
   2  alpha         1.5162        .42125        .11746E-01   -.40444    
   3  Normalizat    .68971        .20996        .33587E-03   -1.0430    
   4  Prefactor     1.2457        .15982        .19443E-03   -.84935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46657e-10
Minuit parameter uncertainties:
  1  0.320386
  2  0.423647
  3  0.2102
  4  0.159884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546571': 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) = 6751.16945419
delta logL = 0.166525159376

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.138e-01  3.204e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.516e+00  4.236e-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.246e+00  1.599e-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:  6.897e-01  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.15
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.52 +/- 0.42
Photon Flux (Free Index): 3.38e-08 +/- 2.67e-08
Energy Flux (Free Index): 7.86e-05 +/- 7.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/546571/cmap_HighResolution_654307201_654566401_4FGL_J2158.8-3013_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.53e-08', energy_flux2='7.86e-05', photon_flux_error='2.57e-08', dlogl='1.67e-01', energy_flux='5.14e-05', photon_flux2='3.38e-08', job_status='DONE', time_completed='2021-09-29 00:38:06.783346', photon_index_error2='0.42', photon_index2='1.52', ts='7.80', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='7.32e-05', EG='0.68', time_epoch_completed='1632901086.78', return_code='0', job_id='546571', GAL2='1.25', EG2='0.69', return_code2='0', energy_flux_error='2.91e-05', photon_flux_error2='2.67e-08', ts2='8.15', photon_index='1.77' WHERE bin_id='1601' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:38:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 546571: <4FGL_J2158.8-3013_daily_bin1601> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1601> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 00:25:26 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:25:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:25:29 2021
Terminated at Wed Sep 29 00:38:07 2021
Results reported at Wed Sep 29 00:38:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1601 329.714 -30.2251 654307201 654566401 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 :                                   631.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            761 sec.

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

