aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7445
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1738
RA = 329.714, Dec = -30.2251
tmin = 689817601, tmax = 690076801
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='410758', job_status='RUN', time_executed='2022-11-14 00:49:53.721570', time_epoch_executed='1668415793.72' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410758/ft1_4FGL_J2158.8-3013_daily_bin1738.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410758/ft2_4FGL_J2158.8-3013_daily_bin1738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410758/ft1_4FGL_J2158.8-3013_daily_bin1738.fits outfile=/scratch/kocevski/410758/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1738.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=689817601.0 tmax=690076801.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 4.08
user 3.83
sys 0.22

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

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

Number of photons that the gtmktime cut: 842

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410758/ft1_filtered_4FGL_J2158.8-3013_daily_bin1738.fits" evtable="EVENTS" scfile=/scratch/kocevski/410758/ft2_4FGL_J2158.8-3013_daily_bin1738.fits sctable="SC_DATA" outfile=/scratch/kocevski/410758/ltcube_689817601_690076801_4FGL_J2158.8-3013_daily_bin1738.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/410758/ft2_4FGL_J2158.8-3013_daily_bin1738.fits
.....................!
real 13.88
user 13.46
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410758/ft1_filtered_4FGL_J2158.8-3013_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/410758/ft2_4FGL_J2158.8-3013_daily_bin1738.fits sctable="SC_DATA" expcube=/scratch/kocevski/410758/ltcube_689817601_690076801_4FGL_J2158.8-3013_daily_bin1738.fits outfile=/scratch/kocevski/410758/expmap_689817601_690076801_4FGL_J2158.8-3013_daily_bin1738.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/410758/ltcube_689817601_690076801_4FGL_J2158.8-3013_daily_bin1738.fits
.....................!
real 193.25
user 187.79
sys 4.74

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/410758/ft1_filtered_4FGL_J2158.8-3013_daily_bin1738.fits scfile=/scratch/kocevski/410758/ft2_4FGL_J2158.8-3013_daily_bin1738.fits outfile=/scratch/kocevski/410758/cmap_689817601_690076801_4FGL_J2158.8-3013_daily_bin1738.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410758/ft1_filtered_4FGL_J2158.8-3013_daily_bin1738.fits scfile=/scratch/kocevski/410758/ft2_4FGL_J2158.8-3013_daily_bin1738.fits outfile=/scratch/kocevski/410758/cmap_HighResolution_689817601_690076801_4FGL_J2158.8-3013_daily_bin1738.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410758/ft1_filtered_4FGL_J2158.8-3013_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/410758/ft2_4FGL_J2158.8-3013_daily_bin1738.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410758/Model_4FGL_J2158.8-3013_daily_bin1738.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/410758/ft1_filtered_4FGL_J2158.8-3013_daily_bin1738.fits.....................!
real 69.26
user 67.60
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/410758/ft1_filtered_4FGL_J2158.8-3013_daily_bin1738.fits', '/scratch/kocevski/410758/ft2_4FGL_J2158.8-3013_daily_bin1738.fits', expMap='/scratch/kocevski/410758/expmap_689817601_690076801_4FGL_J2158.8-3013_daily_bin1738.fits', expCube='/scratch/kocevski/410758/ltcube_689817601_690076801_4FGL_J2158.8-3013_daily_bin1738.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/410758/Model_4FGL_J2158.8-3013_daily_bin1738.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  0.000e+00  1.000e+06 ( 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 -5.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/410758/ft1_filtered_4FGL_J2158.8-3013_daily_bin1738.fits
Spacecraft file(s): /scratch/kocevski/410758/ft2_4FGL_J2158.8-3013_daily_bin1738.fits
Exposure map: /scratch/kocevski/410758/expmap_689817601_690076801_4FGL_J2158.8-3013_daily_bin1738.fits
Exposure cube: /scratch/kocevski/410758/ltcube_689817601_690076801_4FGL_J2158.8-3013_daily_bin1738.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/410758/Model_4FGL_J2158.8-3013_daily_bin1738.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) = 9008.64995638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40976E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .37104E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.3328       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.0230       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.1168       1.0000          .0000       .10000E+07
     6 'norm      '    1.7014       1.0000          .0000       .10000E+07
     7 'Prefactor '    .28558E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .51571E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .13337E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .56805       1.0000          .0000       .10000E+07
    11 'Prefactor '    .25306E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    17.526       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.1246       1.0000          .0000       .10000E+07
    14 'norm      '    .69594E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .71529E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    17.515       1.0000          .0000       .10000E+07
    17 'norm      '    .79359       1.0000          .0000       .10000E+07
    18 'Prefactor '    22.868       1.0000          .0000       .10000E+07
    19 'Prefactor '    12.947       1.0000          .0000       .10000E+07
    20 'norm      '    .40605E-05   1.0000          .0000       .10000E+07
    21 'Normalizat'    .88776       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9008.619     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1691 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.3455       -.10906E-06** at limit **
   2  Prefactor      .0000        1.3719        .73762E-08** at limit **
   3  Prefactor     1.3087        4.7912        .28218E-06   -.84998E-03
   4  Prefactor     8.0138        1.2221        .38744E-08   -.81891E-02
   5  Prefactor     2.1077        6.6020        .15503E-06    .94609E-02
   6  norm          1.6958        3.3971       -.23107E-07    .12422E-03
   7  Prefactor     .93259E-08    2.1741       -.10258E-06** at limit **
   8  Prefactor     .55511E-10    12.369        .49854E-06** at limit **
   9  norm           .0000        1.1216        .13663E-06** at limit **
  10  norm          .56776        .23656       -.14548E-08   -.41822E-02
  11  Prefactor     .96589E-08    2.1150       -.55460E-07** at limit **
  12  Prefactor     17.515        1.8860        .36067E-07   -.26282E-01
  13  Prefactor     7.1286        6.2112        .20285E-06    .22174E-01
  14  norm          .27756E-09    5.7659        .47417E-06** at limit **
  15  Prefactor     .11158E-07    1.1366       -.19828E-08** at limit **
  16  Prefactor     17.666        8.0689       -.20598E-06    .54958E-01
  17  norm          .79736        .83526       -.52241E-07   -.48072E-03
  18  Prefactor     21.806        33.835        .39562E-06    .93796E-02
  19  Prefactor     12.946        7.2137        .11088E-06    .23008E-01
  20  norm           .0000        1.4286        .12867E-06** at limit **
  21  Normalizat    .88849        .16121        .23040E-06   -.66779E-05
  22  Prefactor     .94865        .12083       -.11123E-05    .75163E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.30867
  Prefactor  = 8.01381
  Prefactor  = 2.10768
  norm       = 1.69582
  Prefactor  = 9.32587e-09
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 0.567764
  Prefactor  = 9.65894e-09
  Prefactor  = 17.515
  Prefactor  = 7.12861
  norm       = 2.77556e-10
  Prefactor  = 1.11577e-08
  Prefactor  = 17.6657
  norm       = 0.797359
  Prefactor  = 21.8057
  Prefactor  = 12.9459
  norm       = 0
  Normalizat = 0.888494
  Prefactor  = 0.948645
 **********
 **   18 **HESSE 
 **********

 FCN=   9008.619     FROM HESSE     STATUS=OK           392 CALLS     2083 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.3449        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.3706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3087        4.9122        .95046E-03   -1.5685    
   4  Prefactor     8.0138        7.8716        .35374E-03   -1.5651    
   5  Prefactor     2.1077        6.9587        .70865E-03   -1.5679    
   6  norm          1.6958        3.4352        .80610E-03   -1.5682    
   7  Prefactor     .93259E-08    3.4654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    12.376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        1.1167        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .56776        .23555        .64965E-03   -1.5693    
  11  Prefactor     .96589E-08    3.5162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.515        11.604        .23897E-03   -1.5624    
  13  Prefactor     7.1286        6.5322        .37558E-03   -1.5655    
  14  norm          .27756E-09    5.7659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11158E-07    8.2340        .97438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.666        12.748        .23904E-03   -1.5624    
  17  norm          .79736        .83141        .53414E-03   -1.5690    
  18  Prefactor     21.806        34.066        .20917E-03   -1.5615    
  19  Prefactor     12.946        9.5351        .27813E-03   -1.5636    
  20  norm           .0000        1.4253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88849        .14768        .44745E-01   -.96866    
  22  Prefactor     .94865        .10479        .45625E-01   -.94461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50432e-06
