/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 155 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2158.8-3013_daily_bin323
RA = 329.714, Dec = -30.2251
tmin = 323049601, tmax = 323308801
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='59756', job_status='RUN', time_executed='2021-09-27 22:20:15.011345', time_epoch_executed='1632806415.01' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59756

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59756/ft1_4FGL_J2158.8-3013_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59756/ft2_4FGL_J2158.8-3013_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59756/ft1_4FGL_J2158.8-3013_daily_bin323.fits outfile=/scratch/kocevski/59756/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin323.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=323049601.0 tmax=323308801.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.36
user 3.14
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59756/ft1_filtered_4FGL_J2158.8-3013_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/59756/ft2_4FGL_J2158.8-3013_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/59756/ltcube_323049601_323308801_4FGL_J2158.8-3013_daily_bin323.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/59756/ft2_4FGL_J2158.8-3013_daily_bin323.fits
.....................!
real 14.27
user 13.91
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59756/ft1_filtered_4FGL_J2158.8-3013_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/59756/ft2_4FGL_J2158.8-3013_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/59756/ltcube_323049601_323308801_4FGL_J2158.8-3013_daily_bin323.fits outfile=/scratch/kocevski/59756/expmap_323049601_323308801_4FGL_J2158.8-3013_daily_bin323.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/59756/ltcube_323049601_323308801_4FGL_J2158.8-3013_daily_bin323.fits
.....................!
real 192.46
user 186.15
sys 5.75

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/59756/ft1_filtered_4FGL_J2158.8-3013_daily_bin323.fits scfile=/scratch/kocevski/59756/ft2_4FGL_J2158.8-3013_daily_bin323.fits outfile=/scratch/kocevski/59756/cmap_323049601_323308801_4FGL_J2158.8-3013_daily_bin323.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59756/ft1_filtered_4FGL_J2158.8-3013_daily_bin323.fits scfile=/scratch/kocevski/59756/ft2_4FGL_J2158.8-3013_daily_bin323.fits outfile=/scratch/kocevski/59756/cmap_HighResolution_323049601_323308801_4FGL_J2158.8-3013_daily_bin323.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/59756/ft1_filtered_4FGL_J2158.8-3013_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/59756/ft2_4FGL_J2158.8-3013_daily_bin323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59756/Model_4FGL_J2158.8-3013_daily_bin323.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/59756/ft1_filtered_4FGL_J2158.8-3013_daily_bin323.fits.....................!
real 72.17
user 70.67
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8533       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .80420       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .42699       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8512       1.0000         .10000E-03   10000.    
     6 'norm      '    4.1925       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    25.952       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1740       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0582       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .20999E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.495       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.412       1.0000         .10000E-03   10000.    
    17 'norm      '    .10307E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.034       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .46618E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3537       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79464       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1074       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=   9171.512     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2401 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8516        5.4838        .86984E-08    .38721E-04
   2  Prefactor     .10000E-03    3.7052       -.97319E-07** at limit **
   3  Prefactor     .80583        3.2850       -.32867E-06    .28620E-04
   4  Prefactor     .45199        15.370       -.57622E-05    .76703E-03
   5  Prefactor     8.8559        7.3864        .11474E-06    .30923E-04
   6  norm          4.1913        4.1928        .64880E-07    .93771E-04
   7  Prefactor     .10000E-03    6.1357       -.42233E-07** at limit **
   8  Prefactor     .10000E-03    15.703       -.64096E-07** at limit **
   9  norm          25.954        5.3738        .66488E-07    .22626E-03
  10  norm          1.1740        .35685        .10343E-09    .17953E-03
  11  Prefactor     .10000E-03    2.0479       -.27353E-07** at limit **
  12  Prefactor     8.0538        12.202        .62070E-07   -.21683E-04
  13  Prefactor     .10000E-03    4.5001       -.12402E-06** at limit **
  14  norm          .10000E-03    35.957        .14609E-05** at limit **
  15  Prefactor     10.493        16.300        .17880E-06    .14704E-04
  16  Prefactor     23.417        12.772       -.51246E-06   -.36722E-03
  17  norm          .10000E-03    1.3435        .18966E-05** at limit **
  18  Prefactor     27.964        43.442        .31158E-05    .29746E-03
  19  Prefactor     .10000E-03    4.6412       -.15031E-05** at limit **
  20  norm          2.3492        3.7228        .56075E-06    .11902E-02
  21  Normalizat    .79466        .16096       -.14775E-05   -.74565E-04
  22  Prefactor     1.1073        .11671        .65909E-06   -.66827E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.85156
  Prefactor  = 0.0001
  Prefactor  = 0.805831
  Prefactor  = 0.451994
  Prefactor  = 8.85588
  norm       = 4.19127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.9537
  norm       = 1.17395
  Prefactor  = 0.0001
  Prefactor  = 8.05381
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 10.4926
  Prefactor  = 23.4168
  norm       = 0.000100002
  Prefactor  = 27.9638
  Prefactor  = 0.000100005
  norm       = 2.34917
  Normalizat = 0.79466
  Prefactor  = 1.10731
 **********
 **   18 **HESSE 
 **********

 FCN=   9171.512     FROM HESSE     STATUS=OK           350 CALLS     2751 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8516        5.4866        .14308E-03   -1.5147    
   2  Prefactor     .10000E-03    3.7622        .17997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .80583        12.514        .30936E-02   -1.5528    
   4  Prefactor     .45199        33.516        .38425E-02   -1.5574    
   5  Prefactor     8.8559        7.3823        .13473E-03   -1.5113    
   6  norm          4.1913        4.1887        .94880E-03   -1.5298    
   7  Prefactor     .10000E-03    6.1632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          25.954        5.3782        .78636E-04   -1.4689    
  10  norm          1.1740        .35678        .29480E-04   -1.5491    
  11  Prefactor     .10000E-03    2.0528        .13382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.0538        12.203        .14124E-03   -1.5140    
  13  Prefactor     .10000E-03    4.6713        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    36.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.493        16.320        .12368E-03   -1.5060    
  16  Prefactor     23.417        12.881        .82785E-04   -1.4740    
  17  norm          .10000E-03    1.4616        .22076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.964        44.363        .75665E-04   -1.4650    
  19  Prefactor     .10000E-03    19.939        .36188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3492        3.8343        .11478E-02   -1.5401    
  21  Normalizat    .79466        .17897        .30570E-03   -1.0027    
  22  Prefactor     1.1073        .13149        .20240E-03   -.89233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27432e-08
