number of points = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0118.7-0848_weekly_bin945
RA = 19.6884, Dec = -8.808
tmin = 810518401, tmax = 811123201
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='38277559', job_status='RUN', time_executed='2026-09-15 01:08:41.471151', time_epoch_executed='1789459721.47' WHERE source_name='4FGL J0118.7-0848' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38277559

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38277559/ft1_4FGL_J0118.7-0848_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38277559/ft2_4FGL_J0118.7-0848_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38277559/ft1_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277559/ft1_filteredMKT_4FGL_J0118.7-0848_weekly_bin945.fits ra=19.6884 dec=-8.808 rad=12.0 tmin=810518401.0 tmax=811123201.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 6.16
user 5.50
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38277559/ft2_4FGL_J0118.7-0848_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38277559/ft2_4FGL_J0118.7-0848_weekly_bin945.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/38277559/ft1_filteredMKT_4FGL_J0118.7-0848_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38277559/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.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.63
user 0.22
sys 0.11

Number of photons that the gtmktime cut: 1279

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38277559/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38277559/ft2_4FGL_J0118.7-0848_weekly_bin945.fits sctable="SC_DATA" o/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).

utfile=/lscratch/kocevski/38277541/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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/38277541/ft2_4FGL_J0118.7-0848_weekly_bin945.fits
.....................!
real 17.96
user 17.37
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38277541/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38277541/ft2_4FGL_J0118.7-0848_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38277541/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277541/expmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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/38277541/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits
.....................!
real 71.34
user 66.07
sys 3.81

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J0118.7-0848 @ 19.6884 -8.808

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38277541/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits scfile=/lscratch/kocevski/38277541/ft2_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277541/cmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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=19.6884 yref=-8.808 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.67
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38277541/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits scfile=/lscratch/kocevski/38277541/ft2_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277541/cmap_HighResolution_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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=19.6884 yref=-8.808 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.63
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38277541/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38277541/ft2_4FGL_J0118.7-0848_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38277541/Model_4FGL_J0118.7-0848_weekly_bin945.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 GALnumber of points = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0118.7-0848_weekly_bin945
RA = 19.6884, Dec = -8.808
tmin = 810518401, tmax = 811123201
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='38277640', job_status='RUN', time_executed='2026-09-15 01:10:33.305933', time_epoch_executed='1789459833.31' WHERE source_name='4FGL J0118.7-0848' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38277640

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38277640/ft1_4FGL_J0118.7-0848_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38277640/ft2_4FGL_J0118.7-0848_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38277640/ft1_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277640/ft1_filteredMKT_4FGL_J0118.7-0848_weekly_bin945.fits ra=19.6884 dec=-8.808 rad=12.0 tmin=810518401.0 tmax=811123201.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 7.76
user 5.74
sys 0.29

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38277640/ft2_4FGL_J0118.7-0848_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38277640/ft2_4FGL_J0118.7-0848_weekly_bin945.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/38277640/ft1_filteredMKT_4FGL_J0118.7-0848_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38277640/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.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.54
user 0.24
sys 0.14

