/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 33 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 = 7603
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1110
RA = 329.714, Dec = -30.2251
tmin = 527040001, tmax = 527299201
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='63106', job_status='RUN', time_executed='2021-09-27 22:30:30.738601', time_epoch_executed='1632807030.74' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63106

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63106/ft1_4FGL_J2158.8-3013_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63106/ft2_4FGL_J2158.8-3013_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63106/ft1_4FGL_J2158.8-3013_daily_bin1110.fits outfile=/scratch/kocevski/63106/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1110.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.18
user 5.78
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63106/ft1_filtered_4FGL_J2158.8-3013_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/63106/ft2_4FGL_J2158.8-3013_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/63106/ltcube_527040001_527299201_4FGL_J2158.8-3013_daily_bin1110.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/63106/ft2_4FGL_J2158.8-3013_daily_bin1110.fits
.....................!
real 15.52
user 15.10
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63106/ft1_filtered_4FGL_J2158.8-3013_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/63106/ft2_4FGL_J2158.8-3013_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/63106/ltcube_527040001_527299201_4FGL_J2158.8-3013_daily_bin1110.fits outfile=/scratch/kocevski/63106/expmap_527040001_527299201_4FGL_J2158.8-3013_daily_bin1110.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/63106/ltcube_527040001_527299201_4FGL_J2158.8-3013_daily_bin1110.fits
.....................!
real 192.39
user 185.99
sys 5.87

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/63106/ft1_filtered_4FGL_J2158.8-3013_daily_bin1110.fits scfile=/scratch/kocevski/63106/ft2_4FGL_J2158.8-3013_daily_bin1110.fits outfile=/scratch/kocevski/63106/cmap_527040001_527299201_4FGL_J2158.8-3013_daily_bin1110.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63106/ft1_filtered_4FGL_J2158.8-3013_daily_bin1110.fits scfile=/scratch/kocevski/63106/ft2_4FGL_J2158.8-3013_daily_bin1110.fits outfile=/scratch/kocevski/63106/cmap_HighResolution_527040001_527299201_4FGL_J2158.8-3013_daily_bin1110.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63106/ft1_filtered_4FGL_J2158.8-3013_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/63106/ft2_4FGL_J2158.8-3013_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63106/Model_4FGL_J2158.8-3013_daily_bin1110.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/63106/ft1_filtered_4FGL_J2158.8-3013_daily_bin1110.fits.....................!
real 63.20
user 61.78
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92164       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.116       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25977       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22189E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.8790       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11448E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    83.667       1.0000         .10000E-03   10000.    
     9 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8747       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7799       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5511       1.0000         .10000E-03   10000.    
    14 'norm      '    38.285       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.692       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87030       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0486       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=   7493.865     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2430 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92149        3.7518        .85689E-08   -.23778E-05
   2  Prefactor     .10000E-03    4.7729       -.15999E-06** at limit **
   3  Prefactor     23.126        10.879        .11522E-07   -.13842E-03
   4  Prefactor     .34125        44.727        .13501E-04   -.24280E-03
   5  Prefactor     .10001E-03    10.280       -.58424E-05** at limit **
   6  norm          4.8801        7.1912       -.29900E-06   -.55337E-04
   7  Prefactor     .10000E-03    13.215        .21370E-05** at limit **
   8  Prefactor     83.555        63.256       -.39059E-05   -.17407E-03
   9  norm          .10000E-03    2.6868        .71221E-06** at limit **
  10  norm          1.8748        .44995        .43503E-07   -.67638E-03
  11  Prefactor     .10000E-03    5.1601        .23255E-06** at limit **
  12  Prefactor     5.7856        15.259        .33109E-06   -.22295E-04
  13  Prefactor     5.5594        9.9721       -.26079E-06   -.55999E-04
  14  norm          38.292        26.537        .17906E-06   -.23790E-04
  15  Prefactor     .10000E-03    20.694        .35805E-07** at limit **
  16  Prefactor     18.702        21.572        .35824E-06   -.26801E-04
  17  norm          .10000E-03    .72786       -.33895E-07** at limit **
  18  Prefactor     .10000E-03    17.594       -.39200E-06** at limit **
  19  Prefactor     .10000E-03    8.8288       -.15613E-06** at limit **
  20  norm          .10000E-03    1.9705       -.38019E-07** at limit **
  21  Normalizat    .86980        .20679       -.78326E-06   -.24875E-03
  22  Prefactor     1.0488        .13288        .14128E-06   -.81286E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.921493
  Prefactor  = 0.0001
  Prefactor  = 23.1257
  Prefactor  = 0.341245
  Prefactor  = 0.000100015
  norm       = 4.88009
  Prefactor  = 0.000100002
  Prefactor  = 83.5546
  norm       = 0.0001
  norm       = 1.87477
  Prefactor  = 0.0001
  Prefactor  = 5.7856
  Prefactor  = 5.55939
  norm       = 38.292
  Prefactor  = 0.0001
  Prefactor  = 18.7022
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.869801
  Prefactor  = 1.04881
 **********
 **   18 **HESSE 
 **********

 FCN=   7493.865     FROM HESSE     STATUS=OK           344 CALLS     2774 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92149        3.6368        .32650E-03   -1.5516    
   2  Prefactor     .10000E-03    4.9419        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.126        10.747        .83312E-04   -1.4746    
   4  Prefactor     .34125        77.484        .43877E-02   -1.5591    
   5  Prefactor     .10001E-03    17.929        .30941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.8801        7.2626        .91053E-03   -1.5266    
   7  Prefactor     .10000E-03    13.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     83.555        65.493        .21958E-03   -1.3877    
   9  norm          .10000E-03    2.7925        .13955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8748        .44977        .27153E-04   -1.5434    
  11  Prefactor     .10000E-03    5.2184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7856        15.255        .16706E-03   -1.5227    
  13  Prefactor     5.5594        10.166        .85260E-03   -1.5236    
  14  norm          38.292        26.538        .64776E-04   -1.4470    
  15  Prefactor     .10000E-03    20.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.702        21.593        .92638E-04   -1.4843    
  17  norm          .10000E-03    .72836        .72120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.8475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.9755        .11867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .86980        .22892        .31812E-03   -.97530    
  22  Prefactor     1.0488        .14532        .19957E-03   -.91120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69263e-09
