/sdf/group/fermi/u/kocevski/software/conda/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)

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).

/sdf/group/fermi/u/kocevski/software/conda/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 = 7559
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2159.8-4751_daily_bin2156
RA = 329.962, Dec = -47.8518
tmin = 798163201, tmax = 798422401
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='25590158', job_status='RUN', time_executed='2026-04-21 01:03:00.924398', time_epoch_executed='1776758580.92' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='2156'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/25590158

Creating custom pfile directory:
/lscratch/kocevski/25590158/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=798163201.0 && nMetStart<798422401.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=798163201.0 && nMetStart<798422401.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/25590158/ft1_4FGL_J2159.8-4751_daily_bin2156.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=798163201.0 && nMetStart<798422401.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/25590158/ft2_4FGL_J2159.8-4751_daily_bin2156.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/25590158/ft1_4FGL_J2159.8-4751_daily_bin2156.fits outfile=/lscratch/kocevski/25590158/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin2156.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=798163201.0 tmax=798422401.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 2.23
user 1.72
sys 0.14

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/25590158/ft2_4FGL_J2159.8-4751_daily_bin2156.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/25590158/ft2_4FGL_J2159.8-4751_daily_bin2156.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/25590158/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin2156.fits evtable="EVENTS" outfile="/lscratch/kocevski/25590158/ft1_filtered_4FGL_J2159.8-4751_daily_bin2156.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('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.62
user 0.19
sys 0.19