Number of photons that the gtmktime cut: 1279

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38277640/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38277640/ft2_4FGL_J0118.7-0848_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38277581/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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/38277581/ft2_4FGL_J0118.7-0848_weekly_bin945.fits
.....................!
real 18.58
user 17.91
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38277581/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38277581/ft2_4FGL_J0118.7-0848_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38277581/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277581/expmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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/38277581/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits
.....................!
real 70.99
user 66.09
sys 4.17

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J0118.7-0848 @ 19.6884 -8.808

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38277581/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits scfile=/lscratch/kocevski/38277581/ft2_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277581/cmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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=19.6884 yref=-8.808 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.63
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38277581/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits scfile=/lscratch/kocevski/38277581/ft2_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277581/cmap_HighResolution_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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=19.6884 yref=-8.808 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.72
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38277581/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38277581/ft2_4FGL_J0118.7-0848_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38277581/Model_4FGL_J0118.7-0848_weekly_bin945.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/38277541/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits.....................!
real 51.00
user 48.59
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38277541/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits', '/lscratch/kocevski/38277541/ft2_4FGL_J0118.7-0848_weekly_bin945.fits', expMap='/lscratch/kocevski/38277541/expmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits', expCube='/lscratch/kocevski/38277541/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38277541/Model_4FGL_J0118.7-0848_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0118.7-0848'

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  4.571e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  2.596e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38277541/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38277541/ft2_4FGL_J0118.7-0848_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38277541/expmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38277541/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38277541/Model_4FGL_J0118.7-0848_weekly_bin945.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) = 14176.8379215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12323E-07   1.0000          .0000       .10000E+07
     2 'norm      '    .83980       1.0000          .0000       .10000E+07
     3 'norm      '    1.8039       1.0000          .0000       .10000E+07
     4 'Prefactor '    .32807E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .48850E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.782       1.0000          .0000       .10000E+07
     7 'norm      '    .29819       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27756E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.3661       1.0000          .0000       .10000E+07
    10 'Prefactor '    63.970       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.0092       1.0000          .0000       .10000E+07
    12 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    13 'norm      '    1.9816       1.0000          .0000       .10000E+07
    14 'norm      '    12.243       1.0000          .0000       .10000E+07
    15 'Normalizat'    .91463       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .90762       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14176.12     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      707 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .48453       -.16199E-08** at limit **
   2  norm          .83965        1.1813       -.14107E-06   -.48222E-03
   3  norm          1.8039        2.4743       -.14800E-06    .16607E-03
   4  Prefactor      .0000        2.5912       -.22181E-06** at limit **
   5  Prefactor      .0000        7.0873       -.37239E-06** at limit **
   6  Prefactor     17.782        17.041        .52621E-06    .70409E-03
   7  norm          .29815        .54451        .20373E-06    .12640E-02
   8  Prefactor      .0000        1.4070        .40556E-06** at limit **
   9  Prefactor     4.3658        2.2626        .47217E-07    .22723E-03
  10  Prefactor     63.964        1.6106        .21094E-07   -.17792E-01
  11  Prefactor     1.9978        4.9781        .73012E-07    .16696E-03
  12  norm           .0000        3.1195       -.25375E-06** at limit **
  13  norm          1.9815        .71988        .10842E-06   -.64114E-02
  14  norm          12.243        3.8824        .63912E-07    .41641E-03
  15  Normalizat    .91465        .11736       -.12835E-05   -.41103E-04
  16  Prefactor     .90765        .11404       -.82010E-06   -.15435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.839646
  norm       = 1.80393
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 17.782
  norm       = 0.298149
  Prefactor  = 0
  Prefactor  = 4.36582
  Prefactor  = 63.9636
  Prefactor  = 1.9978
  norm       = 0
  norm       = 1.98153
  norm       = 12.2426
  Normalizat = 0.914646
  Prefactor  = 0.907646
 **********
 **   18 **HESSE 
 **********

 FCN=   14176.12     FROM HESSE     STATUS=OK           237 CALLS      944 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .48534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .83965        1.1930        .50014E-03   -1.5690    
   3  norm          1.8039        2.5041        .77788E-03   -1.5681    
   4  Prefactor      .0000        2.5959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        7.0928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.782        17.142        .23724E-03   -1.5624    
   7  norm          .29815        .52666        .26853E-02   -1.5697    
   8  Prefactor      .0000        1.4063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3658        2.3170        .48179E-03   -1.5666    
  10  Prefactor     63.964        26.458        .12504E-03   -1.5548    
  11  Prefactor     1.9978        5.0611        .73012E-03   -1.5680    
  12  norm           .0000        3.1210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9815        .72401        .73598E-03   -1.5680    
  14  norm          12.243        3.8788        .28604E-03   -1.5638    
  15  Normalizat    .91465        .10268        .45088E-01   -.95947    
  16  Prefactor     .90765        .99141E-01    .45102E-01   -.95874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21884e-09
Minuit parameter uncertainties:
  1  8.68212e-08
  2  1.19298
  3  2.5041
  4  1.54531e-06
  5  8.95025e-06
  6  17.1416
  7  0.526656
  8  2.69075e-06
  9  2.317
  10  26.4577
  11  5.06114
  12  9.66694e-07
  13  0.724011
  14  3.87879
  15  0.102702
  16  0.0991603
