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


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)
/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 (vWARNING: version mismatch between CFITSIO header (v3.433.43) and linked library (v) and linked library (v3.413.41).).



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


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843218', job_status='RUN', time_executed='2026-05-19 01:32:46.147027', time_epoch_executed='1779179566.15' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843218

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843218/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843218/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843218/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843218/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.92
user 4.11
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843218/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843218/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843218/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843218/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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.85
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843218/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843218/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843220', job_status='RUN', time_executed='2026-05-19 01:32:46.146622', time_epoch_executed='1779179566.15' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843220

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843220/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843220/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843220/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843220/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.84
user 4.10
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843220/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843220/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843220/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843220/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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.80
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843220/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843220/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843228', job_status='RUN', time_executed='2026-05-19 01:33:24.408215', time_epoch_executed='1779179604.41' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843228

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843228/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843228/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843228/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843228/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.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 5.43
user 4.55
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843228/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843228/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843228/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843228/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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.64
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843228/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843228/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843232', job_status='RUN', time_executed='2026-05-19 01:33:24.184052', time_epoch_executed='1779179604.18' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843232

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843232/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843232/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843232/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843232/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.83
user 3.96
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843232/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843232/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843232/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843232/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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.97
user 0.20
sys 0.11

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843232/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843232/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843306', job_status='RUN', time_executed='2026-05-19 01:34:24.537299', time_epoch_executed='1779179664.54' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843306

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843306/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843306/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843306/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843306/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.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 5.64
user 4.91
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843306/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843306/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843306/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843306/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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.91
user 0.24
sys 0.11

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843306/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843306/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843298', job_status='RUN', time_executed='2026-05-19 01:33:47.407173', time_epoch_executed='1779179627.41' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843298

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843298/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843298/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843298/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843298/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.81
user 3.99
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843298/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843298/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843298/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843298/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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.92
user 0.22
sys 0.18

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843298/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843298/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843299', job_status='RUN', time_executed='2026-05-19 01:33:47.384030', time_epoch_executed='1779179627.38' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843299

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843299/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843299/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843299/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843299/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.86
user 4.01
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843299/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843299/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843299/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843299/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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.79
user 0.19
sys 0.12

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843299/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843299/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843314', job_status='RUN', time_executed='2026-05-19 01:34:24.217872', time_epoch_executed='1779179664.22' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843314

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843314/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843314/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843314/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843314/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.80
user 3.94
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843314/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843314/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843314/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843314/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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.94
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843314/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843314/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26843218/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843218/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 16.69
user 15.99
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843218/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843218/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843218/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843218/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843218/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 61.81
user 57.37
sys 3.61

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843218/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843218/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843218/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.86
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843218/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843218/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843218/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.86
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843218/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843218/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843218/Model_4FGL_J0159.5+1046_weekly_bin928.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 sourcenumber of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
outfile=/lscratch/kocevski/26843220/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843220/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 16.77
user 16.03
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843220/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843220/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843220/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843220/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843220/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 61.73
user 57.28
sys 3.68

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843220/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843220/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843220/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.88
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843220/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843220/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843220/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.82
user 0.20
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843220/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843220/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843220/Model_4FGL_J0159.5+1046_weekly_bin928.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 sourcenumber of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843302', job_status='RUN', time_executed='2026-05-19 01:33:47.523640', time_epoch_executed='1779179627.52' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843302

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843302/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843302/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843302/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843302/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.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.14
user 4.95
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843302/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843302/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843302/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843302/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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 1.03
user 0.25
sys 0.15

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843302/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843302/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843303', job_status='RUN', time_executed='2026-05-19 01:33:47.523612', time_epoch_executed='1779179627.52' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843303

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843303/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843303/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843303/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843303/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.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 5.85
user 4.96
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843303/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843303/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843303/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843303/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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 1.06
user 0.24
sys 0.13

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843303/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843303/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843331', job_status='RUN', time_executed='2026-05-19 01:35:24.554752', time_epoch_executed='1779179724.55' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843331

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843331/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843331/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843331/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843331/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.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.04
user 5.23
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843331/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843331/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843331/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843331/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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.94
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843331/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843331/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26843228/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843228/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 18.99
user 18.00
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843228/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843228/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843228/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843228/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843228/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 69.40
user 64.43
sys 4.15

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843228/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843228/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843228/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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 1.07
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843228/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843228/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843228/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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 1.09
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843228/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843228/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843228/Model_4FGL_J0159.5+1046_weekly_bin928.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 sourceoutfile=/lscratch/kocevski/26843232/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843232/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 16.51
user 15.64
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843232/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843232/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843232/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843232/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843232/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 59.95
user 55.68
sys 3.41

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843232/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843232/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843232/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.85
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843232/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843232/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843232/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.86
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843232/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843232/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843232/Model_4FGL_J0159.5+1046_weekly_bin928.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 sourcenumber of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843342', job_status='RUN', time_executed='2026-05-19 01:35:52.384639', time_epoch_executed='1779179752.38' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843342

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843342/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843342/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843342/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843342/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.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 5.32
user 4.66
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843342/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843342/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843342/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843342/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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.87
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843342/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843342/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843300', job_status='RUN', time_executed='2026-05-19 01:33:56.493580', time_epoch_executed='1779179636.49' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843300

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843300/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843300/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843300/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843300/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.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.46
user 4.71
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843300/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843300/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843300/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843300/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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.93
user 0.20
sys 0.19

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843300/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843300/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26843298/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843298/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 16.34
user 15.67
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843298/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843298/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843298/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843298/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843298/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 60.22
user 55.83
sys 3.68

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843298/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843298/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843298/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.94
user 0.19
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843298/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843298/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843298/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.73
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843298/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843298/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843298/Model_4FGL_J0159.5+1046_weekly_bin928.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 sourceoutfile=/lscratch/kocevski/26843299/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843299/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 16.53
user 15.69
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843299/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843299/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843299/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843299/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843299/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 60.14
user 55.98
sys 3.27

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843299/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843299/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843299/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843299/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843299/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843299/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.86
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843299/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843299/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843299/Model_4FGL_J0159.5+1046_weekly_bin928.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/26843218/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 38.77
user 37.06
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843218/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843218/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843218/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843218/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843218/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843218/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843218/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843218/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843218/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843218/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
 GAL_V02