Number of photons that the gtmktime cut: 758

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/25590158/ft1_filtered_4FGL_J2159.8-4751_daily_bin2156.fits" evtable="EVENTS" scfile=/lscratch/kocevski/25590158/ft2_4FGL_J2159.8-4751_daily_bin2156.fits sctable="SC_DATA" outfile=/lscratch/kocevski/25590158/ltcube_798163201_798422401_4FGL_J2159.8-4751_daily_bin2156.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 /lscratch/kocevski/25590158/ft2_4FGL_J2159.8-4751_daily_bin2156.fits
.....................!
real 7.57
user 7.09
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/25590158/ft1_filtered_4FGL_J2159.8-4751_daily_bin2156.fits evtable="EVENTS" scfile=/lscratch/kocevski/25590158/ft2_4FGL_J2159.8-4751_daily_bin2156.fits sctable="SC_DATA" expcube=/lscratch/kocevski/25590158/ltcube_798163201_798422401_4FGL_J2159.8-4751_daily_bin2156.fits outfile=/lscratch/kocevski/25590158/expmap_798163201_798422401_4FGL_J2159.8-4751_daily_bin2156.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 /lscratch/kocevski/25590158/ltcube_798163201_798422401_4FGL_J2159.8-4751_daily_bin2156.fits
.....................!
real 59.55
user 55.54
sys 3.56

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=/lscratch/kocevski/25590158/ft1_filtered_4FGL_J2159.8-4751_daily_bin2156.fits scfile=/lscratch/kocevski/25590158/ft2_4FGL_J2159.8-4751_daily_bin2156.fits outfile=/lscratch/kocevski/25590158/cmap_798163201_798422401_4FGL_J2159.8-4751_daily_bin2156.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.50
user 0.19
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/25590158/ft1_filtered_4FGL_J2159.8-4751_daily_bin2156.fits scfile=/lscratch/kocevski/25590158/ft2_4FGL_J2159.8-4751_daily_bin2156.fits outfile=/lscratch/kocevski/25590158/cmap_HighResolution_798163201_798422401_4FGL_J2159.8-4751_daily_bin2156.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.49
user 0.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/25590158/ft1_filtered_4FGL_J2159.8-4751_daily_bin2156.fits evtable="EVENTS" scfile=/lscratch/kocevski/25590158/ft2_4FGL_J2159.8-4751_daily_bin2156.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/25590158/Model_4FGL_J2159.8-4751_daily_bin2156.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...
/lscratch/kocevski/25590158/ft1_filtered_4FGL_J2159.8-4751_daily_bin2156.fits.....................!
real 21.43
user 19.91
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/25590158/ft1_filtered_4FGL_J2159.8-4751_daily_bin2156.fits', '/lscratch/kocevski/25590158/ft2_4FGL_J2159.8-4751_daily_bin2156.fits', expMap='/lscratch/kocevski/25590158/expmap_798163201_798422401_4FGL_J2159.8-4751_daily_bin2156.fits', expCube='/lscratch/kocevski/25590158/ltcube_798163201_798422401_4FGL_J2159.8-4751_daily_bin2156.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/25590158/Model_4FGL_J2159.8-4751_daily_bin2156.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): /lscratch/kocevski/25590158/ft1_filtered_4FGL_J2159.8-4751_daily_bin2156.fits
Spacecraft file(s): /lscratch/kocevski/25590158/ft2_4FGL_J2159.8-4751_daily_bin2156.fits
Exposure map: /lscratch/kocevski/25590158/expmap_798163201_798422401_4FGL_J2159.8-4751_daily_bin2156.fits
Exposure cube: /lscratch/kocevski/25590158/ltcube_798163201_798422401_4FGL_J2159.8-4751_daily_bin2156.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/25590158/Model_4FGL_J2159.8-4751_daily_bin2156.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) = 8163.33203971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10493E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .20201E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.5436       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3336       1.0000          .0000       .10000E+07
     5 'Prefactor '    33.609       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.5555       1.0000          .0000       .10000E+07
     7 'norm      '    6.2513       1.0000          .0000       .10000E+07
     8 'Prefactor '    .18085E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .25941E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .17997E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .29352E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .91175       1.0000          .0000       .10000E+07
    13 'Prefactor '    123.99       1.0000          .0000       .10000E+07
    14 'norm      '    .41562E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .45013E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .86045E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.1646       1.0000          .0000       .10000E+07
    18 'Prefactor '    20.253       1.0000          .0000       .10000E+07
    19 'Prefactor '    .26241E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .76339E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .13288E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    .93497       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0407       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=   8163.329     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     1869 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.3548       -.54012E-06** at limit **
   2  norm           .0000        1.1223        .24400E-06** at limit **
   3  Prefactor     4.5383        7.1120        .21251E-05   -.69083E-03
   4  Prefactor     3.3326        12.067        .82566E-05    .22112E-01
   5  Prefactor     33.625        20.991        .42505E-05   -.39691E-01
   6  Prefactor     4.5101        4.8039        .65629E-06    .38362E-03
   7  norm          6.2495        3.5422       -.38468E-06    .33883E-03
   8  Prefactor      .0000        1.9117       -.95895E-06** at limit **
   9  Prefactor      .0000        1.2606       -.13534E-06** at limit **
  10  Prefactor      .0000        19.846        .13022E-05** at limit **
  11  Prefactor     .55511E-10    8.8131        .16187E-05** at limit **
  12  Prefactor     .91074        3.9327       -.16974E-05    .53708E-03
  13  Prefactor     124.60        89.796        .52878E-05   -.24787E-02
  14  norm           .0000        2.4865        .17525E-06** at limit **
  15  Prefactor      .0000        3.7336        .35320E-06** at limit **
  16  Prefactor     .49960E-09    11.790        .17492E-05** at limit **
  17  Prefactor     5.1610        5.7273       -.50360E-06    .17255E-03
  18  Prefactor     20.229        1.6248        .37166E-06    .57714E-02
  19  Prefactor     .66613E-09    15.967       -.12905E-05** at limit **
  20  Prefactor      .0000        2.1072        .14314E-06** at limit **
  21  Prefactor      .0000        6.8943        .92127E-06** at limit **
  22  Normalizat    .93504        .19079       -.12072E-04    .49888E-04
  23  Prefactor     1.0407        .14256       -.29792E-05    .52865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 4.53833
  Prefactor  = 3.33261
  Prefactor  = 33.6253
  Prefactor  = 4.51011
  norm       = 6.24946
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0.910739
  Prefactor  = 124.599
  norm       = 0
  Prefactor  = 0
  Prefactor  = 4.996e-10
  Prefactor  = 5.16104
  Prefactor  = 20.2288
  Prefactor  = 6.66134e-10
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.935042
  Prefactor  = 1.0407
 **********
 **   18 **HESSE 
 **********

 FCN=   8163.329     FROM HESSE     STATUS=OK           410 CALLS     2279 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.3540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.1067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.5383        7.2152        .47204E-03   -1.5665    
   4  Prefactor     3.3326        34.323        .55412E-03   -1.5671    
   5  Prefactor     33.625        24.851        .17252E-03   -1.5592    
   6  Prefactor     4.5101        4.8435        .47141E-03   -1.5665    
   7  norm          6.2495        3.6383        .40125E-03   -1.5658    
   8  Prefactor      .0000        1.9106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.2620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        19.638        .17172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    8.7624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .91074        3.9682        .44951E-03   -1.5689    
  13  Prefactor     124.60        90.108        .89812E-04   -1.5485    
  14  norm           .0000        2.4842        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        3.6875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .49960E-09    11.800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.1610        5.7044        .44213E-03   -1.5663    
  18  Prefactor     20.229        15.651        .22227E-03   -1.5618    
  19  Prefactor     .66613E-09    15.957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        2.1050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        6.8962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .93504        .16686        .45347E-01   -.95240    
  23  Prefactor     1.0407        .12340        .40490E-01   -.91385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45081e-07