utfile=/lscratch/kocevski/38277559/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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/38277559/ft2_4FGL_J0118.7-0848_weekly_bin945.fits
.....................!
real 18.52
user 17.91
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38277559/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38277559/ft2_4FGL_J0118.7-0848_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38277559/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277559/expmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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/38277559/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits
.....................!
real 68.08
user 62.98
sys 3.76

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J0118.7-0848 @ 19.6884 -8.808

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38277559/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits scfile=/lscratch/kocevski/38277559/ft2_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277559/cmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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=19.6884 yref=-8.808 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.79
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38277559/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits scfile=/lscratch/kocevski/38277559/ft2_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277559/cmap_HighResolution_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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=19.6884 yref=-8.808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38277559/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38277559/ft2_4FGL_J0118.7-0848_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38277559/Model_4FGL_J0118.7-0848_weekly_bin945.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 GALDone.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  6.396e+01  2.646e+01  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  2.596e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.076e-01  9.916e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  9.146e-01  1.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.19
Ra Dec: 19.688 -8.808
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 6.69e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 7.28e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14176.0006465
delta logL = 0.116211415971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14175.9936354
delta logL = 0.12322251303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.953       1.0000          .0000       .10000E+07
     2 'Index     '    2.8323       1.0000          .0000       10.000    
     3 'Normalizat'    .90206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+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=   14175.99     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      311 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.970        35.862        .54973E-05    .82723E-05
   2  Index         2.8327        .55173        .64591E-02    .45752E-04
   3  Normalizat    .90217        .11840        .23694E-03   -.28789E-06
   4  Prefactor     .91582        .11368        .22941E-03    .81272E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.9698
  Index      = 2.83266
  Normalizat = 0.902173
  Prefactor  = 0.915822
 **********
 **   18 **HESSE 
 **********

 FCN=   14175.99     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .39E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.970        32.145        .21989E-06   -1.5562    
   2  Index         2.8327        .49428        .25837E-03   -.44834    
   3  Normalizat    .90217        .11799        .94774E-05   -.96384    
   4  Prefactor     .91582        .11341        .45882E-04   -.95590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90745e-15
Minuit parameter uncertainties:
  1  32.1452
  2  0.495273
  3  0.118024
  4  0.113435
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) = 14175.9936305
delta logL = 0.123227436548

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  5.297e+01  3.215e+01  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  2.833e+00  4.953e-01  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.158e-01  1.134e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  9.022e-01  1.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.49
Ra Dec: 19.688 -8.808
Photon Index (Free Index): 2.83 +/- 0.50
Photon Flux (Free Index): 7.70e-08 +/- 3.43e-08
Energy Flux (Free Index): 1.69e-05 +/- 6.56e-06

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/38277541/cmap_HighResolution_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.69e-08', energy_flux2='1.69e-05', photon_flux_error='2.76e-08', dlogl='1.23e-01', energy_flux='1.76e-05', photon_flux2='7.70e-08', job_status='DONE', time_completed='2026-09-15 01:12:47.800720', photon_index_error2='0.50', photon_index2='2.83', ts='11.19', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='6.56e-06', EG='0.91', time_epoch_completed='1789459967.8', return_code='0', job_id='38277541', GAL2='0.92', EG2='0.90', return_code2='0', energy_flux_error='7.28e-06', photon_flux_error2='3.43e-08', ts2='11.49', photon_index='2.60' WHERE bin_id='945' AND source_name='4FGL J0118.7-0848' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 01:12:47 PDT 2026