Minuit parameter uncertainties:
  1  8.4134e-06
  2  1.47415e-06
  3  4.91226
  4  7.87164
  5  6.95877
  6  3.43522
  7  0.000359969
  8  4.17766e-05
  9  4.37774e-06
  10  0.235549
  11  0.000368127
  12  11.6037
  13  6.53225
  14  8.3392e-05
  15  0.000606818
  16  12.7485
  17  0.831415
  18  34.0666
  19  9.53514
  20  1.12076e-05
  21  0.147744
  22  0.104814
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.678e-01  2.355e-01  0.000e+00  1.000e+06 ( 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 -5.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.486e-01  1.048e-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:  8.885e-01  1.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.44
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.71e-08 +/- 1.95e-08
Energy Flux (Fixed Index): 5.33e-05 +/- 2.21e-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) = 9008.35627387
delta logL = 0.262402247743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9008.35489566
delta logL = 0.263780459574

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56362       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0210       1.0000          .0000       5.0000    
     3 'Normalizat'    .86771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95567       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=   9008.355     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      237 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56363        2.9299        .59242E-03    .27331E-02
   2  alpha         2.0210        3.5076        .27259        .52934E-04
   3  Normalizat    .86771        .81762E-01    .44488E-01    .24622E-04
   4  Prefactor     .95567        .44059E-01    .45711E-01    .57306E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.563629
  alpha      = 2.02099
  Normalizat = 0.867705
  Prefactor  = 0.955671
 **********
 **   18 **HESSE 
 **********

 FCN=   9008.355     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56363        .22632        .26199E-05   -1.5693    
   2  alpha         2.0210        .34865        .99522E-02   -.19280    
   3  Normalizat    .86771        .15967        .26418E-03   -.97604    
   4  Prefactor     .95567        .12014        .19283E-03   -.94222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11103e-10
