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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1664
RA = 329.962, Dec = -47.8518
tmin = 670636801, tmax = 670896001
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='316739', job_status='RUN', time_executed='2022-04-06 00:39:39.077045', time_epoch_executed='1649230779.08' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/316739

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/316739/ft1_4FGL_J2159.8-4751_daily_bin1664.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/316739/ft2_4FGL_J2159.8-4751_daily_bin1664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/316739/ft1_4FGL_J2159.8-4751_daily_bin1664.fits outfile=/scratch/kocevski/316739/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1664.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=670636801.0 tmax=670896001.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 5.38
user 5.15
sys 0.22

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

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

Number of photons that the gtmktime cut: 705

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/316739/ft1_filtered_4FGL_J2159.8-4751_daily_bin1664.fits" evtable="EVENTS" scfile=/scratch/kocevski/316739/ft2_4FGL_J2159.8-4751_daily_bin1664.fits sctable="SC_DATA" outfile=/scratch/kocevski/316739/ltcube_670636801_670896001_4FGL_J2159.8-4751_daily_bin1664.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/316739/ft2_4FGL_J2159.8-4751_daily_bin1664.fits
.....................!
real 12.64
user 12.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/316739/ft1_filtered_4FGL_J2159.8-4751_daily_bin1664.fits evtable="EVENTS" scfile=/scratch/kocevski/316739/ft2_4FGL_J2159.8-4751_daily_bin1664.fits sctable="SC_DATA" expcube=/scratch/kocevski/316739/ltcube_670636801_670896001_4FGL_J2159.8-4751_daily_bin1664.fits outfile=/scratch/kocevski/316739/expmap_670636801_670896001_4FGL_J2159.8-4751_daily_bin1664.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/316739/ltcube_670636801_670896001_4FGL_J2159.8-4751_daily_bin1664.fits
.....................!
real 190.40
user 185.31
sys 4.74

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/316739/ft1_filtered_4FGL_J2159.8-4751_daily_bin1664.fits scfile=/scratch/kocevski/316739/ft2_4FGL_J2159.8-4751_daily_bin1664.fits outfile=/scratch/kocevski/316739/cmap_670636801_670896001_4FGL_J2159.8-4751_daily_bin1664.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/316739/ft1_filtered_4FGL_J2159.8-4751_daily_bin1664.fits scfile=/scratch/kocevski/316739/ft2_4FGL_J2159.8-4751_daily_bin1664.fits outfile=/scratch/kocevski/316739/cmap_HighResolution_670636801_670896001_4FGL_J2159.8-4751_daily_bin1664.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/316739/ft1_filtered_4FGL_J2159.8-4751_daily_bin1664.fits evtable="EVENTS" scfile=/scratch/kocevski/316739/ft2_4FGL_J2159.8-4751_daily_bin1664.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/316739/Model_4FGL_J2159.8-4751_daily_bin1664.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/316739/ft1_filtered_4FGL_J2159.8-4751_daily_bin1664.fits.....................!
real 56.65
user 55.37
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.524       1.0000         .10000E-03   10000.    
     2 'norm      '    .92929       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4070       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8417       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7926       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3151       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1289       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9116       1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2308       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1596       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3343       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-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 '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2378       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18131E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1350       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81831       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=   7565.129     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3143 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.522        21.269       -.34552E-07   -.63973E-04
   2  norm          .92917        1.7089        .75441E-07   -.18425E-03
   3  Prefactor     .10000E-03    18.189        .35787E-06** at limit **
   4  Prefactor     1.4070        6.3931       -.11732E-06   -.23593E-03
   5  Prefactor     2.8687        58.182       -.13713E-05    .14503E-03
   6  Prefactor     8.7904        18.296        .86807E-07   -.19562E-04
   7  Prefactor     6.3150        3.8135        .78086E-07   -.70285E-03
   8  norm          1.1255        4.1881        .27101E-05    .75975E-03
   9  Prefactor     .10000E-03    2.4571        .23240E-07** at limit **
  10  Prefactor     4.9119        6.5722        .28725E-07   -.86712E-03
  11  Prefactor     51.100        30.318       -.16261E-05   -.49856E-03
  12  Prefactor     2.2333        4.0526        .10646E-05   -.22226E-02
  13  Prefactor     5.1597        3.6044        .12035E-07   -.95962E-04
  14  Prefactor     .10000E-03    28.766       -.13593E-05** at limit **
  15  norm          3.3344        4.0607       -.16809E-07   -.38757E-04
  16  Prefactor     .10000E-03    1.2350       -.13396E-07** at limit **
  17  Prefactor     .10000E-03    13.017       -.11464E-06** at limit **
  18  Prefactor     .10000E-03    1.5290       -.13727E-07** at limit **
  19  Prefactor     .10000E-03    18.017        .10157E-06** at limit **
  20  Prefactor     .10000E-03    47.709        .19688E-05** at limit **
  21  Prefactor     3.2402        6.8590        .63042E-06   -.96960E-03
  22  Prefactor     .10000E-03    30.498        .81030E-06** at limit **
  23  Prefactor     .10000E-03    8.4231       -.15060E-07** at limit **
  24  Prefactor     .10000E-03    29.230       -.67802E-06** at limit **
  25  Normalizat    1.1349        .15503       -.37413E-06   -.17451E-03
  26  Prefactor     .81838        .11992       -.21811E-06   -.16226E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.5224
  norm       = 0.929166
  Prefactor  = 0.0001
  Prefactor  = 1.407
  Prefactor  = 2.86871
  Prefactor  = 8.79036
  Prefactor  = 6.31504
  norm       = 1.12553
  Prefactor  = 0.0001
  Prefactor  = 4.91187
  Prefactor  = 51.0996
  Prefactor  = 2.23329
  Prefactor  = 5.1597
  Prefactor  = 0.000100001
  norm       = 3.33439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.24023
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13494
  Prefactor  = 0.818376
 **********
 **   18 **HESSE 
 **********

 FCN=   7565.129     FROM HESSE     STATUS=OK           454 CALLS     3597 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.522        21.265        .62208E-04   -1.4418    
   2  norm          .92917        1.6923        .14566E-03   -1.5515    
   3  Prefactor     .10000E-03    18.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4070        6.4561        .36543E-03   -1.5471    
   5  Prefactor     2.8687        59.055        .24121E-03   -1.5369    
   6  Prefactor     8.7904        18.292        .13518E-03   -1.5115    
   7  Prefactor     6.3150        3.8150        .63174E-03   -1.5205    
   8  norm          1.1255        4.2641        .28185E-03   -1.5496    
   9  Prefactor     .10000E-03    2.4652        .13310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9119        6.7778        .90744E-03   -1.5265    
  11  Prefactor     51.100        30.553        .56099E-04   -1.4277    
  12  Prefactor     2.2333        5.3149        .13762E-02   -1.5409    
  13  Prefactor     5.1597        3.6046        .13130E-03   -1.5254    
  14  Prefactor     .10000E-03    28.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3344        4.0558        .18858E-03   -1.5343    
  16  Prefactor     .10000E-03    1.2498        .94334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5391        .10500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    49.579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2402        7.2311        .11255E-02   -1.5348    
  22  Prefactor     .10000E-03    30.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.7942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1349        .17943        .24135E-03   -.88638    
  26  Prefactor     .81838        .13825        .21732E-03   -.99054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33065e-09