_V02
Working on...
/lscratch/kocevski/38277581/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits.....................!
real 51.04
user 49.34
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38277581/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits', '/lscratch/kocevski/38277581/ft2_4FGL_J0118.7-0848_weekly_bin945.fits', expMap='/lscratch/kocevski/38277581/expmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits', expCube='/lscratch/kocevski/38277581/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38277581/Model_4FGL_J0118.7-0848_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0118.7-0848'

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  4.571e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  2.596e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38277581/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38277581/ft2_4FGL_J0118.7-0848_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38277581/expmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38277581/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38277581/Model_4FGL_J0118.7-0848_weekly_bin945.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) = 14176.8379215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12323E-07   1.0000          .0000       .10000E+07
     2 'norm      '    .83980       1.0000          .0000       .10000E+07
     3 'norm      '    1.8039       1.0000          .0000       .10000E+07
     4 'Prefactor '    .32807E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .48850E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.782       1.0000          .0000       .10000E+07
     7 'norm      '    .29819       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27756E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.3661       1.0000          .0000       .10000E+07
    10 'Prefactor '    63.970       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.0092       1.0000          .0000       .10000E+07
    12 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    13 'norm      '    1.9816       1.0000          .0000       .10000E+07
    14 'norm      '    12.243       1.0000          .0000       .10000E+07
    15 'Normalizat'    .91463       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .90762       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14176.12     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      707 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .48453       -.16199E-08** at limit **
   2  norm          .83965        1.1813       -.14107E-06   -.48222E-03
   3  norm          1.8039        2.4743       -.14800E-06    .16607E-03
   4  Prefactor      .0000        2.5912       -.22181E-06** at limit **
   5  Prefactor      .0000        7.0873       -.37239E-06** at limit **
   6  Prefactor     17.782        17.041        .52621E-06    .70409E-03
   7  norm          .29815        .54451        .20373E-06    .12640E-02
   8  Prefactor      .0000        1.4070        .40556E-06** at limit **
   9  Prefactor     4.3658        2.2626        .47217E-07    .22723E-03
  10  Prefactor     63.964        1.6106        .21094E-07   -.17792E-01
  11  Prefactor     1.9978        4.9781        .73012E-07    .16696E-03
  12  norm           .0000        3.1195       -.25375E-06** at limit **
  13  norm          1.9815        .71988        .10842E-06   -.64114E-02
  14  norm          12.243        3.8824        .63912E-07    .41641E-03
  15  Normalizat    .91465        .11736       -.12835E-05   -.41103E-04
  16  Prefactor     .90765        .11404       -.82010E-06   -.15435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.839646
  norm       = 1.80393
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 17.782
  norm       = 0.298149
  Prefactor  = 0
  Prefactor  = 4.36582
  Prefactor  = 63.9636
  Prefactor  = 1.9978
  norm       = 0
  norm       = 1.98153
  norm       = 12.2426
  Normalizat = 0.914646
  Prefactor  = 0.907646
 **********
 **   18 **HESSE 
 **********

 FCN=   14176.12     FROM HESSE     STATUS=OK           237 CALLS      944 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .48534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .83965        1.1930        .50014E-03   -1.5690    
   3  norm          1.8039        2.5041        .77788E-03   -1.5681    
   4  Prefactor      .0000        2.5959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        7.0928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.782        17.142        .23724E-03   -1.5624    
   7  norm          .29815        .52666        .26853E-02   -1.5697    
   8  Prefactor      .0000        1.4063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3658        2.3170        .48179E-03   -1.5666    
  10  Prefactor     63.964        26.458        .12504E-03   -1.5548    
  11  Prefactor     1.9978        5.0611        .73012E-03   -1.5680    
  12  norm           .0000        3.1210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9815        .72401        .73598E-03   -1.5680    
  14  norm          12.243        3.8788        .28604E-03   -1.5638    
  15  Normalizat    .91465        .10268        .45088E-01   -.95947    
  16  Prefactor     .90765        .99141E-01    .45102E-01   -.95874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21884e-09
Minuit parameter uncertainties:
  1  8.68212e-08
  2  1.19298
  3  2.5041
  4  1.54531e-06
  5  8.95025e-06
  6  17.1416
  7  0.526656
  8  2.69075e-06
  9  2.317
  10  26.4577
  11  5.06114
  12  9.66694e-07
  13  0.724011
  14  3.87879
  15  0.102702
  16  0.0991603
Done.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  6.396e+01  2.646e+01  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  2.596e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.076e-01  9.916e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  9.146e-01  1.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.19
Ra Dec: 19.688 -8.808
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 6.69e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 7.28e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14176.0006465
delta logL = 0.116211415971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14175.9936354
delta logL = 0.12322251303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.953       1.0000          .0000       .10000E+07
     2 'Index     '    2.8323       1.0000          .0000       10.000    
     3 'Normalizat'    .90206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+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=   14175.99     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      311 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.970        35.862        .54973E-05    .82723E-05
   2  Index         2.8327        .55173        .64591E-02    .45752E-04
   3  Normalizat    .90217        .11840        .23694E-03   -.28789E-06
   4  Prefactor     .91582        .11368        .22941E-03    .81272E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.9698
  Index      = 2.83266
  Normalizat = 0.902173
  Prefactor  = 0.915822
