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 67 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 = 7622
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1724
RA = 329.714, Dec = -30.2251
tmin = 686188801, tmax = 686448001
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='707825', job_status='RUN', time_executed='2022-10-03 01:18:52.755780', time_epoch_executed='1664785132.76' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707825

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707825/ft1_4FGL_J2158.8-3013_daily_bin1724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707825/ft2_4FGL_J2158.8-3013_daily_bin1724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707825/ft1_4FGL_J2158.8-3013_daily_bin1724.fits outfile=/scratch/kocevski/707825/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1724.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=686188801.0 tmax=686448001.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.76
user 4.37
sys 0.24

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

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

Number of photons that the gtmktime cut: 682

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/707825/ft1_filtered_4FGL_J2158.8-3013_daily_bin1724.fits" evtable="EVENTS" scfile=/scratch/kocevski/707825/ft2_4FGL_J2158.8-3013_daily_bin1724.fits sctable="SC_DATA" outfile=/scratch/kocevski/707825/ltcube_686188801_686448001_4FGL_J2158.8-3013_daily_bin1724.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/707825/ft2_4FGL_J2158.8-3013_daily_bin1724.fits
.....................!
real 18.48
user 17.88
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707825/ft1_filtered_4FGL_J2158.8-3013_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707825/ft2_4FGL_J2158.8-3013_daily_bin1724.fits sctable="SC_DATA" expcube=/scratch/kocevski/707825/ltcube_686188801_686448001_4FGL_J2158.8-3013_daily_bin1724.fits outfile=/scratch/kocevski/707825/expmap_686188801_686448001_4FGL_J2158.8-3013_daily_bin1724.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/707825/ltcube_686188801_686448001_4FGL_J2158.8-3013_daily_bin1724.fits
.....................!
real 198.63
user 190.76
sys 5.48

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/707825/ft1_filtered_4FGL_J2158.8-3013_daily_bin1724.fits scfile=/scratch/kocevski/707825/ft2_4FGL_J2158.8-3013_daily_bin1724.fits outfile=/scratch/kocevski/707825/cmap_686188801_686448001_4FGL_J2158.8-3013_daily_bin1724.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/707825/ft1_filtered_4FGL_J2158.8-3013_daily_bin1724.fits scfile=/scratch/kocevski/707825/ft2_4FGL_J2158.8-3013_daily_bin1724.fits outfile=/scratch/kocevski/707825/cmap_HighResolution_686188801_686448001_4FGL_J2158.8-3013_daily_bin1724.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.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/707825/ft1_filtered_4FGL_J2158.8-3013_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707825/ft2_4FGL_J2158.8-3013_daily_bin1724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/707825/Model_4FGL_J2158.8-3013_daily_bin1724.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/707825/ft1_filtered_4FGL_J2158.8-3013_daily_bin1724.fits.....................!
real 60.79
user 58.81
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4371       1.0000          .0000       .10000E+07
     2 'Prefactor '    .72522E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    11.339       1.0000          .0000       .10000E+07
     4 'Prefactor '    .73815E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .12104E-04   1.0000          .0000       .10000E+07
     6 'norm      '    4.2757       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15556E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    6.9009       1.0000          .0000       .10000E+07
     9 'norm      '    .24092E-07   1.0000          .0000       .10000E+07
    10 'norm      '    1.6797       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.8827       1.0000          .0000       .10000E+07
    12 'Prefactor '    10.287       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.9809       1.0000          .0000       .10000E+07
    14 'norm      '    22.223       1.0000          .0000       .10000E+07
    15 'Prefactor '    .61149E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    22.727       1.0000          .0000       .10000E+07
    17 'norm      '    4.5470       1.0000          .0000       .10000E+07
    18 'Prefactor '    .55898       1.0000          .0000       .10000E+07
    19 'Prefactor '    64.672       1.0000          .0000       .10000E+07
    20 'norm      '    3.5037       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0548       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89455       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=   7369.311     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1406 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4369        5.3887        .34493E-07    .20380E-03
   2  Prefactor     .55511E-10    4.8982       -.25875E-06** at limit **
   3  Prefactor     11.382        6.8328        .69459E-07    .16606E-02
   4  Prefactor     .12024E-06    16.264        .11200E-06** at limit **
   5  Prefactor      .0000        2.7067       -.87232E-07** at limit **
   6  norm          4.2769        4.0341       -.33535E-07    .31119E-03
   7  Prefactor     .28721E-06    34.690       -.23565E-05** at limit **
   8  Prefactor     6.6695        45.313        .10810E-06   -.89127E-02
   9  norm           .0000        .81910        .75162E-07** at limit **
  10  norm          1.6798        .39213       -.51386E-08    .10074E-02
  11  Prefactor     9.8455        8.4772        .23886E-07    .48292E-03
  12  Prefactor     10.898        13.796       -.14104E-06    .28063E-02
  13  Prefactor     4.9594        5.3730       -.41729E-07    .30526E-03
  14  norm          21.599        5.4943       -.40847E-07    .11783    
  15  Prefactor     .61062E-09    8.9754       -.59800E-06** at limit **
  16  Prefactor     22.575        9.2770        .68323E-07    .53107E-01
  17  norm          4.5793        2.7783       -.39200E-07   -.71490E-03
  18  Prefactor     .54774E-05    30.762       -.21242E-05** at limit **
  19  Prefactor     64.452        1.6442       -.90137E-09    .11209E-01
  20  norm          3.5088        3.2751       -.35095E-07    .16890E-03
  21  Normalizat    1.0555        .20896       -.54924E-05    .45597E-04
  22  Prefactor     .89413        .14957       -.20122E-06    .50358E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.43689
  Prefactor  = 5.55112e-11
  Prefactor  = 11.3824
  Prefactor  = 1.20237e-07
  Prefactor  = 0
  norm       = 4.27692
  Prefactor  = 2.87215e-07
  Prefactor  = 6.66947
  norm       = 0
  norm       = 1.67982
  Prefactor  = 9.84548
  Prefactor  = 10.8984
  Prefactor  = 4.95939
  norm       = 21.5995
  Prefactor  = 6.10623e-10
  Prefactor  = 22.5747
  norm       = 4.57933
  Prefactor  = 5.4774e-06
  Prefactor  = 64.4523
  norm       = 3.50882
  Normalizat = 1.05549
  Prefactor  = 0.894125
 **********
 **   18 **HESSE 
 **********

 FCN=   7369.311     FROM HESSE     STATUS=OK           390 CALLS     1796 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4369        5.4053        .89999E-03   -1.5684    
   2  Prefactor     .55511E-10    4.8862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.382        6.8432        .29726E-03   -1.5640    
   4  Prefactor     .12024E-06    16.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        2.7120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.2769        4.0360        .48700E-03   -1.5667    
   7  Prefactor     .28721E-06    43.295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6695        47.118        .38168E-03   -1.5656    
   9  norm           .0000        .82071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6798        .39161        .56815E-03   -1.5682    
  11  Prefactor     9.8455        8.4924        .31851E-03   -1.5645    
  12  Prefactor     10.898        17.051        .31215E-03   -1.5642    
  13  Prefactor     4.9594        5.3829        .45037E-03   -1.5663    
  14  norm          21.599        19.609        .21218E-03   -1.5615    
  15  Prefactor     .61062E-09    8.9963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.575        15.831        .20981E-03   -1.5613    
  17  norm          4.5793        2.8102        .47186E-03   -1.5665    
  18  Prefactor     .54774E-05    133.33        .72985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     64.452        18.349        .12436E-03   -1.5547    
  20  norm          3.5088        3.2727        .53988E-03   -1.5670    
  21  Normalizat    1.0555        .18180        .62840E-01   -.91194    
  22  Prefactor     .89413        .12752        .44936E-01   -.96347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45194e-07
