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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1514
RA = 329.714, Dec = -30.2251
tmin = 631756801, tmax = 632016001
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='64491', job_status='RUN', time_executed='2021-09-27 22:36:00.896274', time_epoch_executed='1632807360.9' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64491

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64491/ft1_4FGL_J2158.8-3013_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64491/ft2_4FGL_J2158.8-3013_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64491/ft1_4FGL_J2158.8-3013_daily_bin1514.fits outfile=/scratch/kocevski/64491/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1514.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=631756801.0 tmax=632016001.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 2.40
user 2.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64491/ft1_filtered_4FGL_J2158.8-3013_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/64491/ft2_4FGL_J2158.8-3013_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/64491/ltcube_631756801_632016001_4FGL_J2158.8-3013_daily_bin1514.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/64491/ft2_4FGL_J2158.8-3013_daily_bin1514.fits
.....................!
real 13.92
user 13.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64491/ft1_filtered_4FGL_J2158.8-3013_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/64491/ft2_4FGL_J2158.8-3013_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/64491/ltcube_631756801_632016001_4FGL_J2158.8-3013_daily_bin1514.fits outfile=/scratch/kocevski/64491/expmap_631756801_632016001_4FGL_J2158.8-3013_daily_bin1514.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/64491/ltcube_631756801_632016001_4FGL_J2158.8-3013_daily_bin1514.fits
.....................!
real 191.20
user 185.90
sys 4.94

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/64491/ft1_filtered_4FGL_J2158.8-3013_daily_bin1514.fits scfile=/scratch/kocevski/64491/ft2_4FGL_J2158.8-3013_daily_bin1514.fits outfile=/scratch/kocevski/64491/cmap_631756801_632016001_4FGL_J2158.8-3013_daily_bin1514.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.55
user 0.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64491/ft1_filtered_4FGL_J2158.8-3013_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/64491/ft2_4FGL_J2158.8-3013_daily_bin1514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64491/Model_4FGL_J2158.8-3013_daily_bin1514.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/64491/ft1_filtered_4FGL_J2158.8-3013_daily_bin1514.fits.....................!
real 43.82
user 42.52
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.212       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.343       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5036       1.0000         .10000E-03   10000.    
     6 'norm      '    27.719       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3655       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.665       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.408       1.0000         .10000E-03   10000.    
    14 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.882       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7923       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7630       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.305       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7670       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3010       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94369       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=   4879.534     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2338 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.8255        .31420E-07** at limit **
   2  Prefactor     .10000E-03    4.1536       -.26105E-07** at limit **
   3  Prefactor     27.212        14.553       -.15302E-06    .23564E-04
   4  Prefactor     21.334        28.122       -.22787E-05   -.33597E-04
   5  Prefactor     1.5047        14.118       -.11474E-05   -.11981E-03
   6  norm          27.719        14.238       -.62899E-07    .18372E-04
   7  Prefactor     .10000E-03    23.262        .41442E-07** at limit **
   8  Prefactor     .10000E-03    110.37        .11762E-05** at limit **
   9  norm          .10000E-03    4.7300       -.33184E-07** at limit **
  10  norm          2.3653        .64815       -.11211E-07    .19339E-03
  11  Prefactor     .10000E-03    5.1345        .40923E-08** at limit **
  12  Prefactor     20.657        26.134       -.16778E-05   -.20156E-04
  13  Prefactor     11.406        13.895        .14666E-07   -.85302E-05
  14  norm          .10000E-03    57.806       -.14349E-06** at limit **
  15  Prefactor     26.871        42.470       -.82867E-05   -.92196E-04
  16  Prefactor     2.7909        4.3686        .13017E-05   -.14503E-02
  17  norm          2.7623        2.5497        .32294E-06   -.37653E-04
  18  Prefactor     43.294        43.217       -.66319E-05   -.11654E-03
  19  Prefactor     .10000E-03    12.234        .13087E-07** at limit **
  20  norm          1.7670        4.0575       -.36443E-07   -.14450E-03
  21  Normalizat    1.3011        .27164        .24227E-05   -.45786E-04
  22  Prefactor     .94357        .19247        .10277E-06    .71786E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2122
  Prefactor  = 21.3344
  Prefactor  = 1.50467
  norm       = 27.7194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.36531
  Prefactor  = 0.0001
  Prefactor  = 20.6571
  Prefactor  = 11.4059
  norm       = 0.0001
  Prefactor  = 26.8713
  Prefactor  = 2.79089
  norm       = 2.7623
  Prefactor  = 43.2943
  Prefactor  = 0.0001
  norm       = 1.76698
  Normalizat = 1.30108
  Prefactor  = 0.943565
 **********
 **   18 **HESSE 
 **********

 FCN=   4879.534     FROM HESSE     STATUS=OK           344 CALLS     2682 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.8572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.1676        .13903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.212        14.542        .76797E-04   -1.4664    
   4  Prefactor     21.334        28.245        .86700E-04   -1.4784    
   5  Prefactor     1.5047        14.304        .34910E-03   -1.5463    
   6  norm          27.719        14.242        .76093E-04   -1.4654    
   7  Prefactor     .10000E-03    23.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    110.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.7731        .14818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3653        .64873        .28323E-04   -1.5400    
  11  Prefactor     .10000E-03    5.1544        .15457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.657        26.219        .88108E-04   -1.4799    
  13  Prefactor     11.406        14.052        .11861E-03   -1.5032    
  14  norm          .10000E-03    58.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.871        42.788        .77266E-04   -1.4671    
  16  Prefactor     2.7909        8.5683        .12174E-02   -1.5374    
  17  norm          2.7623        2.5468        .10087E-03   -1.5376    
  18  Prefactor     43.294        43.262        .30460E-03   -1.4391    
  19  Prefactor     .10000E-03    12.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7670        4.0382        .20678E-03   -1.5442    
  21  Normalizat    1.3011        .32469        .29522E-03   -.83534    
  22  Prefactor     .94357        .23025        .25240E-03   -.94635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74929e-09