_V02
Working on...
/lscratch/kocevski/38277559/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits.....................!
real 46.21
user 44.01
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38277559/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits', '/lscratch/kocevski/38277559/ft2_4FGL_J0118.7-0848_weekly_bin945.fits', expMap='/lscratch/kocevski/38277559/expmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits', expCube='/lscratch/kocevski/38277559/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38277559/Model_4FGL_J0118.7-0848_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0118.7-0848'

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  4.571e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  2.596e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38277559/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38277559/ft2_4FGL_J0118.7-0848_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38277559/expmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38277559/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38277559/Model_4FGL_J0118.7-0848_weekly_bin945.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) = 14176.8379215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12323E-07   1.0000          .0000       .10000E+07
     2 'norm      '    .83980       1.0000          .0000       .10000E+07
     3 'norm      '    1.8039       1.0000          .0000       .10000E+07
     4 'Prefactor '    .32807E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .48850E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.782       1.0000          .0000       .10000E+07
     7 'norm      '    .29819       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27756E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.3661       1.0000          .0000       .10000E+07
    10 'Prefactor '    63.970       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.0092       1.0000          .0000       .10000E+07
    12 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    13 'norm      '    1.9816       1.0000          .0000       .10000E+07
    14 'norm      '    12.243       1.0000          .0000       .10000E+07
    15 'Normalizat'    .91463       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .90762       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14176.12     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      707 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .48453       -.16199E-08** at limit **
   2  norm          .83965        1.1813       -.14107E-06   -.48222E-03
   3  norm          1.8039        2.4743       -.14800E-06    .16607E-03
   4  Prefactor      .0000        2.5912       -.22181E-06** at limit **
   5  Prefactor      .0000        7.0873       -.37239E-06** at limit **
   6  Prefactor     17.782        17.041        .52621E-06    .70409E-03
   7  norm          .29815        .54451        .20373E-06    .12640E-02
   8  Prefactor      .0000        1.4070        .40556E-06** at limit **
   9  Prefactor     4.3658        2.2626        .47217E-07    .22723E-03
  10  Prefactor     63.964        1.6106        .21094E-07   -.17792E-01
  11  Prefactor     1.9978        4.9781        .73012E-07    .16696E-03
  12  norm           .0000        3.1195       -.25375E-06** at limit **
  13  norm          1.9815        .71988        .10842E-06   -.64114E-02
  14  norm          12.243        3.8824        .63912E-07    .41641E-03
  15  Normalizat    .91465        .11736       -.12835E-05   -.41103E-04
  16  Prefactor     .90765        .11404       -.82010E-06   -.15435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.839646
  norm       = 1.80393
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 17.782
  norm       = 0.298149
  Prefactor  = 0
  Prefactor  = 4.36582
  Prefactor  = 63.9636
  Prefactor  = 1.9978
  norm       = 0
  norm       = 1.98153
  norm       = 12.2426
  Normalizat = 0.914646
  Prefactor  = 0.907646
 **********
 **   18 **HESSE 
 **********

 FCN=   14175.99     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .39E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.970        32.145        .21989E-06   -1.5562    
   2  Index         2.8327        .49428        .25837E-03   -.44834    
   3  Normalizat    .90217        .11799        .94774E-05   -.96384    
   4  Prefactor     .91582        .11341        .45882E-04   -.95590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90745e-15
