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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1698
RA = 329.962, Dec = -47.8518
tmin = 679449601, tmax = 679708801
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='925667', job_status='RUN', time_executed='2022-07-17 00:35:59.246737', time_epoch_executed='1658043359.25' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925667

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925667/ft1_4FGL_J2159.8-4751_daily_bin1698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925667/ft2_4FGL_J2159.8-4751_daily_bin1698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925667/ft1_4FGL_J2159.8-4751_daily_bin1698.fits outfile=/scratch/kocevski/925667/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1698.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=679449601.0 tmax=679708801.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.46
user 3.24
sys 0.20

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

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

Number of photons that the gtmktime cut: 560

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925667/ft1_filtered_4FGL_J2159.8-4751_daily_bin1698.fits" evtable="EVENTS" scfile=/scratch/kocevski/925667/ft2_4FGL_J2159.8-4751_daily_bin1698.fits sctable="SC_DATA" outfile=/scratch/kocevski/925667/ltcube_679449601_679708801_4FGL_J2159.8-4751_daily_bin1698.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/925667/ft2_4FGL_J2159.8-4751_daily_bin1698.fits
.....................!
real 11.82
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925667/ft1_filtered_4FGL_J2159.8-4751_daily_bin1698.fits evtable="EVENTS" scfile=/scratch/kocevski/925667/ft2_4FGL_J2159.8-4751_daily_bin1698.fits sctable="SC_DATA" expcube=/scratch/kocevski/925667/ltcube_679449601_679708801_4FGL_J2159.8-4751_daily_bin1698.fits outfile=/scratch/kocevski/925667/expmap_679449601_679708801_4FGL_J2159.8-4751_daily_bin1698.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/925667/ltcube_679449601_679708801_4FGL_J2159.8-4751_daily_bin1698.fits
.....................!
real 193.27
user 187.20
sys 5.76

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/925667/ft1_filtered_4FGL_J2159.8-4751_daily_bin1698.fits scfile=/scratch/kocevski/925667/ft2_4FGL_J2159.8-4751_daily_bin1698.fits outfile=/scratch/kocevski/925667/cmap_679449601_679708801_4FGL_J2159.8-4751_daily_bin1698.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925667/ft1_filtered_4FGL_J2159.8-4751_daily_bin1698.fits scfile=/scratch/kocevski/925667/ft2_4FGL_J2159.8-4751_daily_bin1698.fits outfile=/scratch/kocevski/925667/cmap_HighResolution_679449601_679708801_4FGL_J2159.8-4751_daily_bin1698.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/925667/ft1_filtered_4FGL_J2159.8-4751_daily_bin1698.fits evtable="EVENTS" scfile=/scratch/kocevski/925667/ft2_4FGL_J2159.8-4751_daily_bin1698.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/925667/Model_4FGL_J2159.8-4751_daily_bin1698.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/925667/ft1_filtered_4FGL_J2159.8-4751_daily_bin1698.fits....................!
real 46.81
user 45.50
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/925667/ft1_filtered_4FGL_J2159.8-4751_daily_bin1698.fits', '/scratch/kocevski/925667/ft2_4FGL_J2159.8-4751_daily_bin1698.fits', expMap='/scratch/kocevski/925667/expmap_679449601_679708801_4FGL_J2159.8-4751_daily_bin1698.fits', expCube='/scratch/kocevski/925667/ltcube_679449601_679708801_4FGL_J2159.8-4751_daily_bin1698.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/925667/Model_4FGL_J2159.8-4751_daily_bin1698.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  1.000e-04  1.000e+04 ( 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/925667/ft1_filtered_4FGL_J2159.8-4751_daily_bin1698.fits
Spacecraft file(s): /scratch/kocevski/925667/ft2_4FGL_J2159.8-4751_daily_bin1698.fits
Exposure map: /scratch/kocevski/925667/expmap_679449601_679708801_4FGL_J2159.8-4751_daily_bin1698.fits
Exposure cube: /scratch/kocevski/925667/ltcube_679449601_679708801_4FGL_J2159.8-4751_daily_bin1698.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/925667/Model_4FGL_J2159.8-4751_daily_bin1698.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) = 6044.69579377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8975       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.300       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.319       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10999E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9838       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11361E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5698       1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.519       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20909E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5816       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92109       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0073       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.

 FCN=   6044.693     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3087 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1290       -.95931E-07** at limit **
   2  norm          3.8973        2.2194        .14860E-07   -.14580E-04
   3  Prefactor     .10000E-03    17.744        .35493E-06** at limit **
   4  Prefactor     11.298        8.8148        .13790E-05    .16167E-04
   5  Prefactor     43.321        28.025       -.49273E-06    .30252E-04
   6  Prefactor     .10000E-03    42.443        .24160E-05** at limit **
   7  Prefactor     .10000E-03    2.7613       -.33679E-06** at limit **
   8  norm          3.9837        4.0596       -.63680E-07    .24916E-04
   9  Prefactor     .10000E-03    5.2043       -.85972E-06** at limit **
  10  Prefactor     5.5707        7.7433        .31094E-05    .69403E-04
  11  Prefactor     43.493        39.839       -.82803E-06   -.24964E-03
  12  Prefactor     .10000E-03    3.7502       -.43396E-06** at limit **
  13  Prefactor     .10001E-03    2.1268        .83510E-06** at limit **
  14  Prefactor     .10000E-03    56.291       -.10606E-05** at limit **
  15  norm          .10000E-03    2.3597        .69904E-08** at limit **
  16  Prefactor     .10000E-03    2.6354        .80471E-07** at limit **
  17  Prefactor     .10000E-03    21.598       -.27218E-06** at limit **
  18  Prefactor     .10000E-03    1.3156       -.36945E-07** at limit **
  19  Prefactor     .10000E-03    9.4206        .99400E-07** at limit **
  20  Prefactor     .10000E-03    5.2828       -.30613E-07** at limit **
  21  Prefactor     .10000E-03    2.2059        .93838E-08** at limit **
  22  Prefactor     .10000E-03    26.267       -.14032E-06** at limit **
  23  Prefactor     .10000E-03    4.4633        .12825E-06** at limit **
  24  Prefactor     1.5572        88.750        .41311E-06   -.40452E-04
  25  Normalizat    .92098        .17715        .36581E-06   -.11606E-03
  26  Prefactor     1.0074        .13997       -.70655E-06   -.49764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.89731
  Prefactor  = 0.0001
  Prefactor  = 11.2978
  Prefactor  = 43.3206
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 3.98373
  Prefactor  = 0.0001
  Prefactor  = 5.57072
  Prefactor  = 43.4928
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.55725
  Normalizat = 0.920984
  Prefactor  = 1.00735
 **********
 **   18 **HESSE 
 **********

 FCN=   6044.693     FROM HESSE     STATUS=OK           452 CALLS     3539 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8973        2.2166        .83685E-04   -1.5313    
   3  Prefactor     .10000E-03    17.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.298        8.8086        .59590E-03   -1.5036    
   5  Prefactor     43.321        27.974        .60911E-04   -1.4391    
   6  Prefactor     .10000E-03    43.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2872        .24737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9837        4.0526        .15076E-03   -1.5309    
   9  Prefactor     .10000E-03    26.475        .33922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5707        7.8002        .85115E-03   -1.5236    
  11  Prefactor     43.493        39.843        .60771E-04   -1.4388    
  12  Prefactor     .10000E-03    3.7677        .14686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    7.5048        .20671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    56.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3644        .11664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7054        .24614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.3192        .87073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.4387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.2859        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.2085        .11277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.5202        .16038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.5572        90.322        .33769E-03   -1.5458    
  25  Normalizat    .92098        .20221        .26109E-03   -.95727    
  26  Prefactor     1.0074        .16174        .20100E-03   -.92485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82556e-09
