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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1767
RA = 329.962, Dec = -47.8518
tmin = 697334401, tmax = 697593601
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='90101', job_status='RUN', time_executed='2023-02-09 02:00:19.130253', time_epoch_executed='1675936819.13' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90101

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90101/ft1_4FGL_J2159.8-4751_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90101/ft2_4FGL_J2159.8-4751_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90101/ft1_4FGL_J2159.8-4751_daily_bin1767.fits outfile=/scratch/kocevski/90101/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1767.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=697334401.0 tmax=697593601.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.58
user 3.35
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/90101/ft2_4FGL_J2159.8-4751_daily_bin1767.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90101/ft2_4FGL_J2159.8-4751_daily_bin1767.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/90101/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1767.fits evtable="EVENTS" outfile="/scratch/kocevski/90101/ft1_filtered_4FGL_J2159.8-4751_daily_bin1767.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.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 549

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90101/ft1_filtered_4FGL_J2159.8-4751_daily_bin1767.fits" evtable="EVENTS" scfile=/scratch/kocevski/90101/ft2_4FGL_J2159.8-4751_daily_bin1767.fits sctable="SC_DATA" outfile=/scratch/kocevski/90101/ltcube_697334401_697593601_4FGL_J2159.8-4751_daily_bin1767.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/90101/ft2_4FGL_J2159.8-4751_daily_bin1767.fits
.....................!
real 13.46
user 13.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90101/ft1_filtered_4FGL_J2159.8-4751_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/90101/ft2_4FGL_J2159.8-4751_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/90101/ltcube_697334401_697593601_4FGL_J2159.8-4751_daily_bin1767.fits outfile=/scratch/kocevski/90101/expmap_697334401_697593601_4FGL_J2159.8-4751_daily_bin1767.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/90101/ltcube_697334401_697593601_4FGL_J2159.8-4751_daily_bin1767.fits
.....................!
real 192.64
user 187.71
sys 4.53

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J2159.8-4751 @ 329.962 -47.8518

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/90101/ft1_filtered_4FGL_J2159.8-4751_daily_bin1767.fits scfile=/scratch/kocevski/90101/ft2_4FGL_J2159.8-4751_daily_bin1767.fits outfile=/scratch/kocevski/90101/cmap_697334401_697593601_4FGL_J2159.8-4751_daily_bin1767.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.962 yref=-47.8518 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.60
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90101/ft1_filtered_4FGL_J2159.8-4751_daily_bin1767.fits scfile=/scratch/kocevski/90101/ft2_4FGL_J2159.8-4751_daily_bin1767.fits outfile=/scratch/kocevski/90101/cmap_HighResolution_697334401_697593601_4FGL_J2159.8-4751_daily_bin1767.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.962 yref=-47.8518 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90101/ft1_filtered_4FGL_J2159.8-4751_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/90101/ft2_4FGL_J2159.8-4751_daily_bin1767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90101/Model_4FGL_J2159.8-4751_daily_bin1767.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/90101/ft1_filtered_4FGL_J2159.8-4751_daily_bin1767.fits.....................!
real 46.17
user 44.85
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/90101/ft1_filtered_4FGL_J2159.8-4751_daily_bin1767.fits', '/scratch/kocevski/90101/ft2_4FGL_J2159.8-4751_daily_bin1767.fits', expMap='/scratch/kocevski/90101/expmap_697334401_697593601_4FGL_J2159.8-4751_daily_bin1767.fits', expCube='/scratch/kocevski/90101/ltcube_697334401_697593601_4FGL_J2159.8-4751_daily_bin1767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/90101/Model_4FGL_J2159.8-4751_daily_bin1767.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2159.8-4751'

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  6.682e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  2.524e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/90101/ft1_filtered_4FGL_J2159.8-4751_daily_bin1767.fits
Spacecraft file(s): /scratch/kocevski/90101/ft2_4FGL_J2159.8-4751_daily_bin1767.fits
Exposure map: /scratch/kocevski/90101/expmap_697334401_697593601_4FGL_J2159.8-4751_daily_bin1767.fits
Exposure cube: /scratch/kocevski/90101/ltcube_697334401_697593601_4FGL_J2159.8-4751_daily_bin1767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/90101/Model_4FGL_J2159.8-4751_daily_bin1767.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) = 5964.54088468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.101       1.0000          .0000       .10000E+07
     2 'norm      '    3.1431       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11363E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .13865E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    35.099       1.0000          .0000       .10000E+07
     6 'Prefactor '    .37954E-03   1.0000          .0000       .10000E+07
     7 'norm      '    16.490       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.9274       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.5995       1.0000          .0000       .10000E+07
    10 'Prefactor '    99.128       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.4381       1.0000          .0000       .10000E+07
    12 'Prefactor '    .51091E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .66022       1.0000          .0000       .10000E+07
    14 'norm      '    .69782E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.8809       1.0000          .0000       .10000E+07
    16 'Prefactor '    .71060E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .90177       1.0000          .0000       .10000E+07
    18 'Prefactor '    .24245E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    14.216       1.0000          .0000       .10000E+07
    20 'Prefactor '    15.282       1.0000          .0000       .10000E+07
    21 'Prefactor '    43.225       1.0000          .0000       .10000E+07
    22 'Normalizat'    .65408       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2446       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5964.315     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1886 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.674        7.3070        .14950E-06    .34150E-01
   2  norm          3.1433        2.0627        .30514E-06   -.31422E-03
   3  Prefactor      .0000        7.6636       -.13956E-05** at limit **
   4  Prefactor     .18430E-07    19.744        .14259E-05** at limit **
   5  Prefactor     36.013        15.896       -.79676E-08   -.10570    
   6  Prefactor      .0000        3.9901       -.15654E-06** at limit **
   7  norm          16.501        6.5178        .41922E-06    .43797E-02
   8  Prefactor     3.9702        6.5174        .34328E-06    .21039E-01
   9  Prefactor     6.6483        4.9651        .19316E-06   -.36659E-01
  10  Prefactor     103.02        51.137       -.70234E-06   -.24561E-01
  11  Prefactor     4.1578        9.2035        .10518E-05    .32347E-03
  12  Prefactor      .0000        1.7650       -.17496E-06** at limit **
  13  Prefactor     .47833E-04    49.776        .85769E-05** at limit **
  14  norm           .0000        2.4431        .95799E-07** at limit **
  15  Prefactor     2.8920        3.6304       -.92129E-07   -.69166E-03
  16  Prefactor     .16098E-08    16.322       -.10110E-05** at limit **
  17  Prefactor     .90735        2.7901        .66135E-06    .11426E-02
  18  Prefactor      .0000        10.404       -.13787E-05** at limit **
  19  Prefactor     13.258        19.102       -.58683E-06   -.42184E-01
  20  Prefactor     15.215        10.906       -.51682E-06   -.37878E-02
  21  Prefactor     46.675        37.820       -.31871E-05   -.26775E-01
  22  Normalizat    .65250        .22996       -.17015E-04    .58277E-05
  23  Prefactor     1.2436        .17782        .28713E-04    .25292E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6739
  norm       = 3.14334
  Prefactor  = 0
  Prefactor  = 1.84297e-08
  Prefactor  = 36.0126
  Prefactor  = 0
  norm       = 16.5015
  Prefactor  = 3.97018
  Prefactor  = 6.6483
  Prefactor  = 103.021
  Prefactor  = 4.15777
  Prefactor  = 0
  Prefactor  = 4.78328e-05
  norm       = 0
  Prefactor  = 2.892
  Prefactor  = 1.60982e-09
  Prefactor  = 0.907348
  Prefactor  = 0
  Prefactor  = 13.2578
  Prefactor  = 15.2149
  Prefactor  = 46.6746
  Normalizat = 0.652501
  Prefactor  = 1.24355
 **********
 **   18 **HESSE 
 **********

 FCN=   5964.315     FROM HESSE     STATUS=OK           420 CALLS     2306 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.674        27.193        .22311E-03   -1.5617    
   2  norm          3.1433        2.0692        .57153E-03   -1.5673    
   3  Prefactor      .0000        7.6414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .18430E-07    19.770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.013        29.379        .16881E-03   -1.5588    
   6  Prefactor      .0000        3.9566        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.501        6.5613        .24637E-03   -1.5627    
   8  Prefactor     3.9702        9.1950        .50881E-03   -1.5668    
   9  Prefactor     6.6483        9.7962        .39039E-03   -1.5656    
  10  Prefactor     103.02        52.271        .10045E-03   -1.5505    
  11  Prefactor     4.1578        9.2781        .47776E-03   -1.5667    
  12  Prefactor      .0000        1.7678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .47833E-04    203.74        .63998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        2.4444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8920        3.6517        .59854E-03   -1.5674    
  16  Prefactor     .16098E-08    16.336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .90735        2.8048        .45638E-03   -1.5689    
  18  Prefactor      .0000        10.409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.258        24.820        .26539E-03   -1.5635    
  20  Prefactor     15.215        10.953        .25594E-03   -1.5630    
  21  Prefactor     46.675        43.149        .15211E-03   -1.5571    
  22  Normalizat    .65250        .21464        .75775E-01   -1.0580    
  23  Prefactor     1.2436        .15916        .33652E-01   -.85001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31003e-07
