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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1485
RA = 329.714, Dec = -30.2251
tmin = 624240001, tmax = 624499201
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='64448', job_status='RUN', time_executed='2021-09-27 22:34:18.794399', time_epoch_executed='1632807258.79' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64448/ft1_4FGL_J2158.8-3013_daily_bin1485.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64448/ft2_4FGL_J2158.8-3013_daily_bin1485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64448/ft1_4FGL_J2158.8-3013_daily_bin1485.fits outfile=/scratch/kocevski/64448/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1485.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=624240001.0 tmax=624499201.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.53
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64448/ft1_filtered_4FGL_J2158.8-3013_daily_bin1485.fits" evtable="EVENTS" scfile=/scratch/kocevski/64448/ft2_4FGL_J2158.8-3013_daily_bin1485.fits sctable="SC_DATA" outfile=/scratch/kocevski/64448/ltcube_624240001_624499201_4FGL_J2158.8-3013_daily_bin1485.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/64448/ft2_4FGL_J2158.8-3013_daily_bin1485.fits
.....................!
real 13.54
user 13.15
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64448/ft1_filtered_4FGL_J2158.8-3013_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/64448/ft2_4FGL_J2158.8-3013_daily_bin1485.fits sctable="SC_DATA" expcube=/scratch/kocevski/64448/ltcube_624240001_624499201_4FGL_J2158.8-3013_daily_bin1485.fits outfile=/scratch/kocevski/64448/expmap_624240001_624499201_4FGL_J2158.8-3013_daily_bin1485.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/64448/ltcube_624240001_624499201_4FGL_J2158.8-3013_daily_bin1485.fits
.....................!
real 191.76
user 185.74
sys 5.67

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/64448/ft1_filtered_4FGL_J2158.8-3013_daily_bin1485.fits scfile=/scratch/kocevski/64448/ft2_4FGL_J2158.8-3013_daily_bin1485.fits outfile=/scratch/kocevski/64448/cmap_624240001_624499201_4FGL_J2158.8-3013_daily_bin1485.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64448/ft1_filtered_4FGL_J2158.8-3013_daily_bin1485.fits scfile=/scratch/kocevski/64448/ft2_4FGL_J2158.8-3013_daily_bin1485.fits outfile=/scratch/kocevski/64448/cmap_HighResolution_624240001_624499201_4FGL_J2158.8-3013_daily_bin1485.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=329.714 yref=-30.2251 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64448/ft1_filtered_4FGL_J2158.8-3013_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/64448/ft2_4FGL_J2158.8-3013_daily_bin1485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64448/Model_4FGL_J2158.8-3013_daily_bin1485.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/64448/ft1_filtered_4FGL_J2158.8-3013_daily_bin1485.fits.....................!
real 44.26
user 42.97
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1596       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10973E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .55084E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10456E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .52484       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.882       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4218       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.559       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9980       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5550       1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.984       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5680       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5385       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .64634       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=   4831.299     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     2730 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.0795        .16671E-02** at limit **
   2  Prefactor     .10000E-03    1.7585        .89996E-03** at limit **
   3  Prefactor     .10000E-03    3.0056        .11757E-02** at limit **
   4  Prefactor     .10000E-03    11.064        .18142E-02** at limit **
   5  Prefactor     5.1597        11.251        .88492E-03    .71944E-04
   6  norm          .10000E-03    4.2680        .13996E-02** at limit **
   7  Prefactor     .10000E-03    58.410        .36285E-03** at limit **
   8  Prefactor     .10000E-03    51.924        .15036    ** at limit **
   9  norm          .10000E-03    10.825        .24119E-02** at limit **
  10  norm          .52459        .39179        .36184E-04    .84706E-03
  11  Prefactor     .10000E-03    20.606        .36285E-03** at limit **
  12  Prefactor     .10000E-03    4.8209        .14904E-02** at limit **
  13  Prefactor     13.881        12.954        .10750E-03    .18507E-04
  14  norm          5.4218        20.665        .17258E-03    .16469E-05
  15  Prefactor     13.559        16.534        .10878E-03    .36580E-05
  16  Prefactor     5.0224        23.417        .17988E-03    .15358E-04
  17  norm          2.5549        2.5249        .10000E-03    .50134E-04
  18  Prefactor     41.983        72.839        .61868E-04    .41456E-04
  19  Prefactor     .10000E-03    9.1190        .18142E-02** at limit **
  20  norm          3.5687        6.5001        .10698E-02    .20909E-03
  21  Normalizat    1.5385        .27467        .24145E-03    .21693E-03
  22  Prefactor     .64628        .17808        .24644E-03    .41749E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.15966
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.524593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.881
  norm       = 5.42185
  Prefactor  = 13.5587
  Prefactor  = 5.02237
  norm       = 2.55491
  Prefactor  = 41.9825
  Prefactor  = 0.0001
  norm       = 3.56872
  Normalizat = 1.53851
  Prefactor  = 0.646284
 **********
 **   18 **HESSE 
 **********

 FCN=   4831.299     FROM HESSE     STATUS=OK           334 CALLS     3064 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0811        .33342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.7585        .17999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0057        .23514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1597        11.247        .35397E-04   -1.5254    
   6  norm          .10000E-03    4.2684        .27992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    58.412        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    51.447        .15149       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.851        .48239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .52459        .39165        .14474E-05   -1.5563    
  11  Prefactor     .10000E-03    20.607        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8210        .29808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.881        12.954        .43001E-05   -1.4963    
  14  norm          5.4218        20.666        .69030E-05   -1.5242    
  15  Prefactor     13.559        16.535        .43510E-05   -1.4971    
  16  Prefactor     5.0224        23.396        .71952E-05   -1.5260    
  17  norm          2.5549        2.5246        .40002E-05   -1.5388    
  18  Prefactor     41.983        72.810        .12374E-04   -1.4411    
  19  Prefactor     .10000E-03    9.1207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5687        6.4973        .42791E-04   -1.5330    
  21  Normalizat    1.5385        .27484        .48289E-04   -.76702    
  22  Prefactor     .64628        .17823        .98577E-05   -1.0567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38941e-10
