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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1414
RA = 329.714, Dec = -30.2251
tmin = 605836801, tmax = 606096001
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='64334', job_status='RUN', time_executed='2021-09-27 22:36:00.581167', time_epoch_executed='1632807360.58' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64334

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64334/ft1_4FGL_J2158.8-3013_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64334/ft2_4FGL_J2158.8-3013_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64334/ft1_4FGL_J2158.8-3013_daily_bin1414.fits outfile=/scratch/kocevski/64334/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1414.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=605836801.0 tmax=606096001.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.66
user 3.40
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64334/ft1_filtered_4FGL_J2158.8-3013_daily_bin1414.fits" evtable="EVENTS" scfile=/scratch/kocevski/64334/ft2_4FGL_J2158.8-3013_daily_bin1414.fits sctable="SC_DATA" outfile=/scratch/kocevski/64334/ltcube_605836801_606096001_4FGL_J2158.8-3013_daily_bin1414.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/64334/ft2_4FGL_J2158.8-3013_daily_bin1414.fits
.....................!
real 15.34
user 14.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64334/ft1_filtered_4FGL_J2158.8-3013_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/64334/ft2_4FGL_J2158.8-3013_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/64334/ltcube_605836801_606096001_4FGL_J2158.8-3013_daily_bin1414.fits outfile=/scratch/kocevski/64334/expmap_605836801_606096001_4FGL_J2158.8-3013_daily_bin1414.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/64334/ltcube_605836801_606096001_4FGL_J2158.8-3013_daily_bin1414.fits
.....................!
real 192.81
user 186.10
sys 4.23

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/64334/ft1_filtered_4FGL_J2158.8-3013_daily_bin1414.fits scfile=/scratch/kocevski/64334/ft2_4FGL_J2158.8-3013_daily_bin1414.fits outfile=/scratch/kocevski/64334/cmap_605836801_606096001_4FGL_J2158.8-3013_daily_bin1414.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64334/ft1_filtered_4FGL_J2158.8-3013_daily_bin1414.fits scfile=/scratch/kocevski/64334/ft2_4FGL_J2158.8-3013_daily_bin1414.fits outfile=/scratch/kocevski/64334/cmap_HighResolution_605836801_606096001_4FGL_J2158.8-3013_daily_bin1414.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1236       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.736       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11248E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1648       1.0000         .10000E-03   10000.    
     6 'norm      '    .10740E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26737E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    71.431       1.0000         .10000E-03   10000.    
     9 'norm      '    14.634       1.0000         .10000E-03   10000.    
    10 'norm      '    .50911       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4974       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .68198       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4845       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.2701       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2720       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82244       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=   5245.981     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2356 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1239        6.4271       -.16380E-07    .70784E-05
   2  Prefactor     17.736        10.007        .36407E-07    .19314E-04
   3  Prefactor     .10000E-03    5.4646        .28029E-06** at limit **
   4  Prefactor     .10000E-03    6.7327       -.15424E-05** at limit **
   5  Prefactor     7.1643        7.5273       -.88131E-07    .66618E-05
   6  norm          .10000E-03    10.574        .11650E-05** at limit **
   7  Prefactor     .10000E-03    24.487       -.10236E-04** at limit **
   8  Prefactor     71.254        94.378        .14969E-05    .26338E-04
   9  norm          14.635        8.8140       -.11481E-06    .24537E-03
  10  norm          .50886        .31998       -.96961E-07    .36277E-03
  11  Prefactor     1.4713        32.803       -.21069E-05    .18424E-04
  12  Prefactor     .10000E-03    13.452       -.24559E-07** at limit **
  13  Prefactor     .68281        11.267       -.90355E-06    .10289E-03
  14  norm          .10000E-03    8.1157        .48518E-07** at limit **
  15  Prefactor     .10000E-03    24.030        .15841E-06** at limit **
  16  Prefactor     .10000E-03    10.016        .13783E-06** at limit **
  17  norm          4.4815        2.7305       -.28413E-07    .94685E-05
  18  Prefactor     .10000E-03    70.300        .26768E-06** at limit **
  19  Prefactor     .10000E-03    9.1141        .11290E-06** at limit **
  20  norm          4.2689        4.7511        .22327E-07    .10317E-05
  21  Normalizat    1.2724        .23328        .21892E-05    .60112E-04
  22  Prefactor     .82219        .14990       -.16434E-05    .21734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.12395
  Prefactor  = 17.7362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.16426
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.2542
  norm       = 14.6352
  norm       = 0.508863
  Prefactor  = 1.47132
  Prefactor  = 0.0001
  Prefactor  = 0.682807
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.48149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.26887
  Normalizat = 1.27244
  Prefactor  = 0.822188
 **********
 **   18 **HESSE 
 **********

 FCN=   5245.981     FROM HESSE     STATUS=OK           344 CALLS     2700 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1239        6.4305        .15030E-03   -1.5174    
   2  Prefactor     17.736        10.008        .95104E-04   -1.4865    
   3  Prefactor     .10000E-03    5.4930        .16527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.1643        7.5294        .14986E-03   -1.5173    
   6  norm          .10000E-03    10.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.817        .21438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     71.254        94.688        .23749E-03   -1.4018    
   9  norm          14.635        8.8386        .10470E-03   -1.4943    
  10  norm          .50886        .32112        .30830E-04   -1.5565    
  11  Prefactor     1.4713        32.661        .35005E-03   -1.5465    
  12  Prefactor     .10000E-03    13.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .68281        45.591        .43375E-02   -1.5543    
  14  norm          .10000E-03    8.1176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4815        2.7313        .90872E-04   -1.5285    
  18  Prefactor     .10000E-03    70.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.1709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.2689        4.7466        .16177E-03   -1.5295    
  21  Normalizat    1.2724        .26659        .26887E-03   -.84393    
  22  Prefactor     .82219        .17046        .23010E-03   -.98916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69433e-10
