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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1732
RA = 329.962, Dec = -47.8518
tmin = 688262401, tmax = 688521601
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='647594', job_status='RUN', time_executed='2022-10-27 00:37:52.785392', time_epoch_executed='1666856272.79' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647594

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647594/ft1_4FGL_J2159.8-4751_daily_bin1732.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647594/ft2_4FGL_J2159.8-4751_daily_bin1732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647594/ft1_4FGL_J2159.8-4751_daily_bin1732.fits outfile=/scratch/kocevski/647594/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1732.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=688262401.0 tmax=688521601.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.52
user 3.26
sys 0.23

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

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

Number of photons that the gtmktime cut: 507

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647594/ft1_filtered_4FGL_J2159.8-4751_daily_bin1732.fits" evtable="EVENTS" scfile=/scratch/kocevski/647594/ft2_4FGL_J2159.8-4751_daily_bin1732.fits sctable="SC_DATA" outfile=/scratch/kocevski/647594/ltcube_688262401_688521601_4FGL_J2159.8-4751_daily_bin1732.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/647594/ft2_4FGL_J2159.8-4751_daily_bin1732.fits
.....................!
real 11.95
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647594/ft1_filtered_4FGL_J2159.8-4751_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/647594/ft2_4FGL_J2159.8-4751_daily_bin1732.fits sctable="SC_DATA" expcube=/scratch/kocevski/647594/ltcube_688262401_688521601_4FGL_J2159.8-4751_daily_bin1732.fits outfile=/scratch/kocevski/647594/expmap_688262401_688521601_4FGL_J2159.8-4751_daily_bin1732.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/647594/ltcube_688262401_688521601_4FGL_J2159.8-4751_daily_bin1732.fits
.....................!
real 190.23
user 185.07
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/647594/ft1_filtered_4FGL_J2159.8-4751_daily_bin1732.fits scfile=/scratch/kocevski/647594/ft2_4FGL_J2159.8-4751_daily_bin1732.fits outfile=/scratch/kocevski/647594/cmap_688262401_688521601_4FGL_J2159.8-4751_daily_bin1732.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/647594/ft1_filtered_4FGL_J2159.8-4751_daily_bin1732.fits scfile=/scratch/kocevski/647594/ft2_4FGL_J2159.8-4751_daily_bin1732.fits outfile=/scratch/kocevski/647594/cmap_HighResolution_688262401_688521601_4FGL_J2159.8-4751_daily_bin1732.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=329.962 yref=-47.8518 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647594/ft1_filtered_4FGL_J2159.8-4751_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/647594/ft2_4FGL_J2159.8-4751_daily_bin1732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647594/Model_4FGL_J2159.8-4751_daily_bin1732.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/647594/ft1_filtered_4FGL_J2159.8-4751_daily_bin1732.fits.....................!
real 44.49
user 43.07
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9851       1.0000          .0000       .10000E+07
     2 'norm      '    .29693E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.1258       1.0000          .0000       .10000E+07
     4 'Prefactor '    22.768       1.0000          .0000       .10000E+07
     5 'Prefactor '    9.1449       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11050E-02   1.0000          .0000       .10000E+07
     7 'norm      '    13.846       1.0000          .0000       .10000E+07
     8 'Prefactor '    11.142       1.0000          .0000       .10000E+07
     9 'Prefactor '    .93771E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .11479E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .27353       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.9620       1.0000          .0000       .10000E+07
    13 'Prefactor '    125.84       1.0000          .0000       .10000E+07
    14 'norm      '    7.2538       1.0000          .0000       .10000E+07
    15 'Prefactor '    .29731E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .69151E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .50720E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .11728E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .31290E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .32679E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    17.867       1.0000          .0000       .10000E+07
    22 'Normalizat'    .89805       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96202       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=   5563.812     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     2006 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9545        1.9003        .10426E-05    .68151E-03
   2  norm          .27756E-09    3.0219       -.28587E-06** at limit **
   3  Prefactor     4.1176        10.189        .19376E-05    .44664E-02
   4  Prefactor     22.734        28.670        .51187E-05   -.27187E-02
   5  Prefactor     9.1130        1.8438       -.93479E-08   -.31529E-02
   6  Prefactor     .40745E-07    18.609        .55799E-05** at limit **
   7  norm          13.829        6.2305       -.28447E-06    .66457E-02
   8  Prefactor     11.141        9.5853       -.16617E-06    .86427E-03
   9  Prefactor     .22204E-09    5.2631       -.31010E-07** at limit **
  10  Prefactor     .38858E-09    12.614        .15865E-05** at limit **
  11  Prefactor     .35997        58.848       -.11205E-04   -.96803E-04
  12  Prefactor     7.9668        4.2170        .14285E-06    .67826E-02
  13  Prefactor     123.65        125.51        .59250E-05   -.73473E-03
  14  norm          7.2686        6.2961        .18161E-07    .15654E-02
  15  Prefactor     .55511E-10    2.7281       -.15999E-06** at limit **
  16  Prefactor     .12684E-06    11.824       -.17065E-06** at limit **
  17  Prefactor      .0000        9.2408       -.73769E-06** at limit **
  18  Prefactor      .0000        14.092       -.46883E-05** at limit **
  19  Prefactor     .17536E-06    7.3837        .16153E-05** at limit **
  20  Prefactor      .0000        1.9537       -.13744E-06** at limit **
  21  Prefactor     17.899        10.804       -.20490E-05   -.37608E-02
  22  Normalizat    .89832        .20849        .71369E-05    .44247E-03
  23  Prefactor     .96208        .15951       -.52868E-05    .36582E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.95448
  norm       = 2.77556e-10
  Prefactor  = 4.11762
  Prefactor  = 22.7341
  Prefactor  = 9.11303
  Prefactor  = 4.07452e-08
  norm       = 13.8285
  Prefactor  = 11.141
  Prefactor  = 2.22045e-10
  Prefactor  = 3.88578e-10
  Prefactor  = 0.359965
  Prefactor  = 7.96683
  Prefactor  = 123.65
  norm       = 7.26855
  Prefactor  = 5.55112e-11
  Prefactor  = 1.26843e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.7536e-07
  Prefactor  = 0
  Prefactor  = 17.8988
  Normalizat = 0.898319
  Prefactor  = 0.962077
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.812     FROM HESSE     STATUS=OK           426 CALLS     2432 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9545        47.000        .73522E-03   -1.5680    
   2  norm          .27756E-09    2.9498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1176        10.316        .49603E-03   -1.5667    
   4  Prefactor     22.734        30.852        .20963E-03   -1.5613    
   5  Prefactor     9.1130        20.214        .33118E-03   -1.5648    
   6  Prefactor     .40745E-07    2.3153        .60973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.829        6.2576        .26892E-03   -1.5634    
   8  Prefactor     11.141        9.5954        .29989E-03   -1.5641    
   9  Prefactor     .22204E-09    5.2604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .38858E-09    12.648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35997        11.507        .63227E-02   -1.5696    
  12  Prefactor     7.9668        4.2305        .35510E-03   -1.5652    
  13  Prefactor     123.65        124.53        .89149E-04   -1.5486    
  14  norm          7.2686        6.2985        .37218E-03   -1.5654    
  15  Prefactor     .55511E-10    2.7193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12684E-06    17.807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        9.1737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        14.213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .17536E-06    17.007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        1.9527        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.899        30.986        .23667E-03   -1.5623    
  22  Normalizat    .89832        .18501        .44877E-01   -.96519    
  23  Prefactor     .96208        .14008        .45791E-01   -.94004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24001e-08
