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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1536
RA = 329.714, Dec = -30.2251
tmin = 637459201, tmax = 637718401
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='64523', job_status='RUN', time_executed='2021-09-27 22:35:58.821202', time_epoch_executed='1632807358.82' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64523

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64523/ft1_4FGL_J2158.8-3013_daily_bin1536.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64523/ft2_4FGL_J2158.8-3013_daily_bin1536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64523/ft1_4FGL_J2158.8-3013_daily_bin1536.fits outfile=/scratch/kocevski/64523/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1536.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=637459201.0 tmax=637718401.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.51
user 5.18
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64523/ft1_filtered_4FGL_J2158.8-3013_daily_bin1536.fits" evtable="EVENTS" scfile=/scratch/kocevski/64523/ft2_4FGL_J2158.8-3013_daily_bin1536.fits sctable="SC_DATA" outfile=/scratch/kocevski/64523/ltcube_637459201_637718401_4FGL_J2158.8-3013_daily_bin1536.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/64523/ft2_4FGL_J2158.8-3013_daily_bin1536.fits
.....................!
real 13.43
user 12.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64523/ft1_filtered_4FGL_J2158.8-3013_daily_bin1536.fits evtable="EVENTS" scfile=/scratch/kocevski/64523/ft2_4FGL_J2158.8-3013_daily_bin1536.fits sctable="SC_DATA" expcube=/scratch/kocevski/64523/ltcube_637459201_637718401_4FGL_J2158.8-3013_daily_bin1536.fits outfile=/scratch/kocevski/64523/expmap_637459201_637718401_4FGL_J2158.8-3013_daily_bin1536.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/64523/ltcube_637459201_637718401_4FGL_J2158.8-3013_daily_bin1536.fits
.....................!
real 194.54
user 186.54
sys 5.60

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/64523/ft1_filtered_4FGL_J2158.8-3013_daily_bin1536.fits scfile=/scratch/kocevski/64523/ft2_4FGL_J2158.8-3013_daily_bin1536.fits outfile=/scratch/kocevski/64523/cmap_637459201_637718401_4FGL_J2158.8-3013_daily_bin1536.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.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10347E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.660       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.620       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.233       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    86.429       1.0000         .10000E-03   10000.    
     9 'norm      '    .29368E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .30916       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1181       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .44889E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.434       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10613E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3756       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.156       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.773       1.0000         .10000E-03   10000.    
    20 'norm      '    .11440E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2435       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73823       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=   4044.332     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2475 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    23.788        .76448E-06** at limit **
   2  Prefactor     .10000E-03    30.469        .16656E-05** at limit **
   3  Prefactor     21.655        13.342       -.37603E-06   -.82580E-04
   4  Prefactor     14.623        21.286       -.28720E-06    .65979E-04
   5  Prefactor     .10000E-03    15.539       -.19896E-05** at limit **
   6  norm          11.231        8.9610        .12753E-06    .22380E-03
   7  Prefactor     .10000E-03    15.613       -.13439E-05** at limit **
   8  Prefactor     86.265        90.741        .10303E-05    .17820E-03
   9  norm          .10000E-03    4.3063       -.17479E-05** at limit **
  10  norm          .30917        .28332        .55787E-07    .18904E-02
  11  Prefactor     .10000E-03    4.1696       -.14824E-06** at limit **
  12  Prefactor     7.0718        25.080       -.15874E-05   -.35970E-05
  13  Prefactor     .10205E-03    9.3449       -.18865E-06** at limit **
  14  norm          .10000E-03    11.945        .38619E-08** at limit **
  15  Prefactor     33.438        28.964       -.66075E-06   -.26946E-04
  16  Prefactor     .10000E-03    9.0980        .32730E-07** at limit **
  17  norm          2.3824        3.0106        .12513E-06    .51087E-05
  18  Prefactor     12.793        122.51       -.39640E-05    .16999E-05
  19  Prefactor     23.790        19.808       -.73325E-06   -.29600E-04
  20  norm          .10000E-03    6.4947        .62496E-07** at limit **
  21  Normalizat    1.2444        .28551        .72002E-05    .25108E-03
  22  Prefactor     .73770        .18362       -.48422E-05    .41609E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6548
  Prefactor  = 14.6228
  Prefactor  = 0.0001
  norm       = 11.2315
  Prefactor  = 0.0001
  Prefactor  = 86.2649
  norm       = 0.000100003
  norm       = 0.309166
  Prefactor  = 0.0001
  Prefactor  = 7.07176
  Prefactor  = 0.000102053
  norm       = 0.0001
  Prefactor  = 33.4377
  Prefactor  = 0.0001
  norm       = 2.38236
  Prefactor  = 12.7928
  Prefactor  = 23.7898
  norm       = 0.0001
  Normalizat = 1.24439
  Prefactor  = 0.737703
 **********
 **   18 **HESSE 
 **********

 FCN=   4044.332     FROM HESSE     STATUS=OK           348 CALLS     2823 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.655        13.392        .86063E-04   -1.4777    
   4  Prefactor     14.623        21.297        .10475E-03   -1.4943    
   5  Prefactor     .10000E-03    15.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.231        8.9607        .11954E-03   -1.5038    
   7  Prefactor     .10000E-03    15.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     86.265        90.230        .43214E-04   -1.3848    
   9  norm          .10000E-03    12.115        .23308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .30917        .28785        .30980E-03   -1.5597    
  11  Prefactor     .10000E-03    4.1757        .12686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0718        25.182        .15035E-03   -1.5176    
  13  Prefactor     .10205E-03    21.873        .55546E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.438        28.883        .69301E-04   -1.4551    
  16  Prefactor     .10000E-03    9.1402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3824        3.0463        .10691E-03   -1.5399    
  18  Prefactor     12.793        125.89        .11043E-03   -1.4992    
  19  Prefactor     23.790        19.783        .82155E-04   -1.4732    
  20  norm          .10000E-03    6.5730        .15815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2444        .30441        .26142E-03   -.85242    
  22  Prefactor     .73770        .18909        .22738E-03   -1.0207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24782e-09