Minuit parameter uncertainties:
  1  32.1452
  2  0.495273
  3  0.118024
  4  0.113435
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) = 14175.9936305
delta logL = 0.123227436548

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  5.297e+01  3.215e+01  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  2.833e+00  4.953e-01  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.158e-01  1.134e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  9.022e-01  1.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.49
Ra Dec: 19.688 -8.808
Photon Index (Free Index): 2.83 +/- 0.50
Photon Flux (Free Index): 7.70e-08 +/- 3.43e-08
Energy Flux (Free Index): 1.69e-05 +/- 6.56e-06

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/38277581/cmap_HighResolution_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.69e-08', energy_flux2='1.69e-05', photon_flux_error='2.76e-08', dlogl='1.23e-01', energy_flux='1.76e-05', photon_flux2='7.70e-08', job_status='DONE', time_completed='2026-09-15 01:13:54.959566', photon_index_error2='0.50', photon_index2='2.83', ts='11.19', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='6.56e-06', EG='0.91', time_epoch_completed='1789460034.96', return_code='0', job_id='38277581', GAL2='0.92', EG2='0.90', return_code2='0', energy_flux_error='7.28e-06', photon_flux_error2='3.43e-08', ts2='11.49', photon_index='2.60' WHERE bin_id='945' AND source_name='4FGL J0118.7-0848' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 01:13:55 PDT 2026

 **********
 **   18 **HESSE 
 **********

 FCN=   14176.12     FROM HESSE     STATUS=OK           237 CALLS      944 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .48534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .83965        1.1930        .50014E-03   -1.5690    
   3  norm          1.8039        2.5041        .77788E-03   -1.5681    
   4  Prefactor      .0000        2.5959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        7.0928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.782        17.142        .23724E-03   -1.5624    
   7  norm          .29815        .52666        .26853E-02   -1.5697    
   8  Prefactor      .0000        1.4063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3658        2.3170        .48179E-03   -1.5666    
  10  Prefactor     63.964        26.458        .12504E-03   -1.5548    
  11  Prefactor     1.9978        5.0611        .73012E-03   -1.5680    
  12  norm           .0000        3.1210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9815        .72401        .73598E-03   -1.5680    
  14  norm          12.243        3.8788        .28604E-03   -1.5638    
  15  Normalizat    .91465        .10268        .45088E-01   -.95947    
  16  Prefactor     .90765        .99141E-01    .45102E-01   -.95874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21884e-09
Minuit parameter uncertainties:
  1  8.68212e-08
  2  1.19298
  3  2.5041
  4  1.54531e-06
  5  8.95025e-06
  6  17.1416
  7  0.526656
  8  2.69075e-06
  9  2.317
  10  26.4577
  11  5.06114
  12  9.66694e-07
  13  0.724011
  14  3.87879
  15  0.102702
  16  0.0991603
utfile=/lscratch/kocevski/38277640/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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/38277640/ft2_4FGL_J0118.7-0848_weekly_bin945.fits
.....................!
real 19.47
user 18.89
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38277640/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38277640/ft2_4FGL_J0118.7-0848_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38277640/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277640/expmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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/38277640/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits
.....................!
real 80.70
user 70.54
sys 4.36

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J0118.7-0848 @ 19.6884 -8.808

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38277640/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits scfile=/lscratch/kocevski/38277640/ft2_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277640/cmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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=19.6884 yref=-8.808 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.64
user 0.27
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38277640/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits scfile=/lscratch/kocevski/38277640/ft2_4FGL_J0118.7-0848_weekly_bin945.fits outfile=/lscratch/kocevski/38277640/cmap_HighResolution_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.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=19.6884 yref=-8.808 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.27
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38277640/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38277640/ft2_4FGL_J0118.7-0848_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38277640/Model_4FGL_J0118.7-0848_weekly_bin945.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 GALDone.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  6.396e+01  2.646e+01  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  2.596e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.076e-01  9.916e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  9.146e-01  1.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.19
Ra Dec: 19.688 -8.808
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 6.69e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 7.28e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14176.0006465
delta logL = 0.116211415971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14175.9936354
delta logL = 0.12322251303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.953       1.0000          .0000       .10000E+07
     2 'Index     '    2.8323       1.0000          .0000       10.000    
     3 'Normalizat'    .90206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+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=   14175.99     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      311 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.970        35.862        .54973E-05    .82723E-05
   2  Index         2.8327        .55173        .64591E-02    .45752E-04
   3  Normalizat    .90217        .11840        .23694E-03   -.28789E-06
   4  Prefactor     .91582        .11368        .22941E-03    .81272E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.9698
  Index      = 2.83266
  Normalizat = 0.902173
  Prefactor  = 0.915822
 **********
 **   18 **HESSE 
 **********

 FCN=   14175.99     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .39E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.970        32.145        .21989E-06   -1.5562    
   2  Index         2.8327        .49428        .25837E-03   -.44834    
   3  Normalizat    .90217        .11799        .94774E-05   -.96384    
   4  Prefactor     .91582        .11341        .45882E-04   -.95590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90745e-15
