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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1413
RA = 329.714, Dec = -30.2251
tmin = 605577601, tmax = 605836801
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='64333', job_status='RUN', time_executed='2021-09-27 22:34:06.515520', time_epoch_executed='1632807246.52' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64333/ft1_4FGL_J2158.8-3013_daily_bin1413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64333/ft2_4FGL_J2158.8-3013_daily_bin1413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64333/ft1_4FGL_J2158.8-3013_daily_bin1413.fits outfile=/scratch/kocevski/64333/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1413.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=605577601.0 tmax=605836801.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.03
user 4.78
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/64333/ft2_4FGL_J2158.8-3013_daily_bin1413.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/64333/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1413.fits evtable="EVENTS" outfile="/scratch/kocevski/64333/ft1_filtered_4FGL_J2158.8-3013_daily_bin1413.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64333/ft1_filtered_4FGL_J2158.8-3013_daily_bin1413.fits" evtable="EVENTS" scfile=/scratch/kocevski/64333/ft2_4FGL_J2158.8-3013_daily_bin1413.fits sctable="SC_DATA" outfile=/scratch/kocevski/64333/ltcube_605577601_605836801_4FGL_J2158.8-3013_daily_bin1413.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/64333/ft2_4FGL_J2158.8-3013_daily_bin1413.fits
.....................!
real 14.36
user 14.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64333/ft1_filtered_4FGL_J2158.8-3013_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/64333/ft2_4FGL_J2158.8-3013_daily_bin1413.fits sctable="SC_DATA" expcube=/scratch/kocevski/64333/ltcube_605577601_605836801_4FGL_J2158.8-3013_daily_bin1413.fits outfile=/scratch/kocevski/64333/expmap_605577601_605836801_4FGL_J2158.8-3013_daily_bin1413.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/64333/ltcube_605577601_605836801_4FGL_J2158.8-3013_daily_bin1413.fits
.....................!
real 191.65
user 185.52
sys 5.73

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/64333/ft1_filtered_4FGL_J2158.8-3013_daily_bin1413.fits scfile=/scratch/kocevski/64333/ft2_4FGL_J2158.8-3013_daily_bin1413.fits outfile=/scratch/kocevski/64333/cmap_605577601_605836801_4FGL_J2158.8-3013_daily_bin1413.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64333/ft1_filtered_4FGL_J2158.8-3013_daily_bin1413.fits scfile=/scratch/kocevski/64333/ft2_4FGL_J2158.8-3013_daily_bin1413.fits outfile=/scratch/kocevski/64333/cmap_HighResolution_605577601_605836801_4FGL_J2158.8-3013_daily_bin1413.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/64333/ft1_filtered_4FGL_J2158.8-3013_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/64333/ft2_4FGL_J2158.8-3013_daily_bin1413.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64333/Model_4FGL_J2158.8-3013_daily_bin1413.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/64333/ft1_filtered_4FGL_J2158.8-3013_daily_bin1413.fits.....................!
real 42.98
user 41.64
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.100       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94141E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    105.41       1.0000         .10000E-03   10000.    
     9 'norm      '    .54044       1.0000         .10000E-03   10000.    
    10 'norm      '    .32733       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3006       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11970E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12678E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.954       1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3463       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96636       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=   4518.951     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2442 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6640       -.31041E-07** at limit **
   2  Prefactor     .10000E-03    2.8601       -.46565E-07** at limit **
   3  Prefactor     22.109        13.042        .14066E-06    .12467E-03
   4  Prefactor     .10000E-03    28.696       -.11217E-05** at limit **
   5  Prefactor     .10001E-03    73.330        .36005E-05** at limit **
   6  norm          .10000E-03    9.0474       -.19180E-06** at limit **
   7  Prefactor     .10000E-03    18.321       -.23914E-05** at limit **
   8  Prefactor     105.31        91.649       -.67440E-06    .45577E-04
   9  norm          .53516        6.0609       -.33846E-06    .29445E-03
  10  norm          .32731        .32239        .60305E-07    .61147E-03
  11  Prefactor     .10000E-03    3.8497       -.19568E-06** at limit **
  12  Prefactor     .10000E-03    6.8407       -.11222E-06** at limit **
  13  Prefactor     2.2959        11.232       -.16392E-05    .20478E-04
  14  norm          .10000E-03    8.1603        .39880E-07** at limit **
  15  Prefactor     .10000E-03    10.490        .80312E-07** at limit **
  16  Prefactor     .10000E-03    40.352       -.29437E-05** at limit **
  17  norm          .10000E-03    1.9836       -.16035E-06** at limit **
  18  Prefactor     .10000E-03    135.38       -.43809E-05** at limit **
  19  Prefactor     23.943        21.002       -.25799E-06    .24688E-04
  20  norm          .10000E-03    2.2848       -.27954E-07** at limit **
  21  Normalizat    1.3467        .26968        .23686E-05    .12951E-03
  22  Prefactor     .96615        .17523        .13780E-06    .24695E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1094
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 105.311
  norm       = 0.535165
  norm       = 0.327313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29595
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.9434
  norm       = 0.0001
  Normalizat = 1.34666
  Prefactor  = 0.96615
 **********
 **   18 **HESSE 
 **********

 FCN=   4518.951     FROM HESSE     STATUS=OK           338 CALLS     2780 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6691        .12568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.8637        .11104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.109        12.690        .85203E-04   -1.4767    
   4  Prefactor     .10000E-03    29.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    77.347        .39886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.1058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     105.31        93.238        .19584E-03   -1.3652    
   9  norm          .53516        21.362        .24823E-02   -1.5562    
  10  norm          .32731        .31698        .35934E-04   -1.5594    
  11  Prefactor     .10000E-03    3.8534        .12884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.8445        .17174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2959        11.390        .13528E-02   -1.5405    
  14  norm          .10000E-03    8.1609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6411        .18432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    135.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.943        21.112        .81844E-04   -1.4729    
  20  norm          .10000E-03    2.2951        .99237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3467        .31185        .28390E-03   -.82184    
  22  Prefactor     .96615        .20631        .23156E-03   -.93866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0276e-09
