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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1661
RA = 329.714, Dec = -30.2251
tmin = 669859201, tmax = 670118401
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='85218', job_status='RUN', time_executed='2022-03-28 00:41:54.929589', time_epoch_executed='1648453314.93' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85218

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85218/ft1_4FGL_J2158.8-3013_daily_bin1661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85218/ft2_4FGL_J2158.8-3013_daily_bin1661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85218/ft1_4FGL_J2158.8-3013_daily_bin1661.fits outfile=/scratch/kocevski/85218/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1661.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=669859201.0 tmax=670118401.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.65
user 3.40
sys 0.21

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

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

Number of photons that the gtmktime cut: 520

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85218/ft1_filtered_4FGL_J2158.8-3013_daily_bin1661.fits" evtable="EVENTS" scfile=/scratch/kocevski/85218/ft2_4FGL_J2158.8-3013_daily_bin1661.fits sctable="SC_DATA" outfile=/scratch/kocevski/85218/ltcube_669859201_670118401_4FGL_J2158.8-3013_daily_bin1661.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/85218/ft2_4FGL_J2158.8-3013_daily_bin1661.fits
.....................!
real 11.86
user 11.47
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85218/ft1_filtered_4FGL_J2158.8-3013_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85218/ft2_4FGL_J2158.8-3013_daily_bin1661.fits sctable="SC_DATA" expcube=/scratch/kocevski/85218/ltcube_669859201_670118401_4FGL_J2158.8-3013_daily_bin1661.fits outfile=/scratch/kocevski/85218/expmap_669859201_670118401_4FGL_J2158.8-3013_daily_bin1661.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/85218/ltcube_669859201_670118401_4FGL_J2158.8-3013_daily_bin1661.fits
.....................!
real 191.27
user 185.16
sys 5.75

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/85218/ft1_filtered_4FGL_J2158.8-3013_daily_bin1661.fits scfile=/scratch/kocevski/85218/ft2_4FGL_J2158.8-3013_daily_bin1661.fits outfile=/scratch/kocevski/85218/cmap_669859201_670118401_4FGL_J2158.8-3013_daily_bin1661.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/85218/ft1_filtered_4FGL_J2158.8-3013_daily_bin1661.fits scfile=/scratch/kocevski/85218/ft2_4FGL_J2158.8-3013_daily_bin1661.fits outfile=/scratch/kocevski/85218/cmap_HighResolution_669859201_670118401_4FGL_J2158.8-3013_daily_bin1661.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/85218/ft1_filtered_4FGL_J2158.8-3013_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85218/ft2_4FGL_J2158.8-3013_daily_bin1661.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/85218/Model_4FGL_J2158.8-3013_daily_bin1661.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/85218/ft1_filtered_4FGL_J2158.8-3013_daily_bin1661.fits....................!
real 50.87
user 49.57
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.0994       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3470       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.390       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    30.571       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.405       1.0000         .10000E-03   10000.    
    10 'norm      '    .76342       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .74591E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.519       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.502       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .20060       1.0000         .10000E-03   10000.    
    18 'Prefactor '    93.316       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.212       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1954       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75342       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=   5747.378     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     2767 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2782        .11174E-02** at limit **
   2  Prefactor     1.0994        9.0145        .21580E-02    .11087E-02
   3  Prefactor     7.3484        11.727        .73986E-03    .32637E-04
   4  Prefactor     24.388        17.987        .81110E-04    .57607E-04
   5  Prefactor     .10000E-03    3.6478        .14122E-02** at limit **
   6  norm          30.570        15.004        .72466E-04    .30749E-04
   7  Prefactor     .10000E-03    16.519        .18142E-02** at limit **
   8  Prefactor     .10000E-03    37.550        .18142E-02** at limit **
   9  norm          14.406        7.1317        .10553E-03    .14350E-03
  10  norm          .76342        .37521        .30011E-04    .99628E-04
  11  Prefactor     .17060E-01    12.691        .61957E-01    .85649E-04
  12  Prefactor     36.518        25.809        .66318E-04   -.36514E-04
  13  Prefactor     .10000E-03    4.5163        .15695E-02** at limit **
  14  norm          .10000E-03    31.021        .18142E-02** at limit **
  15  Prefactor     30.493        23.746        .72547E-04   -.52027E-04
  16  Prefactor     .10000E-03    24.501        .18142E-02** at limit **
  17  norm          .19956        4.2612        .18444E-02    .23907E-03
  18  Prefactor     93.399        70.844        .20801E-03   -.22353E-04
  19  Prefactor     17.215        14.066        .96538E-04   -.30265E-04
  20  norm          .10000E-03    1.2752        .83546E-03** at limit **
  21  Normalizat    1.1951        .25703        .27040E-03   -.20419E-03
  22  Prefactor     .75363        .16612        .23361E-03   -.16814E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.09937
  Prefactor  = 7.3484
  Prefactor  = 24.3878
  Prefactor  = 0.0001
  norm       = 30.5695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.406
  norm       = 0.763416
  Prefactor  = 0.0170605
  Prefactor  = 36.5176
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.4929
  Prefactor  = 0.000100002
  norm       = 0.199562
  Prefactor  = 93.3986
  Prefactor  = 17.2154
  norm       = 0.0001
  Normalizat = 1.19511
  Prefactor  = 0.753634
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.378     FROM HESSE     STATUS=OK           336 CALLS     3103 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2782        .22348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0994        9.0048        .43159E-03   -1.5498    
   3  Prefactor     7.3484        11.718        .29594E-04   -1.5166    
   4  Prefactor     24.388        17.988        .32444E-05   -1.4720    
   5  Prefactor     .10000E-03    3.6480        .28244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          30.570        15.000        .28986E-05   -1.4602    
   7  Prefactor     .10000E-03    16.521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.406        7.1317        .42212E-05   -1.4949    
  10  norm          .76342        .37522        .12004E-05   -1.5533    
  11  Prefactor     .17060E-01    10.664        .69585E-01   -1.5682    
  12  Prefactor     36.518        25.800        .26527E-05   -1.4499    
  13  Prefactor     .10000E-03    4.5168        .31390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    31.030        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.493        23.746        .29019E-05   -1.4603    
  16  Prefactor     .10000E-03    24.519        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .19956        4.0980        .73774E-04   -1.5619    
  18  Prefactor     93.399        69.442        .83206E-05   -1.3772    
  19  Prefactor     17.215        14.066        .38615E-05   -1.4878    
  20  norm          .10000E-03    1.2752        .16709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1951        .25719        .54080E-04   -.86754    
  22  Prefactor     .75363        .16621        .93444E-05   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43418e-10
