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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin693
RA = 329.714, Dec = -30.2251
tmin = 418953601, tmax = 419212801
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='61373', job_status='RUN', time_executed='2021-09-27 22:24:53.908232', time_epoch_executed='1632806693.91' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61373

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61373/ft1_4FGL_J2158.8-3013_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61373/ft2_4FGL_J2158.8-3013_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61373/ft1_4FGL_J2158.8-3013_daily_bin693.fits outfile=/scratch/kocevski/61373/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin693.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.63
user 5.28
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61373/ft1_filtered_4FGL_J2158.8-3013_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/61373/ft2_4FGL_J2158.8-3013_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/61373/ltcube_418953601_419212801_4FGL_J2158.8-3013_daily_bin693.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/61373/ft2_4FGL_J2158.8-3013_daily_bin693.fits
.....................!
real 14.19
user 13.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61373/ft1_filtered_4FGL_J2158.8-3013_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/61373/ft2_4FGL_J2158.8-3013_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/61373/ltcube_418953601_419212801_4FGL_J2158.8-3013_daily_bin693.fits outfile=/scratch/kocevski/61373/expmap_418953601_419212801_4FGL_J2158.8-3013_daily_bin693.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/61373/ltcube_418953601_419212801_4FGL_J2158.8-3013_daily_bin693.fits
.....................!
real 192.43
user 186.37
sys 5.21

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/61373/ft1_filtered_4FGL_J2158.8-3013_daily_bin693.fits scfile=/scratch/kocevski/61373/ft2_4FGL_J2158.8-3013_daily_bin693.fits outfile=/scratch/kocevski/61373/cmap_418953601_419212801_4FGL_J2158.8-3013_daily_bin693.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61373/ft1_filtered_4FGL_J2158.8-3013_daily_bin693.fits scfile=/scratch/kocevski/61373/ft2_4FGL_J2158.8-3013_daily_bin693.fits outfile=/scratch/kocevski/61373/cmap_HighResolution_418953601_419212801_4FGL_J2158.8-3013_daily_bin693.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/61373/ft1_filtered_4FGL_J2158.8-3013_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/61373/ft2_4FGL_J2158.8-3013_daily_bin693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61373/Model_4FGL_J2158.8-3013_daily_bin693.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/61373/ft1_filtered_4FGL_J2158.8-3013_daily_bin693.fits.....................!
real 63.01
user 61.57
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.8139       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.348       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.619       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5406       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9294       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.593       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6719       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11763E-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'    1.1515       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0246       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=   7286.832     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     1982 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4226        .23127E-07** at limit **
   2  Prefactor     1.8138        3.4449       -.21322E-06   -.42809E-03
   3  Prefactor     25.345        11.064        .63225E-07   -.19742E-03
   4  Prefactor     .10000E-03    7.9321       -.75039E-05** at limit **
   5  Prefactor     .10000E-03    10.910        .50300E-05** at limit **
   6  norm          .10000E-03    11.496       -.12524E-05** at limit **
   7  Prefactor     .10000E-03    12.604       -.71048E-05** at limit **
   8  Prefactor     .10000E-03    66.378        .36530E-04** at limit **
   9  norm          15.613        6.6546       -.29203E-07   -.22747E-03
  10  norm          1.5406        .49082       -.39334E-08   -.26111E-03
  11  Prefactor     7.9260        12.317        .15115E-05   -.10222E-03
  12  Prefactor     .10000E-03    9.0177        .87617E-05** at limit **
  13  Prefactor     .10000E-03    4.4495       -.50785E-07** at limit **
  14  norm          17.573        22.735       -.97364E-05    .13069E-04
  15  Prefactor     .10000E-03    15.654        .52044E-05** at limit **
  16  Prefactor     .10000E-03    12.174       -.43220E-05** at limit **
  17  norm          1.6703        2.0352        .24447E-06    .37767E-03
  18  Prefactor     .10000E-03    72.905       -.41370E-04** at limit **
  19  Prefactor     .10000E-03    6.6454        .13982E-05** at limit **
  20  norm          .10000E-03    1.5956        .36416E-07** at limit **
  21  Normalizat    1.1517        .20933        .24181E-06   -.47814E-04
  22  Prefactor     1.0245        .13480        .72901E-08   -.39272E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.81379
  Prefactor  = 25.3451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.6132
  norm       = 1.5406
  Prefactor  = 7.92603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.67031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.15166
  Prefactor  = 1.02453
 **********
 **   18 **HESSE 
 **********

 FCN=   7286.832     FROM HESSE     STATUS=OK           338 CALLS     2320 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4253        .12976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8138        3.4120        .21271E-03   -1.5439    
   3  Prefactor     25.345        11.075        .79565E-04   -1.4701    
   4  Prefactor     .10000E-03    7.9710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    66.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.613        6.6958        .10134E-03   -1.4917    
  10  norm          1.5406        .49178        .31234E-04   -1.5460    
  11  Prefactor     7.9260        12.321        .14239E-03   -1.5145    
  12  Prefactor     .10000E-03    9.0275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.4640        .17582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.573        22.737        .95488E-04   -1.4869    
  15  Prefactor     .10000E-03    15.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6703        2.0284        .13103E-03   -1.5449    
  18  Prefactor     .10000E-03    73.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.6563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.5963        .10531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1517        .24483        .31024E-03   -.88110    
  22  Prefactor     1.0245        .15734        .21861E-03   -.91916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06358e-10