Minuit parameter uncertainties:
  1  1.1472e-06
  2  1.91015e-06
  3  12.6915
  4  6.43732e-05
  5  0.00136125
  6  1.35714e-05
  7  9.02294e-05
  8  93.3684
  9  6.7643
  10  0.316977
  11  4.62453e-07
  12  1.95659e-06
  13  10.2303
  14  1.78465e-06
  15  6.45178e-06
  16  5.50371e-05
  17  4.02204e-06
  18  0.000175061
  19  21.1185
  20  1.76036e-06
  21  0.312291
  22  0.206482
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  3.273e-01  3.170e-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:  9.661e-01  2.065e-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.347e+00  3.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.06
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.71e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 2.98e-05

TS (Fixed Index): 3.06
Ra Dec: 329.714 -30.225
Photon Flux Upper Limit: 9.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/64333/likelihoodResults_605577601_605836801_4FGL_J2158.8-3013_daily_bin1413.txt

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) = 4518.91663975
delta logL = 0.0340369965661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4518.90376782
delta logL = 0.0469089255521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26886       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5093       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96567       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=   4518.904     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26806        .28033        .76684E-02   -.13755E-03
   2  alpha         1.5085        .54997        .40846       -.24702E-04
   3  Normalizat    1.3539        .24653        .64047E-01    .52394E-05
   4  Prefactor     .96559        .17435        .45837E-01    .13815E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.268062
  alpha      = 1.50847
  Normalizat = 1.35394
  Prefactor  = 0.965593
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26806        .34965        .33983E-04   -1.5604    
   2  alpha         1.5085        .80861        .15157E-01   -.40782    
   3  Normalizat    1.3539        .28780        .28330E-03   -.81970    
   4  Prefactor     .96559        .20374        .23167E-03   -.93885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34163e-09
Minuit parameter uncertainties:
  1  0.349657
  2  0.826355
  3  0.288143
  4  0.203901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64333': 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) = 4518.90376313
delta logL = 0.0469136201464

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  2.681e-01  3.497e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.508e+00  8.264e-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:  9.656e-01  2.039e-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.354e+00  2.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.15
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.51 +/- 0.83
Photon Flux (Free Index): 1.75e-08 +/- 3.02e-08
Energy Flux (Free Index): 4.17e-05 +/- 6.16e-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/64333/cmap_HighResolution_605577601_605836801_4FGL_J2158.8-3013_daily_bin1413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-04', comment='SUCCESS', photon_flux='2.71e-08', energy_flux2='4.17e-05', photon_flux_error='2.63e-08', dlogl='4.69e-02', energy_flux='3.08e-05', photon_flux2='1.75e-08', job_status='DONE', time_completed='2021-09-27 22:43:15.373962', photon_index_error2='0.83', photon_index2='1.51', ts='3.06', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.95e-08', energy_flux_error2='6.16e-05', EG='1.35', time_epoch_completed='1632807795.37', return_code='0', job_id='64333', GAL2='0.97', EG2='1.35', return_code2='0', energy_flux_error='2.98e-05', photon_flux_error2='3.02e-08', ts2='3.15', photon_index='1.77' WHERE bin_id='1413' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:43:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 64333: <4FGL_J2158.8-3013_daily_bin1413> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1413 329.714 -30.2251 605577601 605836801 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 :                                   537.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            767 sec.

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

