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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1149
RA = 329.714, Dec = -30.2251
tmin = 537148801, tmax = 537408001
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='63165', job_status='RUN', time_executed='2021-09-27 22:30:48.921002', time_epoch_executed='1632807048.92' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63165/ft1_4FGL_J2158.8-3013_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63165/ft2_4FGL_J2158.8-3013_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63165/ft1_4FGL_J2158.8-3013_daily_bin1149.fits outfile=/scratch/kocevski/63165/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1149.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=537148801.0 tmax=537408001.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.64
user 3.36
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63165/ft1_filtered_4FGL_J2158.8-3013_daily_bin1149.fits" evtable="EVENTS" scfile=/scratch/kocevski/63165/ft2_4FGL_J2158.8-3013_daily_bin1149.fits sctable="SC_DATA" outfile=/scratch/kocevski/63165/ltcube_537148801_537408001_4FGL_J2158.8-3013_daily_bin1149.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/63165/ft2_4FGL_J2158.8-3013_daily_bin1149.fits
.....................!
real 13.93
user 13.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63165/ft1_filtered_4FGL_J2158.8-3013_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/63165/ft2_4FGL_J2158.8-3013_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/63165/ltcube_537148801_537408001_4FGL_J2158.8-3013_daily_bin1149.fits outfile=/scratch/kocevski/63165/expmap_537148801_537408001_4FGL_J2158.8-3013_daily_bin1149.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/63165/ltcube_537148801_537408001_4FGL_J2158.8-3013_daily_bin1149.fits
.....................!
real 191.34
user 186.35
sys 4.46

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/63165/ft1_filtered_4FGL_J2158.8-3013_daily_bin1149.fits scfile=/scratch/kocevski/63165/ft2_4FGL_J2158.8-3013_daily_bin1149.fits outfile=/scratch/kocevski/63165/cmap_537148801_537408001_4FGL_J2158.8-3013_daily_bin1149.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.53
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63165/ft1_filtered_4FGL_J2158.8-3013_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/63165/ft2_4FGL_J2158.8-3013_daily_bin1149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63165/Model_4FGL_J2158.8-3013_daily_bin1149.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/63165/ft1_filtered_4FGL_J2158.8-3013_daily_bin1149.fits.....................!
real 45.09
user 43.81
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6547       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11659E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.604       1.0000         .10000E-03   10000.    
     9 'norm      '    .12366E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0413       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20719E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2816       1.0000         .10000E-03   10000.    
    14 'norm      '    16.183       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0511       1.0000         .10000E-03   10000.    
    18 'Prefactor '    71.203       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.9486       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99921       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2429       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=   4933.411     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2415 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3236       -.30309E-08** at limit **
   2  Prefactor     .10000E-03    5.0620       -.74904E-07** at limit **
   3  Prefactor     .10000E-03    16.791       -.14363E-05** at limit **
   4  Prefactor     2.6540        17.810        .26782E-05    .37954E-04
   5  Prefactor     .10000E-03    8.1324        .44555E-06** at limit **
   6  norm          .10000E-03    8.5926       -.81799E-06** at limit **
   7  Prefactor     .10000E-03    23.051        .25596E-05** at limit **
   8  Prefactor     17.672        82.448       -.13197E-04    .52586E-06
   9  norm          .10000E-03    6.4073        .11561E-05** at limit **
  10  norm          1.0419        .44685        .69934E-07    .17929E-03
  11  Prefactor     .10000E-03    3.5950        .10533E-06** at limit **
  12  Prefactor     .10011E-03    23.243        .40340E-07** at limit **
  13  Prefactor     2.2807        8.6994        .69011E-05   -.37601E-04
  14  norm          16.167        18.310       -.27643E-05    .67726E-04
  15  Prefactor     .10000E-03    21.579        .75556E-06** at limit **
  16  Prefactor     .10000E-03    19.443       -.16835E-06** at limit **
  17  norm          3.0514        3.2298       -.13537E-06    .40904E-04
  18  Prefactor     71.183        80.979        .21895E-05   -.15859E-04
  19  Prefactor     .10000E-03    11.599        .27474E-06** at limit **
  20  norm          4.9485        6.6323        .15248E-05   -.26199E-04
  21  Normalizat    .99921        .25271       -.30850E-05    .15990E-04
  22  Prefactor     1.2430        .17530        .16932E-05   -.96960E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.65395
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 17.6717
  norm       = 0.000100001
  norm       = 1.04186
  Prefactor  = 0.0001
  Prefactor  = 0.000100111
  Prefactor  = 2.28069
  norm       = 16.1671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.05136
  Prefactor  = 71.1832
  Prefactor  = 0.0001
  norm       = 4.94845
  Normalizat = 0.999208
  Prefactor  = 1.24302
 **********
 **   18 **HESSE 
 **********

 FCN=   4933.411     FROM HESSE     STATUS=OK           338 CALLS     2753 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3306        .14264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0805        .15433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6540        17.749        .25019E-03   -1.5382    
   5  Prefactor     .10000E-03    8.1646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.6538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.672        83.008        .95457E-04   -1.4867    
   9  norm          .10000E-03    6.6990        .34695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0419        .44692        .29483E-04   -1.5504    
  11  Prefactor     .10000E-03    3.5973        .13006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10011E-03    245.39        .64491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2807        8.7100        .13591E-02   -1.5406    
  14  norm          16.167        18.252        .99561E-04   -1.4904    
  15  Prefactor     .10000E-03    21.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0514        3.2370        .11379E-03   -1.5359    
  18  Prefactor     71.183        81.512        .47574E-04   -1.4019    
  19  Prefactor     .10000E-03    11.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.9485        6.6285        .90396E-03   -1.5263    
  21  Normalizat    .99921        .28502        .31453E-03   -.93057    
  22  Prefactor     1.2430        .20046        .21106E-03   -.85017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.625e-10
