/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 75 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2158.8-3013_daily_bin168
RA = 329.714, Dec = -30.2251
tmin = 282873601, tmax = 283132801
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='58493', job_status='RUN', time_executed='2021-09-27 22:13:18.735832', time_epoch_executed='1632805998.74' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58493

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58493/ft1_4FGL_J2158.8-3013_daily_bin168.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58493/ft2_4FGL_J2158.8-3013_daily_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58493/ft1_4FGL_J2158.8-3013_daily_bin168.fits outfile=/scratch/kocevski/58493/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin168.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=282873601.0 tmax=283132801.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.31
user 3.07
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58493/ft1_filtered_4FGL_J2158.8-3013_daily_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/58493/ft2_4FGL_J2158.8-3013_daily_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/58493/ltcube_282873601_283132801_4FGL_J2158.8-3013_daily_bin168.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/58493/ft2_4FGL_J2158.8-3013_daily_bin168.fits
.....................!
real 13.04
user 12.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58493/ft1_filtered_4FGL_J2158.8-3013_daily_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/58493/ft2_4FGL_J2158.8-3013_daily_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/58493/ltcube_282873601_283132801_4FGL_J2158.8-3013_daily_bin168.fits outfile=/scratch/kocevski/58493/expmap_282873601_283132801_4FGL_J2158.8-3013_daily_bin168.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/58493/ltcube_282873601_283132801_4FGL_J2158.8-3013_daily_bin168.fits
.....................!
real 190.98
user 185.87
sys 4.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/58493/ft1_filtered_4FGL_J2158.8-3013_daily_bin168.fits scfile=/scratch/kocevski/58493/ft2_4FGL_J2158.8-3013_daily_bin168.fits outfile=/scratch/kocevski/58493/cmap_282873601_283132801_4FGL_J2158.8-3013_daily_bin168.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58493/ft1_filtered_4FGL_J2158.8-3013_daily_bin168.fits scfile=/scratch/kocevski/58493/ft2_4FGL_J2158.8-3013_daily_bin168.fits outfile=/scratch/kocevski/58493/cmap_HighResolution_282873601_283132801_4FGL_J2158.8-3013_daily_bin168.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/58493/ft1_filtered_4FGL_J2158.8-3013_daily_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/58493/ft2_4FGL_J2158.8-3013_daily_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58493/Model_4FGL_J2158.8-3013_daily_bin168.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/58493/ft1_filtered_4FGL_J2158.8-3013_daily_bin168.fits.....................!
real 60.32
user 58.92
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8082       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7617       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1085       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.650       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13267E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    11.495       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10824E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0420       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7681       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.872       1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7042       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5231       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.489       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .98903       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1761       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87454       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=   7262.088     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2350 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8091        5.9080        .13671E-06    .42916E-04
   2  Prefactor     1.7627        5.8592       -.35154E-05    .15192E-03
   3  Prefactor     2.0982        8.3713        .56111E-05    .38716E-03
   4  Prefactor     25.645        14.194       -.72944E-06    .17647E-03
   5  Prefactor     .10001E-03    57.544        .25175E-04** at limit **
   6  norm          11.495        6.7980       -.19779E-06   -.10971E-03
   7  Prefactor     .10000E-03    9.3685       -.46267E-06** at limit **
   8  Prefactor     .10000E-03    70.174       -.32482E-05** at limit **
   9  norm          .10000E-03    .94269        .50656E-07** at limit **
  10  norm          1.0420        .32923       -.51137E-07    .83864E-03
  11  Prefactor     .10000E-03    4.9809        .20605E-06** at limit **
  12  Prefactor     9.7744        12.632       -.24003E-06   -.34958E-04
  13  Prefactor     21.872        10.603       -.13226E-07   -.15854E-03
  14  norm          .10000E-03    4.5581        .24746E-06** at limit **
  15  Prefactor     .10000E-03    12.124        .28105E-06** at limit **
  16  Prefactor     2.7030        8.4047        .54450E-06   -.20501E-04
  17  norm          2.5228        2.0846       -.26752E-06   -.23003E-03
  18  Prefactor     39.515        42.680       -.28522E-06    .22797E-04
  19  Prefactor     .10000E-03    16.215        .43692E-07** at limit **
  20  norm          .98809        5.3440        .14826E-05    .37575E-04
  21  Normalizat    1.1761        .18707        .29521E-06    .37423E-03
  22  Prefactor     .87449        .12612       -.16273E-05   -.54165E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.80912
  Prefactor  = 1.76273
  Prefactor  = 2.09819
  Prefactor  = 25.6446
  Prefactor  = 0.000100015
  norm       = 11.4953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.04203
  Prefactor  = 0.0001
  Prefactor  = 9.77445
  Prefactor  = 21.8717
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.70298
  norm       = 2.52279
  Prefactor  = 39.5153
  Prefactor  = 0.000100001
  norm       = 0.988093
  Normalizat = 1.17613
  Prefactor  = 0.874487
 **********
 **   18 **HESSE 
 **********

 FCN=   7262.088     FROM HESSE     STATUS=OK           346 CALLS     2696 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8091        5.9053        .20684E-03   -1.5318    
   2  Prefactor     1.7627        5.8807        .15784E-02   -1.5442    
   3  Prefactor     2.0982        8.1945        .28413E-03   -1.5418    
   4  Prefactor     25.645        14.175        .79097E-04   -1.4695    
   5  Prefactor     .10001E-03    56.543        .33423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.495        6.7963        .59080E-03   -1.5030    
   7  Prefactor     .10000E-03    9.3848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    70.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .94713        .80760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0420        .32946        .26643E-04   -1.5504    
  11  Prefactor     .10000E-03    5.0261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.7744        12.640        .12822E-03   -1.5083    
  13  Prefactor     21.872        10.678        .85645E-04   -1.4772    
  14  norm          .10000E-03    4.5591        .17770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7030        8.3883        .24771E-03   -1.5379    
  17  norm          2.5228        2.0896        .10157E-03   -1.5390    
  18  Prefactor     39.515        42.735        .63784E-04   -1.4450    
  19  Prefactor     .10000E-03    16.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .98809        5.4692        .37613E-03   -1.5509    
  21  Normalizat    1.1761        .21239        .26485E-03   -.87344    
  22  Prefactor     .87449        .14791        .22071E-03   -.97038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64323e-09
