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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1357
RA = 329.714, Dec = -30.2251
tmin = 591062401, tmax = 591321601
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='64247', job_status='RUN', time_executed='2021-09-27 22:33:37.825129', time_epoch_executed='1632807217.83' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64247

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64247/ft1_4FGL_J2158.8-3013_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64247/ft2_4FGL_J2158.8-3013_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64247/ft1_4FGL_J2158.8-3013_daily_bin1357.fits outfile=/scratch/kocevski/64247/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1357.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=591062401.0 tmax=591321601.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.04
user 2.81
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64247/ft1_filtered_4FGL_J2158.8-3013_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/64247/ft2_4FGL_J2158.8-3013_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/64247/ltcube_591062401_591321601_4FGL_J2158.8-3013_daily_bin1357.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/64247/ft2_4FGL_J2158.8-3013_daily_bin1357.fits
.....................!
real 15.57
user 15.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64247/ft1_filtered_4FGL_J2158.8-3013_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/64247/ft2_4FGL_J2158.8-3013_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/64247/ltcube_591062401_591321601_4FGL_J2158.8-3013_daily_bin1357.fits outfile=/scratch/kocevski/64247/expmap_591062401_591321601_4FGL_J2158.8-3013_daily_bin1357.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/64247/ltcube_591062401_591321601_4FGL_J2158.8-3013_daily_bin1357.fits
.....................!
real 194.04
user 187.43
sys 5.35

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/64247/ft1_filtered_4FGL_J2158.8-3013_daily_bin1357.fits scfile=/scratch/kocevski/64247/ft2_4FGL_J2158.8-3013_daily_bin1357.fits outfile=/scratch/kocevski/64247/cmap_591062401_591321601_4FGL_J2158.8-3013_daily_bin1357.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64247/ft1_filtered_4FGL_J2158.8-3013_daily_bin1357.fits scfile=/scratch/kocevski/64247/ft2_4FGL_J2158.8-3013_daily_bin1357.fits outfile=/scratch/kocevski/64247/cmap_HighResolution_591062401_591321601_4FGL_J2158.8-3013_daily_bin1357.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4548       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2276       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.0161       1.0000         .10000E-03   10000.    
    10 'norm      '    .74998       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .62791       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4382       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.967       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0626       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86463       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=   6685.653     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2017 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2790        .76623E-08** at limit **
   2  Prefactor     3.4547        3.5784       -.60498E-06   -.58950E-03
   3  Prefactor     6.2269        5.2918        .10527E-05   -.38262E-03
   4  Prefactor     .10000E-03    8.1386        .77679E-06** at limit **
   5  Prefactor     .10000E-03    2.8038       -.60076E-07** at limit **
   6  norm          .10000E-03    3.1539       -.31403E-07** at limit **
   7  Prefactor     .10000E-03    5.8370        .57631E-06** at limit **
   8  Prefactor     .10000E-03    15.289        .58382E-06** at limit **
   9  norm          2.0168        3.4002       -.16026E-07   -.41671E-03
  10  norm          .74998        .29484       -.57222E-09   -.45105E-04
  11  Prefactor     .10000E-03    4.0702        .16570E-07** at limit **
  12  Prefactor     .10000E-03    15.510        .61747E-06** at limit **
  13  Prefactor     .10000E-03    5.9006       -.70648E-06** at limit **
  14  norm          .55758        14.195        .15741E-05   -.25879E-03
  15  Prefactor     .10000E-03    8.9380       -.78544E-06** at limit **
  16  Prefactor     .10000E-03    16.694       -.11453E-05** at limit **
  17  norm          3.4380        2.5790       -.21708E-07   -.10407E-03
  18  Prefactor     .10000E-03    92.307       -.10027E-05** at limit **
  19  Prefactor     32.967        15.500        .62284E-07    .19631E-04
  20  norm          .10000E-03    2.4068        .31397E-08** at limit **
  21  Normalizat    1.0626        .17015       -.25920E-06   -.38486E-04
  22  Prefactor     .86464        .11863       -.10476E-06   -.55448E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.4547
  Prefactor  = 6.22694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01677
  norm       = 0.749981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.557582
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.43798
  Prefactor  = 0.0001
  Prefactor  = 32.967
  norm       = 0.0001
  Normalizat = 1.06261
  Prefactor  = 0.864637
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.653     FROM HESSE     STATUS=OK           340 CALLS     2357 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2808        .12055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4547        3.6890        .15811E-03   -1.5336    
   3  Prefactor     6.2269        5.6376        .80430E-03   -1.5209    
   4  Prefactor     .10000E-03    8.2938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8197        .13373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1726        .14179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0168        3.5043        .18743E-03   -1.5424    
  10  norm          .74998        .29649        .26388E-04   -1.5535    
  11  Prefactor     .10000E-03    4.0843        .16109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.0599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55758        96.960        .56790E-02   -1.5559    
  15  Prefactor     .10000E-03    9.0756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4380        2.5724        .11006E-03   -1.5337    
  18  Prefactor     .10000E-03    92.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.967        15.559        .69790E-04   -1.4559    
  20  norm          .10000E-03    2.4215        .12386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0626        .19954        .25940E-03   -.90962    
  22  Prefactor     .86464        .13881        .20317E-03   -.97388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33049e-09