Minuit parameter uncertainties:
  1  5.48692
  2  6.5625e-06
  3  6.35232
  4  7.788
  5  7.38302
  6  4.18898
  7  4.15305e-07
  8  1.52944e-06
  9  5.3783
  10  0.356779
  11  6.91697e-07
  12  12.2067
  13  1.00219e-05
  14  0.000416618
  15  16.3268
  16  12.8826
  17  0.000102143
  18  44.4154
  19  0.000617048
  20  3.83466
  21  0.179101
  22  0.131532
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.174e+00  3.568e-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:  1.107e+00  1.315e-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:  7.947e-01  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.87
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 9.73e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 1.10e-04 +/- 3.35e-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) = 9171.06378706
delta logL = 0.448663695426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9171.06368653
delta logL = 0.448764219847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1032       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9913       1.0000          .0000       5.0000    
     3 'Normalizat'    .77610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1143       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=   9171.064     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1032        4.2518        .62003E-02    .13025E-03
   2  alpha         1.9912        3.4643        .18763        .58957E-04
   3  Normalizat    .77609        .11570        .69745E-01    .33259E-04
   4  Prefactor     1.1144        .68155E-01    .37066E-01    .87473E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10319
  alpha      = 1.99123
  Normalizat = 0.776088
  Prefactor  = 1.11435
 **********
 **   18 **HESSE 
 **********

 FCN=   9171.064     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .89E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1032        .34385        .27408E-04   -1.5498    
   2  alpha         1.9912        .24494        .76754E-02   -.20494    
   3  Normalizat    .77609        .16870        .30863E-03   -1.0096    
   4  Prefactor     1.1144        .12973        .20171E-03   -.89009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90725e-13
Minuit parameter uncertainties:
  1  0.343848
  2  0.245351
  3  0.168811
  4  0.129762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59756': 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) = 9171.06368648
delta logL = 0.448764274737

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.103e+00  3.438e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.991e+00  2.454e-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:  1.114e+00  1.298e-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:  7.761e-01  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.19
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.99 +/- 0.25
Photon Flux (Free Index): 1.21e-07 +/- 4.20e-08
Energy Flux (Free Index): 7.98e-05 +/- 3.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/59756/cmap_HighResolution_323049601_323308801_4FGL_J2158.8-3013_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.73e-08', energy_flux2='7.98e-05', photon_flux_error='2.96e-08', dlogl='4.49e-01', energy_flux='1.10e-04', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-27 22:31:46.477937', photon_index_error2='0.25', photon_index2='1.99', ts='38.87', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='3.42e-05', EG='0.79', time_epoch_completed='1632807106.48', return_code='0', job_id='59756', GAL2='1.11', EG2='0.78', return_code2='0', energy_flux_error='3.35e-05', photon_flux_error2='4.20e-08', ts2='40.19', photon_index='1.77' WHERE bin_id='323' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:31:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 59756: <4FGL_J2158.8-3013_daily_bin323> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin323> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:15:25 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:17:30 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:17:30 2021
Terminated at Mon Sep 27 22:31:47 2021
Results reported at Mon Sep 27 22:31:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin323 329.714 -30.2251 323049601 323308801 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 :                                   688.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            982 sec.

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

