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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1294
RA = 329.714, Dec = -30.2251
tmin = 574732801, tmax = 574992001
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='64152', job_status='RUN', time_executed='2021-09-27 22:34:02.225251', time_epoch_executed='1632807242.23' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64152

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64152/ft1_4FGL_J2158.8-3013_daily_bin1294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64152/ft2_4FGL_J2158.8-3013_daily_bin1294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64152/ft1_4FGL_J2158.8-3013_daily_bin1294.fits outfile=/scratch/kocevski/64152/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1294.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=574732801.0 tmax=574992001.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.33
user 5.06
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64152/ft1_filtered_4FGL_J2158.8-3013_daily_bin1294.fits" evtable="EVENTS" scfile=/scratch/kocevski/64152/ft2_4FGL_J2158.8-3013_daily_bin1294.fits sctable="SC_DATA" outfile=/scratch/kocevski/64152/ltcube_574732801_574992001_4FGL_J2158.8-3013_daily_bin1294.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/64152/ft2_4FGL_J2158.8-3013_daily_bin1294.fits
.....................!
real 14.38
user 14.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64152/ft1_filtered_4FGL_J2158.8-3013_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/64152/ft2_4FGL_J2158.8-3013_daily_bin1294.fits sctable="SC_DATA" expcube=/scratch/kocevski/64152/ltcube_574732801_574992001_4FGL_J2158.8-3013_daily_bin1294.fits outfile=/scratch/kocevski/64152/expmap_574732801_574992001_4FGL_J2158.8-3013_daily_bin1294.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/64152/ltcube_574732801_574992001_4FGL_J2158.8-3013_daily_bin1294.fits
.....................!
real 191.65
user 187.10
sys 4.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/64152/ft1_filtered_4FGL_J2158.8-3013_daily_bin1294.fits scfile=/scratch/kocevski/64152/ft2_4FGL_J2158.8-3013_daily_bin1294.fits outfile=/scratch/kocevski/64152/cmap_574732801_574992001_4FGL_J2158.8-3013_daily_bin1294.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64152/ft1_filtered_4FGL_J2158.8-3013_daily_bin1294.fits scfile=/scratch/kocevski/64152/ft2_4FGL_J2158.8-3013_daily_bin1294.fits outfile=/scratch/kocevski/64152/cmap_HighResolution_574732801_574992001_4FGL_J2158.8-3013_daily_bin1294.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64152/ft1_filtered_4FGL_J2158.8-3013_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/64152/ft2_4FGL_J2158.8-3013_daily_bin1294.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64152/Model_4FGL_J2158.8-3013_daily_bin1294.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/64152/ft1_filtered_4FGL_J2158.8-3013_daily_bin1294.fits.....................!
real 59.06
user 57.78
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9878       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9147       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6378       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8837       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.754       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .96863       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10688E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8198       1.0000         .10000E-03   10000.    
    14 'norm      '    26.510       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.670       1.0000         .10000E-03   10000.    
    17 'norm      '    .96414       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19764E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8566       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1517       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76272       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1956       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=   7219.614     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2031 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5386       -.31149E-07** at limit **
   2  Prefactor     .10000E-03    2.3041       -.16255E-07** at limit **
   3  Prefactor     7.9881        7.1266        .39225E-05   -.13034E-03
   4  Prefactor     5.9063        9.0644       -.57199E-05   -.11196E-03
   5  Prefactor     4.6367        9.2305        .24600E-06   -.24190E-03
   6  norm          5.8846        4.5650       -.21688E-07   -.33583E-04
   7  Prefactor     11.745        12.624       -.28917E-05   -.28833E-03
   8  Prefactor     .10000E-03    84.023        .27569E-04** at limit **
   9  norm          .10000E-03    1.2844       -.12658E-06** at limit **
  10  norm          .96868        .32735        .94456E-08   -.13747E-03
  11  Prefactor     .10000E-03    4.1869       -.20659E-07** at limit **
  12  Prefactor     .10000E-03    11.921        .23237E-06** at limit **
  13  Prefactor     9.8189        7.7839       -.10975E-05   -.51407E-04
  14  norm          26.498        17.359        .19853E-05    .21657E-03
  15  Prefactor     .10000E-03    13.034        .34111E-06** at limit **
  16  Prefactor     12.659        12.974       -.95495E-06    .64516E-03
  17  norm          .96590        1.4907        .45504E-06    .32946E-02
  18  Prefactor     .10004E-03    154.41       -.11898E-03** at limit **
  19  Prefactor     5.8533        9.4330       -.31176E-05   -.58920E-04
  20  norm          1.1512        2.5323       -.41174E-06   -.96234E-03
  21  Normalizat    .76260        .18063        .22060E-05    .23834E-03
  22  Prefactor     1.1956        .13243       -.62131E-06    .37115E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.98813
  Prefactor  = 5.90635
  Prefactor  = 4.63671
  norm       = 5.88461
  Prefactor  = 11.7448
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.96868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.8189
  norm       = 26.4978
  Prefactor  = 0.0001
  Prefactor  = 12.6594
  norm       = 0.965895
  Prefactor  = 0.000100041
  Prefactor  = 5.85329
  norm       = 1.1512
  Normalizat = 0.762604
  Prefactor  = 1.19562
 **********
 **   18 **HESSE 
 **********

 FCN=   7219.614     FROM HESSE     STATUS=OK           348 CALLS     2379 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5427        .13221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3117        .12595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.9881        7.0955        .14187E-03   -1.5143    
   4  Prefactor     5.9063        9.0785        .16512E-03   -1.5222    
   5  Prefactor     4.6367        9.1887        .18689E-03   -1.5277    
   6  norm          5.8846        4.5646        .15550E-03   -1.5223    
   7  Prefactor     11.745        12.631        .11685E-03   -1.5022    
   8  Prefactor     .10000E-03    85.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.2976        .93947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .96868        .32764        .27308E-04   -1.5511    
  11  Prefactor     .10000E-03    4.2033        .16977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.8189        7.8330        .12788E-03   -1.5081    
  14  norm          26.498        17.366        .77805E-04   -1.4678    
  15  Prefactor     .10000E-03    13.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.659        12.997        .11254E-03   -1.4996    
  17  norm          .96590        1.2289        .12540E-02   -1.5511    
  18  Prefactor     .10004E-03    153.95        .40479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.8533        9.4891        .16595E-03   -1.5224    
  20  norm          1.1512        2.0414        .19517E-02   -1.5493    
  21  Normalizat    .76260        .20482        .30938E-03   -1.0147    
  22  Prefactor     1.1956        .15038        .19656E-03   -.86466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11306e-09
