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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1696
RA = 329.962, Dec = -47.8518
tmin = 678931201, tmax = 679190401
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='792956', job_status='RUN', time_executed='2022-07-11 00:34:06.194778', time_epoch_executed='1657524846.19' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792956/ft1_4FGL_J2159.8-4751_daily_bin1696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792956/ft2_4FGL_J2159.8-4751_daily_bin1696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792956/ft1_4FGL_J2159.8-4751_daily_bin1696.fits outfile=/scratch/kocevski/792956/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1696.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=678931201.0 tmax=679190401.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.55
user 3.32
sys 0.22

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

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

Number of photons that the gtmktime cut: 491

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792956/ft1_filtered_4FGL_J2159.8-4751_daily_bin1696.fits" evtable="EVENTS" scfile=/scratch/kocevski/792956/ft2_4FGL_J2159.8-4751_daily_bin1696.fits sctable="SC_DATA" outfile=/scratch/kocevski/792956/ltcube_678931201_679190401_4FGL_J2159.8-4751_daily_bin1696.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/792956/ft2_4FGL_J2159.8-4751_daily_bin1696.fits
.....................!
real 12.08
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792956/ft1_filtered_4FGL_J2159.8-4751_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/792956/ft2_4FGL_J2159.8-4751_daily_bin1696.fits sctable="SC_DATA" expcube=/scratch/kocevski/792956/ltcube_678931201_679190401_4FGL_J2159.8-4751_daily_bin1696.fits outfile=/scratch/kocevski/792956/expmap_678931201_679190401_4FGL_J2159.8-4751_daily_bin1696.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/792956/ltcube_678931201_679190401_4FGL_J2159.8-4751_daily_bin1696.fits
.....................!
real 190.99
user 185.86
sys 4.79

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/792956/ft1_filtered_4FGL_J2159.8-4751_daily_bin1696.fits scfile=/scratch/kocevski/792956/ft2_4FGL_J2159.8-4751_daily_bin1696.fits outfile=/scratch/kocevski/792956/cmap_678931201_679190401_4FGL_J2159.8-4751_daily_bin1696.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792956/ft1_filtered_4FGL_J2159.8-4751_daily_bin1696.fits scfile=/scratch/kocevski/792956/ft2_4FGL_J2159.8-4751_daily_bin1696.fits outfile=/scratch/kocevski/792956/cmap_HighResolution_678931201_679190401_4FGL_J2159.8-4751_daily_bin1696.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/792956/ft1_filtered_4FGL_J2159.8-4751_daily_bin1696.fits', '/scratch/kocevski/792956/ft2_4FGL_J2159.8-4751_daily_bin1696.fits', expMap='/scratch/kocevski/792956/expmap_678931201_679190401_4FGL_J2159.8-4751_daily_bin1696.fits', expCube='/scratch/kocevski/792956/ltcube_678931201_679190401_4FGL_J2159.8-4751_daily_bin1696.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/792956/Model_4FGL_J2159.8-4751_daily_bin1696.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/792956/ft1_filtered_4FGL_J2159.8-4751_daily_bin1696.fits
Spacecraft file(s): /scratch/kocevski/792956/ft2_4FGL_J2159.8-4751_daily_bin1696.fits
Exposure map: /scratch/kocevski/792956/expmap_678931201_679190401_4FGL_J2159.8-4751_daily_bin1696.fits
Exposure cube: /scratch/kocevski/792956/ltcube_678931201_679190401_4FGL_J2159.8-4751_daily_bin1696.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/792956/Model_4FGL_J2159.8-4751_daily_bin1696.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) = 5382.11981155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.290       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7871       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.428       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.071       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.1719       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2589       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14887E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.636       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.369       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    96.554       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .52072       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5776       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5353       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .76244E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.532       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1025       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90933       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=   5381.670     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3274 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.350        .19490E-06** at limit **
   2  norm          .10000E-03    .60805        .74343E-07** at limit **
   3  Prefactor     27.294        50.131        .94625E-06   -.86213E-05
   4  Prefactor     1.7855        17.210        .81548E-06   -.74396E-05
   5  Prefactor     23.434        40.964       -.48709E-06   -.31023E-04
   6  Prefactor     38.052        31.850       -.10522E-05   -.26027E-04
   7  Prefactor     .10000E-03    4.9894        .37216E-06** at limit **
   8  norm          5.1713        5.5777        .13369E-06   -.62363E-04
   9  Prefactor     6.2578        11.612        .29018E-06   -.23094E-04
  10  Prefactor     .10000E-03    7.2211        .10616E-06** at limit **
  11  Prefactor     .10000E-03    121.58       -.17158E-05** at limit **
  12  Prefactor     .10000E-03    13.850       -.83343E-06** at limit **
  13  Prefactor     13.638        5.8626       -.26591E-06   -.58759E-04
  14  Prefactor     35.465        102.02       -.22582E-05   -.17147E-05
  15  norm          .10000E-03    3.5651        .10650E-07** at limit **
  16  Prefactor     .10000E-03    1.6513        .15282E-06** at limit **
  17  Prefactor     96.552        66.380       -.75112E-06   -.11608E-03
  18  Prefactor     .10000E-03    4.0307        .43214E-07** at limit **
  19  Prefactor     .47717        120.67       -.90139E-05   -.12897E-03
  20  Prefactor     2.5176        76.281       -.24309E-05   -.21750E-04
  21  Prefactor     6.5571        13.082        .78196E-06    .41659E-04
  22  Prefactor     .10000E-03    55.927       -.63702E-07** at limit **
  23  Prefactor     .10016E-03    63.768        .83232E-05** at limit **
  24  Prefactor     24.543        24.960        .29251E-07   -.15191E-05
  25  Normalizat    1.1023        .22001        .11356E-05   -.37767E-03
  26  Prefactor     .90955        .16041       -.27195E-05   -.15469E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.294
  Prefactor  = 1.7855
  Prefactor  = 23.434
  Prefactor  = 38.0524
  Prefactor  = 0.0001
  norm       = 5.17134
  Prefactor  = 6.25776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6383
  Prefactor  = 35.4647
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 96.552
  Prefactor  = 0.0001
  Prefactor  = 0.477167
  Prefactor  = 2.51762
  Prefactor  = 6.5571
  Prefactor  = 0.0001
  Prefactor  = 0.000100161
  Prefactor  = 24.5429
  Normalizat = 1.10227
  Prefactor  = 0.909546
 **********
 **   18 **HESSE 
 **********

 FCN=   5381.670     FROM HESSE     STATUS=OK           464 CALLS     3738 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .61412        .55892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.294        50.119        .76688E-04   -1.4663    
   4  Prefactor     1.7855        17.017        .31295E-03   -1.5441    
   5  Prefactor     23.434        40.626        .82756E-04   -1.4739    
   6  Prefactor     38.052        31.754        .64957E-04   -1.4473    
   7  Prefactor     .10000E-03    5.1382        .32057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.1713        5.5579        .16713E-03   -1.5253    
   9  Prefactor     6.2578        11.626        .16045E-03   -1.5208    
  10  Prefactor     .10000E-03    7.2656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    124.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.638        5.8476        .10847E-03   -1.4969    
  14  Prefactor     35.465        101.42        .67385E-04   -1.4516    
  15  norm          .10000E-03    3.5723        .13528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6628        .92087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     96.552        66.315        .40906E-04   -1.3740    
  18  Prefactor     .10000E-03    4.0775        .14372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .47717        228.21        .63596E-02   -1.5570    
  20  Prefactor     2.5176        74.441        .25421E-03   -1.5391    
  21  Prefactor     6.5571        12.921        .15698E-03   -1.5196    
  22  Prefactor     .10000E-03    55.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10016E-03    8.0120        .59842E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     24.543        24.967        .80876E-04   -1.4717    
  25  Normalizat    1.1023        .25029        .26374E-03   -.89679    
  26  Prefactor     .90955        .17468        .21939E-03   -.95808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18258e-09