Minuit parameter uncertainties:
  1  27.1928
  2  2.06921
  3  1.23606e-05
  4  0.00120711
  5  29.3793
  6  2.97025e-06
  7  6.56127
  8  9.19508
  9  9.7962
  10  52.2712
  11  9.27812
  12  1.50823e-06
  13  0.197443
  14  6.92866e-06
  15  3.65168
  16  0.000325926
  17  2.8048
  18  1.73235e-05
  19  24.8206
  20  10.953
  21  43.1492
  22  0.214912
  23  0.159224
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.030e+02  5.227e+01  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  2.524e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.244e+00  1.592e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  6.525e-01  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.61
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 5.45e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 1.54e-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) = 5964.3143893
delta logL = 0.000251737984399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5964.31417492
delta logL = 0.000466117217002

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    101.74       1.0000          .0000       .10000E+07
     2 'Index     '    2.5401       1.0000          .0000       10.000    
     3 'Normalizat'    .65126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2440       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5964.314     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      267 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     101.64        69.959        .19830E-04    .26086E-03
   2  Index         2.5387        .50466        .52552E-02    .37188E-03
   3  Normalizat    .65139        .22070        .33573E-03   -.32373E-04
   4  Prefactor     1.2442        .17577        .20105E-03    .71090E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 101.641
  Index      = 2.53868
  Normalizat = 0.651393
  Prefactor  = 1.24421
 **********
 **   18 **HESSE 
 **********

 FCN=   5964.314     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     101.64        67.418        .79318E-06   -1.5506    
   2  Index         2.5387        .48611        .10510E-02   -.51469    
   3  Normalizat    .65139        .22070        .13429E-04   -1.0584    
   4  Prefactor     1.2442        .17576        .40210E-04   -.84982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46048e-11