Minuit parameter uncertainties:
  1  4.99736e-08
  2  6.29374
  3  11.7218
  4  17.9921
  5  4.10466e-06
  6  15.002
  7  4.08499e-05
  8  0.000164909
  9  7.13211
  10  0.375218
  11  0.850736
  12  25.8083
  13  6.3139e-06
  14  1.06918e-05
  15  23.7538
  16  0.000444267
  17  1.80833
  18  69.5021
  19  14.0686
  20  2.50615e-07
  21  0.257462
  22  0.166321
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  7.634e-01  3.752e-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:  7.536e-01  1.663e-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:  1.195e+00  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.81
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 6.33e-08 +/- 3.11e-08
Energy Flux (Fixed Index): 7.17e-05 +/- 3.53e-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) = 5747.36691779
delta logL = 0.0112343497558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5747.36555058
delta logL = 0.0126015523738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74464       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7048       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75286       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=   5747.366     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74468        .43241        .68777E-02   -.48291E-04
   2  alpha         1.7049        .40335        .25638       -.11646E-04
   3  Normalizat    1.1991        .20028        .61067E-01    .61488E-05
   4  Prefactor     .75281        .14055        .43101E-01    .12321E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.744681
  alpha      = 1.70487
  Normalizat = 1.19909
  Prefactor  = 0.75281
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.366     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74468        .37970        .30256E-04   -1.5535    
   2  alpha         1.7049        .38885        .10245E-01   -.32367    
   3  Normalizat    1.1991        .23048        .27009E-03   -.86631    
   4  Prefactor     .75281        .16178        .23378E-03   -1.0149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28817e-13
Minuit parameter uncertainties:
  1  0.379701
  2  0.390614
  3  0.230671
  4  0.161879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85218': 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) = 5747.3655505
delta logL = 0.012601635025

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  7.447e-01  3.797e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.705e+00  3.906e-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:  7.528e-01  1.619e-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:  1.199e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.90
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.70 +/- 0.39
Photon Flux (Free Index): 5.77e-08 +/- 4.33e-08
Energy Flux (Free Index): 7.75e-05 +/- 5.40e-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/85218/cmap_HighResolution_669859201_670118401_4FGL_J2158.8-3013_daily_bin1661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.33e-08', energy_flux2='7.75e-05', photon_flux_error='3.11e-08', dlogl='1.26e-02', energy_flux='7.17e-05', photon_flux2='5.77e-08', job_status='DONE', time_completed='2022-03-28 00:51:05.485015', photon_index_error2='0.39', photon_index2='1.70', ts='26.81', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='5.40e-05', EG='1.20', time_epoch_completed='1648453865.49', return_code='0', job_id='85218', GAL2='0.75', EG2='1.20', return_code2='0', energy_flux_error='3.53e-05', photon_flux_error2='4.33e-08', ts2='26.90', photon_index='1.77' WHERE bin_id='1661' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 28 00:51:05 PDT 2022


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

Job <4FGL_J2158.8-3013_daily_bin1661> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 28 00:40:28 2022
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 28 00:40:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 28 00:40:29 2022
Terminated at Mon Mar 28 00:51:06 2022
Results reported at Mon Mar 28 00:51:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1661 329.714 -30.2251 669859201 670118401 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 :                                   552.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            638 sec.

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