Minuit parameter uncertainties:
  1  3.35238e-08
  2  3.41238
  3  11.0763
  4  3.81854e-06
  5  4.0271e-05
  6  2.55076e-06
  7  9.57022e-06
  8  7.79126e-05
  9  6.69614
  10  0.491782
  11  12.325
  12  6.61067e-06
  13  1.04644e-06
  14  22.7478
  15  5.16128e-06
  16  2.19917e-05
  17  2.02845
  18  0.000216034
  19  1.01915e-06
  20  1.83465e-06
  21  0.24507
  22  0.157407
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.541e+00  4.918e-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.025e+00  1.574e-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.152e+00  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 48.47
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 4.07e-08
Energy Flux (Fixed Index): 1.45e-04 +/- 4.62e-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) = 7286.38949329
delta logL = 0.442854940477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7286.38700289
delta logL = 0.445345333295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5315       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9989       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1143       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0363       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=   7286.387     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      237 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5314        6.1457        .65819E-02    .41845E-04
   2  alpha         1.9989        3.4938        .17750        .38971E-04
   3  Normalizat    1.1143        .24848        .70998E-01    .16775E-04
   4  Prefactor     1.0363        .11416        .40791E-01    .77860E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.53141
  alpha      = 1.99887
  Normalizat = 1.11432
  Prefactor  = 1.03626
 **********
 **   18 **HESSE 
 **********

 FCN=   7286.387     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5314        .45367        .29081E-04   -1.5460    
   2  alpha         1.9989        .24626        .73539E-02   -.20182    
   3  Normalizat    1.1143        .23731        .31416E-03   -.89293    
   4  Prefactor     1.0363        .15727        .21727E-03   -.91531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69704e-10
Minuit parameter uncertainties:
  1  0.453675
  2  0.246678
  3  0.237538
  4  0.157345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61373': 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) = 7286.38700282
delta logL = 0.445345407103

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.531e+00  4.537e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.999e+00  2.467e-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.036e+00  1.573e-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.114e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 49.57
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 2.00 +/- 0.25
Photon Flux (Free Index): 1.70e-07 +/- 6.62e-08
Energy Flux (Free Index): 1.10e-04 +/- 4.26e-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/61373/cmap_HighResolution_418953601_419212801_4FGL_J2158.8-3013_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='1.10e-04', photon_flux_error='4.07e-08', dlogl='4.45e-01', energy_flux='1.45e-04', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-27 22:34:35.425374', photon_index_error2='0.25', photon_index2='2.00', ts='48.47', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.26e-05', EG='1.15', time_epoch_completed='1632807275.43', return_code='0', job_id='61373', GAL2='1.04', EG2='1.11', return_code2='0', energy_flux_error='4.62e-05', photon_flux_error2='6.62e-08', ts2='49.57', photon_index='1.77' WHERE bin_id='693' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:34:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 61373: <4FGL_J2158.8-3013_daily_bin693> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin693> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 22:20:31 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:21:29 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:21:29 2021
Terminated at Mon Sep 27 22:34:36 2021
Results reported at Mon Sep 27 22:34:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin693 329.714 -30.2251 418953601 419212801 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 :                                   577.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             256.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            845 sec.

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