Minuit parameter uncertainties:
  1  6.4311
  2  10.009
  3  4.08274e-06
  4  4.68672e-06
  5  7.53043
  6  9.08277e-06
  7  8.77524e-05
  8  94.8891
  9  8.83936
  10  0.321118
  11  13.8724
  12  1.11597e-06
  13  11.1669
  14  2.21104e-06
  15  7.52093e-06
  16  8.67225e-06
  17  2.73137
  18  1.6377e-05
  19  1.13421e-05
  20  4.74697
  21  0.266876
  22  0.17057
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.089e-01  3.211e-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:  8.222e-01  1.706e-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.272e+00  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.50
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 4.78e-05 +/- 3.02e-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) = 5245.96049915
delta logL = 0.0202818775815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5245.95834569
delta logL = 0.0224353430176

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48857       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6564       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82110       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=   5245.958     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48849        .34098        .69835E-02   -.13001E-03
   2  alpha         1.6563        .47817        .32423       -.25718E-04
   3  Normalizat    1.2773        .20657        .60705E-01    .32893E-05
   4  Prefactor     .82102        .14531        .43991E-01    .97965E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.48849
  alpha      = 1.6563
  Normalizat = 1.27732
  Prefactor  = 0.821017
 **********
 **   18 **HESSE 
 **********

 FCN=   5245.958     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .80E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48849        .32553        .30682E-04   -1.5568    
   2  alpha         1.6563        .50650        .12746E-01   -.34424    
   3  Normalizat    1.2773        .23509        .26848E-03   -.84246    
   4  Prefactor     .82102        .16591        .23029E-03   -.98958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.04621e-13
Minuit parameter uncertainties:
  1  0.325533
  2  0.51049
  3  0.235285
  4  0.166006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64334': 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) = 5245.95834552
delta logL = 0.0224355071196

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  4.885e-01  3.255e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.656e+00  5.105e-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:  8.210e-01  1.660e-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.277e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.58
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.66 +/- 0.51
Photon Flux (Free Index): 3.61e-08 +/- 3.43e-08
Energy Flux (Free Index): 5.56e-05 +/- 5.41e-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/64334/cmap_HighResolution_605836801_606096001_4FGL_J2158.8-3013_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='5.56e-05', photon_flux_error='2.66e-08', dlogl='2.24e-02', energy_flux='4.78e-05', photon_flux2='3.61e-08', job_status='DONE', time_completed='2021-09-27 22:45:40.703666', photon_index_error2='0.51', photon_index2='1.66', ts='9.50', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='5.41e-05', EG='1.27', time_epoch_completed='1632807940.7', return_code='0', job_id='64334', GAL2='0.82', EG2='1.28', return_code2='0', energy_flux_error='3.02e-05', photon_flux_error2='3.43e-08', ts2='9.58', photon_index='1.77' WHERE bin_id='1414' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:45:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 64334: <4FGL_J2158.8-3013_daily_bin1414> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1414 329.714 -30.2251 605836801 606096001 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 :                                   516.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            912 sec.

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