Working on...
/lscratch/kocevski/26843220/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 38.82
user 37.18
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843220/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843220/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843220/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843220/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843220/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843220/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843220/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843220/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843220/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843220/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
outfile=/lscratch/kocevski/26843306/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843306/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 21.02
user 20.10
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843306/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843306/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843306/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843306/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843306/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 76.34
user 71.03
sys 4.41

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843306/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843306/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843306/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.83
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843306/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843306/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843306/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.91
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843306/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843306/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843306/Model_4FGL_J0159.5+1046_weekly_bin928.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 sourcenumber of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843371', job_status='RUN', time_executed='2026-05-19 01:36:21.915131', time_epoch_executed='1779179781.92' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843371

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843371/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843371/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843371/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843371/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.91
user 4.16
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843371/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843371/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843371/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843371/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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.83
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843371/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843371/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26843314/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843314/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 16.29
user 15.49
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843314/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843314/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843314/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843314/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843314/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 60.16
user 55.83
sys 3.47

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843314/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843314/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843314/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.81
user 0.20
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843314/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843314/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843314/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.77
user 0.22
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843314/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843314/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843314/Model_4FGL_J0159.5+1046_weekly_bin928.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 sourcenumber of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin928
RA = 29.8858, Dec = 10.7737
tmin = 800236801, tmax = 800841601
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='26843374', job_status='RUN', time_executed='2026-05-19 01:36:21.913899', time_epoch_executed='1779179781.91' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26843374

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26843374/ft1_4FGL_J0159.5+1046_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26843374/ft2_4FGL_J0159.5+1046_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26843374/ft1_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843374/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=800236801.0 tmax=800841601.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 5.30
user 4.57
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26843374/ft2_4FGL_J0159.5+1046_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26843374/ft2_4FGL_J0159.5+1046_weekly_bin928.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/26843374/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26843374/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.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.95
user 0.23
sys 0.12

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26843374/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26843374/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA"  **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
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) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843218/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:43:51.930649', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180231.93', return_code='0', job_id='26843218', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:43:52 PDT 2026

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) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843220/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:43:53.758482', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180233.76', return_code='0', job_id='26843220', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:43:54 PDT 2026

outfile=/lscratch/kocevski/26843302/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843302/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 21.99
user 20.69
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843302/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843302/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843302/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843302/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843302/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 74.97
user 69.59
sys 4.19

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843302/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843302/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843302/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.92
user 0.25
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843302/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843302/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843302/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.92
user 0.26
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843302/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843302/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843302/Model_4FGL_J0159.5+1046_weekly_bin928.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 sourceoutfile=/lscratch/kocevski/26843303/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843303/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 22.04
user 20.68
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843303/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843303/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843303/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843303/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843303/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 75.63
user 69.92
sys 4.42

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843303/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843303/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843303/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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 1.01
user 0.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843303/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843303/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843303/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.93
user 0.27
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843303/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843303/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843303/Model_4FGL_J0159.5+1046_weekly_bin928.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/26843232/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 37.46
user 35.95
sys 0.73

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843232/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843232/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843232/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843232/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843232/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843232/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843232/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843232/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843232/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843232/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
 GAL_V02