Minuit parameter uncertainties:
  1  32.1452
  2  0.495273
  3  0.118024
  4  0.113435
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) = 14175.9936305
delta logL = 0.123227436548

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  5.297e+01  3.215e+01  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  2.833e+00  4.953e-01  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.158e-01  1.134e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  9.022e-01  1.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.49
Ra Dec: 19.688 -8.808
Photon Index (Free Index): 2.83 +/- 0.50
Photon Flux (Free Index): 7.70e-08 +/- 3.43e-08
Energy Flux (Free Index): 1.69e-05 +/- 6.56e-06

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/38277559/cmap_HighResolution_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.69e-08', energy_flux2='1.69e-05', photon_flux_error='2.76e-08', dlogl='1.23e-01', energy_flux='1.76e-05', photon_flux2='7.70e-08', job_status='DONE', time_completed='2026-09-15 01:14:31.342535', photon_index_error2='0.50', photon_index2='2.83', ts='11.19', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='6.56e-06', EG='0.91', time_epoch_completed='1789460071.34', return_code='0', job_id='38277559', GAL2='0.92', EG2='0.90', return_code2='0', energy_flux_error='7.28e-06', photon_flux_error2='3.43e-08', ts2='11.49', photon_index='2.60' WHERE bin_id='945' AND source_name='4FGL J0118.7-0848' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 01:14:31 PDT 2026

_V02
Working on...
/lscratch/kocevski/38277640/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits.....................!
real 54.07
user 52.18
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38277640/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits', '/lscratch/kocevski/38277640/ft2_4FGL_J0118.7-0848_weekly_bin945.fits', expMap='/lscratch/kocevski/38277640/expmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits', expCube='/lscratch/kocevski/38277640/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38277640/Model_4FGL_J0118.7-0848_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0118.7-0848'

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  4.571e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  2.596e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38277640/ft1_filtered_4FGL_J0118.7-0848_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38277640/ft2_4FGL_J0118.7-0848_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38277640/expmap_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38277640/ltcube_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38277640/Model_4FGL_J0118.7-0848_weekly_bin945.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) = 14176.8379215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12323E-07   1.0000          .0000       .10000E+07
     2 'norm      '    .83980       1.0000          .0000       .10000E+07
     3 'norm      '    1.8039       1.0000          .0000       .10000E+07
     4 'Prefactor '    .32807E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .48850E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.782       1.0000          .0000       .10000E+07
     7 'norm      '    .29819       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27756E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.3661       1.0000          .0000       .10000E+07
    10 'Prefactor '    63.970       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.0092       1.0000          .0000       .10000E+07
    12 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    13 'norm      '    1.9816       1.0000          .0000       .10000E+07
    14 'norm      '    12.243       1.0000          .0000       .10000E+07
    15 'Normalizat'    .91463       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .90762       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14176.12     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      707 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .48453       -.16199E-08** at limit **
   2  norm          .83965        1.1813       -.14107E-06   -.48222E-03
   3  norm          1.8039        2.4743       -.14800E-06    .16607E-03
   4  Prefactor      .0000        2.5912       -.22181E-06** at limit **
   5  Prefactor      .0000        7.0873       -.37239E-06** at limit **
   6  Prefactor     17.782        17.041        .52621E-06    .70409E-03
   7  norm          .29815        .54451        .20373E-06    .12640E-02
   8  Prefactor      .0000        1.4070        .40556E-06** at limit **
   9  Prefactor     4.3658        2.2626        .47217E-07    .22723E-03
  10  Prefactor     63.964        1.6106        .21094E-07   -.17792E-01
  11  Prefactor     1.9978        4.9781        .73012E-07    .16696E-03
  12  norm           .0000        3.1195       -.25375E-06** at limit **
  13  norm          1.9815        .71988        .10842E-06   -.64114E-02
  14  norm          12.243        3.8824        .63912E-07    .41641E-03
  15  Normalizat    .91465        .11736       -.12835E-05   -.41103E-04
  16  Prefactor     .90765        .11404       -.82010E-06   -.15435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.839646
  norm       = 1.80393
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 17.782
  norm       = 0.298149
  Prefactor  = 0
  Prefactor  = 4.36582
  Prefactor  = 63.9636
  Prefactor  = 1.9978
  norm       = 0
  norm       = 1.98153
  norm       = 12.2426
  Normalizat = 0.914646
  Prefactor  = 0.907646
 **********
 **   18 **HESSE 
 **********

 FCN=   14176.12     FROM HESSE     STATUS=OK           237 CALLS      944 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .48534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .83965        1.1930        .50014E-03   -1.5690    
   3  norm          1.8039        2.5041        .77788E-03   -1.5681    
   4  Prefactor      .0000        2.5959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        7.0928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.782        17.142        .23724E-03   -1.5624    
   7  norm          .29815        .52666        .26853E-02   -1.5697    
   8  Prefactor      .0000        1.4063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3658        2.3170        .48179E-03   -1.5666    
  10  Prefactor     63.964        26.458        .12504E-03   -1.5548    
  11  Prefactor     1.9978        5.0611        .73012E-03   -1.5680    
  12  norm           .0000        3.1210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9815        .72401        .73598E-03   -1.5680    
  14  norm          12.243        3.8788        .28604E-03   -1.5638    
  15  Normalizat    .91465        .10268        .45088E-01   -.95947    
  16  Prefactor     .90765        .99141E-01    .45102E-01   -.95874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21884e-09
