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


Performing analysis on: 4FGL_J2158.1-1501_daily_bin1364
RA = 329.527, Dec = -15.0237
tmin = 592876801, tmax = 593136001
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='57810', job_status='RUN', time_executed='2021-09-27 22:11:22.723752', time_epoch_executed='1632805882.72' WHERE source_name='4FGL J2158.1-1501' and cadence='daily' and bin_id='1364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57810

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57810/ft1_4FGL_J2158.1-1501_daily_bin1364.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57810/ft2_4FGL_J2158.1-1501_daily_bin1364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57810/ft1_4FGL_J2158.1-1501_daily_bin1364.fits outfile=/scratch/kocevski/57810/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1364.fits ra=329.527 dec=-15.0237 rad=12.0 tmin=592876801.0 tmax=593136001.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.87
user 3.60
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/57810/ft2_4FGL_J2158.1-1501_daily_bin1364.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/57810/ft2_4FGL_J2158.1-1501_daily_bin1364.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/57810/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1364.fits evtable="EVENTS" outfile="/scratch/kocevski/57810/ft1_filtered_4FGL_J2158.1-1501_daily_bin1364.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57810/ft1_filtered_4FGL_J2158.1-1501_daily_bin1364.fits" evtable="EVENTS" scfile=/scratch/kocevski/57810/ft2_4FGL_J2158.1-1501_daily_bin1364.fits sctable="SC_DATA" outfile=/scratch/kocevski/57810/ltcube_592876801_593136001_4FGL_J2158.1-1501_daily_bin1364.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/57810/ft2_4FGL_J2158.1-1501_daily_bin1364.fits
.....................!
real 12.92
user 12.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57810/ft1_filtered_4FGL_J2158.1-1501_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/57810/ft2_4FGL_J2158.1-1501_daily_bin1364.fits sctable="SC_DATA" expcube=/scratch/kocevski/57810/ltcube_592876801_593136001_4FGL_J2158.1-1501_daily_bin1364.fits outfile=/scratch/kocevski/57810/expmap_592876801_593136001_4FGL_J2158.1-1501_daily_bin1364.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/57810/ltcube_592876801_593136001_4FGL_J2158.1-1501_daily_bin1364.fits
.....................!
real 193.25
user 187.59
sys 5.31

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 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J2158.1-1501 @ 329.527 -15.0237

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/57810/ft1_filtered_4FGL_J2158.1-1501_daily_bin1364.fits scfile=/scratch/kocevski/57810/ft2_4FGL_J2158.1-1501_daily_bin1364.fits outfile=/scratch/kocevski/57810/cmap_592876801_593136001_4FGL_J2158.1-1501_daily_bin1364.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.527 yref=-15.0237 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57810/ft1_filtered_4FGL_J2158.1-1501_daily_bin1364.fits scfile=/scratch/kocevski/57810/ft2_4FGL_J2158.1-1501_daily_bin1364.fits outfile=/scratch/kocevski/57810/cmap_HighResolution_592876801_593136001_4FGL_J2158.1-1501_daily_bin1364.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.527 yref=-15.0237 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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57810/ft1_filtered_4FGL_J2158.1-1501_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/57810/ft2_4FGL_J2158.1-1501_daily_bin1364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57810/Model_4FGL_J2158.1-1501_daily_bin1364.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/57810/ft1_filtered_4FGL_J2158.1-1501_daily_bin1364.fits.....................!
real 54.00
user 52.63
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/57810/ft1_filtered_4FGL_J2158.1-1501_daily_bin1364.fits', '/scratch/kocevski/57810/ft2_4FGL_J2158.1-1501_daily_bin1364.fits', expMap='/scratch/kocevski/57810/expmap_592876801_593136001_4FGL_J2158.1-1501_daily_bin1364.fits', expCube='/scratch/kocevski/57810/ltcube_592876801_593136001_4FGL_J2158.1-1501_daily_bin1364.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/57810/Model_4FGL_J2158.1-1501_daily_bin1364.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2158.1-1501'

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  6.798e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
270        Index:  2.181e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.246e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/57810/ft1_filtered_4FGL_J2158.1-1501_daily_bin1364.fits
Spacecraft file(s): /scratch/kocevski/57810/ft2_4FGL_J2158.1-1501_daily_bin1364.fits
Exposure map: /scratch/kocevski/57810/expmap_592876801_593136001_4FGL_J2158.1-1501_daily_bin1364.fits
Exposure cube: /scratch/kocevski/57810/ltcube_592876801_593136001_4FGL_J2158.1-1501_daily_bin1364.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/57810/Model_4FGL_J2158.1-1501_daily_bin1364.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) = 5819.41096926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42172E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4049       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9172       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.924       1.0000         .10000E-03   10000.    
    14 'Prefactor '    98.141       1.0000         .10000E-03   10000.    
    15 'Prefactor '    46.450       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1501       1.0000         .10000E-03   10000.    
    17 'norm      '    .21101E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .96083       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90212       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+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=   5819.404     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     2279 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.118        .18142E-02** at limit **
   2  Prefactor     .10000E-03    5.1580        .16905E-02** at limit **
   3  Prefactor     .10000E-03    1.9983        .10504E-02** at limit **
   4  Prefactor     .10000E-03    6.5783        .36285E-03** at limit **
   5  Prefactor     .19636        55.400        .17249        .66731E-04
   6  Prefactor     .10000E-03    3.9726        .14844E-02** at limit **
   7  Prefactor     .10000E-03    6.8843        .18142E-02** at limit **
   8  norm          .10000E-03    2.0083        .10552E-02** at limit **
   9  Prefactor     .10000E-03    10.949        .27470E-02** at limit **
  10  Prefactor     8.4057        10.707        .13828E-03    .87972E-05
  11  Prefactor     1.9198        6.9394        .30015E-03   -.12234E-04
  12  Prefactor     .10000E-03    8.3188        .18142E-02** at limit **
  13  Prefactor     26.926        21.016        .77206E-04   -.91002E-04
  14  Prefactor     98.134        73.252        .40577E-04   -.14423E-03
  15  Prefactor     46.454        44.023        .29415E-03    .60609E-04
  16  norm          1.1510        2.6028        .17931E-03   -.12934E-04
  17  norm          .10002E-03    .98381        .16277E-01** at limit **
  18  Normalizat    .96056        .23352        .27538E-03   -.37238E-04
  19  Prefactor     .90226        .15172        .18847E-03    .22084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.196363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 8.40568
  Prefactor  = 1.91977
  Prefactor  = 0.0001
  Prefactor  = 26.9264
  Prefactor  = 98.1343
  Prefactor  = 46.4541
  norm       = 1.15097
  norm       = 0.00010002
  Normalizat = 0.960559
  Prefactor  = 0.902259
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.404     FROM HESSE     STATUS=OK           268 CALLS     2547 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1583        .33810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9984        .21007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5788        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19636        57.114        .16861       -1.5619    
   6  Prefactor     .10000E-03    3.9727        .29688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8854        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.0083        .21105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.075        .54940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4057        10.708        .55311E-05   -1.5128    
  11  Prefactor     1.9198        6.9382        .12006E-04   -1.5431    
  12  Prefactor     .10000E-03    8.3224        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.926        21.016        .30882E-05   -1.4670    
  14  Prefactor     98.134        73.255        .81155E-05   -1.3723    
  15  Prefactor     46.454        44.027        .58831E-04   -1.4344    
  16  norm          1.1510        2.6026        .71723E-05   -1.5493    
  17  norm          .10002E-03    .75038        .19558E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .96056        .23381        .11015E-04   -.94364    
  19  Prefactor     .90226        .15188        .37695E-04   -.96062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68044e-10