Minuit parameter uncertainties:
  1  4.17803e-05
  2  2.21668
  3  0.000115546
  4  8.80958
  5  27.9826
  6  0.000711205
  7  3.77165e-05
  8  4.0529
  9  0.000197299
  10  7.80164
  11  39.8674
  12  3.56922e-07
  13  0.000561114
  14  0.000593727
  15  5.90694e-07
  16  9.75259e-07
  17  0.000161559
  18  1.51235e-07
  19  7.77569e-06
  20  5.24166e-06
  21  3.14142e-07
  22  6.65564e-05
  23  3.53501e-06
  24  23.7565
  25  0.202372
  26  0.16182
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  4.349e+01  3.987e+01  1.000e-04  1.000e+04 ( 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.007e+00  1.618e-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:  9.210e-01  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.57
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.54e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.18e-05

TS (Fixed Index): 1.57
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925667/likelihoodResults_679449601_679708801_4FGL_J2159.8-4751_daily_bin1698.txt

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) = 6044.56157434
delta logL = 0.131084656834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6044.55795241
delta logL = 0.134706593393

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.806       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9194       1.0000          .0000       10.000    
     3 'Normalizat'    .90593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0150       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=   6044.558     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      281 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.791        45.542        .72188E-04    .65974E-03
   2  Index         2.9187        .92882        .71348E-02    .30176E-03
   3  Normalizat    .90612        .20366        .26296E-03   -.12591E-02
   4  Prefactor     1.0151        .16124        .20031E-03   -.16629E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.791
  Index      = 2.91871
  Normalizat = 0.906124
  Prefactor  = 1.01506
 **********
 **   18 **HESSE 
 **********

 FCN=   6044.558     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.791        40.217        .14438E-04   -1.4598    
   2  Index         2.9187        .82042        .28539E-03   -.42933    
   3  Normalizat    .90612        .20376        .52592E-04   -.96245    
   4  Prefactor     1.0151        .16121        .40062E-04   -.92229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14067e-09
Minuit parameter uncertainties:
  1  40.2527
  2  0.824938
  3  0.203929
  4  0.161287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925667': 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) = 6044.55794888
delta logL = 0.134710124454

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  3.079e+01  4.025e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.919e+00  8.249e-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.015e+00  1.613e-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:  9.061e-01  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 2.92 +/- 0.82
Photon Flux (Free Index): 5.65e-08 +/- 4.91e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.03e-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/925667/cmap_HighResolution_679449601_679708801_4FGL_J2159.8-4751_daily_bin1698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.54e-08', energy_flux2='1.18e-05', photon_flux_error='4.16e-08', dlogl='1.35e-01', energy_flux='1.28e-05', photon_flux2='5.65e-08', job_status='DONE', time_completed='2022-07-17 00:47:46.537875', photon_index_error2='0.82', photon_index2='2.92', ts='1.57', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.03e-05', EG='0.92', time_epoch_completed='1658044066.54', return_code='0', job_id='925667', GAL2='1.02', EG2='0.91', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='4.91e-08', ts2='1.86', photon_index='2.52' WHERE bin_id='1698' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 17 00:47:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 925667: <4FGL_J2159.8-4751_daily_bin1698> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1698> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jul 17 00:35:22 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 17 00:35:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 17 00:35:24 2022
Terminated at Sun Jul 17 00:47:47 2022
Results reported at Sun Jul 17 00:47:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1698 329.962 -47.8518 679449601 679708801 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 :                                   709.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            745 sec.

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

