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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1313
RA = 329.714, Dec = -30.2251
tmin = 579657601, tmax = 579916801
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='64181', job_status='RUN', time_executed='2021-09-27 22:32:35.095504', time_epoch_executed='1632807155.1' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64181

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64181/ft1_4FGL_J2158.8-3013_daily_bin1313.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64181/ft2_4FGL_J2158.8-3013_daily_bin1313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64181/ft1_4FGL_J2158.8-3013_daily_bin1313.fits outfile=/scratch/kocevski/64181/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1313.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=579657601.0 tmax=579916801.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.43
user 3.20
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64181/ft1_filtered_4FGL_J2158.8-3013_daily_bin1313.fits" evtable="EVENTS" scfile=/scratch/kocevski/64181/ft2_4FGL_J2158.8-3013_daily_bin1313.fits sctable="SC_DATA" outfile=/scratch/kocevski/64181/ltcube_579657601_579916801_4FGL_J2158.8-3013_daily_bin1313.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/64181/ft2_4FGL_J2158.8-3013_daily_bin1313.fits
.....................!
real 13.74
user 13.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64181/ft1_filtered_4FGL_J2158.8-3013_daily_bin1313.fits evtable="EVENTS" scfile=/scratch/kocevski/64181/ft2_4FGL_J2158.8-3013_daily_bin1313.fits sctable="SC_DATA" expcube=/scratch/kocevski/64181/ltcube_579657601_579916801_4FGL_J2158.8-3013_daily_bin1313.fits outfile=/scratch/kocevski/64181/expmap_579657601_579916801_4FGL_J2158.8-3013_daily_bin1313.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/64181/ltcube_579657601_579916801_4FGL_J2158.8-3013_daily_bin1313.fits
.....................!
real 191.94
user 186.47
sys 5.10

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2158.8-3013 @ 329.714 -30.2251

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/64181/ft1_filtered_4FGL_J2158.8-3013_daily_bin1313.fits scfile=/scratch/kocevski/64181/ft2_4FGL_J2158.8-3013_daily_bin1313.fits outfile=/scratch/kocevski/64181/cmap_579657601_579916801_4FGL_J2158.8-3013_daily_bin1313.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64181/ft1_filtered_4FGL_J2158.8-3013_daily_bin1313.fits scfile=/scratch/kocevski/64181/ft2_4FGL_J2158.8-3013_daily_bin1313.fits outfile=/scratch/kocevski/64181/cmap_HighResolution_579657601_579916801_4FGL_J2158.8-3013_daily_bin1313.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4961       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6899       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.352       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.853       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.0035       1.0000         .10000E-03   10000.    
    10 'norm      '    .52099       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2001       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.892       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8847       1.0000         .10000E-03   10000.    
    17 'norm      '    .74306       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12190       1.0000         .10000E-03   10000.    
    20 'norm      '    .88362       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75411       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99224       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=   7920.388     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2064 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4956        4.4657        .54059E-02    .57969E-04
   2  Prefactor     .10000E-03    1.8121        .90712E-02** at limit **
   3  Prefactor     7.6909        7.1475        .36152E-02    .41412E-03
   4  Prefactor     28.352        12.685        .18810E-02   -.47493E-03
   5  Prefactor     .10000E-03    11.324        .90712E-02** at limit **
   6  norm          15.853        6.7883        .25148E-02    .53227E-04
   7  Prefactor     .10000E-03    5.6308        .90712E-02** at limit **
   8  Prefactor     .10000E-03    38.330        .90712E-02** at limit **
   9  norm          4.0029        3.6048        .50390E-02    .61792E-03
  10  norm          .52100        .26378        .68203E-02    .15517E-03
  11  Prefactor     .10000E-03    6.6100        .90712E-02** at limit **
  12  Prefactor     4.1999        15.912        .49160E-02    .75774E-03
  13  Prefactor     .10000E-03    1.5863        .90712E-02** at limit **
  14  norm          .10000E-03    10.032        .90712E-02** at limit **
  15  Prefactor     28.892        17.199        .18634E-02   -.72746E-03
  16  Prefactor     1.8742        10.336        .75795E-02    .11085E-02
  17  norm          .74322        .76124        .12226E-01   -.46755E-03
  18  Prefactor     .10000E-03    9.3715        .90712E-02** at limit **
  19  Prefactor     .82400E-01    5.3186        .96151E-01    .12567E-03
  20  norm          .88378        3.1170        .12748E-01    .16297E-02
  21  Normalizat    .75408        .15318        .62770E-01    .31438E-04
  22  Prefactor     .99236        .11017        .46170E-01    .40081E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.49561
  Prefactor  = 0.0001
  Prefactor  = 7.69091
  Prefactor  = 28.3517
  Prefactor  = 0.000100001
  norm       = 15.8526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.00291
  norm       = 0.521004
  Prefactor  = 0.0001
  Prefactor  = 4.19995
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 28.8922
  Prefactor  = 1.87424
  norm       = 0.74322
  Prefactor  = 0.0001
  Prefactor  = 0.0824003
  norm       = 0.883783
  Normalizat = 0.754084
  Prefactor  = 0.992365
 **********
 **   18 **HESSE 
 **********

 FCN=   7920.388     FROM HESSE     STATUS=OK           354 CALLS     2418 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4956        4.4628        .20705E-03   -1.5334    
   2  Prefactor     .10000E-03    1.8219        .11699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.6909        7.1380        .14461E-03   -1.5153    
   4  Prefactor     28.352        12.689        .75240E-04   -1.4643    
   5  Prefactor     .10000E-03    11.715        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.853        6.7854        .10059E-03   -1.4911    
   7  Prefactor     .10000E-03    5.6372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.0029        3.5865        .14507E-03   -1.5308    
  10  norm          .52100        .26178        .30214E-04   -1.5564    
  11  Prefactor     .10000E-03    6.7760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1999        15.957        .19664E-03   -1.5298    
  13  Prefactor     .10000E-03    1.5910        .10945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    10.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.892        17.227        .74536E-04   -1.4632    
  16  Prefactor     1.8742        10.378        .30318E-03   -1.5434    
  17  norm          .74322        .78308        .76581E-03   -1.5536    
  18  Prefactor     .10000E-03    9.3768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .82400E-01    10.554        .61880E-01   -1.5651    
  20  norm          .88378        3.1223        .28381E-03   -1.5520    
  21  Normalizat    .75408        .18008        .27767E-03   -1.0180    
  22  Prefactor     .99236        .12927        .19004E-03   -.92984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6547e-09
