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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1352
RA = 329.714, Dec = -30.2251
tmin = 589766401, tmax = 590025601
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='64239', job_status='RUN', time_executed='2021-09-27 22:33:10.402977', time_epoch_executed='1632807190.4' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64239

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64239/ft1_4FGL_J2158.8-3013_daily_bin1352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64239/ft2_4FGL_J2158.8-3013_daily_bin1352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64239/ft1_4FGL_J2158.8-3013_daily_bin1352.fits outfile=/scratch/kocevski/64239/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1352.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=589766401.0 tmax=590025601.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.25
user 5.03
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64239/ft1_filtered_4FGL_J2158.8-3013_daily_bin1352.fits" evtable="EVENTS" scfile=/scratch/kocevski/64239/ft2_4FGL_J2158.8-3013_daily_bin1352.fits sctable="SC_DATA" outfile=/scratch/kocevski/64239/ltcube_589766401_590025601_4FGL_J2158.8-3013_daily_bin1352.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/64239/ft2_4FGL_J2158.8-3013_daily_bin1352.fits
.....................!
real 13.80
user 13.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64239/ft1_filtered_4FGL_J2158.8-3013_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/64239/ft2_4FGL_J2158.8-3013_daily_bin1352.fits sctable="SC_DATA" expcube=/scratch/kocevski/64239/ltcube_589766401_590025601_4FGL_J2158.8-3013_daily_bin1352.fits outfile=/scratch/kocevski/64239/expmap_589766401_590025601_4FGL_J2158.8-3013_daily_bin1352.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/64239/ltcube_589766401_590025601_4FGL_J2158.8-3013_daily_bin1352.fits
.....................!
real 191.49
user 186.14
sys 4.53

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/64239/ft1_filtered_4FGL_J2158.8-3013_daily_bin1352.fits scfile=/scratch/kocevski/64239/ft2_4FGL_J2158.8-3013_daily_bin1352.fits outfile=/scratch/kocevski/64239/cmap_589766401_590025601_4FGL_J2158.8-3013_daily_bin1352.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64239/ft1_filtered_4FGL_J2158.8-3013_daily_bin1352.fits scfile=/scratch/kocevski/64239/ft2_4FGL_J2158.8-3013_daily_bin1352.fits outfile=/scratch/kocevski/64239/cmap_HighResolution_589766401_590025601_4FGL_J2158.8-3013_daily_bin1352.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64239/ft1_filtered_4FGL_J2158.8-3013_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/64239/ft2_4FGL_J2158.8-3013_daily_bin1352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64239/Model_4FGL_J2158.8-3013_daily_bin1352.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/64239/ft1_filtered_4FGL_J2158.8-3013_daily_bin1352.fits.....................!
real 66.50
user 65.04
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9922       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4520       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8953       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2314       1.0000         .10000E-03   10000.    
     6 'norm      '    .56413       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.977       1.0000         .10000E-03   10000.    
     9 'norm      '    .13545       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5820       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2493       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    14.123       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.052       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6061       1.0000         .10000E-03   10000.    
    17 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    58.300       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11353E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.0739       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2593       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .70320       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=   8430.741     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2396 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9922        3.2347       -.23210E-07   -.40258E-04
   2  Prefactor     .10000E-03    2.6068       -.68834E-07** at limit **
   3  Prefactor     4.4513        6.1071        .14249E-06   -.38344E-04
   4  Prefactor     8.8967        8.8460        .22355E-07   -.67365E-04
   5  Prefactor     1.2319        3.4489        .18977E-06   -.21467E-02
   6  norm          .61162        3.4507        .31803E-06   -.22964E-03
   7  Prefactor     .10000E-03    6.6187        .12337E-05** at limit **
   8  Prefactor     16.990        29.010       -.16940E-06   -.16767E-04
   9  norm          .13231        1.6360        .53181E-06   -.62443E-03
  10  norm          1.5822        .36437       -.18327E-07   -.20519E-02
  11  Prefactor     1.2485        4.7439        .43115E-06   -.15844E-02
  12  Prefactor     .10000E-03    5.8448       -.15286E-07** at limit **
  13  Prefactor     .10000E-03    1.3505       -.11437E-07** at limit **
  14  norm          14.125        16.181        .10229E-06   -.18216E-04
  15  Prefactor     13.054        16.353        .26777E-06    .55001E-05
  16  Prefactor     7.6066        11.072        .32097E-06   -.51250E-04
  17  norm          .10000E-03    .93013        .13625E-05** at limit **
  18  Prefactor     58.321        42.656       -.47726E-06   -.70694E-04
  19  Prefactor     .10000E-03    5.4195        .22801E-06** at limit **
  20  norm          3.0740        3.5333        .88160E-07   -.38519E-04
  21  Normalizat    1.2593        .16112       -.16165E-05   -.30882E-03
  22  Prefactor     .70318        .10854        .11654E-05   -.28718E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.99222
  Prefactor  = 0.0001
  Prefactor  = 4.45126
  Prefactor  = 8.89674
  Prefactor  = 1.23188
  norm       = 0.611624
  Prefactor  = 0.0001
  Prefactor  = 16.9898
  norm       = 0.132314
  norm       = 1.5822
  Prefactor  = 1.24855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.1252
  Prefactor  = 13.054
  Prefactor  = 7.60665
  norm       = 0.0001
  Prefactor  = 58.3212
  Prefactor  = 0.0001
  norm       = 3.07396
  Normalizat = 1.25926
  Prefactor  = 0.703181
 **********
 **   18 **HESSE 
 **********

 FCN=   8430.741     FROM HESSE     STATUS=OK           354 CALLS     2750 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9922        3.2128        .20510E-03   -1.5426    
   2  Prefactor     .10000E-03    2.6313        .14474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4513        6.1064        .19084E-03   -1.5286    
   4  Prefactor     8.8967        8.8413        .13439E-03   -1.5111    
   5  Prefactor     1.2319        4.9108        .19203E-02   -1.5486    
   6  norm          .61162        18.851        .31311E-02   -1.5552    
   7  Prefactor     .10000E-03    6.6465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.990        29.008        .97205E-04   -1.4883    
   9  norm          .13231        19.648        .19914E-02   -1.5635    
  10  norm          1.5822        .37037        .25030E-04   -1.5456    
  11  Prefactor     1.2485        8.0194        .20012E-02   -1.5484    
  12  Prefactor     .10000E-03    5.8675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3526        .10419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.125        16.182        .10658E-03   -1.4956    
  15  Prefactor     13.054        16.380        .11087E-03   -1.4985    
  16  Prefactor     7.6066        11.079        .14541E-03   -1.5156    
  17  norm          .10000E-03    .96362        .17333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     58.321        42.777        .52543E-04   -1.4179    
  19  Prefactor     .10000E-03    25.523        .41036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0740        3.5210        .17914E-03   -1.5357    
  21  Normalizat    1.2593        .17814        .23603E-03   -.84791    
  22  Prefactor     .70318        .12049        .22200E-03   -1.0340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90043e-08