Minuit parameter uncertainties:
  1  3.63771
  2  4.33659e-06
  3  10.7476
  4  10.2961
  5  0.00102325
  6  7.26395
  7  0.000322754
  8  65.5493
  9  6.73348e-05
  10  0.449768
  11  2.87395e-05
  12  15.2657
  13  10.1687
  14  26.5458
  15  8.45344e-05
  16  21.6018
  17  1.0752e-06
  18  2.89533e-05
  19  2.85744e-06
  20  1.48555e-06
  21  0.229176
  22  0.14537
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.875e+00  4.498e-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.049e+00  1.454e-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.698e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 79.48
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.55e-07 +/- 3.73e-08
Energy Flux (Fixed Index): 1.76e-04 +/- 4.23e-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) = 7493.74416715
delta logL = 0.121314014596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7493.73482174
delta logL = 0.130659425963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8486       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8654       1.0000          .0000       5.0000    
     3 'Normalizat'    .85337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0545       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=   7493.735     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8484        .66937        .60048E-02   -.12879E-02
   2  alpha         1.8655        .28699        .14706        .12395E-03
   3  Normalizat    .85326        .18454        .72476E-01   -.12035E-03
   4  Prefactor     1.0545        .12437        .39655E-01    .30162E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.8484
  alpha      = 1.86545
  Normalizat = 0.853262
  Prefactor  = 1.05452
 **********
 **   18 **HESSE 
 **********

 FCN=   7493.735     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8484        .44190        .26501E-04   -1.5436    
   2  alpha         1.8655        .19523        .62764E-02   -.25663    
   3  Normalizat    .85326        .21027        .32073E-03   -.98122    
   4  Prefactor     1.0545        .14270        .19903E-03   -.90933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23559e-10
Minuit parameter uncertainties:
  1  0.4419
  2  0.195441
  3  0.210474
  4  0.142755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63106': 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) = 7493.73482151
delta logL = 0.130659657796

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.848e+00  4.419e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.865e+00  1.954e-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.055e+00  1.428e-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.533e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 79.70
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.87 +/- 0.20
Photon Flux (Free Index): 1.72e-07 +/- 5.20e-08
Energy Flux (Free Index): 1.52e-04 +/- 5.61e-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/63106/cmap_HighResolution_527040001_527299201_4FGL_J2158.8-3013_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.55e-07', energy_flux2='1.52e-04', photon_flux_error='3.73e-08', dlogl='1.31e-01', energy_flux='1.76e-04', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-09-27 22:41:03.560685', photon_index_error2='0.20', photon_index2='1.87', ts='79.48', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='5.61e-05', EG='0.87', time_epoch_completed='1632807663.56', return_code='0', job_id='63106', GAL2='1.05', EG2='0.85', return_code2='0', energy_flux_error='4.23e-05', photon_flux_error2='5.20e-08', ts2='79.70', photon_index='1.77' WHERE bin_id='1110' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:41:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 63106: <4FGL_J2158.8-3013_daily_bin1110> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1110> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:25:50 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:29:43 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:29:43 2021
Terminated at Mon Sep 27 22:41:04 2021
Results reported at Mon Sep 27 22:41:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1110 329.714 -30.2251 527040001 527299201 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 :                                   623.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            914 sec.

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

