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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1466
RA = 329.714, Dec = -30.2251
tmin = 619315201, tmax = 619574401
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='64417', job_status='RUN', time_executed='2021-09-27 22:34:36.520018', time_epoch_executed='1632807276.52' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64417

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64417/ft1_4FGL_J2158.8-3013_daily_bin1466.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64417/ft2_4FGL_J2158.8-3013_daily_bin1466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64417/ft1_4FGL_J2158.8-3013_daily_bin1466.fits outfile=/scratch/kocevski/64417/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1466.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=619315201.0 tmax=619574401.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.52
user 3.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64417/ft1_filtered_4FGL_J2158.8-3013_daily_bin1466.fits" evtable="EVENTS" scfile=/scratch/kocevski/64417/ft2_4FGL_J2158.8-3013_daily_bin1466.fits sctable="SC_DATA" outfile=/scratch/kocevski/64417/ltcube_619315201_619574401_4FGL_J2158.8-3013_daily_bin1466.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/64417/ft2_4FGL_J2158.8-3013_daily_bin1466.fits
.....................!
real 13.38
user 12.89
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64417/ft1_filtered_4FGL_J2158.8-3013_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/64417/ft2_4FGL_J2158.8-3013_daily_bin1466.fits sctable="SC_DATA" expcube=/scratch/kocevski/64417/ltcube_619315201_619574401_4FGL_J2158.8-3013_daily_bin1466.fits outfile=/scratch/kocevski/64417/expmap_619315201_619574401_4FGL_J2158.8-3013_daily_bin1466.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/64417/ltcube_619315201_619574401_4FGL_J2158.8-3013_daily_bin1466.fits
.....................!
real 192.83
user 185.86
sys 6.33

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/64417/ft1_filtered_4FGL_J2158.8-3013_daily_bin1466.fits scfile=/scratch/kocevski/64417/ft2_4FGL_J2158.8-3013_daily_bin1466.fits outfile=/scratch/kocevski/64417/cmap_619315201_619574401_4FGL_J2158.8-3013_daily_bin1466.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64417/ft1_filtered_4FGL_J2158.8-3013_daily_bin1466.fits scfile=/scratch/kocevski/64417/ft2_4FGL_J2158.8-3013_daily_bin1466.fits outfile=/scratch/kocevski/64417/cmap_HighResolution_619315201_619574401_4FGL_J2158.8-3013_daily_bin1466.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64417/ft1_filtered_4FGL_J2158.8-3013_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/64417/ft2_4FGL_J2158.8-3013_daily_bin1466.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64417/Model_4FGL_J2158.8-3013_daily_bin1466.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/64417/ft1_filtered_4FGL_J2158.8-3013_daily_bin1466.fits.....................!
real 41.86
user 40.57
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4547       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.458       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.381       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.1280       1.0000         .10000E-03   10000.    
    10 'norm      '    .68016       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8431       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.755       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    35.998       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.313       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4264       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1719       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81875       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=   4441.317     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     1977 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7635        .24608E-07** at limit **
   2  Prefactor     7.4545        6.9552       -.10236E-06   -.38386E-04
   3  Prefactor     15.460        11.974       -.45277E-06   -.37310E-03
   4  Prefactor     18.378        17.098       -.27544E-06   -.28980E-04
   5  Prefactor     .10002E-03    24.074        .85359E-05** at limit **
   6  norm          .10000E-03    24.212       -.44240E-05** at limit **
   7  Prefactor     .10000E-03    6.6494       -.57044E-07** at limit **
   8  Prefactor     .10000E-03    25.008       -.32052E-05** at limit **
   9  norm          4.1287        4.1863        .18319E-05   -.18786E-02
  10  norm          .68015        .38958       -.90473E-07    .50205E-04
  11  Prefactor     5.8434        9.3053        .24412E-06    .13758E-04
  12  Prefactor     21.749        21.785       -.13265E-05   -.20092E-03
  13  Prefactor     .10000E-03    3.2888        .14580E-07** at limit **
  14  norm          35.995        26.375       -.53518E-06   -.94818E-04
  15  Prefactor     22.313        21.748        .10144E-06    .15765E-04
  16  Prefactor     .10000E-03    9.3419        .85437E-07** at limit **
  17  norm          4.4261        3.0974        .35923E-07    .32913E-04
  18  Prefactor     .10000E-03    51.015       -.18406E-05** at limit **
  19  Prefactor     .10000E-03    25.313       -.24556E-06** at limit **
  20  norm          .10000E-03    1.6245        .30132E-07** at limit **
  21  Normalizat    1.1720        .22583       -.66899E-07   -.34635E-04
  22  Prefactor     .81869        .15692       -.48004E-07   -.28550E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.45452
  Prefactor  = 15.4598
  Prefactor  = 18.3777
  Prefactor  = 0.000100017
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 4.12869
  norm       = 0.680149
  Prefactor  = 5.84336
  Prefactor  = 21.7486
  Prefactor  = 0.0001
  norm       = 35.9954
  Prefactor  = 22.3133
  Prefactor  = 0.0001
  norm       = 4.42612
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.17203
  Prefactor  = 0.818689
 **********
 **   18 **HESSE 
 **********

 FCN=   4441.317     FROM HESSE     STATUS=OK           340 CALLS     2317 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7641        .10820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.4545        6.9591        .14689E-03   -1.5162    
   3  Prefactor     15.460        12.093        .10187E-03   -1.4921    
   4  Prefactor     18.378        17.098        .93419E-04   -1.4850    
   5  Prefactor     .10002E-03    26.812        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    25.320        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6529        .16785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.1287        5.0343        .76697E-03   -1.5302    
  10  norm          .68015        .39036        .29934E-04   -1.5543    
  11  Prefactor     5.8434        9.2985        .16614E-03   -1.5224    
  12  Prefactor     21.749        21.932        .85876E-04   -1.4775    
  13  Prefactor     .10000E-03    3.2959        .11802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          35.995        26.421        .33398E-03   -1.4507    
  15  Prefactor     22.313        21.767        .84797E-04   -1.4763    
  16  Prefactor     .10000E-03    9.3687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4261        3.0974        .94864E-04   -1.5287    
  18  Prefactor     .10000E-03    51.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6274        .82953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1720        .26249        .26870E-03   -.87472    
  22  Prefactor     .81869        .18127        .22300E-03   -.99043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31681e-09