Minuit parameter uncertainties:
  1  6.63373e-07
  2  5.48137e-06
  3  7.63755e-06
  4  13.7323
  5  2.2539e-05
  6  7.69145e-06
  7  0.000535529
  8  76.7747
  9  0.000116193
  10  0.446924
  11  8.6458e-06
  12  0.0104806
  13  8.71482
  14  18.2581
  15  5.07972e-05
  16  0.000110708
  17  3.23717
  18  81.6399
  19  2.8303e-05
  20  6.62951
  21  0.285452
  22  0.200584
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.042e+00  4.469e-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.243e+00  2.006e-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:  9.992e-01  2.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.90
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 8.63e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 9.79e-05 +/- 4.20e-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) = 4933.36908427
delta logL = 0.0421918007551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4933.36659897
delta logL = 0.0446771049765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0126       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6626       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2410       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=   4933.367     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      195 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0128        .47284        .67648E-02   -.82485E-04
   2  alpha         1.6629        .33473        .21661       -.10893E-04
   3  Normalizat    1.0087        .23455        .70815E-01    .13788E-04
   4  Prefactor     1.2410        .17285        .33726E-01    .30824E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01283
  alpha      = 1.66291
  Normalizat = 1.00872
  Prefactor  = 1.24102
 **********
 **   18 **HESSE 
 **********

 FCN=   4933.367     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0128        .46019        .29809E-04   -1.5507    
   2  alpha         1.6629        .34543        .89647E-02   -.34143    
   3  Normalizat    1.0087        .26762        .31329E-03   -.92739    
   4  Prefactor     1.2410        .19761        .21127E-03   -.85078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.072e-11
Minuit parameter uncertainties:
  1  0.460193
  2  0.34668
  3  0.267977
  4  0.197726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63165': 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) = 4933.36659821
delta logL = 0.0446778586256

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.013e+00  4.602e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.663e+00  3.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.241e+00  1.977e-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.009e+00  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.97
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.66 +/- 0.35
Photon Flux (Free Index): 7.53e-08 +/- 4.78e-08
Energy Flux (Free Index): 1.14e-04 +/- 7.77e-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/63165/cmap_HighResolution_537148801_537408001_4FGL_J2158.8-3013_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.63e-08', energy_flux2='1.14e-04', photon_flux_error='3.70e-08', dlogl='4.47e-02', energy_flux='9.79e-05', photon_flux2='7.53e-08', job_status='DONE', time_completed='2021-09-27 22:39:25.303491', photon_index_error2='0.35', photon_index2='1.66', ts='27.90', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='7.77e-05', EG='1.00', time_epoch_completed='1632807565.3', return_code='0', job_id='63165', GAL2='1.24', EG2='1.01', return_code2='0', energy_flux_error='4.20e-05', photon_flux_error2='4.78e-08', ts2='27.97', photon_index='1.77' WHERE bin_id='1149' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:39:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 63165: <4FGL_J2158.8-3013_daily_bin1149> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1149> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:25:55 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:30:10 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:30:10 2021
Terminated at Mon Sep 27 22:39:26 2021
Results reported at Mon Sep 27 22:39:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1149 329.714 -30.2251 537148801 537408001 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 :                                   502.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             340.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   555 sec.
    Turnaround time :                            811 sec.

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