Working on...
/lscratch/kocevski/26843228/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 46.03
user 43.98
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843228/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843228/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843228/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843228/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843228/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843228/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843228/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843228/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843228/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843228/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
outfile=/lscratch/kocevski/26843331/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843331/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 19.84
user 19.09
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843331/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843331/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843331/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843331/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843331/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 71.24
user 66.27
sys 4.09

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843331/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843331/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843331/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.93
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843331/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843331/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843331/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.93
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843331/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843331/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843331/Model_4FGL_J0159.5+1046_weekly_bin928.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 **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
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) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843232/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:44:45.539990', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180285.54', return_code='0', job_id='26843232', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:44:45 PDT 2026

 GAL_V02
Working on...
/lscratch/kocevski/26843299/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 37.91
user 36.38
sys 0.74

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843299/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843299/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843299/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843299/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843299/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843299/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843299/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843299/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843299/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843299/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
 GAL_V02
Working on...
/lscratch/kocevski/26843298/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 37.70
user 36.36
sys 0.69

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843298/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843298/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843298/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843298/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843298/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843298/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843298/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843298/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843298/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843298/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
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) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843228/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:44:53.813434', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180293.81', return_code='0', job_id='26843228', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:44:54 PDT 2026

outfile=/lscratch/kocevski/26843342/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843342/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 19.27
user 18.43
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843342/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843342/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843342/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843342/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843342/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 70.15
user 65.21
sys 4.05

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843342/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843342/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843342/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.81
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843342/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843342/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843342/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.89
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843342/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843342/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843342/Model_4FGL_J0159.5+1046_weekly_bin928.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 **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
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) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843299/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:45:17.006948', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180317.01', return_code='0', job_id='26843299', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:45:17 PDT 2026

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) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843298/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:45:18.309803', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180318.31', return_code='0', job_id='26843298', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:45:18 PDT 2026

 GAL_V02
Working on...
/lscratch/kocevski/26843314/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 38.06
user 36.58
sys 0.70

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843314/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843314/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843314/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843314/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843314/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843314/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843314/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843314/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843314/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843314/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
 GAL_V02
Working on...
/lscratch/kocevski/26843306/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 47.90
user 45.99
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843306/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843306/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843306/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843306/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843306/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843306/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843306/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843306/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843306/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843306/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
outfile=/lscratch/kocevski/26843300/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843300/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 23.22
user 21.38
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843300/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843300/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843300/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843300/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843300/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 78.96
user 73.07
sys 4.82

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843300/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843300/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843300/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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 1.05
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843300/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843300/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843300/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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 1.14
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843300/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843300/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843300/Model_4FGL_J0159.5+1046_weekly_bin928.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 sourceDone.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
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) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843314/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:45:50.112274', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180350.11', return_code='0', job_id='26843314', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:45:50 PDT 2026

outfile=/lscratch/kocevski/26843371/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843371/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 22.42
user 21.63
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843371/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843371/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843371/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843371/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843371/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 69.98
user 65.21
sys 4.04

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843371/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843371/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843371/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.84
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843371/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843371/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843371/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.80
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843371/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843371/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843371/Model_4FGL_J0159.5+1046_weekly_bin928.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 **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
outfile=/lscratch/kocevski/26843374/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843374/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 20.01
user 19.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26843374/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843374/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26843374/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843374/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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/26843374/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
.....................!
real 70.31
user 65.61
sys 4.03

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26843374/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843374/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843374/cmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26843374/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits scfile=/lscratch/kocevski/26843374/ft2_4FGL_J0159.5+1046_weekly_bin928.fits outfile=/lscratch/kocevski/26843374/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.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=29.8858 yref=10.7737 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.87
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26843374/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26843374/ft2_4FGL_J0159.5+1046_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26843374/Model_4FGL_J0159.5+1046_weekly_bin928.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 sourceDone.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
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) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843306/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:46:12.020321', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180372.02', return_code='0', job_id='26843306', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:46:12 PDT 2026

 GAL_V02
Working on...
/lscratch/kocevski/26843331/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 43.31
user 41.28
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843331/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843331/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843331/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843331/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843331/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843331/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843331/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843331/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843331/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843331/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
 GAL_V02
