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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1780
RA = 329.962, Dec = -47.8518
tmin = 700704001, tmax = 700963201
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='79198', job_status='RUN', time_executed='2023-03-20 01:53:38.633331', time_epoch_executed='1679302418.63' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/79198

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/79198/ft1_4FGL_J2159.8-4751_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/79198/ft2_4FGL_J2159.8-4751_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/79198/ft1_4FGL_J2159.8-4751_daily_bin1780.fits outfile=/scratch/kocevski/79198/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1780.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=700704001.0 tmax=700963201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.10
user 3.87
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/79198/ft1_filtered_4FGL_J2159.8-4751_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/79198/ft2_4FGL_J2159.8-4751_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/79198/ltcube_700704001_700963201_4FGL_J2159.8-4751_daily_bin1780.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/79198/ft2_4FGL_J2159.8-4751_daily_bin1780.fits
.....................!
real 12.43
user 12.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/79198/ft1_filtered_4FGL_J2159.8-4751_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/79198/ft2_4FGL_J2159.8-4751_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/79198/ltcube_700704001_700963201_4FGL_J2159.8-4751_daily_bin1780.fits outfile=/scratch/kocevski/79198/expmap_700704001_700963201_4FGL_J2159.8-4751_daily_bin1780.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/79198/ltcube_700704001_700963201_4FGL_J2159.8-4751_daily_bin1780.fits
.....................!
real 192.01
user 186.38
sys 5.10

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/79198/ft1_filtered_4FGL_J2159.8-4751_daily_bin1780.fits scfile=/scratch/kocevski/79198/ft2_4FGL_J2159.8-4751_daily_bin1780.fits outfile=/scratch/kocevski/79198/cmap_700704001_700963201_4FGL_J2159.8-4751_daily_bin1780.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.56
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/79198/ft1_filtered_4FGL_J2159.8-4751_daily_bin1780.fits scfile=/scratch/kocevski/79198/ft2_4FGL_J2159.8-4751_daily_bin1780.fits outfile=/scratch/kocevski/79198/cmap_HighResolution_700704001_700963201_4FGL_J2159.8-4751_daily_bin1780.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23855E-02   1.0000          .0000       .10000E+07
     2 'norm      '    1.4122       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.8999       1.0000          .0000       .10000E+07
     4 'Prefactor '    17.004       1.0000          .0000       .10000E+07
     5 'Prefactor '    .49399E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .63929E-03   1.0000          .0000       .10000E+07
     7 'norm      '    2.5203       1.0000          .0000       .10000E+07
     8 'Prefactor '    .39009       1.0000          .0000       .10000E+07
     9 'Prefactor '    .26781E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    17.257       1.0000          .0000       .10000E+07
    11 'Prefactor '    .42336E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .54237E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    92.376       1.0000          .0000       .10000E+07
    14 'norm      '    3.1892       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0434       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10950E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .36088E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .79626E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    12.876       1.0000          .0000       .10000E+07
    20 'Prefactor '    .19320E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .67379E-05   1.0000          .0000       .10000E+07
    22 'Normalizat'    .96205       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1901       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=   7670.471     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1978 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49405E-08    7.8382       -.29585E-07** at limit **
   2  norm          1.4130        1.5643        .80172E-07    .22796E-02
   3  Prefactor     7.8892        7.7635       -.39967E-06    .16953E-02
   4  Prefactor     17.060        12.889        .11562E-06   -.90161E-01
   5  Prefactor     .84516E-06    10.362       -.26519E-06** at limit **
   6  Prefactor      .0000        2.5157        .28171E-07** at limit **
   7  norm          2.5194        3.1362        .64378E-07    .10768E-02
   8  Prefactor     .39696        27.019        .10043E-06    .20853E-01
   9  Prefactor      .0000        2.7077       -.13023E-06** at limit **
  10  Prefactor     17.274        5.4724       -.51565E-07    .10569E-01
  11  Prefactor     .88790E-05    137.59       -.75605E-08** at limit **
  12  Prefactor      .0000        3.6378       -.37995E-07** at limit **
  13  Prefactor     93.656        92.789        .13357E-07   -.73954E-02
  14  norm          3.1855        4.0043       -.74684E-07   -.79434E-03
  15  Prefactor     2.0365        4.5817       -.26708E-07    .84687E-04
  16  Prefactor     .28977E-07    14.980        .11551E-06** at limit **
  17  Prefactor      .0000        3.1371       -.15275E-06** at limit **
  18  Prefactor     .22587E-06    9.2476        .23964E-06** at limit **
  19  Prefactor     12.853        12.769       -.14458E-06    .15116E-01
  20  Prefactor      .0000        2.0104       -.37626E-07** at limit **
  21  Prefactor     .12768E-05    8.3113        .12776E-06** at limit **
  22  Normalizat    .96189        .21095        .47680E-06   -.50583E-04
  23  Prefactor     1.1901        .15983       -.91837E-06   -.76121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.94049e-09
  norm       = 1.413
  Prefactor  = 7.88923
  Prefactor  = 17.0598
  Prefactor  = 8.45157e-07
  Prefactor  = 0
  norm       = 2.51938
  Prefactor  = 0.396964
  Prefactor  = 0
  Prefactor  = 17.2742
  Prefactor  = 8.87901e-06
  Prefactor  = 0
  Prefactor  = 93.6562
  norm       = 3.1855
  Prefactor  = 2.03646
  Prefactor  = 2.89768e-08
  Prefactor  = 0
  Prefactor  = 2.25875e-07
  Prefactor  = 12.853
  Prefactor  = 0
  Prefactor  = 1.27676e-06
  Normalizat = 0.961893
  Prefactor  = 1.19008
 **********
 **   18 **HESSE 
 **********

 FCN=   7670.471     FROM HESSE     STATUS=OK           424 CALLS     2402 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49405E-08    7.8428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4130        1.5843        .91112E-03   -1.5684    
   3  Prefactor     7.8892        7.8636        .35651E-03   -1.5652    
   4  Prefactor     17.060        32.697        .24261E-03   -1.5625    
   5  Prefactor     .84516E-06    12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        2.5007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5194        3.2084        .64324E-03   -1.5676    
   8  Prefactor     .39696        3.9348        .90644E-02   -1.5695    
   9  Prefactor      .0000        2.7059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.274        23.415        .24083E-03   -1.5625    
  11  Prefactor     .88790E-05    3.7257        .10825E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        3.5743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     93.656        103.93        .10405E-03   -1.5514    
  14  norm          3.1855        4.0087        .56716E-03   -1.5672    
  15  Prefactor     2.0365        4.5818        .72307E-03   -1.5679    
  16  Prefactor     .28977E-07    15.047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.1292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .22587E-06    9.6633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.853        23.220        .27889E-03   -1.5636    
  20  Prefactor      .0000        2.0112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12768E-05    10.868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96189        .18959        .65449E-01   -.94318    
  23  Prefactor     1.1901        .13770        .34869E-01   -.86637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56141e-07
