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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1500
RA = 329.714, Dec = -30.2251
tmin = 628128001, tmax = 628387201
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='64471', job_status='RUN', time_executed='2021-09-27 22:36:55.813181', time_epoch_executed='1632807415.81' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64471

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64471/ft1_4FGL_J2158.8-3013_daily_bin1500.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64471/ft2_4FGL_J2158.8-3013_daily_bin1500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64471/ft1_4FGL_J2158.8-3013_daily_bin1500.fits outfile=/scratch/kocevski/64471/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1500.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=628128001.0 tmax=628387201.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 5.28
user 4.98
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64471/ft1_filtered_4FGL_J2158.8-3013_daily_bin1500.fits" evtable="EVENTS" scfile=/scratch/kocevski/64471/ft2_4FGL_J2158.8-3013_daily_bin1500.fits sctable="SC_DATA" outfile=/scratch/kocevski/64471/ltcube_628128001_628387201_4FGL_J2158.8-3013_daily_bin1500.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/64471/ft2_4FGL_J2158.8-3013_daily_bin1500.fits
.....................!
real 14.99
user 14.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64471/ft1_filtered_4FGL_J2158.8-3013_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/64471/ft2_4FGL_J2158.8-3013_daily_bin1500.fits sctable="SC_DATA" expcube=/scratch/kocevski/64471/ltcube_628128001_628387201_4FGL_J2158.8-3013_daily_bin1500.fits outfile=/scratch/kocevski/64471/expmap_628128001_628387201_4FGL_J2158.8-3013_daily_bin1500.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/64471/ltcube_628128001_628387201_4FGL_J2158.8-3013_daily_bin1500.fits
.....................!
real 191.73
user 186.19
sys 4.82

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/64471/ft1_filtered_4FGL_J2158.8-3013_daily_bin1500.fits scfile=/scratch/kocevski/64471/ft2_4FGL_J2158.8-3013_daily_bin1500.fits outfile=/scratch/kocevski/64471/cmap_628128001_628387201_4FGL_J2158.8-3013_daily_bin1500.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64471/ft1_filtered_4FGL_J2158.8-3013_daily_bin1500.fits scfile=/scratch/kocevski/64471/ft2_4FGL_J2158.8-3013_daily_bin1500.fits outfile=/scratch/kocevski/64471/cmap_HighResolution_628128001_628387201_4FGL_J2158.8-3013_daily_bin1500.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.56
user 0.42
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64471/ft1_filtered_4FGL_J2158.8-3013_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/64471/ft2_4FGL_J2158.8-3013_daily_bin1500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64471/Model_4FGL_J2158.8-3013_daily_bin1500.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/64471/ft1_filtered_4FGL_J2158.8-3013_daily_bin1500.fits.....................!
real 35.85
user 34.52
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8266       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .38360       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.419       1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.373       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4577       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .64950       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=   3360.841     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2332 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6259       -.37628E-08** at limit **
   2  Prefactor     .10000E-03    7.6523        .29588E-05** at limit **
   3  Prefactor     .10000E-03    29.900        .19075E-04** at limit **
   4  Prefactor     .10000E-03    9.8228       -.61796E-06** at limit **
   5  Prefactor     9.8240        15.283       -.55671E-06   -.25100E-03
   6  norm          .10000E-03    5.4284       -.15948E-06** at limit **
   7  Prefactor     .10000E-03    8.0174       -.15423E-05** at limit **
   8  Prefactor     .10000E-03    21.394       -.13377E-04** at limit **
   9  norm          .10000E-03    2.7253        .19840E-07** at limit **
  10  norm          .38357        .29740        .63844E-08    .12627E-03
  11  Prefactor     .10000E-03    3.8747        .20099E-07** at limit **
  12  Prefactor     .10000E-03    11.263        .34187E-05** at limit **
  13  Prefactor     16.420        17.098       -.15741E-06   -.52892E-04
  14  norm          .10000E-03    42.570       -.11378E-04** at limit **
  15  Prefactor     14.373        29.769       -.87064E-06   -.16058E-03
  16  Prefactor     .10000E-03    8.9901       -.42718E-05** at limit **
  17  norm          .10000E-03    1.0220        .57735E-07** at limit **
  18  Prefactor     .10000E-03    25.297        .39171E-05** at limit **
  19  Prefactor     .10000E-03    40.804       -.30166E-05** at limit **
  20  norm          .10000E-03    10.267        .20736E-05** at limit **
  21  Normalizat    1.4576        .25718        .50446E-07   -.18696E-03
  22  Prefactor     .64949        .16807       -.59818E-07   -.17674E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.82404
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.383572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4198
  norm       = 0.0001
  Prefactor  = 14.3732
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.45759
  Prefactor  = 0.649491
 **********
 **   18 **HESSE 
 **********

 FCN=   3360.841     FROM HESSE     STATUS=OK           330 CALLS     2662 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6269        .10782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.6951        .15658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.8387        .17746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8240        15.295        .12783E-03   -1.5081    
   6  norm          .10000E-03    5.4476        .13191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0204        .16033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.7653        .93427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .38357        .30107        .27089E-04   -1.5584    
  11  Prefactor     .10000E-03    3.8766        .11145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.420        17.308        .98842E-04   -1.4897    
  14  norm          .10000E-03    42.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.373        29.827        .52824E-03   -1.4950    
  16  Prefactor     .10000E-03    9.0103        .16974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0229        .57236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.480        .18134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4576        .29849        .24138E-03   -.78977    
  22  Prefactor     .64949        .19399        .23317E-03   -1.0554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18978e-10