Working on...
/lscratch/kocevski/26843302/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 47.52
user 45.48
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843302/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843302/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843302/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843302/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843302/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843302/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843302/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843302/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843302/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843302/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
 GAL_V02
Working on...
/lscratch/kocevski/26843303/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 48.73
user 46.05
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843303/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843303/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843303/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843303/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843303/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843303/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843303/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843303/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843303/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843303/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
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) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843331/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:46:53.575351', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180413.58', return_code='0', job_id='26843331', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:46:53 PDT 2026

 GAL_V02
Working on...
/lscratch/kocevski/26843342/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 40.77
user 38.96
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843342/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843342/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843342/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843342/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843342/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843342/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843342/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843342/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843342/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843342/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
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) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843302/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:47:04.874543', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180424.87', return_code='0', job_id='26843302', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:47:05 PDT 2026

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) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843303/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:47:06.376672', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180426.38', return_code='0', job_id='26843303', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:47:06 PDT 2026

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

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
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) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843342/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:47:28.300250', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180448.3', return_code='0', job_id='26843342', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:47:28 PDT 2026

 GAL_V02
Working on...
/lscratch/kocevski/26843371/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 44.07
user 42.37
sys 0.92

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843371/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843371/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843371/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843371/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843371/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843371/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843371/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843371/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843371/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843371/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
 GAL_V02
Working on...
/lscratch/kocevski/26843300/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 50.73
user 48.73
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843300/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843300/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843300/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843300/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843300/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843300/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843300/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843300/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843300/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843300/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
 GAL_V02
Working on...
/lscratch/kocevski/26843374/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits.....................!
real 44.28
user 42.21
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26843374/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits', '/lscratch/kocevski/26843374/ft2_4FGL_J0159.5+1046_weekly_bin928.fits', expMap='/lscratch/kocevski/26843374/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', expCube='/lscratch/kocevski/26843374/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26843374/Model_4FGL_J0159.5+1046_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26843374/ft1_filtered_4FGL_J0159.5+1046_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26843374/ft2_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26843374/expmap_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26843374/ltcube_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26843374/Model_4FGL_J0159.5+1046_weekly_bin928.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) = 9968.90318044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51527E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5682       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8393       1.0000          .0000       .10000E+07
     5 'norm      '    .28200E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.7004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7103       1.0000          .0000       .10000E+07
    10 'norm      '    2.0056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58680E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10348E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    51.507       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39095E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26708E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21120E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .29449       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71713E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.519       1.0000          .0000       .10000E+07
    20 'norm      '    26.488       1.0000          .0000       .10000E+07
    21 'Prefactor '    15.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9968.839     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1888 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51728E-05    13.278       -.10021E-05** at limit **
   2  Prefactor     .18874E-08    10.618       -.40336E-06** at limit **
   3  Prefactor     6.5348        8.6564        .36769E-08   -.88893E-03
   4  Prefactor     3.8422        3.6853        .13323E-07   -.26816E-03
   5  norm          .23204E-07    8.8790        .32436E-06** at limit **
   6  Prefactor     9.8369        7.1511       -.71495E-07   -.83210E-03
   7  Prefactor     .55511E-10    9.7891       -.11061E-05** at limit **
   8  norm          17.313        5.7687        .38803E-07   -.17742E-02
   9  Prefactor     1.7115        1.8100        .68963E-07   -.10506E-02
  10  norm          2.0066        .88683       -.24410E-07    .16512E-03
  11  Prefactor     .30780E-05    15.865       -.10256E-05** at limit **
  12  Prefactor     .16098E-08    31.177       -.61541E-06** at limit **
  13  Prefactor     52.342        62.725       -.24387E-07   -.28034E-01
  14  Prefactor      .0000        4.7115        .52708E-06** at limit **
  15  Prefactor     .98255E-08    8.7231        .37419E-06** at limit **
  16  Prefactor      .0000        3.8776       -.48050E-07** at limit **
  17  norm          .29448        .29195       -.50603E-07    .33246E-02
  18  Prefactor      .0000        22.757       -.45355E-06** at limit **
  19  Prefactor     16.587        6.2195       -.31099E-07   -.11066    
  20  norm          26.426        4.4087        .15269E-07   -.34635E-01
  21  Prefactor     15.665        44.138       -.56612E-06    .19919E-01
  22  Normalizat    .87603        .19438        .27478E-05   -.70191E-04
  23  Prefactor     1.2467        .12713        .94954E-06   -.10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17281e-06
  Prefactor  = 1.88738e-09
  Prefactor  = 6.53485
  Prefactor  = 3.84222
  norm       = 2.32037e-08
  Prefactor  = 9.83686
  Prefactor  = 5.55112e-11
  norm       = 17.3133
  Prefactor  = 1.71152
  norm       = 2.00659
  Prefactor  = 3.07798e-06
  Prefactor  = 1.60982e-09
  Prefactor  = 52.3416
  Prefactor  = 0
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  norm       = 0.294483
  Prefactor  = 0
  Prefactor  = 16.5869
  norm       = 26.4264
  Prefactor  = 15.6651
  Normalizat = 0.87603
  Prefactor  = 1.24666
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.839     FROM HESSE     STATUS=OK           420 CALLS     2308 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51728E-05    27.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    10.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5348        8.6637        .39133E-03   -1.5657    
   4  Prefactor     3.8422        3.6863        .51482E-03   -1.5669    
   5  norm          .23204E-07    8.9598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8369        7.1596        .32150E-03   -1.5645    
   7  Prefactor     .55511E-10    1.5612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.313        5.7782        .23995E-03   -1.5625    
   9  Prefactor     1.7115        1.8298        .80349E-03   -1.5682    
  10  norm          2.0066        .88993        .73087E-03   -1.5680    
  11  Prefactor     .30780E-05    25.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16098E-08    31.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.342        65.153        .13935E-03   -1.5563    
  14  Prefactor      .0000        4.7001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98255E-08    8.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29448        .28781        .10290E-02   -1.5697    
  18  Prefactor      .0000        22.691        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.587        20.815        .24616E-03   -1.5627    
  20  norm          26.426        15.125        .19434E-03   -1.5605    
  21  Prefactor     15.665        46.249        .25816E-03   -1.5629    
  22  Normalizat    .87603        .17600        .80508E-01   -.97308    
  23  Prefactor     1.2467        .11487        .33604E-01   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61255e-07