Minuit parameter uncertainties:
  1  4.46327
  2  1.23012e-07
  3  7.13881
  4  12.6902
  5  0.000166385
  6  6.78573
  7  1.32761e-06
  8  0.000106675
  9  3.58666
  10  0.26178
  11  1.75301e-06
  12  15.9732
  13  5.83013e-07
  14  0.000232982
  15  17.2296
  16  8.82291
  17  0.783091
  18  0.000130338
  19  1.86428
  20  3.12288
  21  0.180226
  22  0.129307
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.210e-01  2.618e-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:  9.924e-01  1.293e-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.541e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.87
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 2.17e-08
Energy Flux (Fixed Index): 4.90e-05 +/- 2.46e-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) = 7920.33181905
delta logL = 0.0561327229634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7920.32871308
delta logL = 0.0592386974167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50597       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6296       1.0000          .0000       5.0000    
     3 'Normalizat'    .76057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99041       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=   7920.329     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50599        1.2769        .69073E-02    .13735E-02
   2  alpha         1.6296        1.5038        .31300       -.64539E-04
   3  Normalizat    .76057        .15456        .62537E-01    .58786E-04
   4  Prefactor     .99041        .11493        .46147E-01   -.15184E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.505985
  alpha      = 1.62958
  Normalizat = 0.760568
  Prefactor  = 0.990415
 **********
 **   18 **HESSE 
 **********

 FCN=   7920.329     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50599        .26115        .30610E-04   -1.5566    
   2  alpha         1.6296        .38961        .11755E-01   -.35562    
   3  Normalizat    .76057        .16361        .27663E-03   -1.0155    
   4  Prefactor     .99041        .12711        .19024E-03   -.93050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34998e-11
Minuit parameter uncertainties:
  1  0.261155
  2  0.391428
  3  0.163713
  4  0.127147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64181': 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) = 7920.32871308
delta logL = 0.059238698369

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.060e-01  2.612e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.630e+00  3.914e-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:  9.904e-01  1.271e-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.606e-01  1.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.00
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.63 +/- 0.39
Photon Flux (Free Index): 3.65e-08 +/- 2.56e-08
Energy Flux (Free Index): 6.06e-05 +/- 4.90e-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/64181/cmap_HighResolution_579657601_579916801_4FGL_J2158.8-3013_daily_bin1313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='6.06e-05', photon_flux_error='2.17e-08', dlogl='5.92e-02', energy_flux='4.90e-05', photon_flux2='3.65e-08', job_status='DONE', time_completed='2021-09-27 22:42:49.672296', photon_index_error2='0.39', photon_index2='1.63', ts='17.87', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='4.90e-05', EG='0.75', time_epoch_completed='1632807769.67', return_code='0', job_id='64181', GAL2='0.99', EG2='0.76', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='2.56e-08', ts2='18.00', photon_index='1.77' WHERE bin_id='1313' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:42:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 64181: <4FGL_J2158.8-3013_daily_bin1313> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1313 329.714 -30.2251 579657601 579916801 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 :                                   602.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            752 sec.

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