Minuit parameter uncertainties:
  1  19.1689
  2  5.59532e-05
  3  10.3163
  4  30.8518
  5  20.2146
  6  0.000614175
  7  6.25758
  8  9.59538
  9  6.74313e-05
  10  0.000140526
  11  4.07036
  12  4.23048
  13  124.529
  14  6.29855
  15  1.93139e-05
  16  0.00300595
  17  2.11695e-05
  18  7.92521e-06
  19  0.00345394
  20  1.31757e-05
  21  30.9865
  22  0.185141
  23  0.14013
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  3.886e-10  1.405e-04  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:  9.621e-01  1.401e-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:  8.983e-01  1.851e-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: 6.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647594/likelihoodResults_688262401_688521601_4FGL_J2159.8-4751_daily_bin1732.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) = 5563.81150099
delta logL = 7.21785463611e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5562.76557682
delta logL = 1.04599634624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12209E-03   1.0000          .0000       .10000E+07
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .81162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0042       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5563.812     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      489 TOTAL
                     EDM=   .48E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.493        .42118E-03** at limit **
   2  Index         2.1624        1.3005        .33439E-06     .0000    
   3  Normalizat    .89832        1.2050       -.75041E-05   -.19173E-04
   4  Prefactor     .96208        1.2655        .11551E-04   -.12287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.16243
  Normalizat = 0.898316
  Prefactor  = 0.962079
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5563.812     FROM HESSE     STATUS=FAILED         9 CALLS      498 TOTAL
                     EDM=   .48E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        13.493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .51379        1.7939        .33439E-06   -.60348    
   3  Normalizat    .89832        1.2050       -.75041E-05   -.96519    
   4  Prefactor     .96208        1.2655        .11551E-04   -.94004    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.84539e-13
Minuit parameter uncertainties:
  1  1.54532e-07
  2  1.32315
  3  1.24434
  4  1.30801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647594': 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): 101
logL (Free Index) = 5563.81157316
delta logL = 1.70075509232e-10

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  0.000e+00  1.545e-07  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  2.162e+00  1.323e+00  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.621e-01  1.308e+00  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:  8.983e-01  1.244e+00  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/647594/cmap_HighResolution_688262401_688521601_4FGL_J2159.8-4751_daily_bin1732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.27e-08', time_completed='2022-10-27 00:47:47.525356', job_id='647594', GAL2='0.96', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1666856867.53', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.70e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1732' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct 27 00:47:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 647594: <4FGL_J2159.8-4751_daily_bin1732> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1732> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Oct 27 00:35:39 2022
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 27 00:35:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 27 00:35:40 2022
Terminated at Thu Oct 27 00:47:48 2022
Results reported at Thu Oct 27 00:47:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1732 329.962 -47.8518 688262401 688521601 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 :                                   597.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

