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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1662
RA = 329.714, Dec = -30.2251
tmin = 670118401, tmax = 670377601
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='124906', job_status='RUN', time_executed='2022-03-31 00:37:39.286701', time_epoch_executed='1648712259.29' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124906/ft1_4FGL_J2158.8-3013_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124906/ft2_4FGL_J2158.8-3013_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124906/ft1_4FGL_J2158.8-3013_daily_bin1662.fits outfile=/scratch/kocevski/124906/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1662.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=670118401.0 tmax=670377601.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.45
user 3.23
sys 0.19

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

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

Number of photons that the gtmktime cut: 556

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124906/ft1_filtered_4FGL_J2158.8-3013_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/124906/ft2_4FGL_J2158.8-3013_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/124906/ltcube_670118401_670377601_4FGL_J2158.8-3013_daily_bin1662.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/124906/ft2_4FGL_J2158.8-3013_daily_bin1662.fits
.....................!
real 12.01
user 11.62
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124906/ft1_filtered_4FGL_J2158.8-3013_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124906/ft2_4FGL_J2158.8-3013_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/124906/ltcube_670118401_670377601_4FGL_J2158.8-3013_daily_bin1662.fits outfile=/scratch/kocevski/124906/expmap_670118401_670377601_4FGL_J2158.8-3013_daily_bin1662.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/124906/ltcube_670118401_670377601_4FGL_J2158.8-3013_daily_bin1662.fits
.....................!
real 192.27
user 186.33
sys 5.55

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/124906/ft1_filtered_4FGL_J2158.8-3013_daily_bin1662.fits scfile=/scratch/kocevski/124906/ft2_4FGL_J2158.8-3013_daily_bin1662.fits outfile=/scratch/kocevski/124906/cmap_670118401_670377601_4FGL_J2158.8-3013_daily_bin1662.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=329.714 yref=-30.2251 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124906/ft1_filtered_4FGL_J2158.8-3013_daily_bin1662.fits scfile=/scratch/kocevski/124906/ft2_4FGL_J2158.8-3013_daily_bin1662.fits outfile=/scratch/kocevski/124906/cmap_HighResolution_670118401_670377601_4FGL_J2158.8-3013_daily_bin1662.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124906/ft1_filtered_4FGL_J2158.8-3013_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124906/ft2_4FGL_J2158.8-3013_daily_bin1662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124906/Model_4FGL_J2158.8-3013_daily_bin1662.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/124906/ft1_filtered_4FGL_J2158.8-3013_daily_bin1662.fits.....................!
real 53.18
user 51.87
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.930       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0653       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4277       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.530       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    31.474       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7764       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.412       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5490       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .69051       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=   6061.373     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2330 TOTAL
                     EDM=   .80E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6916        .75300E-07** at limit **
   2  Prefactor     .10000E-03    3.9674        .38465E-07** at limit **
   3  Prefactor     .10000E-03    3.7645        .14160E-06** at limit **
   4  Prefactor     11.927        17.298       -.47876E-06   -.52385E-04
   5  Prefactor     .10000E-03    3.9027       -.23876E-06** at limit **
   6  norm          .10000E-03    2.8862       -.28025E-08** at limit **
   7  Prefactor     .10000E-03    8.9293       -.57747E-06** at limit **
   8  Prefactor     .10000E-03    29.861        .16298E-04** at limit **
   9  norm          .10000E-03    1.7165        .13323E-07** at limit **
  10  norm          1.0652        .36967       -.22120E-08   -.52090E-04
  11  Prefactor     9.4243        10.901       -.30499E-06   -.65468E-04
  12  Prefactor     21.524        19.055       -.10178E-05   -.11871E-04
  13  Prefactor     .10000E-03    3.2128       -.15305E-07** at limit **
  14  norm          31.473        21.018       -.68586E-07    .32985E-05
  15  Prefactor     .10000E-03    27.383       -.13696E-04** at limit **
  16  Prefactor     .10000E-03    10.517        .72985E-06** at limit **
  17  norm          2.7769        2.2790       -.53641E-08    .17749E-04
  18  Prefactor     .10000E-03    60.311       -.34801E-05** at limit **
  19  Prefactor     25.403        16.903       -.97129E-07    .29736E-04
  20  norm          .10000E-03    1.5947        .20734E-07** at limit **
  21  Normalizat    1.5494        .20039        .33859E-06    .29760E-04
  22  Prefactor     .69028        .13892       -.50987E-08    .14974E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9271
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.06521
  Prefactor  = 9.42428
  Prefactor  = 21.5242
  Prefactor  = 0.0001
  norm       = 31.4732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.7769
  Prefactor  = 0.0001
  Prefactor  = 25.4031
  norm       = 0.0001
  Normalizat = 1.54941
  Prefactor  = 0.690278
 **********
 **   18 **HESSE 
 **********

 FCN=   6061.373     FROM HESSE     STATUS=OK           334 CALLS     2664 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.8147        .18139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9835        .15143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7963        .14749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.927        17.308        .11598E-03   -1.5017    
   5  Prefactor     .10000E-03    3.9646        .15020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.8955        .12916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.9447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7291        .99549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0652        .37104        .27038E-04   -1.5502    
  11  Prefactor     9.4243        10.918        .13052E-03   -1.5094    
  12  Prefactor     21.524        19.089        .86323E-04   -1.4780    
  13  Prefactor     .10000E-03    3.2297        .13626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          31.473        21.018        .71421E-04   -1.4585    
  15  Prefactor     .10000E-03    27.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7769        2.2809        .10308E-03   -1.5375    
  18  Prefactor     .10000E-03    60.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.403        17.027        .79466E-04   -1.4700    
  20  norm          .10000E-03    1.6022        .96006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5494        .23104        .24610E-03   -.76399    
  22  Prefactor     .69028        .15922        .24959E-03   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.625e-11