Minuit parameter uncertainties:
  1  8.68212e-08
  2  1.19298
  3  2.5041
  4  1.54531e-06
  5  8.95025e-06
  6  17.1416
  7  0.526656
  8  2.69075e-06
  9  2.317
  10  26.4577
  11  5.06114
  12  9.66694e-07
  13  0.724011
  14  3.87879
  15  0.102702
  16  0.0991603
Done.

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

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  6.396e+01  2.646e+01  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  2.596e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.076e-01  9.916e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  9.146e-01  1.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.19
Ra Dec: 19.688 -8.808
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 6.69e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 7.28e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14176.0006465
delta logL = 0.116211415971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14175.9936354
delta logL = 0.12322251303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.953       1.0000          .0000       .10000E+07
     2 'Index     '    2.8323       1.0000          .0000       10.000    
     3 'Normalizat'    .90206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+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=   14175.99     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      311 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.970        35.862        .54973E-05    .82723E-05
   2  Index         2.8327        .55173        .64591E-02    .45752E-04
   3  Normalizat    .90217        .11840        .23694E-03   -.28789E-06
   4  Prefactor     .91582        .11368        .22941E-03    .81272E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.9698
  Index      = 2.83266
  Normalizat = 0.902173
  Prefactor  = 0.915822
 **********
 **   18 **HESSE 
 **********

 FCN=   14175.99     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .39E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.970        32.145        .21989E-06   -1.5562    
   2  Index         2.8327        .49428        .25837E-03   -.44834    
   3  Normalizat    .90217        .11799        .94774E-05   -.96384    
   4  Prefactor     .91582        .11341        .45882E-04   -.95590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90745e-15
Minuit parameter uncertainties:
  1  32.1452
  2  0.495273
  3  0.118024
  4  0.113435
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) = 14175.9936305
delta logL = 0.123227436548

Extracting fit parameters...

4FGL J0118.7-0848
   Spectrum: PowerLaw
294    Prefactor:  5.297e+01  3.215e+01  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  2.833e+00  4.953e-01  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.158e-01  1.134e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  9.022e-01  1.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.49
Ra Dec: 19.688 -8.808
Photon Index (Free Index): 2.83 +/- 0.50
Photon Flux (Free Index): 7.70e-08 +/- 3.43e-08
Energy Flux (Free Index): 1.69e-05 +/- 6.56e-06

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/38277640/cmap_HighResolution_810518401_811123201_4FGL_J0118.7-0848_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.69e-08', energy_flux2='1.69e-05', photon_flux_error='2.76e-08', dlogl='1.23e-01', energy_flux='1.76e-05', photon_flux2='7.70e-08', job_status='DONE', time_completed='2026-09-15 01:16:24.501715', photon_index_error2='0.50', photon_index2='2.83', ts='11.19', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='6.56e-06', EG='0.91', time_epoch_completed='1789460184.5', return_code='0', job_id='38277640', GAL2='0.92', EG2='0.90', return_code2='0', energy_flux_error='7.28e-06', photon_flux_error2='3.43e-08', ts2='11.49', photon_index='2.60' WHERE bin_id='945' AND source_name='4FGL J0118.7-0848' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 01:16:24 PDT 2026