Minuit parameter uncertainties:
  1  2.14772e-08
  2  4.74293e-06
  3  0.0001857
  4  6.48958e-07
  5  15.3009
  6  3.59386e-06
  7  7.22936e-07
  8  1.20859e-06
  9  2.99546e-07
  10  0.301075
  11  7.38381e-10
  12  4.34026e-07
  13  17.3136
  14  3.92533e-05
  15  29.8577
  16  3.24405e-06
  17  1.09768e-07
  18  1.65325e-06
  19  3.01569e-05
  20  9.41351e-06
  21  0.298847
  22  0.194189
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  3.836e-01  3.011e-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.495e-01  1.942e-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.458e+00  2.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.56
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 3.18e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 3.60e-05 +/- 2.83e-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) = 3360.45001537
delta logL = 0.390920928986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3360.44480238
delta logL = 0.396133920564

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32399       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3102       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64988       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=   3360.445     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32396        .26347        .59857E-02    .88227E-03
   2  alpha         1.3103        .41040        .25257        .20312E-04
   3  Normalizat    1.4640        .24670        .54496E-01   -.21218E-04
   4  Prefactor     .64985        .16712        .41730E-01    .20184E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.323963
  alpha      = 1.31027
  Normalizat = 1.46401
  Prefactor  = 0.649847
 **********
 **   18 **HESSE 
 **********

 FCN=   3360.445     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32396        .30996        .26005E-04   -1.5594    
   2  alpha         1.3103        .50106        .10558E-01   -.49598    
   3  Normalizat    1.4640        .28250        .24095E-03   -.78795    
   4  Prefactor     .64985        .19142        .23320E-03   -1.0553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49651e-10
Minuit parameter uncertainties:
  1  0.309959
  2  0.505498
  3  0.282799
  4  0.191612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64471': 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) = 3360.44480235
delta logL = 0.396133954666

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  3.240e-01  3.100e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.310e+00  5.055e-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.498e-01  1.916e-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.464e+00  2.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.35
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.31 +/- 0.51
Photon Flux (Free Index): 1.93e-08 +/- 1.97e-08
Energy Flux (Free Index): 8.39e-05 +/- 1.04e-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/64471/cmap_HighResolution_628128001_628387201_4FGL_J2158.8-3013_daily_bin1500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.18e-08', energy_flux2='8.39e-05', photon_flux_error='2.49e-08', dlogl='3.96e-01', energy_flux='3.60e-05', photon_flux2='1.93e-08', job_status='DONE', time_completed='2021-09-27 22:45:53.509407', photon_index_error2='0.51', photon_index2='1.31', ts='8.56', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='1.04e-04', EG='1.46', time_epoch_completed='1632807953.51', return_code='0', job_id='64471', GAL2='0.65', EG2='1.46', return_code2='0', energy_flux_error='2.83e-05', photon_flux_error2='1.97e-08', ts2='9.35', photon_index='1.77' WHERE bin_id='1500' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:45:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 64471: <4FGL_J2158.8-3013_daily_bin1500> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1500 329.714 -30.2251 628128001 628387201 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 :                                   451.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            914 sec.

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