Minuit parameter uncertainties:
  1  9.66451e-07
  2  6.30095e-07
  3  1.62107e-06
  4  17.3152
  5  4.70533e-07
  6  7.45797e-07
  7  2.11439e-06
  8  3.70448e-06
  9  8.55654e-07
  10  0.371036
  11  10.9204
  12  19.0944
  13  6.68768e-07
  14  21.0227
  15  4.20909e-05
  16  1.19542e-06
  17  2.28102
  18  4.06578e-06
  19  17.0305
  20  7.96397e-08
  21  0.231193
  22  0.159325
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.065e+00  3.710e-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:  6.903e-01  1.593e-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.549e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.22
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 8.83e-08 +/- 3.07e-08
Energy Flux (Fixed Index): 1.00e-04 +/- 3.49e-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) = 6061.31734309
delta logL = 0.0556344308488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6061.31547496
delta logL = 0.0575025673543

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0600       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6704       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68766       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=   6061.315     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0599        .44106        .62362E-02   -.15141E-03
   2  alpha         1.6701        .31159        .20290       -.10684E-04
   3  Normalizat    1.5583        .19501        .55543E-01    .88419E-05
   4  Prefactor     .68748        .13805        .42237E-01    .21276E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05989
  alpha      = 1.67007
  Normalizat = 1.55833
  Prefactor  = 0.687476
 **********
 **   18 **HESSE 
 **********

 FCN=   6061.315     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .45E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0599        .37754        .27445E-04   -1.5502    
   2  alpha         1.6701        .28252        .84196E-02   -.33839    
   3  Normalizat    1.5583        .22246        .24558E-03   -.76152    
   4  Prefactor     .68748        .15744        .25010E-03   -1.0402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54799e-13
Minuit parameter uncertainties:
  1  0.377545
  2  0.2832
  3  0.2226
  4  0.157543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124906': 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) = 6061.31547308
delta logL = 0.0575044421521

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.060e+00  3.775e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.670e+00  2.832e-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:  6.875e-01  1.575e-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.558e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.30
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.67 +/- 0.28
Photon Flux (Free Index): 7.94e-08 +/- 3.76e-08
Energy Flux (Free Index): 1.17e-04 +/- 7.09e-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/124906/cmap_HighResolution_670118401_670377601_4FGL_J2158.8-3013_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.83e-08', energy_flux2='1.17e-04', photon_flux_error='3.07e-08', dlogl='5.75e-02', energy_flux='1.00e-04', photon_flux2='7.94e-08', job_status='DONE', time_completed='2022-03-31 00:46:35.109506', photon_index_error2='0.28', photon_index2='1.67', ts='43.22', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='7.09e-05', EG='1.55', time_epoch_completed='1648712795.11', return_code='0', job_id='124906', GAL2='0.69', EG2='1.56', return_code2='0', energy_flux_error='3.49e-05', photon_flux_error2='3.76e-08', ts2='43.30', photon_index='1.77' WHERE bin_id='1662' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:46:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 124906: <4FGL_J2158.8-3013_daily_bin1662> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1662> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Mar 31 00:35:24 2022
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:35:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:35:26 2022
Terminated at Thu Mar 31 00:46:35 2022
Results reported at Thu Mar 31 00:46:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1662 329.714 -30.2251 670118401 670377601 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 :                                   538.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            671 sec.

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