Minuit parameter uncertainties:
  1  5.42897e-07
  2  3.68928
  3  5.63808
  4  9.31097e-05
  5  5.05576e-06
  6  8.93644e-07
  7  6.21849e-05
  8  0.000101612
  9  3.50469
  10  0.296494
  11  1.28144e-06
  12  9.50764e-05
  13  6.84921e-05
  14  14.7285
  15  9.65984e-05
  16  0.000192831
  17  2.57246
  18  0.000394466
  19  15.561
  20  6.04951e-07
  21  0.19968
  22  0.138867
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  7.500e-01  2.965e-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.646e-01  1.389e-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.063e+00  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 42.59
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 6.22e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 7.05e-05 +/- 2.79e-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) = 6683.8967931
delta logL = 1.75613860867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6683.89155654
delta logL = 1.7613751698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52982       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2187       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86240       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=   6683.892     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52979        .24459        .55404E-02   -.41945E-03
   2  alpha         1.2187        .23359        .18211       -.42923E-04
   3  Normalizat    1.0855        .16517        .58145E-01    .99693E-05
   4  Prefactor     .86237        .11857        .44524E-01    .82315E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.529787
  alpha      = 1.21866
  Normalizat = 1.08547
  Prefactor  = 0.862367
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.892     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .98E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52979        .30362        .24182E-04   -1.5562    
   2  alpha         1.2187        .29366        .78507E-02   -.53814    
   3  Normalizat    1.0855        .19249        .25713E-03   -.90220    
   4  Prefactor     .86237        .13828        .20363E-03   -.97469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.82286e-13
Minuit parameter uncertainties:
  1  0.303621
  2  0.294581
  3  0.192612
  4  0.138339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64247': 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) = 6683.89155647
delta logL = 1.76137524314

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.298e-01  3.036e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.219e+00  2.946e-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.624e-01  1.383e-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.085e+00  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.11
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.22 +/- 0.29
Photon Flux (Free Index): 3.13e-08 +/- 1.77e-08
Energy Flux (Free Index): 1.79e-04 +/- 1.15e-04

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/64247/cmap_HighResolution_591062401_591321601_4FGL_J2158.8-3013_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.22e-08', energy_flux2='1.79e-04', photon_flux_error='2.46e-08', dlogl='1.76e+00', energy_flux='7.05e-05', photon_flux2='3.13e-08', job_status='DONE', time_completed='2021-09-27 22:42:57.189213', photon_index_error2='0.29', photon_index2='1.22', ts='42.59', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.15e-04', EG='1.06', time_epoch_completed='1632807777.19', return_code='0', job_id='64247', GAL2='0.86', EG2='1.09', return_code2='0', energy_flux_error='2.79e-05', photon_flux_error2='1.77e-08', ts2='46.11', photon_index='1.77' WHERE bin_id='1357' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:42:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 64247: <4FGL_J2158.8-3013_daily_bin1357> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1357 329.714 -30.2251 591062401 591321601 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 :                                   550.51 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            754 sec.

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