Minuit parameter uncertainties:
  1  5.40529
  2  3.61004e-05
  3  6.84316
  4  0.00282883
  5  7.10361e-06
  6  4.03602
  7  0.00705284
  8  35.4548
  9  4.92163e-07
  10  0.391613
  11  8.4924
  12  17.0515
  13  5.38295
  14  19.6093
  15  0.000146597
  16  15.8307
  17  2.81021
  18  0.0540502
  19  18.3494
  20  3.27265
  21  0.181909
  22  0.12756
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.680e+00  3.916e-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:  8.941e-01  1.276e-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.055e+00  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 95.04
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 3.24e-08
Energy Flux (Fixed Index): 1.58e-04 +/- 3.68e-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) = 7368.63765038
delta logL = 0.673705624784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7368.63013135
delta logL = 0.681224662919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7176       1.0000          .0000       .10000E+07
     2 'alpha     '    1.5722       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88838       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=   7368.630     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7176        .42696        .59112E-03   -.16603E-02
   2  alpha         1.5723        .16717        .13309       -.34090E-05
   3  Normalizat    1.0746        .17433        .62388E-01    .13690E-04
   4  Prefactor     .88832        .12664        .44857E-01    .96399E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.71761
  alpha      = 1.57227
  Normalizat = 1.07458
  Prefactor  = 0.888325
 **********
 **   18 **HESSE 
 **********

 FCN=   7368.630     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .91E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7176        .41209        .26073E-05   -1.5682    
   2  alpha         1.5723        .16467        .57587E-03   -.38019    
   3  Normalizat    1.0746        .20531        .27594E-03   -.90572    
   4  Prefactor     .88832        .14921        .21780E-03   -.96550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12587e-17
Minuit parameter uncertainties:
  1  0.412088
  2  0.164812
  3  0.205466
  4  0.149281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707825': 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) = 7368.6301312
delta logL = 0.681224805612

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.718e+00  4.121e-01  0.000e+00  1.000e+06 ( 1.000e-11)
262        alpha:  1.572e+00  1.648e-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:  8.883e-01  1.493e-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.075e+00  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 96.20
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.57 +/- 0.16
Photon Flux (Free Index): 1.18e-07 +/- 3.35e-08
Energy Flux (Free Index): 2.32e-04 +/- 9.53e-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/707825/cmap_HighResolution_686188801_686448001_4FGL_J2158.8-3013_daily_bin1724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='2.32e-04', photon_flux_error='3.24e-08', dlogl='6.81e-01', energy_flux='1.58e-04', photon_flux2='1.18e-07', job_status='DONE', time_completed='2022-10-03 01:28:09.895783', photon_index_error2='0.16', photon_index2='1.57', ts='95.04', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='9.53e-05', EG='1.06', time_epoch_completed='1664785689.9', return_code='0', job_id='707825', GAL2='0.89', EG2='1.07', return_code2='0', energy_flux_error='3.68e-05', photon_flux_error2='3.35e-08', ts2='96.20', photon_index='1.77' WHERE bin_id='1724' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct  3 01:28:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 707825: <4FGL_J2158.8-3013_daily_bin1724> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1724> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Oct  3 01:15:39 2022
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct  3 01:17:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct  3 01:17:35 2022
Terminated at Mon Oct  3 01:28:10 2022
Results reported at Mon Oct  3 01:28:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1724 329.714 -30.2251 686188801 686448001 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 :                                   554.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            751 sec.

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