Minuit parameter uncertainties:
  1  0.000161125
  2  6.8399e-06
  3  1.2163e-06
  4  4.70324e-05
  5  6.70253
  6  4.81072e-06
  7  1.35759e-06
  8  5.56607e-07
  9  0.000264154
  10  10.7102
  11  6.94107
  12  8.04834e-05
  13  21.0213
  14  73.3226
  15  44.0575
  16  2.60286
  17  0.000245152
  18  0.234058
  19  0.151948
Done.

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

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  8.406e+00  1.071e+01  1.000e-04  1.000e+04 ( 1.000e-13)
270        Index:  2.181e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.246e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  9.023e-01  1.519e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  9.606e-01  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 329.527 -15.024
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.74e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 8.12e-06 +/- 1.03e-05

TS (Fixed Index): 1.00
Ra Dec: 329.527 -15.024
Photon Flux Upper Limit: 7.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57810/likelihoodResults_592876801_593136001_4FGL_J2158.1-1501_daily_bin1364.txt

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) = 5819.39579074
delta logL = 0.00827765105441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5819.39395448
delta logL = 0.0101139184981

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1003       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0506       1.0000          .0000       10.000    
     3 'Normalizat'    .96333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90119       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+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=   5819.394     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      245 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0950        12.426        .66430E-03   -.36675E-04
   2  Index         2.0511        .90739        .10477E-01   -.63097E-05
   3  Normalizat    .96335        .22613        .27502E-03   -.14919E-03
   4  Prefactor     .90117        .15094        .18857E-03   -.90288E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.09501
  Index      = 2.05113
  Normalizat = 0.963351
  Prefactor  = 0.901172
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.394     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0950        12.194        .26572E-04   -1.5105    
   2  Index         2.0511        .89076        .41909E-03   -.63078    
   3  Normalizat    .96335        .22626        .11001E-04   -.94269    
   4  Prefactor     .90117        .15106        .37714E-04   -.96100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05105e-11