Minuit parameter uncertainties:
  1  21.2693
  2  1.69241
  3  9.03229e-05
  4  6.02873
  5  26.0607
  6  18.3038
  7  3.81513
  8  4.26529
  9  1.74995e-06
  10  6.77885
  11  30.5629
  12  5.31604
  13  3.6048
  14  0.000416196
  15  4.0561
  16  8.39371e-09
  17  2.25184e-05
  18  2.85718e-07
  19  2.9683e-05
  20  0.00078968
  21  7.23305
  22  0.000259039
  23  3.04217e-06
  24  0.000206209
  25  0.179526
  26  0.138313
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  5.110e+01  3.056e+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:  8.184e-01  1.383e-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.135e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.33e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 9.02e-06

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) = 7565.12775541
delta logL = 0.00125462589222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7565.12679385
delta logL = 0.00221618450087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.417       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5636       1.0000          .0000       10.000    
     3 'Normalizat'    1.1335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81920       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=   7565.127     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      237 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.450        581.74        .14261E-02   -.33250E-04
   2  Index         2.5630        3.5755        .19225        .78455E-04
   3  Normalizat    1.1334        .74623E-01    .54613E-01   -.26581E-03
   4  Prefactor     .81921        .48448E-01    .43967E-01   -.17158E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.4501
  Index      = 2.563
  Normalizat = 1.13341
  Prefactor  = 0.819205
 **********
 **   18 **HESSE 
 **********

 FCN=   7565.127     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.450        40.533        .57045E-04   -1.4300    
   2  Index         2.5630        .62229        .67695E-02   -.50911    
   3  Normalizat    1.1334        .17652        .24148E-03   -.88686    
   4  Prefactor     .81921        .13646        .21723E-03   -.99024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71977e-09
Minuit parameter uncertainties:
  1  40.5559
  2  0.624413
  3  0.176607
  4  0.136518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/316739': 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) = 7565.12679322
delta logL = 0.00221681800758

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  4.945e+01  4.056e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.563e+00  6.244e-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:  8.192e-01  1.365e-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.133e+00  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.65
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 2.56 +/- 0.62
Photon Flux (Free Index): 5.45e-08 +/- 3.56e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.00e-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/316739/cmap_HighResolution_670636801_670896001_4FGL_J2159.8-4751_daily_bin1664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.33e-08', energy_flux2='1.48e-05', photon_flux_error='3.19e-08', dlogl='2.22e-03', energy_flux='1.51e-05', photon_flux2='5.45e-08', job_status='DONE', time_completed='2022-04-06 00:51:55.649028', photon_index_error2='0.62', photon_index2='2.56', ts='4.65', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.00e-05', EG='1.13', time_epoch_completed='1649231515.65', return_code='0', job_id='316739', GAL2='0.82', EG2='1.13', return_code2='0', energy_flux_error='9.02e-06', photon_flux_error2='3.56e-08', ts2='4.65', photon_index='2.52' WHERE bin_id='1664' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Apr  6 00:51:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 316739: <4FGL_J2159.8-4751_daily_bin1664> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1664> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Apr  6 00:35:45 2022
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Apr  6 00:35:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Apr  6 00:35:47 2022
Terminated at Wed Apr  6 00:51:56 2022
Results reported at Wed Apr  6 00:51:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1664 329.962 -47.8518 670636801 670896001 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 :                                   738.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

