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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1590
RA = 329.714, Dec = -30.2251
tmin = 651456001, tmax = 651715201
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='65740', job_status='RUN', time_executed='2021-09-27 22:37:16.906998', time_epoch_executed='1632807436.91' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/65740

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/65740/ft1_4FGL_J2158.8-3013_daily_bin1590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/65740/ft2_4FGL_J2158.8-3013_daily_bin1590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/65740/ft1_4FGL_J2158.8-3013_daily_bin1590.fits outfile=/scratch/kocevski/65740/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1590.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=651456001.0 tmax=651715201.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.54
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/65740/ft2_4FGL_J2158.8-3013_daily_bin1590.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/65740/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1590.fits evtable="EVENTS" outfile="/scratch/kocevski/65740/ft1_filtered_4FGL_J2158.8-3013_daily_bin1590.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/65740/ft1_filtered_4FGL_J2158.8-3013_daily_bin1590.fits" evtable="EVENTS" scfile=/scratch/kocevski/65740/ft2_4FGL_J2158.8-3013_daily_bin1590.fits sctable="SC_DATA" outfile=/scratch/kocevski/65740/ltcube_651456001_651715201_4FGL_J2158.8-3013_daily_bin1590.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/65740/ft2_4FGL_J2158.8-3013_daily_bin1590.fits
.....................!
real 15.21
user 14.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/65740/ft1_filtered_4FGL_J2158.8-3013_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/65740/ft2_4FGL_J2158.8-3013_daily_bin1590.fits sctable="SC_DATA" expcube=/scratch/kocevski/65740/ltcube_651456001_651715201_4FGL_J2158.8-3013_daily_bin1590.fits outfile=/scratch/kocevski/65740/expmap_651456001_651715201_4FGL_J2158.8-3013_daily_bin1590.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/65740/ltcube_651456001_651715201_4FGL_J2158.8-3013_daily_bin1590.fits
.....................!
real 191.61
user 185.63
sys 5.25

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/65740/ft1_filtered_4FGL_J2158.8-3013_daily_bin1590.fits scfile=/scratch/kocevski/65740/ft2_4FGL_J2158.8-3013_daily_bin1590.fits outfile=/scratch/kocevski/65740/cmap_651456001_651715201_4FGL_J2158.8-3013_daily_bin1590.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.71
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/65740/ft1_filtered_4FGL_J2158.8-3013_daily_bin1590.fits scfile=/scratch/kocevski/65740/ft2_4FGL_J2158.8-3013_daily_bin1590.fits outfile=/scratch/kocevski/65740/cmap_HighResolution_651456001_651715201_4FGL_J2158.8-3013_daily_bin1590.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/65740/ft1_filtered_4FGL_J2158.8-3013_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/65740/ft2_4FGL_J2158.8-3013_daily_bin1590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/65740/Model_4FGL_J2158.8-3013_daily_bin1590.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/65740/ft1_filtered_4FGL_J2158.8-3013_daily_bin1590.fits....................!
real 42.72
user 41.34
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.344       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.6612       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .78952       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .90274E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.685       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.963       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .45823       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3896       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3277       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75473       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4586.343     FROM MIGRAD    STATUS=CONVERGED    912 CALLS     3246 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9798        .11414E-02** at limit **
   2  Prefactor     .10000E-03    21.576        .36285E-03** at limit **
   3  Prefactor     10.345        10.755        .12458E-03    .48366E-05
   4  Prefactor     .10000E-03    7.4743        .18067E-02** at limit **
   5  Prefactor     .10000E-03    4.2260        .13555E-02** at limit **
   6  norm          2.6620        6.7020        .24986E-03   -.75986E-05
   7  Prefactor     25.257        22.191        .79692E-04   -.40800E-04
   8  Prefactor     .10000E-03    59.237        .18142E-02** at limit **
   9  norm          .10000E-03    5.4338        .30393E-03** at limit **
  10  norm          .78953        .38683        .28327E-04    .16114E-02
  11  Prefactor     .10000E-03    12.953        .18142E-02** at limit **
  12  Prefactor     .10218E-03    30.954        .94087E-01** at limit **
  13  Prefactor     .10000E-03    7.4251        .17932E-02** at limit **
  14  norm          .10024E-03    175.49        .58146E-02** at limit **
  15  Prefactor     28.684        30.816        .74803E-04    .63072E-04
  16  Prefactor     21.931        19.773        .85469E-04   -.77814E-04
  17  norm          .10000E-03    2.6070        .21048E-03** at limit **
  18  Prefactor     .93763        81.196        .15737        .66879E-04
  19  Prefactor     5.3884        16.660        .17310E-03   -.11218E-03
  20  norm          .10000E-03    7.2422        .35111E-03** at limit **
  21  Normalizat    1.3277        .27058        .25324E-03   -.31308E-03
  22  Prefactor     .75460        .17894        .22920E-03   -.16894E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.66204
  Prefactor  = 25.2573
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.78953
  Prefactor  = 0.0001
  Prefactor  = 0.000102182
  Prefactor  = 0.0001
  norm       = 0.000100242
  Prefactor  = 28.684
  Prefactor  = 21.9313
  norm       = 0.0001
  Prefactor  = 0.937626
  Prefactor  = 5.38842
  norm       = 0.0001
  Normalizat = 1.32765
  Prefactor  = 0.754605
 **********
 **   18 **HESSE 
 **********

 FCN=   4586.343     FROM HESSE     STATUS=OK           340 CALLS     3586 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9798        .22829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.577        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.345        10.755        .49832E-05   -1.5065    
   4  Prefactor     .10000E-03    7.4748        .36135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2265        .27111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6620        6.7015        .99944E-05   -1.5382    
   7  Prefactor     25.257        22.191        .31877E-05   -1.4702    
   8  Prefactor     .10000E-03    59.238        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.4340        .60786E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .78953        .38682        .56654E-05   -1.5530    
  11  Prefactor     .10000E-03    12.958        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10218E-03    28.904        .98570E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.4277        .35863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10024E-03    183.22        .23258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.684        30.812        .29921E-05   -1.4636    
  16  Prefactor     21.931        19.774        .34188E-05   -1.4771    
  17  norm          .10000E-03    2.6070        .42095E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .93763        81.507        .15692       -1.5514    
  19  Prefactor     5.3884        16.660        .69240E-05   -1.5244    
  20  norm          .10000E-03    7.2425        .70221E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3277        .27083        .50648E-04   -.82745    
  22  Prefactor     .75460        .17909        .91682E-05   -1.0142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26906e-09
