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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1489
RA = 329.714, Dec = -30.2251
tmin = 625276801, tmax = 625536001
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='64454', job_status='RUN', time_executed='2021-09-27 22:34:32.620935', time_epoch_executed='1632807272.62' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64454

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64454/ft1_4FGL_J2158.8-3013_daily_bin1489.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64454/ft2_4FGL_J2158.8-3013_daily_bin1489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64454/ft1_4FGL_J2158.8-3013_daily_bin1489.fits outfile=/scratch/kocevski/64454/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1489.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=625276801.0 tmax=625536001.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.55
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64454/ft1_filtered_4FGL_J2158.8-3013_daily_bin1489.fits" evtable="EVENTS" scfile=/scratch/kocevski/64454/ft2_4FGL_J2158.8-3013_daily_bin1489.fits sctable="SC_DATA" outfile=/scratch/kocevski/64454/ltcube_625276801_625536001_4FGL_J2158.8-3013_daily_bin1489.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/64454/ft2_4FGL_J2158.8-3013_daily_bin1489.fits
.....................!
real 14.02
user 13.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64454/ft1_filtered_4FGL_J2158.8-3013_daily_bin1489.fits evtable="EVENTS" scfile=/scratch/kocevski/64454/ft2_4FGL_J2158.8-3013_daily_bin1489.fits sctable="SC_DATA" expcube=/scratch/kocevski/64454/ltcube_625276801_625536001_4FGL_J2158.8-3013_daily_bin1489.fits outfile=/scratch/kocevski/64454/expmap_625276801_625536001_4FGL_J2158.8-3013_daily_bin1489.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/64454/ltcube_625276801_625536001_4FGL_J2158.8-3013_daily_bin1489.fits
.....................!
real 192.60
user 187.57
sys 4.60

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/64454/ft1_filtered_4FGL_J2158.8-3013_daily_bin1489.fits scfile=/scratch/kocevski/64454/ft2_4FGL_J2158.8-3013_daily_bin1489.fits outfile=/scratch/kocevski/64454/cmap_625276801_625536001_4FGL_J2158.8-3013_daily_bin1489.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.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64454/ft1_filtered_4FGL_J2158.8-3013_daily_bin1489.fits evtable="EVENTS" scfile=/scratch/kocevski/64454/ft2_4FGL_J2158.8-3013_daily_bin1489.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64454/Model_4FGL_J2158.8-3013_daily_bin1489.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/64454/ft1_filtered_4FGL_J2158.8-3013_daily_bin1489.fits.....................!
real 64.77
user 63.42
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4755       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11189E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.233       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3009       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1063       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8147       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5158       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    18.271       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.251       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5946       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7065       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3899       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86187       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0334       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8150.027     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     1999 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4756        4.9138         .0000       -.18244E-03
   2  Prefactor     .10000E-03    11.218         .0000    ** at limit **
   3  Prefactor     14.231        7.9349         .0000        .58117E-03
   4  Prefactor     2.3028        9.2987         .0000        .66582E-02
   5  Prefactor     .10000E-03    2.2082         .0000    ** at limit **
   6  norm          .10000E-03    3.1880         .0000    ** at limit **
   7  Prefactor     .10000E-03    5.1981         .0000    ** at limit **
   8  Prefactor     .10000E-03    20.783         .0000    ** at limit **
   9  norm          .10000E-03    2.1095         .0000    ** at limit **
  10  norm          1.1063        .31058         .0000       -.13070E-03
  11  Prefactor     1.8155        5.5939         .0000        .17903E-01
  12  Prefactor     8.5138        11.443         .0000       -.20518E-03
  13  Prefactor     .10000E-03    2.1015         .0000    ** at limit **
  14  norm          18.267        16.942         .0000        .28361E-03
  15  Prefactor     23.248        14.788         .0000       -.12531E-03
  16  Prefactor     6.5927        7.9358         .0000        .48058E-03
  17  norm          2.7061        1.8775         .0000        .12258E-03
  18  Prefactor     .10000E-03    49.942         .0000    ** at limit **
  19  Prefactor     .10000E-03    3.2740         .0000    ** at limit **
  20  norm          2.3895        2.7929         .0000        .20723E-03
  21  Normalizat    .86206        .15820         .0000        .19450E-04
  22  Prefactor     1.0333        .11921         .0000        .35744E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.47559
  Prefactor  = 0.0001
  Prefactor  = 14.2307
  Prefactor  = 2.30283
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.1063
  Prefactor  = 1.81547
  Prefactor  = 8.51381
  Prefactor  = 0.0001
  norm       = 18.2672
  Prefactor  = 23.2482
  Prefactor  = 6.59269
  norm       = 2.70608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.38945
  Normalizat = 0.862056
  Prefactor  = 1.03332
 **********
 **   18 **HESSE 
 **********

 FCN=   8150.027     FROM HESSE     STATUS=OK           342 CALLS     2341 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4756        4.9186        .17171E-03   -1.5240    
   2  Prefactor     .10000E-03    11.720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.231        7.9373        .10617E-03   -1.4953    
   4  Prefactor     2.3028        9.2706        .13527E-02   -1.5404    
   5  Prefactor     .10000E-03    2.2127        .13099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.2229        .15737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1936        .25552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1063        .31102        .25765E-04   -1.5498    
  11  Prefactor     1.8155        5.5594        .15504E-02   -1.5438    
  12  Prefactor     8.5138        11.441        .13737E-03   -1.5124    
  13  Prefactor     .10000E-03    2.1209        .12777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.267        16.937        .93701E-04   -1.4853    
  15  Prefactor     23.248        14.800        .83070E-04   -1.4743    
  16  Prefactor     6.5927        7.9347        .15627E-03   -1.5194    
  17  norm          2.7061        1.8696        .99406E-04   -1.5379    
  18  Prefactor     .10000E-03    50.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2884        .15951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3895        2.7845        .15815E-03   -1.5399    
  21  Normalizat    .86206        .18057        .27780E-03   -.97807    
  22  Prefactor     1.0333        .13651        .19885E-03   -.91627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43575e-09
