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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1219
RA = 329.714, Dec = -30.2251
tmin = 555292801, tmax = 555552001
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='63252', job_status='RUN', time_executed='2021-09-27 22:31:29.587603', time_epoch_executed='1632807089.59' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63252

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63252/ft1_4FGL_J2158.8-3013_daily_bin1219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63252/ft2_4FGL_J2158.8-3013_daily_bin1219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63252/ft1_4FGL_J2158.8-3013_daily_bin1219.fits outfile=/scratch/kocevski/63252/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1219.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=555292801.0 tmax=555552001.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.61
user 3.37
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/63252/ft2_4FGL_J2158.8-3013_daily_bin1219.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/63252/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1219.fits evtable="EVENTS" outfile="/scratch/kocevski/63252/ft1_filtered_4FGL_J2158.8-3013_daily_bin1219.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/63252/ft1_filtered_4FGL_J2158.8-3013_daily_bin1219.fits" evtable="EVENTS" scfile=/scratch/kocevski/63252/ft2_4FGL_J2158.8-3013_daily_bin1219.fits sctable="SC_DATA" outfile=/scratch/kocevski/63252/ltcube_555292801_555552001_4FGL_J2158.8-3013_daily_bin1219.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/63252/ft2_4FGL_J2158.8-3013_daily_bin1219.fits
.....................!
real 14.17
user 13.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63252/ft1_filtered_4FGL_J2158.8-3013_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/63252/ft2_4FGL_J2158.8-3013_daily_bin1219.fits sctable="SC_DATA" expcube=/scratch/kocevski/63252/ltcube_555292801_555552001_4FGL_J2158.8-3013_daily_bin1219.fits outfile=/scratch/kocevski/63252/expmap_555292801_555552001_4FGL_J2158.8-3013_daily_bin1219.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/63252/ltcube_555292801_555552001_4FGL_J2158.8-3013_daily_bin1219.fits
.....................!
real 191.69
user 186.16
sys 5.10

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/63252/ft1_filtered_4FGL_J2158.8-3013_daily_bin1219.fits scfile=/scratch/kocevski/63252/ft2_4FGL_J2158.8-3013_daily_bin1219.fits outfile=/scratch/kocevski/63252/cmap_555292801_555552001_4FGL_J2158.8-3013_daily_bin1219.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63252/ft1_filtered_4FGL_J2158.8-3013_daily_bin1219.fits scfile=/scratch/kocevski/63252/ft2_4FGL_J2158.8-3013_daily_bin1219.fits outfile=/scratch/kocevski/63252/cmap_HighResolution_555292801_555552001_4FGL_J2158.8-3013_daily_bin1219.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63252/ft1_filtered_4FGL_J2158.8-3013_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/63252/ft2_4FGL_J2158.8-3013_daily_bin1219.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63252/Model_4FGL_J2158.8-3013_daily_bin1219.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/63252/ft1_filtered_4FGL_J2158.8-3013_daily_bin1219.fits......................!
real 34.18
user 32.90
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2252       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10660E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.331       1.0000         .10000E-03   10000.    
     9 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .34167       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .44685       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7363       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4556       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1493       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.061       1.0000         .10000E-03   10000.    
    20 'norm      '    .47811E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3495       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67768       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=   3021.226     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2338 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3397        .51880E-07** at limit **
   2  Prefactor     .10000E-03    5.8917        .91413E-06** at limit **
   3  Prefactor     .10000E-03    27.178        .18883E-05** at limit **
   4  Prefactor     8.2273        14.936       -.44245E-06   -.19106E-04
   5  Prefactor     .10000E-03    13.727        .53745E-06** at limit **
   6  norm          .10000E-03    5.4514        .18952E-06** at limit **
   7  Prefactor     .10000E-03    17.530       -.34518E-05** at limit **
   8  Prefactor     17.247        107.16       -.11611E-04   -.24396E-04
   9  norm          .10000E-03    4.2931       -.12740E-05** at limit **
  10  norm          .34171        .31278       -.84009E-07   -.20371E-03
  11  Prefactor     .42116        14.918        .34270E-06   -.69291E-04
  12  Prefactor     8.7277        20.810       -.22939E-05   -.51167E-05
  13  Prefactor     .10000E-03    15.688        .15148E-06** at limit **
  14  norm          .10000E-03    48.647       -.28609E-05** at limit **
  15  Prefactor     .10000E-03    17.732       -.22141E-06** at limit **
  16  Prefactor     .10000E-03    10.432       -.44692E-05** at limit **
  17  norm          3.4570        3.8477        .12195E-05    .40091E-03
  18  Prefactor     5.9809        253.48       -.33239E-04   -.56472E-04
  19  Prefactor     17.037        35.331       -.40771E-05    .17348E-04
  20  norm          .10001E-03    5.7448       -.12200E-05** at limit **
  21  Normalizat    1.3496        .33247        .19562E-04   -.32129E-04
  22  Prefactor     .67768        .21040       -.15636E-04    .24012E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.22726
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 17.247
  norm       = 0.0001
  norm       = 0.341707
  Prefactor  = 0.421156
  Prefactor  = 8.72767
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.457
  Prefactor  = 5.98093
  Prefactor  = 17.0368
  norm       = 0.000100012
  Normalizat = 1.34955
  Prefactor  = 0.67768
 **********
 **   18 **HESSE 
 **********

 FCN=   3021.226     FROM HESSE     STATUS=OK           340 CALLS     2678 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3403        .98107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.9345        .13027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.2273        14.914        .13979E-03   -1.5134    
   5  Prefactor     .10000E-03    13.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.4577        .12535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.247        106.34        .96207E-04   -1.4877    
   9  norm          .10000E-03    4.3378        .11133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .34171        .32119        .28440E-03   -1.5591    
  11  Prefactor     .42116        68.472        .39127E-02   -1.5578    
  12  Prefactor     8.7277        20.737        .13561E-03   -1.5117    
  13  Prefactor     .10000E-03    15.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    49.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.690        .17513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4570        3.8853        .92929E-04   -1.5336    
  18  Prefactor     5.9809        267.12        .16189E-03   -1.5219    
  19  Prefactor     17.037        35.288        .96966E-04   -1.4882    
  20  norm          .10001E-03    20.824        .25212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3496        .33653        .24511E-03   -.82099    
  22  Prefactor     .67768        .21346        .22584E-03   -1.0441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17009e-09
