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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1280
RA = 329.714, Dec = -30.2251
tmin = 571104001, tmax = 571363201
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='64131', job_status='RUN', time_executed='2021-09-27 22:32:41.410866', time_epoch_executed='1632807161.41' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64131/ft1_4FGL_J2158.8-3013_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64131/ft2_4FGL_J2158.8-3013_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64131/ft1_4FGL_J2158.8-3013_daily_bin1280.fits outfile=/scratch/kocevski/64131/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1280.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=571104001.0 tmax=571363201.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.03
user 2.82
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64131/ft1_filtered_4FGL_J2158.8-3013_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/64131/ft2_4FGL_J2158.8-3013_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/64131/ltcube_571104001_571363201_4FGL_J2158.8-3013_daily_bin1280.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/64131/ft2_4FGL_J2158.8-3013_daily_bin1280.fits
.....................!
real 14.28
user 13.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64131/ft1_filtered_4FGL_J2158.8-3013_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/64131/ft2_4FGL_J2158.8-3013_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/64131/ltcube_571104001_571363201_4FGL_J2158.8-3013_daily_bin1280.fits outfile=/scratch/kocevski/64131/expmap_571104001_571363201_4FGL_J2158.8-3013_daily_bin1280.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/64131/ltcube_571104001_571363201_4FGL_J2158.8-3013_daily_bin1280.fits
.....................!
real 191.30
user 186.04
sys 4.90

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/64131/ft1_filtered_4FGL_J2158.8-3013_daily_bin1280.fits scfile=/scratch/kocevski/64131/ft2_4FGL_J2158.8-3013_daily_bin1280.fits outfile=/scratch/kocevski/64131/cmap_571104001_571363201_4FGL_J2158.8-3013_daily_bin1280.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64131/ft1_filtered_4FGL_J2158.8-3013_daily_bin1280.fits scfile=/scratch/kocevski/64131/ft2_4FGL_J2158.8-3013_daily_bin1280.fits outfile=/scratch/kocevski/64131/cmap_HighResolution_571104001_571363201_4FGL_J2158.8-3013_daily_bin1280.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64131/ft1_filtered_4FGL_J2158.8-3013_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/64131/ft2_4FGL_J2158.8-3013_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64131/Model_4FGL_J2158.8-3013_daily_bin1280.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/64131/ft1_filtered_4FGL_J2158.8-3013_daily_bin1280.fits.........................!
real 17.04
user 15.81
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1437.2       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .43152E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11823E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .16285E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12978E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    54.870       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3242       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18603E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4297       1.0000         .10000E-03   10000.    
    14 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    66.755       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.816       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .47833       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91148       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=   531.1734     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2786 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        6570.6        .18550E-05** at limit **
   2  Prefactor    10000.0        1557.8        .35236E-06** at limit **
   3  Prefactor     1437.1        1035.6        .53758E-05    .93654E-05
   4  Prefactor     .10000E-03    1191.5        .35825E-06** at limit **
   5  Prefactor     .10000E-03    130.72       -.14163E-06** at limit **
   6  norm          .10000E-03    204.99        .76720E-06** at limit **
   7  Prefactor     .10000E-03    237.04        .57645E-06** at limit **
   8  Prefactor     .10000E-03    1308.7        .60707E-06** at limit **
   9  norm          54.934        155.57        .11030E-05    .12983E-04
  10  norm          3.3185        3.1960        .14456E-07    .13019E-04
  11  Prefactor     .10000E-03    37.872        .20794E-07** at limit **
  12  Prefactor     .10000E-03    97.139       -.41174E-06** at limit **
  13  Prefactor     2.2291        257.89       -.93567E-05   -.11050E-04
  14  norm          .10000E-03    45.926       -.17526E-05** at limit **
  15  Prefactor     .10000E-03    22.108        .58769E-06** at limit **
  16  Prefactor     .10000E-03    67.279       -.88500E-05** at limit **
  17  norm          .10000E-03    2.7408       -.20495E-05** at limit **
  18  Prefactor     66.513        113.98       -.13683E-05    .22499E-04
  19  Prefactor     .10000E-03    14.548        .20070E-06** at limit **
  20  norm          10.806        11.277       -.26800E-06    .34499E-04
  21  Normalizat    .48262        .77782        .90049E-05    .31082E-04
  22  Prefactor     .90870        .58423       -.56612E-06    .52944E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 1437.08
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 54.9342
  norm       = 3.31847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.22914
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 66.5127
  Prefactor  = 0.0001
  norm       = 10.8057
  Normalizat = 0.482621
  Prefactor  = 0.908697
 **********
 **   18 **HESSE 
 **********

 FCN=   531.1734     FROM HESSE     STATUS=OK           330 CALLS     3116 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        6571.5        .18678E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        1557.9        .20052E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1437.1        1025.3        .57011E-04   -.79317    
   4  Prefactor     .10000E-03    1191.4        .19399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    130.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    204.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    237.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1308.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          54.934        155.50        .54151E-04   -1.4224    
  10  norm          3.3185        3.2019        .37611E-04   -1.5344    
  11  Prefactor     .10000E-03    37.873        .13866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    97.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2291        235.47        .26253E-03   -1.5409    
  14  norm          .10000E-03    45.991        .15272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.100        .10589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    67.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6934        .36903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     66.513        113.20        .24562E-03   -1.4075    
  19  Prefactor     .10000E-03    14.555        .85860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.806        11.255        .73507E-04   -1.5050    
  21  Normalizat    .48262        .83546        .36818E-03   -1.1323    
  22  Prefactor     .90870        .64723        .24373E-03   -.95838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.87509e-11