Minuit parameter uncertainties:
  1  2.53844e-06
  2  0.000100667
  3  10.7571
  4  1.31117e-05
  5  8.30077e-06
  6  6.70343
  7  22.1982
  8  0.000160597
  9  9.25715e-05
  10  0.386826
  11  2.9388e-05
  12  0.0158923
  13  2.16066e-05
  14  0.0133478
  15  30.8287
  16  19.7799
  17  4.65503e-07
  18  17.5078
  19  16.6743
  20  3.32177e-05
  21  0.271121
  22  0.17923
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  7.546e-01  1.792e-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.328e+00  2.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.06
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 6.54e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 7.42e-05 +/- 3.63e-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) = 4586.33685792
delta logL = 0.00576799652663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4586.33655795
delta logL = 0.00606797135788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78212       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7225       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75375       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=   4586.337     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      194 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78212        .48926        .64648E-02   -.10355E-02
   2  alpha         1.7225        .45934        .24420       -.51709E-04
   3  Normalizat    1.3310        .21681        .57211E-01    .24124E-04
   4  Prefactor     .75374        .15195        .43112E-01    .22842E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.782119
  alpha      = 1.72251
  Normalizat = 1.331
  Prefactor  = 0.753743
 **********
 **   18 **HESSE 
 **********

 FCN=   4586.337     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78212        .39159        .28448E-04   -1.5531    
   2  alpha         1.7225        .39795        .98888E-02   -.31624    
   3  Normalizat    1.3310        .24961        .25299E-03   -.82646    
   4  Prefactor     .75374        .17522        .22934E-03   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22122e-11
Minuit parameter uncertainties:
  1  0.391587
  2  0.399839
  3  0.249837
  4  0.175353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/65740': 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) = 4586.33655795
delta logL = 0.00606797306682

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  7.537e-01  1.754e-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.331e+00  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.08
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.72 +/- 0.40
Photon Flux (Free Index): 6.18e-08 +/- 4.40e-08
Energy Flux (Free Index): 7.90e-05 +/- 6.02e-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/65740/cmap_HighResolution_651456001_651715201_4FGL_J2158.8-3013_daily_bin1590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.54e-08', energy_flux2='7.90e-05', photon_flux_error='3.21e-08', dlogl='6.07e-03', energy_flux='7.42e-05', photon_flux2='6.18e-08', job_status='DONE', time_completed='2021-09-27 22:46:16.066081', photon_index_error2='0.40', photon_index2='1.72', ts='20.06', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='6.02e-05', EG='1.33', time_epoch_completed='1632807976.07', return_code='0', job_id='65740', GAL2='0.75', EG2='1.33', return_code2='0', energy_flux_error='3.63e-05', photon_flux_error2='4.40e-08', ts2='20.08', photon_index='1.77' WHERE bin_id='1590' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:46:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 65740: <4FGL_J2158.8-3013_daily_bin1590> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1590> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 22:35:25 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:36:16 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:36:16 2021
Terminated at Mon Sep 27 22:46:16 2021
Results reported at Mon Sep 27 22:46:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1590 329.714 -30.2251 651456001 651715201 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 :                                   530.48 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             354.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            651 sec.

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