Minuit parameter uncertainties:
  1  1.8265e-05
  2  2.34479e-06
  3  50.1966
  4  11.028
  5  40.6741
  6  31.7685
  7  4.17976e-05
  8  5.55849
  9  11.6302
  10  1.49804e-05
  11  0.000468611
  12  7.91251e-05
  13  5.84785
  14  101.918
  15  3.62163e-06
  16  5.47887e-06
  17  66.3656
  18  1.68074e-05
  19  20.9489
  20  27.4168
  21  12.9262
  22  2.84429e-05
  23  0.00227236
  24  24.9774
  25  0.250562
  26  0.174784
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  4.686e-04  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:  9.095e-01  1.748e-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:  1.102e+00  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 9.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/792956/likelihoodResults_678931201_679190401_4FGL_J2159.8-4751_daily_bin1696.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): 102
logL (Free Index) = 5381.67032055
delta logL = -3.83283222618e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5381.67027977
delta logL = 2.44846251007e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53815E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2436       1.0000          .0000       10.000    
     3 'Normalizat'    1.1023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90955       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.

 FCN=   5381.670     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      252 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53815E-02    1.1015        .95496E-01   -.26727E-02
   2  Index         3.2436        8.2686        .50000       -.20458E-05
   3  Normalizat    1.1023        .13681E-02    .59636E-01   -.53622E-06
   4  Prefactor     .90955        .10497E-02    .45127E-01    .12412E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00538155
  Index      = 3.24359
  Normalizat = 1.10226
  Prefactor  = 0.909549
 **********
 **   18 **HESSE 
 **********

 FCN=   5381.670     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      295 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53815E-02    1.6117        .80379E-01   -1.5693    
   2  Index         3.2436        8.3737        .50000       -.35894    
   3  Normalizat    1.1023        .14464E-02    .26375E-03   -.89679    
   4  Prefactor     .90955        .11103E-02    .21939E-03   -.95808    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.46996e-09
Minuit parameter uncertainties:
  1  0.184529
  2  20.1001
  3  0.00144637
  4  0.00111033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792956': 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): 102
logL (Free Index) = 5381.67027977
delta logL = 2.45190040005e-06

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  5.382e-03  1.845e-01  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  3.244e+00  2.010e+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:  9.095e-01  1.110e-03  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:  1.102e+00  1.446e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 329.962 -47.852

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/792956/cmap_HighResolution_678931201_679190401_4FGL_J2159.8-4751_daily_bin1696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', job_status='DONE', photon_flux_upper_limit='9.29e-08', time_completed='2022-07-11 00:45:18.675311', job_id='792956', GAL2='0.91', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1657525518.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.45e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1696' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 11 00:45:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 792956: <4FGL_J2159.8-4751_daily_bin1696> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1696> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jul 11 00:30:35 2022
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 11 00:30:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 11 00:30:36 2022
Terminated at Mon Jul 11 00:45:19 2022
Results reported at Mon Jul 11 00:45:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1696 329.962 -47.8518 678931201 679190401 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 :                                   675.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