Minuit parameter uncertainties:
  1  4.919
  2  1.29943e-05
  3  7.93794
  4  9.2432
  5  2.03445e-07
  6  4.34846e-07
  7  5.74683e-07
  8  2.93166e-06
  9  4.02738e-07
  10  0.311023
  11  5.56102
  12  11.4435
  13  1.0303e-07
  14  16.9418
  15  14.8027
  16  7.93593
  17  1.86968
  18  2.68652e-05
  19  1.26613e-07
  20  2.78468
  21  0.180694
  22  0.13656
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.106e+00  3.110e-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.033e+00  1.366e-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:  8.621e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 56.21
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 9.17e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 1.04e-04 +/- 2.92e-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) = 8149.98492613
delta logL = 0.0418214941747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8149.98373838
delta logL = 0.0430092501283

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1094       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6993       1.0000          .0000       5.0000    
     3 'Normalizat'    .86868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0311       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=   8149.984     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      200 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1094        .43976        .59334E-02   -.64489E-04
   2  alpha         1.6993        .30071        .18984        .70634E-04
   3  Normalizat    .86868        .15406        .44500E-01    .10055E-04
   4  Prefactor     1.0311        .11899        .41170E-01   -.13322E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10939
  alpha      = 1.69933
  Normalizat = 0.868681
  Prefactor  = 1.03113
 **********
 **   18 **HESSE 
 **********

 FCN=   8149.984     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1094        .31576        .26154E-04   -1.5497    
   2  alpha         1.6993        .22911        .78678E-02   -.32601    
   3  Normalizat    .86868        .17582        .27689E-03   -.97570    
   4  Prefactor     1.0311        .13612        .19906E-03   -.91699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78054e-11
Minuit parameter uncertainties:
  1  0.315761
  2  0.229473
  3  0.175937
  4  0.136163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64454': 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) = 8149.98373838
delta logL = 0.043009250322

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.109e+00  3.158e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.699e+00  2.295e-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.031e+00  1.362e-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:  8.687e-01  1.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 56.21
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.70 +/- 0.23
Photon Flux (Free Index): 8.55e-08 +/- 3.17e-08
Energy Flux (Free Index): 1.17e-04 +/- 5.75e-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/64454/cmap_HighResolution_625276801_625536001_4FGL_J2158.8-3013_daily_bin1489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.17e-08', energy_flux2='1.17e-04', photon_flux_error='2.58e-08', dlogl='4.30e-02', energy_flux='1.04e-04', photon_flux2='8.55e-08', job_status='DONE', time_completed='2021-09-27 22:45:22.983454', photon_index_error2='0.23', photon_index2='1.70', ts='56.21', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='5.75e-05', EG='0.86', time_epoch_completed='1632807922.98', return_code='0', job_id='64454', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='2.92e-05', photon_flux_error2='3.17e-08', ts2='56.21', photon_index='1.77' WHERE bin_id='1489' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:45:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 64454: <4FGL_J2158.8-3013_daily_bin1489> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1489 329.714 -30.2251 625276801 625536001 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 :                                   603.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            884 sec.

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