Minuit parameter uncertainties:
  1  0.000394512
  2  1.5843
  3  7.86366
  4  32.697
  5  0.00639705
  6  9.80943e-07
  7  3.2084
  8  2.49956
  9  8.94562e-06
  10  23.4148
  11  0.0115031
  12  9.65155e-06
  13  103.932
  14  4.00873
  15  4.58184
  16  0.00132006
  17  9.65853e-06
  18  0.00295495
  19  23.2202
  20  5.38503e-06
  21  0.00744997
  22  0.189726
  23  0.137737
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.727e+01  2.341e+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.190e+00  1.377e-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.619e-01  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/79198/likelihoodResults_700704001_700963201_4FGL_J2159.8-4751_daily_bin1780.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) = 7670.32628829
delta logL = 0.144916831555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7670.31844674
delta logL = 0.152758382288

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.761       1.0000          .0000       .10000E+07
     2 'Index     '    2.0437       1.0000          .0000       10.000    
     3 'Normalizat'    .96876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1862       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=   7670.318     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      307 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.754        28.517        .83865E-05   -.94892E-05
   2  Index         2.0435        .79678        .13506E-01   -.12429E-04
   3  Normalizat    .96884        .19927        .28831E-03   -.43770E-05
   4  Prefactor     1.1863        .15653        .20623E-03    .53473E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7539
  Index      = 2.04353
  Normalizat = 0.968839
  Prefactor  = 1.1863
 **********
 **   18 **HESSE 
 **********

 FCN=   7670.318     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.754        28.491        .33546E-06   -1.5613    
   2  Index         2.0435        .79642        .27012E-02   -.63266    
   3  Normalizat    .96884        .19945        .11532E-04   -.94082    
   4  Prefactor     1.1863        .15667        .82491E-05   -.86754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98185e-13
Minuit parameter uncertainties:
  1  28.491
  2  0.801695
  3  0.199598
  4  0.15673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/79198': 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) = 7670.31844556
delta logL = 0.152759568094

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  2.275e+01  2.849e+01  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  2.044e+00  8.017e-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.186e+00  1.567e-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.688e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 2.04 +/- 0.80
Photon Flux (Free Index): 1.32e-08 +/- 1.99e-08
Energy Flux (Free Index): 8.22e-06 +/- 1.33e-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/79198/cmap_HighResolution_700704001_700963201_4FGL_J2159.8-4751_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', comment='SUCCESS', energy_flux2='8.22e-06', dlogl='1.53e-01', photon_flux2='1.32e-08', job_status='DONE', time_completed='2023-03-20 02:04:50.116659', photon_index_error2='0.80', photon_index2='2.04', ts='0.93', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='8.46e-08', energy_flux_error2='1.33e-05', EG='0.96', time_epoch_completed='1679303090.12', return_code='0', job_id='79198', GAL2='1.19', EG2='0.97', return_code2='0', photon_flux_error2='1.99e-08', ts2='1.24', photon_index='2.52' WHERE bin_id='1780' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 02:04:50 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 79198: <4FGL_J2159.8-4751_daily_bin1780> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1780> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Mar 20 01:50:12 2023
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:50:13 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:50:13 2023
Terminated at Mon Mar 20 02:04:53 2023
Results reported at Mon Mar 20 02:04:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1780 329.962 -47.8518 700704001 700963201 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 :                                   673.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            881 sec.

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

