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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1983
RA = 329.962, Dec = -47.8518
tmin = 753321601, tmax = 753580801
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='59028914', job_status='RUN', time_executed='2024-11-18 00:46:22.766644', time_epoch_executed='1731919582.77' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1983'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59028914

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59028914/ft1_4FGL_J2159.8-4751_daily_bin1983.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59028914/ft2_4FGL_J2159.8-4751_daily_bin1983.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59028914/ft1_4FGL_J2159.8-4751_daily_bin1983.fits outfile=/lscratch/kocevski/59028914/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1983.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=753321601.0 tmax=753580801.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.30
user 2.02
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59028914/ft2_4FGL_J2159.8-4751_daily_bin1983.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/59028914/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1983.fits evtable="EVENTS" outfile="/lscratch/kocevski/59028914/ft1_filtered_4FGL_J2159.8-4751_daily_bin1983.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.38
user 0.17
sys 0.13

Number of photons that the gtmktime cut: 861

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59028914/ft1_filtered_4FGL_J2159.8-4751_daily_bin1983.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59028914/ft2_4FGL_J2159.8-4751_daily_bin1983.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59028914/ltcube_753321601_753580801_4FGL_J2159.8-4751_daily_bin1983.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/59028914/ft2_4FGL_J2159.8-4751_daily_bin1983.fits
.....................!
real 12.06
user 11.65
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59028914/ft1_filtered_4FGL_J2159.8-4751_daily_bin1983.fits evtable="EVENTS" scfile=/lscratch/kocevski/59028914/ft2_4FGL_J2159.8-4751_daily_bin1983.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59028914/ltcube_753321601_753580801_4FGL_J2159.8-4751_daily_bin1983.fits outfile=/lscratch/kocevski/59028914/expmap_753321601_753580801_4FGL_J2159.8-4751_daily_bin1983.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/59028914/ltcube_753321601_753580801_4FGL_J2159.8-4751_daily_bin1983.fits
.....................!
real 59.98
user 56.36
sys 3.28

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/59028914/ft1_filtered_4FGL_J2159.8-4751_daily_bin1983.fits scfile=/lscratch/kocevski/59028914/ft2_4FGL_J2159.8-4751_daily_bin1983.fits outfile=/lscratch/kocevski/59028914/cmap_753321601_753580801_4FGL_J2159.8-4751_daily_bin1983.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.42
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59028914/ft1_filtered_4FGL_J2159.8-4751_daily_bin1983.fits scfile=/lscratch/kocevski/59028914/ft2_4FGL_J2159.8-4751_daily_bin1983.fits outfile=/lscratch/kocevski/59028914/cmap_HighResolution_753321601_753580801_4FGL_J2159.8-4751_daily_bin1983.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.60
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59028914/ft1_filtered_4FGL_J2159.8-4751_daily_bin1983.fits evtable="EVENTS" scfile=/lscratch/kocevski/59028914/ft2_4FGL_J2159.8-4751_daily_bin1983.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59028914/Model_4FGL_J2159.8-4751_daily_bin1983.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/59028914/ft1_filtered_4FGL_J2159.8-4751_daily_bin1983.fits.....................!
real 22.94
user 21.93
sys 0.82

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6965       1.0000          .0000       .10000E+07
     2 'norm      '    2.5894       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.1109       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.9915       1.0000          .0000       .10000E+07
     5 'Prefactor '    16.618       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.8662       1.0000          .0000       .10000E+07
     7 'norm      '    .85341       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4666       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11737E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .79515E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .30111E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.7247       1.0000          .0000       .10000E+07
    13 'Prefactor '    10.469       1.0000          .0000       .10000E+07
    14 'norm      '    .12338E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .11957E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.5689       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.0421       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.7641       1.0000          .0000       .10000E+07
    19 'Prefactor '    15.041       1.0000          .0000       .10000E+07
    20 'Prefactor '    .16768E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    7.0212       1.0000          .0000       .10000E+07
    22 'Normalizat'    .83010       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0402       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=   9264.381     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1838 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6994        8.5926        .14576E-07   -.38799E-03
   2  norm          2.5899        1.5200       -.82090E-07    .26870E-02
   3  Prefactor     2.1099        4.1622       -.17102E-06    .68101E-03
   4  Prefactor     7.0713        10.298       -.18727E-06   -.13472E-01
   5  Prefactor     16.735        2.7978       -.80287E-08    .14580E-01
   6  Prefactor     4.8770        3.2224       -.95737E-07    .13177E-02
   7  norm          .85235        3.0643        .79945E-08    .15379E-02
   8  Prefactor     2.4595        3.4956       -.12621E-06    .88101E-03
   9  Prefactor     .16653E-09    62.164       -.14275E-06** at limit **
  10  Prefactor      .0000        7.5642        .37365E-06** at limit **
  11  Prefactor      .0000        3.1263        .77580E-07** at limit **
  12  Prefactor     8.7336        3.6102       -.11474E-07   -.90219E-04
  13  Prefactor     9.7637        48.653        .50607E-06    .10492E-02
  14  norm           .0000        2.0981       -.30731E-06** at limit **
  15  Prefactor      .0000        1.0746        .22379E-06** at limit **
  16  Prefactor     7.4293        5.2266       -.32476E-07   -.24401E-01
  17  Prefactor     4.0410        3.7904       -.44942E-07    .26481E-04
  18  Prefactor     6.7804        12.674        .66069E-07   -.11551E-02
  19  Prefactor     15.405        21.784        .34054E-06   -.89248E-02
  20  Prefactor      .0000        2.1305       -.27421E-06** at limit **
  21  Prefactor     6.9806        10.632        .17339E-06   -.62954E-02
  22  Normalizat    .82953        .16801       -.18262E-05    .54276E-06
  23  Prefactor     1.0404        .12984        .21924E-05   -.13873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.69937
  norm       = 2.58991
  Prefactor  = 2.10992
  Prefactor  = 7.07126
  Prefactor  = 16.7348
  Prefactor  = 4.877
  norm       = 0.852349
  Prefactor  = 2.45949
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8.73359
  Prefactor  = 9.76367
  norm       = 0
  Prefactor  = 0
  Prefactor  = 7.42928
  Prefactor  = 4.04095
  Prefactor  = 6.7804
  Prefactor  = 15.4051
  Prefactor  = 0
  Prefactor  = 6.98062
  Normalizat = 0.829532
  Prefactor  = 1.04041
 **********
 **   18 **HESSE 
 **********

 FCN=   9264.381     FROM HESSE     STATUS=OK           430 CALLS     2268 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6994        8.6005        .38752E-03   -1.5656    
   2  norm          2.5899        1.5271        .63386E-03   -1.5676    
   3  Prefactor     2.1099        4.1885        .70979E-03   -1.5679    
   4  Prefactor     7.0713        14.785        .37917E-03   -1.5655    
   5  Prefactor     16.735        16.866        .24542E-03   -1.5626    
   6  Prefactor     4.8770        3.2325        .45576E-03   -1.5664    
   7  norm          .85235        3.1811        .49036E-03   -1.5689    
   8  Prefactor     2.4595        3.5528        .65085E-03   -1.5677    
   9  Prefactor     .16653E-09    4.8142        .59172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        7.5777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        3.1242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.7336        3.6139        .33911E-03   -1.5649    
  13  Prefactor     9.7637        49.342        .30942E-03   -1.5645    
  14  norm           .0000        2.0969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.0664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.4293        20.558        .36428E-03   -1.5653    
  17  Prefactor     4.0410        3.8072        .50130E-03   -1.5668    
  18  Prefactor     6.7804        12.751        .38556E-03   -1.5656    
  19  Prefactor     15.405        22.472        .25799E-03   -1.5629    
  20  Prefactor      .0000        2.1273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.9806        15.305        .37836E-03   -1.5655    
  22  Normalizat    .82953        .14840        .44002E-01   -.98982    
  23  Prefactor     1.0404        .11304        .40523E-01   -.91394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03489e-08