Minuit parameter uncertainties:
  1  7.5118e-06
  2  2.52306e-07
  3  9.43268e-07
  4  8.24383e-06
  5  11.2519
  6  3.81292e-06
  7  0.000275028
  8  0.000473449
  9  3.97433e-05
  10  0.391651
  11  1.24351e-05
  12  2.82828e-06
  13  12.9571
  14  20.6932
  15  16.5407
  16  21.6934
  17  2.52474
  18  72.9644
  19  4.84986e-06
  20  6.49858
  21  0.275105
  22  0.178383
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.246e-01  3.917e-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.463e-01  1.784e-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.539e+00  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.27
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 4.93e-05 +/- 3.68e-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) = 4830.79419955
delta logL = 0.504718502882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4830.77694165
delta logL = 0.521976400942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45927       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3229       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66043       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=   4830.777     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      258 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45932        4.8919        .61384E-02    .47976E-03
   2  alpha         2.3228        3.6572        .26023        .41676E-04
   3  Normalizat    1.4975        .83765E-01    .55167E-01   -.41555E-05
   4  Prefactor     .66015        .52717E-01    .41872E-01    .18865E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.459322
  alpha      = 2.32281
  Normalizat = 1.49751
  Prefactor  = 0.660149
 **********
 **   18 **HESSE 
 **********

 FCN=   4830.777     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45932        .37371        .27451E-04   -1.5572    
   2  alpha         2.3228        .58670        .97964E-02   -.70935E-01
   3  Normalizat    1.4975        .25318        .24392E-03   -.77848    
   4  Prefactor     .66015        .17420        .24388E-03   -1.0511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65242e-09
Minuit parameter uncertainties:
  1  0.373712
  2  0.592254
  3  0.253395
  4  0.174348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64448': 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) = 4830.77694034
delta logL = 0.521977713282

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  4.593e-01  3.737e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.323e+00  5.923e-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.601e-01  1.743e-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.498e+00  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.30
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 2.32 +/- 0.59
Photon Flux (Free Index): 8.29e-08 +/- 6.05e-08
Energy Flux (Free Index): 3.07e-05 +/- 2.22e-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/64448/cmap_HighResolution_624240001_624499201_4FGL_J2158.8-3013_daily_bin1485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='3.07e-05', photon_flux_error='3.25e-08', dlogl='5.22e-01', energy_flux='4.93e-05', photon_flux2='8.29e-08', job_status='DONE', time_completed='2021-09-27 22:43:13.239410', photon_index_error2='0.59', photon_index2='2.32', ts='4.27', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='2.22e-05', EG='1.54', time_epoch_completed='1632807793.24', return_code='0', job_id='64448', GAL2='0.66', EG2='1.50', return_code2='0', energy_flux_error='3.68e-05', photon_flux_error2='6.05e-08', ts2='5.30', photon_index='1.77' WHERE bin_id='1485' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:43:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 64448: <4FGL_J2158.8-3013_daily_bin1485> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1485 329.714 -30.2251 624240001 624499201 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 :                                   521.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             325.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            756 sec.

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