Minuit parameter uncertainties:
  1  1.98868e-06
  2  7.55643e-07
  3  7.09621
  4  9.08062
  5  9.19154
  6  4.56484
  7  12.6337
  8  0.000814824
  9  1.72213e-06
  10  0.32764
  11  2.53365e-06
  12  8.55204e-07
  13  7.83387
  14  17.369
  15  1.34573e-05
  16  13.0003
  17  1.22898
  18  0.00502321
  19  9.49155
  20  2.04155
  21  0.205029
  22  0.150434
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  9.687e-01  3.276e-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.196e+00  1.504e-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.626e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 35.62
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 8.03e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 9.10e-05 +/- 3.08e-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) = 7219.59319226
delta logL = 0.0207806656554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7219.59183838
delta logL = 0.0221345457521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96152       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8208       1.0000          .0000       5.0000    
     3 'Normalizat'    .75823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1970       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=   7219.592     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96140        2.7582        .60967E-02    .16584E-02
   2  alpha         1.8207        1.8216        .19485       -.19259E-04
   3  Normalizat    .75837        .20959        .70082E-01    .29911E-04
   4  Prefactor     1.1969        .14395        .34702E-01   -.46805E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.961399
  alpha      = 1.82066
  Normalizat = 0.758373
  Prefactor  = 1.19686
 **********
 **   18 **HESSE 
 **********

 FCN=   7219.592     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96140        .32601        .26913E-04   -1.5512    
   2  alpha         1.8207        .25721        .81093E-02   -.27520    
   3  Normalizat    .75837        .18817        .31013E-03   -1.0163    
   4  Prefactor     1.1969        .14646        .19645E-03   -.86428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59874e-11
Minuit parameter uncertainties:
  1  0.32601
  2  0.257705
  3  0.188334
  4  0.146514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64152': 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) = 7219.59183786
delta logL = 0.0221350645634

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  9.614e-01  3.260e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.821e+00  2.577e-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.197e+00  1.465e-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.584e-01  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.63
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.82 +/- 0.26
Photon Flux (Free Index): 8.48e-08 +/- 3.52e-08
Energy Flux (Free Index): 8.35e-05 +/- 4.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/64152/cmap_HighResolution_574732801_574992001_4FGL_J2158.8-3013_daily_bin1294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.03e-08', energy_flux2='8.35e-05', photon_flux_error='2.71e-08', dlogl='2.21e-02', energy_flux='9.10e-05', photon_flux2='8.48e-08', job_status='DONE', time_completed='2021-09-27 22:43:58.834435', photon_index_error2='0.26', photon_index2='1.82', ts='35.62', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='4.42e-05', EG='0.76', time_epoch_completed='1632807838.83', return_code='0', job_id='64152', GAL2='1.20', EG2='0.76', return_code2='0', energy_flux_error='3.08e-05', photon_flux_error2='3.52e-08', ts2='35.63', photon_index='1.77' WHERE bin_id='1294' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:43:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 64152: <4FGL_J2158.8-3013_daily_bin1294> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1294 329.714 -30.2251 574732801 574992001 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 :                                   581.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            823 sec.

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