Minuit parameter uncertainties:
  1  8.60048
  2  1.52711
  3  4.18848
  4  14.7854
  5  16.8663
  6  3.23252
  7  3.1811
  8  3.55279
  9  5.71149e-05
  10  2.76433e-05
  11  4.14384e-06
  12  3.61386
  13  43.8987
  14  1.34192e-05
  15  6.98287e-06
  16  20.558
  17  3.80721
  18  12.7508
  19  22.4722
  20  1.20921e-05
  21  15.305
  22  0.148472
  23  0.113068
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  0.000e+00  2.764e-05  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.040e+00  1.131e-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.295e-01  1.485e-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: 3.78136427562e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00294546536184 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/59028914/likelihoodResults_753321601_753580801_4FGL_J2159.8-4751_daily_bin1983.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) = 9264.38094125
delta logL = -0.000336173123287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9264.38060523
delta logL = -1.50719642988e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37281E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.2048       1.0000          .0000       10.000    
     3 'Normalizat'    .82949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0405       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=   9264.381     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      244 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.4538        .42118E-03** at limit **
   2  Index         3.0155        1.5529        .21876E-04     .0000    
   3  Normalizat    .82953        1.1675        .33934E-05   -.15143E-04
   4  Prefactor     1.0404        1.2031       -.25342E-05    .20868E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.01551
  Normalizat = 0.829532
  Prefactor  = 1.04041
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9264.381     FROM HESSE     STATUS=FAILED         9 CALLS      253 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.4538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0276        2.1049        .21876E-04   -.40814    
   3  Normalizat    .82953        1.1675        .33934E-05   -.98982    
   4  Prefactor     1.0404        1.2031       -.25342E-05   -.91394    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.12437e-12
Minuit parameter uncertainties:
  1  7.7986e-06
  2  1.58418
  3  1.20607
  4  1.23662
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) = 9264.38060508
delta logL = 0.0

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  0.000e+00  7.799e-06  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  3.016e+00  1.584e+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.040e+00  1.237e+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.295e-01  1.206e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/59028914/cmap_HighResolution_753321601_753580801_4FGL_J2159.8-4751_daily_bin1983.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-03', job_status='DONE', photon_flux_upper_limit='3.78e-08', time_completed='2024-11-18 00:50:58.314366', job_id='59028914', GAL2='1.04', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1731919858.31', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1983' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Nov 18 00:50:58 PST 2024