Minuit parameter uncertainties:
  1  2.98431e-06
  2  3.40702e-05
  3  0.000244411
  4  14.921
  5  0.000110062
  6  8.26863e-06
  7  0.00036439
  8  85.8788
  9  6.82401e-05
  10  0.32119
  11  10.7514
  12  20.7544
  13  3.04159e-05
  14  0.000496626
  15  6.99552e-05
  16  0.000367944
  17  3.88556
  18  80.3254
  19  35.3307
  20  0.00101521
  21  0.337078
  22  0.213721
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  3.417e-01  3.212e-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.777e-01  2.137e-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.350e+00  3.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.70
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.83e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 3.02e-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) = 3020.9506196
delta logL = 0.275037005022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3020.94138544
delta logL = 0.284271167131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17946       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1408       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67704       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=   3020.941     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17952        .19560        .51639E-02   -.44402E-03
   2  alpha         1.1405        .52681        .28598       -.19740E-04
   3  Normalizat    1.3632        .26211        .55205E-01    .19664E-05
   4  Prefactor     .67717        .17836        .42095E-01    .89575E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.179518
  alpha      = 1.14053
  Normalizat = 1.36318
  Prefactor  = 0.677173
 **********
 **   18 **HESSE 
 **********

 FCN=   3020.941     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17952        .28730        .21810E-03   -1.5623    
   2  alpha         1.1405        .77000        .11990E-01   -.57494    
   3  Normalizat    1.3632        .30599        .24410E-03   -.81700    
   4  Prefactor     .67717        .20820        .22601E-03   -1.0443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15041e-10
Minuit parameter uncertainties:
  1  0.287298
  2  0.78843
  3  0.306399
  4  0.208437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63252': 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) = 3020.94138487
delta logL = 0.284271730784

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.795e-01  2.873e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.141e+00  7.884e-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.772e-01  2.084e-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.363e+00  3.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.26
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.14 +/- 0.79
Photon Flux (Free Index): 1.07e-08 +/- 1.54e-08
Energy Flux (Free Index): 7.66e-05 +/- 1.19e-04

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/63252/cmap_HighResolution_555292801_555552001_4FGL_J2158.8-3013_daily_bin1219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.83e-08', energy_flux2='7.66e-05', photon_flux_error='2.66e-08', dlogl='2.84e-01', energy_flux='3.21e-05', photon_flux2='1.07e-08', job_status='DONE', time_completed='2021-09-27 22:39:04.289403', photon_index_error2='0.79', photon_index2='1.14', ts='5.70', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.19e-04', EG='1.35', time_epoch_completed='1632807544.29', return_code='0', job_id='63252', GAL2='0.68', EG2='1.36', return_code2='0', energy_flux_error='3.02e-05', photon_flux_error2='1.54e-08', ts2='6.26', photon_index='1.77' WHERE bin_id='1219' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:39:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 63252: <4FGL_J2158.8-3013_daily_bin1219> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1219 329.714 -30.2251 555292801 555552001 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 :                                   430.46 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             382.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   491 sec.
    Turnaround time :                            784 sec.

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