Minuit parameter uncertainties:
  1  1.1555e-05
  2  5.05612e-06
  3  7.21525
  4  21.3905
  5  24.851
  6  4.84355
  7  3.63828
  8  1.87374e-06
  9  2.46905e-06
  10  1.07743e-06
  11  4.69215e-05
  12  3.80211
  13  90.1085
  14  7.28645e-06
  15  5.87875e-06
  16  0.000157624
  17  5.70445
  18  15.6512
  19  0.000202649
  20  4.84201e-06
  21  2.69799e-05
  22  0.166955
  23  0.123436
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  0.000e+00  1.077e-06  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.041e+00  1.234e-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.350e-01  1.670e-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.17833034926e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00481256412007 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/25590158/likelihoodResults_798163201_798422401_4FGL_J2159.8-4751_daily_bin2156.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) = 8163.35331083
delta logL = -0.0243635972838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8162.98485747
delta logL = 0.344089765937

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42762E-01   1.0000          .0000       .10000E+07
     2 'Index     '    6.4442       1.0000          .0000       10.000    
     3 'Normalizat'    .89248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0609       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=   8162.985     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      268 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42592E-01    .61830        .52648E-03** at limit **
   2  Index         6.4463        2.4661        .21090        .10226E-03
   3  Normalizat    .89253        .23674E-01    .44805E-01    .54115E-03
   4  Prefactor     1.0610        .18817E-01    .39310E-01   -.10076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0425917
  Index      = 6.44634
  Normalizat = 0.892534
  Prefactor  = 1.06095
 **********
 **   18 **HESSE 
 **********

 FCN=   8162.985     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      303 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42592E-01    3.4817        .23993E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.4463        8.2004        .82584E-02    .29346    
   3  Normalizat    .89253        .11882        .13727E-02   -.96723    
   4  Prefactor     1.0610        .92589E-01    .20097E-03   -.90724    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.73521e-09
Minuit parameter uncertainties:
  1  0.770177
  2  9.569
  3  0.118858
  4  0.0926034
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) = 8162.98485648
delta logL = 0.344090757065

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  4.259e-02  7.702e-01  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  6.446e+00  9.569e+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:  1.061e+00  9.260e-02  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.925e-01  1.189e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/25590158/cmap_HighResolution_798163201_798422401_4FGL_J2159.8-4751_daily_bin2156.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-03', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2026-04-21 01:08:41.128850', job_id='25590158', GAL2='1.06', fit_tolerance='1e-08', EG2='0.89', EG='0.94', time_epoch_completed='1776758921.13', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.44e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='2156' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Apr 21 01:08:41 PDT 2026