Minuit parameter uncertainties:
  1  3.21306
  2  1.85909e-06
  3  6.1073
  4  8.84262
  5  4.91242
  6  6.79294
  7  7.80946e-05
  8  29.0317
  9  3.22457
  10  0.370375
  11  6.32951
  12  4.60623e-07
  13  2.37915e-07
  14  16.1873
  15  16.3857
  16  11.082
  17  3.16172e-05
  18  42.7995
  19  8.87217e-05
  20  3.52125
  21  0.178223
  22  0.120534
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.582e+00  3.704e-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:  7.032e-01  1.205e-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.259e+00  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 108.78
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 3.07e-08
Energy Flux (Fixed Index): 1.49e-04 +/- 3.48e-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) = 8430.65980426
delta logL = 0.0811377583959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8430.65720106
delta logL = 0.0837409585147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5860       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6932       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70016       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=   8430.657     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      214 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5860        .41266        .57735E-02   -.15201E-03
   2  alpha         1.6932        .19806        .15077        .54795E-05
   3  Normalizat    1.2690        .14456        .53224E-01    .53642E-05
   4  Prefactor     .70017        .10405        .42403E-01    .19695E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58602
  alpha      = 1.69317
  Normalizat = 1.26905
  Prefactor  = 0.700167
 **********
 **   18 **HESSE 
 **********

 FCN=   8430.657     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .94E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5860        .36170        .25470E-04   -1.5456    
   2  alpha         1.6932        .17922        .64301E-02   -.32862    
   3  Normalizat    1.2690        .16514        .23533E-03   -.84495    
   4  Prefactor     .70017        .11879        .22249E-03   -1.0352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.44679e-15
Minuit parameter uncertainties:
  1  0.361703
  2  0.179393
  3  0.165208
  4  0.118836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64239': 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) = 8430.65720106
delta logL = 0.0837409600917

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.586e+00  3.617e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.693e+00  1.794e-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:  7.002e-01  1.188e-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.269e+00  1.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 108.85
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.69 +/- 0.18
Photon Flux (Free Index): 1.22e-07 +/- 3.58e-08
Energy Flux (Free Index): 1.69e-04 +/- 6.55e-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/64239/cmap_HighResolution_589766401_590025601_4FGL_J2158.8-3013_daily_bin1352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='1.69e-04', photon_flux_error='3.07e-08', dlogl='8.37e-02', energy_flux='1.49e-04', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-27 22:44:28.971407', photon_index_error2='0.18', photon_index2='1.69', ts='108.78', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='6.55e-05', EG='1.26', time_epoch_completed='1632807868.97', return_code='0', job_id='64239', GAL2='0.70', EG2='1.27', return_code2='0', energy_flux_error='3.48e-05', photon_flux_error2='3.58e-08', ts2='108.85', photon_index='1.77' WHERE bin_id='1352' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:44:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 64239: <4FGL_J2158.8-3013_daily_bin1352> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1352> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:30:22 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:32:19 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:32:19 2021
Terminated at Mon Sep 27 22:44:29 2021
Results reported at Mon Sep 27 22:44:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1352 329.714 -30.2251 589766401 590025601 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 :                                   667.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            847 sec.

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