Minuit parameter uncertainties:
  1  5.8521e-07
  2  4.56475e-06
  3  14.544
  4  28.2632
  5  9.28116
  6  14.2433
  7  8.79144e-06
  8  0.00014392
  9  6.84692e-06
  10  0.648731
  11  1.03381e-06
  12  26.2335
  13  14.0561
  14  2.72712e-05
  15  42.8372
  16  8.57211
  17  2.5469
  18  43.2932
  19  7.75062e-06
  20  4.03884
  21  0.325197
  22  0.230488
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  2.365e+00  6.487e-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.436e-01  2.305e-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.301e+00  3.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 62.25
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.96e-07 +/- 5.38e-08
Energy Flux (Fixed Index): 2.22e-04 +/- 6.10e-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) = 4879.2204368
delta logL = 0.313511279474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4879.19492371
delta logL = 0.339024368757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2927       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9500       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95778       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=   4879.195     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2925        1.2912        .60493E-02   -.32044E-04
   2  alpha         1.9498        .44247        .13085        .28062E-04
   3  Normalizat    1.2612        .26026        .67515E-01    .87283E-05
   4  Prefactor     .95762        .18991        .45737E-01    .97511E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.29248
  alpha      = 1.94985
  Normalizat = 1.26123
  Prefactor  = 0.957617
 **********
 **   18 **HESSE 
 **********

 FCN=   4879.195     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2925        .63419        .26722E-04   -1.5405    
   2  alpha         1.9498        .22451        .56098E-02   -.22188    
   3  Normalizat    1.2612        .30254        .29869E-03   -.84731    
   4  Prefactor     .95762        .22281        .25048E-03   -.94156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19382e-10
Minuit parameter uncertainties:
  1  0.634193
  2  0.224833
  3  0.302964
  4  0.223022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64491': 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) = 4879.19492313
delta logL = 0.33902495032

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  2.292e+00  6.342e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.950e+00  2.248e-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.576e-01  2.230e-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.261e+00  3.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 62.69
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.95 +/- 0.22
Photon Flux (Free Index): 2.38e-07 +/- 8.06e-08
Energy Flux (Free Index): 1.72e-04 +/- 6.75e-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/64491/cmap_HighResolution_631756801_632016001_4FGL_J2158.8-3013_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.96e-07', energy_flux2='1.72e-04', photon_flux_error='5.38e-08', dlogl='3.39e-01', energy_flux='2.22e-04', photon_flux2='2.38e-07', job_status='DONE', time_completed='2021-09-27 22:45:14.651680', photon_index_error2='0.22', photon_index2='1.95', ts='62.25', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='6.75e-05', EG='1.30', time_epoch_completed='1632807914.65', return_code='0', job_id='64491', GAL2='0.96', EG2='1.26', return_code2='0', energy_flux_error='6.10e-05', photon_flux_error2='8.06e-08', ts2='62.69', photon_index='1.77' WHERE bin_id='1514' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:45:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 64491: <4FGL_J2158.8-3013_daily_bin1514> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1514> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:30:42 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:34:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 22:34:20 2021
Terminated at Mon Sep 27 22:45:15 2021
Results reported at Mon Sep 27 22:45:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1514 329.714 -30.2251 631756801 632016001 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 :                                   493.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            873 sec.

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