Minuit parameter uncertainties:
  1  0.000112036
  2  7.23866e-05
  3  13.3934
  4  21.3084
  5  0.0001209
  6  8.96173
  7  9.94969e-05
  8  90.3742
  9  0.000376742
  10  0.28785
  11  8.02565e-06
  12  25.2201
  13  0.0134075
  14  6.10117e-06
  15  28.8954
  16  7.81261e-07
  17  3.04652
  18  80.4835
  19  19.7887
  20  9.81772e-06
  21  0.304843
  22  0.18925
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  3.092e-01  2.879e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.767e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  4.097e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  7.377e-01  1.893e-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.244e+00  3.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.68
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.56e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 2.90e-05 +/- 2.70e-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) = 4044.29570956
delta logL = 0.0358528921247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4044.27788626
delta logL = 0.0536761899257

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24307        .22912        .67784E-02   -.29665E-03
   2  alpha         1.4695        .54344        .38756       -.26588E-04
   3  Normalizat    1.2529        .23017        .58952E-01    .40414E-05
   4  Prefactor     .73651        .15880        .42885E-01    .93521E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.243072
  alpha      = 1.46954
  Normalizat = 1.25291
  Prefactor  = 0.736511
 **********
 **   18 **HESSE 
 **********

 FCN=   4044.278     FROM HESSE     STATUS=OK            35 CALLS      243 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24307        .32779        .28801E-03   -1.5609    
   2  alpha         1.4695        .84582        .14890E-01   -.42485    
   3  Normalizat    1.2529        .26428        .26071E-03   -.84983    
   4  Prefactor     .73651        .18246        .22761E-03   -1.0211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29822e-11
Minuit parameter uncertainties:
  1  0.327795
  2  0.866578
  3  0.264565
  4  0.182604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64523': 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) = 4044.2778862
delta logL = 0.0536762511824

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  2.431e-01  3.278e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.470e+00  8.666e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  4.097e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  7.365e-01  1.826e-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.253e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.78
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.47 +/- 0.87
Photon Flux (Free Index): 1.55e-08 +/- 2.71e-08
Energy Flux (Free Index): 4.15e-05 +/- 6.37e-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/64523/cmap_HighResolution_637459201_637718401_4FGL_J2158.8-3013_daily_bin1536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.56e-08', energy_flux2='4.15e-05', photon_flux_error='2.39e-08', dlogl='5.37e-02', energy_flux='2.90e-05', photon_flux2='1.55e-08', job_status='DONE', time_completed='2021-09-27 22:45:01.664600', photon_index_error2='0.87', photon_index2='1.47', ts='4.68', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='6.37e-05', EG='1.24', time_epoch_completed='1632807901.66', return_code='0', job_id='64523', GAL2='0.74', EG2='1.25', return_code2='0', energy_flux_error='2.70e-05', photon_flux_error2='2.71e-08', ts2='4.78', photon_index='1.77' WHERE bin_id='1536' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:45:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 64523: <4FGL_J2158.8-3013_daily_bin1536> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1536 329.714 -30.2251 637459201 637718401 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 :                                   482.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            858 sec.

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