Minuit parameter uncertainties:
  1  1.38794e-06
  2  6.95985
  3  12.0949
  4  17.1027
  5  0.00135698
  6  0.000652593
  7  3.78769e-06
  8  0.000544343
  9  5.03479
  10  0.390366
  11  9.30075
  12  21.9401
  13  1.55649e-07
  14  26.4296
  15  21.775
  16  1.03103e-05
  17  3.09748
  18  0.000442745
  19  5.9963e-05
  20  1.25884e-06
  21  0.262781
  22  0.181406
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  6.801e-01  3.904e-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.187e-01  1.814e-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.172e+00  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.93
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 5.64e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 6.39e-05 +/- 3.67e-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) = 4441.29552201
delta logL = 0.0215172364888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4441.29442295
delta logL = 0.0226162955569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66471       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6672       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81770       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=   4441.294     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66477        .58506        .67907E-02    .38750E-04
   2  alpha         1.6673        .60671        .27675       -.17914E-04
   3  Normalizat    1.1772        .22133        .60647E-01    .55167E-05
   4  Prefactor     .81766        .15654        .43947E-01    .78955E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.664768
  alpha      = 1.66725
  Normalizat = 1.17716
  Prefactor  = 0.81766
 **********
 **   18 **HESSE 
 **********

 FCN=   4441.294     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66477        .39146        .30136E-04   -1.5545    
   2  alpha         1.6673        .45957        .10881E-01   -.33959    
   3  Normalizat    1.1772        .25550        .26823E-03   -.87311    
   4  Prefactor     .81766        .18077        .22318E-03   -.99081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19206e-13
Minuit parameter uncertainties:
  1  0.391461
  2  0.462528
  3  0.255772
  4  0.180903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64417': 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) = 4441.29442292
delta logL = 0.0226163278676

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  6.648e-01  3.915e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.667e+00  4.625e-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.177e-01  1.809e-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.177e+00  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.98
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.67 +/- 0.46
Photon Flux (Free Index): 4.96e-08 +/- 4.11e-08
Energy Flux (Free Index): 7.41e-05 +/- 6.76e-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/64417/cmap_HighResolution_619315201_619574401_4FGL_J2158.8-3013_daily_bin1466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.64e-08', energy_flux2='7.41e-05', photon_flux_error='3.23e-08', dlogl='2.26e-02', energy_flux='6.39e-05', photon_flux2='4.96e-08', job_status='DONE', time_completed='2021-09-27 22:42:41.280355', photon_index_error2='0.46', photon_index2='1.67', ts='7.93', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='6.76e-05', EG='1.17', time_epoch_completed='1632807761.28', return_code='0', job_id='64417', GAL2='0.82', EG2='1.18', return_code2='0', energy_flux_error='3.67e-05', photon_flux_error2='4.11e-08', ts2='7.98', photon_index='1.77' WHERE bin_id='1466' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:42:41 PDT 2021


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

Job <4FGL_J2158.8-3013_daily_bin1466> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:30:36 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:33:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 22:33:43 2021
Terminated at Mon Sep 27 22:42:41 2021
Results reported at Mon Sep 27 22:42:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1466 329.714 -30.2251 619315201 619574401 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 :                                   467.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   538 sec.
    Turnaround time :                            725 sec.

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