Minuit parameter uncertainties:
  1  67.4186
  2  0.487125
  3  0.221
  4  0.17584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90101': 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) = 5964.31415734
delta logL = 0.000483698764583

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.016e+02  6.742e+01  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  2.539e+00  4.871e-01  0.000e+00  1.000e+01 (-1.000e+00)
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.244e+00  1.758e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  6.514e-01  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.57
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 2.54 +/- 0.49
Photon Flux (Free Index): 1.08e-07 +/- 5.74e-08
Energy Flux (Free Index): 3.02e-05 +/- 1.71e-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/90101/cmap_HighResolution_697334401_697593601_4FGL_J2159.8-4751_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='3.02e-05', photon_flux_error='5.45e-08', dlogl='4.84e-04', energy_flux='3.04e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2023-02-09 02:09:26.032029', photon_index_error2='0.49', photon_index2='2.54', ts='7.61', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='0.65', time_epoch_completed='1675937366.03', return_code='0', job_id='90101', GAL2='1.24', EG2='0.65', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='5.74e-08', ts2='7.57', photon_index='2.52' WHERE bin_id='1767' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 02:09:26 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 90101: <4FGL_J2159.8-4751_daily_bin1767> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1767> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Feb  9 01:55:18 2023
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 01:56:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 01:56:14 2023
Terminated at Thu Feb  9 02:09:26 2023
Results reported at Thu Feb  9 02:09:26 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1767 329.962 -47.8518 697334401 697593601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2159.8-4751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   548.61 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             233.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            848 sec.

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