Minuit parameter uncertainties:
  1  5.90618
  2  5.88264
  3  8.19888
  4  14.1767
  5  0.00181681
  6  6.79675
  7  0.000129115
  8  1.13877e-05
  9  1.47006e-05
  10  0.32946
  11  7.87189e-05
  12  12.6431
  13  10.6792
  14  2.09278e-06
  15  9.36449e-05
  16  8.39194
  17  2.08968
  18  42.7678
  19  0.000212108
  20  4.64977
  21  0.212542
  22  0.147975
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.042e+00  3.295e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.767e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  4.097e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  8.745e-01  1.480e-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.176e+00  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 49.26
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 8.64e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 9.79e-05 +/- 3.10e-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) = 7260.39317269
delta logL = 1.69506479216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7260.3931169
delta logL = 1.69512058808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95809       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3569       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86790       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=   7260.393     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      215 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95809        .31918         .0000       -.19006E-03
   2  alpha         1.3569        .19220         .0000       -.28442E-04
   3  Normalizat    1.2012        .17091         .0000        .37453E-04
   4  Prefactor     .86790        .12529         .0000        .38240E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.958092
  alpha      = 1.35693
  Normalizat = 1.20116
  Prefactor  = 0.867896
 **********
 **   18 **HESSE 
 **********

 FCN=   7260.393     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95809        .35238        .26826E-04   -1.5512    
   2  alpha         1.3569        .21748        .71253E-02   -.47488    
   3  Normalizat    1.2012        .19798        .26257E-03   -.86567    
   4  Prefactor     .86790        .14521        .22158E-03   -.97272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94621e-10
Minuit parameter uncertainties:
  1  0.352381
  2  0.217824
  3  0.198099
  4  0.145277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58493': 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) = 7260.3931169
delta logL = 1.69512058808

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  9.581e-01  3.524e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.357e+00  2.178e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  4.097e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  8.679e-01  1.453e-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.201e+00  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 52.61
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.36 +/- 0.22
Photon Flux (Free Index): 5.79e-08 +/- 2.35e-08
Energy Flux (Free Index): 2.18e-04 +/- 1.18e-04

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/58493/cmap_HighResolution_282873601_283132801_4FGL_J2158.8-3013_daily_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.64e-08', energy_flux2='2.18e-04', photon_flux_error='2.73e-08', dlogl='1.70e+00', energy_flux='9.79e-05', photon_flux2='5.79e-08', job_status='DONE', time_completed='2021-09-27 22:25:03.962367', photon_index_error2='0.22', photon_index2='1.36', ts='49.26', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.18e-04', EG='1.18', time_epoch_completed='1632806703.96', return_code='0', job_id='58493', GAL2='0.87', EG2='1.20', return_code2='0', energy_flux_error='3.10e-05', photon_flux_error2='2.35e-08', ts2='52.61', photon_index='1.77' WHERE bin_id='168' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:25:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 58493: <4FGL_J2158.8-3013_daily_bin168> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin168> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep 27 22:11:14 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:11:45 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:11:45 2021
Terminated at Mon Sep 27 22:25:04 2021
Results reported at Mon Sep 27 22:25:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin168 329.714 -30.2251 282873601 283132801 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 :                                   599.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            830 sec.

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