Minuit parameter uncertainties:
  1  0.0239166
  2  0.000284894
  3  8.66372
  4  3.68626
  5  0.000912411
  6  7.15961
  7  1.44669e-05
  8  5.77817
  9  1.82981
  10  0.889932
  11  0.0177879
  12  0.000449175
  13  65.154
  14  3.10839e-06
  15  0.000590559
  16  1.1577e-05
  17  0.287808
  18  2.06973e-05
  19  20.815
  20  15.125
  21  46.2496
  22  0.176114
  23  0.114893
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843371/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:48:29.842455', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180509.84', return_code='0', job_id='26843371', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:48:30 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  9.837e+00  7.160e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.247e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.760e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.33e-05

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) = 9968.4009734
delta logL = 0.438035966528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558553
delta logL = 0.543423829386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1153       1.0000          .0000       .10000E+07
     2 'Index     '    1.1706       1.0000          .0000       10.000    
     3 'Normalizat'    .89297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.296     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1186        4.9362        .44429E-03   -.37028E-01
   2  Index         1.1706        .43785        .30506       -.91979E-04
   3  Normalizat    .89306        .17168        .79847E-01    .49360E-04
   4  Prefactor     1.2523        .11237        .33496E-01    .21179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11858
  Index      = 1.17064
  Normalizat = 0.893057
  Prefactor  = 1.2523
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843300/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:48:41.107407', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180521.11', return_code='0', job_id='26843300', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:48:41 PDT 2026

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

 FCN=   9968.296     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1186        8.4937        .88859E-04   -1.5663    
   2  Index         1.1706        .78073        .12849E-01   -.87240    
   3  Normalizat    .89306        .19067        .35346E-03   -.96705    
   4  Prefactor     1.2523        .12564        .19835E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76729e-11
Minuit parameter uncertainties:
  1  8.4937
  2  0.78861
  3  0.190813
  4  0.12567
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) = 9968.29558491
delta logL = 0.543424451667

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.119e+00  8.494e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.171e+00  7.886e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.252e+00  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.931e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.17 +/- 0.79
Photon Flux (Free Index): 7.61e-09 +/- 1.41e-08
Energy Flux (Free Index): 6.93e-05 +/- 8.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26843374/cmap_HighResolution_800236801_800841601_4FGL_J0159.5+1046_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='6.93e-05', photon_flux_error='3.32e-08', dlogl='5.43e-01', energy_flux='3.20e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2026-05-19 01:48:45.854590', photon_index_error2='0.79', photon_index2='1.17', ts='7.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.88', time_epoch_completed='1779180525.85', return_code='0', job_id='26843374', GAL2='1.25', EG2='0.89', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.41e-08', ts2='8.26', photon_index='1.99' WHERE bin_id='928' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 01:48:46 PDT 2026