Minuit parameter uncertainties:
  1  12.1969
  2  0.898152
  3  0.226483
  4  0.151126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57810': 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) = 5819.39395422
delta logL = 0.0101141733712

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  9.095e+00  1.220e+01  1.000e-04  1.000e+04 ( 1.000e-13)
270        Index:  2.051e+00  8.982e-01  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  1.246e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  9.012e-01  1.511e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  9.634e-01  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 329.527 -15.024
Photon Index (Free Index): 2.05 +/- 0.90
Photon Flux (Free Index): 1.53e-08 +/- 2.49e-08
Energy Flux (Free Index): 9.34e-06 +/- 1.55e-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/57810/cmap_HighResolution_592876801_593136001_4FGL_J2158.1-1501_daily_bin1364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', comment='SUCCESS', photon_flux='1.74e-08', energy_flux2='9.34e-06', photon_flux_error='2.22e-08', dlogl='1.01e-02', energy_flux='8.12e-06', photon_flux2='1.53e-08', job_status='DONE', time_completed='2021-09-27 22:21:02.464375', photon_index_error2='0.90', photon_index2='2.05', ts='1.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='7.81e-08', energy_flux_error2='1.55e-05', EG='0.96', time_epoch_completed='1632806462.46', return_code='0', job_id='57810', GAL2='0.90', EG2='0.96', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='2.49e-08', ts2='1.02', photon_index='2.18' WHERE bin_id='1364' AND source_name='4FGL J2158.1-1501' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:21:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 57810: <4FGL_J2158.1-1501_daily_bin1364> in cluster <slac> Done

Job <4FGL_J2158.1-1501_daily_bin1364> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep 27 22:10:19 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:10:22 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:10:22 2021
Terminated at Mon Sep 27 22:21:03 2021
Results reported at Mon Sep 27 22:21:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.1-1501_daily_bin1364 329.527 -15.0237 592876801 593136001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2158.1-1501 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   563.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            644 sec.

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