Minuit parameter uncertainties:
  1  0.0128845
  2  0.00198367
  3  1040.51
  4  0.00134836
  5  0.000362852
  6  0.00019485
  7  0.000236933
  8  0.00400983
  9  156.675
  10  3.20203
  11  9.19055e-06
  12  0.000117133
  13  46.0074
  14  2.33801e-05
  15  5.14071e-06
  16  0.000105033
  17  5.79744e-07
  18  113.572
  19  2.31173e-05
  20  11.2571
  21  0.858731
  22  0.652826
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  3.318e+00  3.202e+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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  9.087e-01  6.528e-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:  4.826e-01  8.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.00
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.75e-07 +/- 2.65e-07
Energy Flux (Fixed Index): 3.12e-04 +/- 3.01e-04

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) = 529.774044322
delta logL = 1.39933970585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 528.741675693
delta logL = 2.43170833484

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13659       1.0000         .10000E-03   10000.    
     2 'alpha     '    .28754E-01   1.0000          .0000       5.0000    
     3 'Normalizat'    .53285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89660       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=   528.7417     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      266 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13579        7.6147        .18699E-02   -.72718E-03
   2  alpha         .26867E-01    4.9765        .29318        .16246E-04
   3  Normalizat    .53257        .44144        .79471E-01    .57006E-05
   4  Prefactor     .89681        .39729        .44962E-01   -.78343E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.135794
  alpha      = 0.0268669
  Normalizat = 0.532575
  Prefactor  = 0.896806
 **********
 **   18 **HESSE 
 **********

 FCN=   528.7417     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13579        1.6372        .82135E-05   -1.5634    
   2  alpha         .26867E-01    3.0049        .14432E-01   -1.4241    
   3  Normalizat    .53257        .69357        .35196E-03   -1.1093    
   4  Prefactor     .89681        .62888        .24575E-03   -.96253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37649e-10
Minuit parameter uncertainties:
  1  0.942694
  2  2.00474
  3  0.705335
  4  0.634075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64131': 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) = 528.741673575
delta logL = 2.43171045311

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.358e-01  9.427e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.687e-02  2.005e+00  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.968e-01  6.341e-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:  5.326e-01  7.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.77
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 0.03 +/- 2.00
Photon Flux (Free Index): 7.42e-08 +/- 7.92e-08
Energy Flux (Free Index): 3.19e-03 +/- 4.41e-03

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/64131/cmap_HighResolution_571104001_571363201_4FGL_J2158.8-3013_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.75e-07', energy_flux2='3.19e-03', photon_flux_error='2.65e-07', dlogl='2.43e+00', energy_flux='3.12e-04', photon_flux2='7.42e-08', job_status='DONE', time_completed='2021-09-27 22:38:33.539441', photon_index_error2='2.00', photon_index2='0.03', ts='17.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='4.41e-03', EG='0.48', time_epoch_completed='1632807513.54', return_code='0', job_id='64131', GAL2='0.90', EG2='0.53', return_code2='0', energy_flux_error='3.01e-04', photon_flux_error2='7.92e-08', ts2='21.77', photon_index='1.77' WHERE bin_id='1280' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:38:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 64131: <4FGL_J2158.8-3013_daily_bin1280> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1280 329.714 -30.2251 571104001 571363201 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 :                                   341.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             293.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   419 sec.
    Turnaround time :                            500 sec.

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