Minuit parameter uncertainties:
  1  0.22632
  2  0.349835
  3  0.159752
  4  0.120176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410758': 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) = 9008.35489566
delta logL = 0.263780461295

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  5.636e-01  2.263e-01  0.000e+00  1.000e+06 ( 1.000e-11)
262        alpha:  2.021e+00  3.498e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  4.097e-02  0.000e+00 -5.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.557e-01  1.202e-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:  8.677e-01  1.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.96
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 2.02 +/- 0.35
Photon Flux (Free Index): 6.44e-08 +/- 3.40e-08
Energy Flux (Free Index): 3.99e-05 +/- 2.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/410758/cmap_HighResolution_689817601_690076801_4FGL_J2158.8-3013_daily_bin1738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.71e-08', energy_flux2='3.99e-05', photon_flux_error='1.95e-08', dlogl='2.64e-01', energy_flux='5.33e-05', photon_flux2='6.44e-08', job_status='DONE', time_completed='2022-11-14 01:00:17.926337', photon_index_error2='0.35', photon_index2='2.02', ts='23.44', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.09e-05', EG='0.89', time_epoch_completed='1668416417.93', return_code='0', job_id='410758', GAL2='0.96', EG2='0.87', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='3.40e-08', ts2='23.96', photon_index='1.77' WHERE bin_id='1738' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Nov 14 01:00:17 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 410758: <4FGL_J2158.8-3013_daily_bin1738> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1738> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Nov 14 00:45:45 2022
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 00:48:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov 14 00:48:45 2022
Terminated at Mon Nov 14 01:00:18 2022
Results reported at Mon Nov 14 01:00:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1738 329.714 -30.2251 689817601 690076801 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 :                                   625.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            873 sec.

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

