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


Performing analysis on: 4FGL_J0659.9+1709_weekly_bin947
RA = 104.985, Dec = 17.1522
tmin = 811728001, tmax = 812332801
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='39447036', job_status='RUN', time_executed='2026-09-29 09:50:02.956139', time_epoch_executed='1790700602.96' WHERE source_name='4FGL J0659.9+1709' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39447036

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/39447036/ft1_4FGL_J0659.9+1709_weekly_bin947.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/39447036/ft2_4FGL_J0659.9+1709_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39447036/ft1_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447036/ft1_filteredMKT_4FGL_J0659.9+1709_weekly_bin947.fits ra=104.985 dec=17.1522 rad=12.0 tmin=811728001.0 tmax=812332801.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.51
user 4.89
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39447036/ft2_4FGL_J0659.9+1709_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39447036/ft2_4FGL_J0659.9+1709_weekly_bin947.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/39447036/ft1_filteredMKT_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39447036/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.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.81
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 5806

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39447036/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39447036/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA"number of points = 17526
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0659.9+1709_weekly_bin947
RA = 104.985, Dec = 17.1522
tmin = 811728001, tmax = 812332801
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='39447035', job_status='RUN', time_executed='2026-09-29 09:50:02.956144', time_epoch_executed='1790700602.96' WHERE source_name='4FGL J0659.9+1709' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39447035

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/39447035/ft1_4FGL_J0659.9+1709_weekly_bin947.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/39447035/ft2_4FGL_J0659.9+1709_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39447035/ft1_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447035/ft1_filteredMKT_4FGL_J0659.9+1709_weekly_bin947.fits ra=104.985 dec=17.1522 rad=12.0 tmin=811728001.0 tmax=812332801.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.62
user 4.87
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39447035/ft2_4FGL_J0659.9+1709_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39447035/ft2_4FGL_J0659.9+1709_weekly_bin947.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/39447035/ft1_filteredMKT_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39447035/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.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.81
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 5806

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39447035/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39447035/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA"/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

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


Performing analysis on: 4FGL_J0659.9+1709_weekly_bin947
RA = 104.985, Dec = 17.1522
tmin = 811728001, tmax = 812332801
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='39447041', job_status='RUN', time_executed='2026-09-29 09:50:27.532755', time_epoch_executed='1790700627.53' WHERE source_name='4FGL J0659.9+1709' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39447041

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/39447041/ft1_4FGL_J0659.9+1709_weekly_bin947.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/39447041/ft2_4FGL_J0659.9+1709_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39447041/ft1_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447041/ft1_filteredMKT_4FGL_J0659.9+1709_weekly_bin947.fits ra=104.985 dec=17.1522 rad=12.0 tmin=811728001.0 tmax=812332801.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.71
user 4.88
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39447041/ft2_4FGL_J0659.9+1709_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39447041/ft2_4FGL_J0659.9+1709_weekly_bin947.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/39447041/ft1_filteredMKT_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39447041/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.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.78
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 5806

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39447041/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39447041/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA" outfile=/lscratch/kocevski/39447036/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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/39447036/ft2_4FGL_J0659.9+1709_weekly_bin947.fits
.....................!
real 15.79
user 14.98
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39447036/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39447036/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39447036/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447036/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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/39447036/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
.....................!
real 59.39
user 55.37
sys 3.18

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Extended source S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Added 169 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0659.9+1709 @ 104.985 17.1522

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39447036/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits scfile=/lscratch/kocevski/39447036/ft2_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447036/cmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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=104.985 yref=17.1522 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.90
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39447036/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits scfile=/lscratch/kocevski/39447036/ft2_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447036/cmap_HighResolution_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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=104.985 yref=17.1522 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 outfile=/lscratch/kocevski/39447035/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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/39447035/ft2_4FGL_J0659.9+1709_weekly_bin947.fits
.....................!
real 15.83
user 15.15
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39447035/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39447035/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39447035/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447035/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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/39447035/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
.....................!
real 59.36
user 55.63
sys 3.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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Extended source S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Added 169 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0659.9+1709 @ 104.985 17.1522

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39447035/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits scfile=/lscratch/kocevski/39447035/ft2_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447035/cmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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=104.985 yref=17.1522 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.90
user 0.23
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39447035/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits scfile=/lscratch/kocevski/39447035/ft2_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447035/cmap_HighResolution_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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=104.985 yref=17.1522 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 outfile=/lscratch/kocevski/39447041/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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/39447041/ft2_4FGL_J0659.9+1709_weekly_bin947.fits
.....................!
real 15.75
user 15.03
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39447041/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39447041/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39447041/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447041/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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/39447041/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
.....................!
real 59.47
user 55.46
sys 3.12

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Extended source S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Added 169 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0659.9+1709 @ 104.985 17.1522

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39447041/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits scfile=/lscratch/kocevski/39447041/ft2_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447041/cmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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=104.985 yref=17.1522 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.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39447041/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits scfile=/lscratch/kocevski/39447041/ft2_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447041/cmap_HighResolution_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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=104.985 yref=17.1522 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.43number of points = 17526
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0659.9+1709_weekly_bin947
RA = 104.985, Dec = 17.1522
tmin = 811728001, tmax = 812332801
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='39447119', job_status='RUN', time_executed='2026-09-29 09:52:08.713182', time_epoch_executed='1790700728.71' WHERE source_name='4FGL J0659.9+1709' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39447119

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/39447119/ft1_4FGL_J0659.9+1709_weekly_bin947.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/39447119/ft2_4FGL_J0659.9+1709_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39447119/ft1_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447119/ft1_filteredMKT_4FGL_J0659.9+1709_weekly_bin947.fits ra=104.985 dec=17.1522 rad=12.0 tmin=811728001.0 tmax=812332801.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.75
user 4.97
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39447119/ft2_4FGL_J0659.9+1709_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39447119/ft2_4FGL_J0659.9+1709_weekly_bin947.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/39447119/ft1_filteredMKT_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39447119/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.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.20
sys 0.14

Number of photons that the gtmktime cut: 5806

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39447119/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39447119/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA" outfile=/lscratch/kocevski/39447119/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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/39447119/ft2_4FGL_J0659.9+1709_weekly_bin947.fits
.....................!
real 16.31
user 15.27
sys 0.19

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39447119/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39447119/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39447119/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447119/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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/39447119/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
.....................!
real 60.06
user 55.77
sys 3.14

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Extended source S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Added 169 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0659.9+1709 @ 104.985 17.1522

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39447119/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits scfile=/lscratch/kocevski/39447119/ft2_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447119/cmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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=104.985 yref=17.1522 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.29
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39447119/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits scfile=/lscratch/kocevski/39447119/ft2_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447119/cmap_HighResolution_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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=104.985 yref=17.1522 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.43number of points = 17526
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0659.9+1709_weekly_bin947
RA = 104.985, Dec = 17.1522
tmin = 811728001, tmax = 812332801
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='39447266', job_status='RUN', time_executed='2026-09-29 09:55:37.349405', time_epoch_executed='1790700937.35' WHERE source_name='4FGL J0659.9+1709' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39447266

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/39447266/ft1_4FGL_J0659.9+1709_weekly_bin947.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/39447266/ft2_4FGL_J0659.9+1709_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39447266/ft1_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447266/ft1_filteredMKT_4FGL_J0659.9+1709_weekly_bin947.fits ra=104.985 dec=17.1522 rad=12.0 tmin=811728001.0 tmax=812332801.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.57
user 4.82
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39447266/ft2_4FGL_J0659.9+1709_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39447266/ft2_4FGL_J0659.9+1709_weekly_bin947.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/39447266/ft1_filteredMKT_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39447266/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.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.76
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 5806

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39447266/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39447266/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA" outfile=/lscratch/kocevski/39447266/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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/39447266/ft2_4FGL_J0659.9+1709_weekly_bin947.fits
.....................!
real 15.92
user 15.09
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39447266/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39447266/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39447266/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447266/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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/39447266/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
.....................!
real 59.55
user 55.63
sys 3.21

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Extended source S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Added 169 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0659.9+1709 @ 104.985 17.1522

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39447266/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits scfile=/lscratch/kocevski/39447266/ft2_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447266/cmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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=104.985 yref=17.1522 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.79
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39447266/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits scfile=/lscratch/kocevski/39447266/ft2_4FGL_J0659.9+1709_weekly_bin947.fits outfile=/lscratch/kocevski/39447266/cmap_HighResolution_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.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=104.985 yref=17.1522 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.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39447036/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39447036/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39447036/Model_4FGL_J0659.9+1709_weekly_bin947.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/lscratch/kocevski/39447036/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits.....................!
real 390.80
user 387.44
sys 0.64

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39447036/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits', '/lscratch/kocevski/39447036/ft2_4FGL_J0659.9+1709_weekly_bin947.fits', expMap='/lscratch/kocevski/39447036/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits', expCube='/lscratch/kocevski/39447036/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39447036/Model_4FGL_J0659.9+1709_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0659.9+1709'

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  5.571e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.550e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39447036/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39447036/ft2_4FGL_J0659.9+1709_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39447036/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39447036/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39447036/Model_4FGL_J0659.9+1709_weekly_bin947.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) = 52139.3640728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1162       1.0000          .0000       .10000E+07
     2 'norm      '    4.9615       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.462       1.0000          .0000       .10000E+07
     4 'norm      '    18.461       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19318E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11491E-07   1.0000          .0000       .10000E+07
     7 'norm      '    .54179E-07   1.0000          .0000       .10000E+07
     8 'norm      '    .87708E-08   1.0000          .0000       .10000E+07
     9 'norm      '    5.3337       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.5187       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.0401       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   52138.32     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      626 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1632        7.6765       -.20062E-06   -.52200E-03
   2  norm          4.9717        5.7345        .45728E-07    .62945E-04
   3  Prefactor     11.452        10.662       -.65182E-06   -.92017E-04
   4  norm          18.486        6.0387        .50889E-06   -.76962E-04
   5  Prefactor      .0000        9.9504        .66804E-06** at limit **
   6  Prefactor      .0000        1.2538       -.75207E-07** at limit **
   7  norm           .0000        2.5883        .26913E-06** at limit **
   8  norm           .0000        .81135       -.17630E-06** at limit **
   9  norm          5.3250        1.4109       -.46239E-07    .13969E-02
  10  Prefactor     8.8431        56.116       -.40036E-05    .34358E-04
  11  Normalizat    1.0392        .12355        .30991E-05    .11880E-04
  12  Prefactor     1.0503        .34579E-01   -.12271E-05   -.50304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.16322
  norm       = 4.97168
  Prefactor  = 11.4521
  norm       = 18.4865
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  norm       = 5.32502
  Prefactor  = 8.8431
  Normalizat = 1.03925
  Prefactor  = 1.05034
) and linked library (v3.41).

This is gtbin version HEAD
real 0.93
user 0.22
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39447035/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39447035/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39447035/Model_4FGL_J0659.9+1709_weekly_bin947.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/lscratch/kocevski/39447035/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits.....................!
real 395.88
user 392.50
sys 0.62

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39447035/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits', '/lscratch/kocevski/39447035/ft2_4FGL_J0659.9+1709_weekly_bin947.fits', expMap='/lscratch/kocevski/39447035/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits', expCube='/lscratch/kocevski/39447035/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39447035/Model_4FGL_J0659.9+1709_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0659.9+1709'

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  5.571e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.550e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39447035/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39447035/ft2_4FGL_J0659.9+1709_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39447035/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39447035/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39447035/Model_4FGL_J0659.9+1709_weekly_bin947.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) = 52139.3640728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1162       1.0000          .0000       .10000E+07
     2 'norm      '    4.9615       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.462       1.0000          .0000       .10000E+07
     4 'norm      '    18.461       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19318E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11491E-07   1.0000          .0000       .10000E+07
     7 'norm      '    .54179E-07   1.0000          .0000       .10000E+07
     8 'norm      '    .87708E-08   1.0000          .0000       .10000E+07
     9 'norm      '    5.3337       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.5187       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.0401       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   52138.32     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      626 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1632        7.6765       -.20062E-06   -.52200E-03
   2  norm          4.9717        5.7345        .45728E-07    .62945E-04
   3  Prefactor     11.452        10.662       -.65182E-06   -.92017E-04
   4  norm          18.486        6.0387        .50889E-06   -.76962E-04
   5  Prefactor      .0000        9.9504        .66804E-06** at limit **
   6  Prefactor      .0000        1.2538       -.75207E-07** at limit **
   7  norm           .0000        2.5883        .26913E-06** at limit **
   8  norm           .0000        .81135       -.17630E-06** at limit **
   9  norm          5.3250        1.4109       -.46239E-07    .13969E-02
  10  Prefactor     8.8431        56.116       -.40036E-05    .34358E-04
  11  Normalizat    1.0392        .12355        .30991E-05    .11880E-04
  12  Prefactor     1.0503        .34579E-01   -.12271E-05   -.50304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.16322
  norm       = 4.97168
  Prefactor  = 11.4521
  norm       = 18.4865
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  norm       = 5.32502
  Prefactor  = 8.8431
  Normalizat = 1.03925
  Prefactor  = 1.05034
) and linked library (v3.41).

This is gtbin version HEAD
real 1.06
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39447041/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39447041/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39447041/Model_4FGL_J0659.9+1709_weekly_bin947.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/lscratch/kocevski/39447041/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits.....................!
real 389.64
user 385.90
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39447041/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits', '/lscratch/kocevski/39447041/ft2_4FGL_J0659.9+1709_weekly_bin947.fits', expMap='/lscratch/kocevski/39447041/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits', expCube='/lscratch/kocevski/39447041/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39447041/Model_4FGL_J0659.9+1709_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0659.9+1709'

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  5.571e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.550e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39447041/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39447041/ft2_4FGL_J0659.9+1709_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39447041/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39447041/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39447041/Model_4FGL_J0659.9+1709_weekly_bin947.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) = 52139.3640728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1162       1.0000          .0000       .10000E+07
     2 'norm      '    4.9615       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.462       1.0000          .0000       .10000E+07
     4 'norm      '    18.461       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19318E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11491E-07   1.0000          .0000       .10000E+07
     7 'norm      '    .54179E-07   1.0000          .0000       .10000E+07
     8 'norm      '    .87708E-08   1.0000          .0000       .10000E+07
     9 'norm      '    5.3337       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.5187       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.0401       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   52138.32     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      626 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1632        7.6765       -.20062E-06   -.52200E-03
   2  norm          4.9717        5.7345        .45728E-07    .62945E-04
   3  Prefactor     11.452        10.662       -.65182E-06   -.92017E-04
   4  norm          18.486        6.0387        .50889E-06   -.76962E-04
   5  Prefactor      .0000        9.9504        .66804E-06** at limit **
   6  Prefactor      .0000        1.2538       -.75207E-07** at limit **
   7  norm           .0000        2.5883        .26913E-06** at limit **
   8  norm           .0000        .81135       -.17630E-06** at limit **
   9  norm          5.3250        1.4109       -.46239E-07    .13969E-02
  10  Prefactor     8.8431        56.116       -.40036E-05    .34358E-04
  11  Normalizat    1.0392        .12355        .30991E-05    .11880E-04
  12  Prefactor     1.0503        .34579E-01   -.12271E-05   -.50304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.16322
  norm       = 4.97168
  Prefactor  = 11.4521
  norm       = 18.4865
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  norm       = 5.32502
  Prefactor  = 8.8431
  Normalizat = 1.03925
  Prefactor  = 1.05034
 **********
 **   18 **HESSE 
 **********

 FCN=   52138.32     FROM HESSE     STATUS=OK           157 CALLS      783 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1632        7.6547        .35168E-03   -1.5651    
   2  norm          4.9717        5.7219        .45127E-03   -1.5663    
   3  Prefactor     11.452        10.665        .29565E-03   -1.5640    
   4  norm          18.486        6.0387        .23283E-03   -1.5622    
   5  Prefactor      .0000        9.9444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.2538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        2.5804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .15141        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3250        1.4145        .43493E-03   -1.5662    
  10  Prefactor     8.8431        55.985        .36551E-03   -1.5648    
  11  Normalizat    1.0392        .12114        .14638       -.91727    
  12  Prefactor     1.0503        .33255E-01    .39894E-01   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10893e-08
Minuit parameter uncertainties:
  1  7.65471
  2  5.72194
  3  10.6647
  4  6.03867
  5  7.36167e-07
  6  9.85591e-08
  7  1.57005e-06
  8  1.81696e-07
  9  1.41446
  10  44.5016
  11  0.121175
  12  0.0332553
 **********
 **   18 **HESSE 
 **********

 FCN=   52138.32     FROM HESSE     STATUS=OK           157 CALLS      783 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1632        7.6547        .35168E-03   -1.5651    
   2  norm          4.9717        5.7219        .45127E-03   -1.5663    
   3  Prefactor     11.452        10.665        .29565E-03   -1.5640    
   4  norm          18.486        6.0387        .23283E-03   -1.5622    
   5  Prefactor      .0000        9.9444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.2538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        2.5804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .15141        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3250        1.4145        .43493E-03   -1.5662    
  10  Prefactor     8.8431        55.985        .36551E-03   -1.5648    
  11  Normalizat    1.0392        .12114        .14638       -.91727    
  12  Prefactor     1.0503        .33255E-01    .39894E-01   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10893e-08
Minuit parameter uncertainties:
  1  7.65471
  2  5.72194
  3  10.6647
  4  6.03867
  5  7.36167e-07
  6  9.85591e-08
  7  1.57005e-06
  8  1.81696e-07
  9  1.41446
  10  44.5016
  11  0.121175
  12  0.0332553
 **********
 **   18 **HESSE 
 **********

 FCN=   52138.32     FROM HESSE     STATUS=OK           157 CALLS      783 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1632        7.6547        .35168E-03   -1.5651    
   2  norm          4.9717        5.7219        .45127E-03   -1.5663    
   3  Prefactor     11.452        10.665        .29565E-03   -1.5640    
   4  norm          18.486        6.0387        .23283E-03   -1.5622    
   5  Prefactor      .0000        9.9444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.2538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        2.5804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .15141        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3250        1.4145        .43493E-03   -1.5662    
  10  Prefactor     8.8431        55.985        .36551E-03   -1.5648    
  11  Normalizat    1.0392        .12114        .14638       -.91727    
  12  Prefactor     1.0503        .33255E-01    .39894E-01   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10893e-08
Minuit parameter uncertainties:
  1  7.65471
  2  5.72194
  3  10.6647
  4  6.03867
  5  7.36167e-07
  6  9.85591e-08
  7  1.57005e-06
  8  1.81696e-07
  9  1.41446
  10  44.5016
  11  0.121175
  12  0.0332553
Done.

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

Extracting fit parameters...

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  0.000e+00  7.362e-07  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.550e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.050e+00  3.326e-02  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.039e+00  1.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 104.985 17.152
Photon Flux Upper Limit: 4.62969064702e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00361227907838 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39447036/likelihoodResults_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 52138.367344
delta logL = -0.0496412352149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 52138.3177028
delta logL = -1.35332811624e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   52138.32     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      219 TOTAL
                     EDM=   .33E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.7555        .42118E-03** at limit **
   2  Index         3.0662        1.8781        .41131E-04     .0000    
   3  Normalizat    1.0392        1.2200        .25416E-05    .16525E-05
   4  Prefactor     1.0503        1.1908       -.17569E-06    .87789E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.06625
  Normalizat = 1.03925
  Prefactor  = 1.05034
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   52138.32     FROM HESSE     STATUS=FAILED         9 CALLS      228 TOTAL
                     EDM=   .33E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.7555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0614        2.1725        .41131E-04   -.39711    
   3  Normalizat    1.0392        1.2200        .25416E-05   -.91727    
   4  Prefactor     1.0503        1.1908       -.17569E-06   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.33134e-15
Minuit parameter uncertainties:
  1  3.16349e-07
  2  1.93435
  3  1.25549
  4  1.22302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 52138.3177027
delta logL = 0.0

Extracting fit parameters...

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  0.000e+00  3.163e-07  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  3.066e+00  1.934e+00  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.050e+00  1.223e+00  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.039e+00  1.255e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 104.985 17.152

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/39447036/cmap_HighResolution_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2026-09-29 10:09:15.159916', job_id='39447036', GAL2='1.05', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1790701755.16', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='947' AND source_name='4FGL J0659.9+1709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 10:09:15 PDT 2026

) and linked library (v3.41).

This is gtbin version HEAD
real 1.03
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39447119/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39447119/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39447119/Model_4FGL_J0659.9+1709_weekly_bin947.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/lscratch/kocevski/39447119/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits.....................!
real 388.96
user 385.51
sys 0.63

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39447119/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits', '/lscratch/kocevski/39447119/ft2_4FGL_J0659.9+1709_weekly_bin947.fits', expMap='/lscratch/kocevski/39447119/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits', expCube='/lscratch/kocevski/39447119/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39447119/Model_4FGL_J0659.9+1709_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0659.9+1709'

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  5.571e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.550e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39447119/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39447119/ft2_4FGL_J0659.9+1709_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39447119/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39447119/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39447119/Model_4FGL_J0659.9+1709_weekly_bin947.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) = 52139.3640728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1162       1.0000          .0000       .10000E+07
     2 'norm      '    4.9615       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.462       1.0000          .0000       .10000E+07
     4 'norm      '    18.461       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19318E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11491E-07   1.0000          .0000       .10000E+07
     7 'norm      '    .54179E-07   1.0000          .0000       .10000E+07
     8 'norm      '    .87708E-08   1.0000          .0000       .10000E+07
     9 'norm      '    5.3337       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.5187       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.0401       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   52138.32     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      626 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1632        7.6765       -.20062E-06   -.52200E-03
   2  norm          4.9717        5.7345        .45728E-07    .62945E-04
   3  Prefactor     11.452        10.662       -.65182E-06   -.92017E-04
   4  norm          18.486        6.0387        .50889E-06   -.76962E-04
   5  Prefactor      .0000        9.9504        .66804E-06** at limit **
   6  Prefactor      .0000        1.2538       -.75207E-07** at limit **
   7  norm           .0000        2.5883        .26913E-06** at limit **
   8  norm           .0000        .81135       -.17630E-06** at limit **
   9  norm          5.3250        1.4109       -.46239E-07    .13969E-02
  10  Prefactor     8.8431        56.116       -.40036E-05    .34358E-04
  11  Normalizat    1.0392        .12355        .30991E-05    .11880E-04
  12  Prefactor     1.0503        .34579E-01   -.12271E-05   -.50304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.16322
  norm       = 4.97168
  Prefactor  = 11.4521
  norm       = 18.4865
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  norm       = 5.32502
  Prefactor  = 8.8431
  Normalizat = 1.03925
  Prefactor  = 1.05034
Done.

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

Extracting fit parameters...

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  0.000e+00  7.362e-07  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.550e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.050e+00  3.326e-02  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.039e+00  1.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 104.985 17.152
Photon Flux Upper Limit: 4.62969064702e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00361227907838 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39447035/likelihoodResults_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 52138.367344
delta logL = -0.0496412352149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 52138.3177028
delta logL = -1.35332811624e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   52138.32     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      219 TOTAL
                     EDM=   .33E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.7555        .42118E-03** at limit **
   2  Index         3.0662        1.8781        .41131E-04     .0000    
   3  Normalizat    1.0392        1.2200        .25416E-05    .16525E-05
   4  Prefactor     1.0503        1.1908       -.17569E-06    .87789E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.06625
  Normalizat = 1.03925
  Prefactor  = 1.05034
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   52138.32     FROM HESSE     STATUS=FAILED         9 CALLS      228 TOTAL
                     EDM=   .33E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.7555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0614        2.1725        .41131E-04   -.39711    
   3  Normalizat    1.0392        1.2200        .25416E-05   -.91727    
   4  Prefactor     1.0503        1.1908       -.17569E-06   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.33134e-15
Minuit parameter uncertainties:
  1  3.16349e-07
  2  1.93435
  3  1.25549
  4  1.22302
Done.

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

Extracting fit parameters...

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  0.000e+00  7.362e-07  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.550e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.050e+00  3.326e-02  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.039e+00  1.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 104.985 17.152
Photon Flux Upper Limit: 4.62969064702e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00361227907838 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39447041/likelihoodResults_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 52138.367344
delta logL = -0.0496412352149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 52138.3177028
delta logL = -1.35332811624e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   52138.32     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      219 TOTAL
                     EDM=   .33E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.7555        .42118E-03** at limit **
   2  Index         3.0662        1.8781        .41131E-04     .0000    
   3  Normalizat    1.0392        1.2200        .25416E-05    .16525E-05
   4  Prefactor     1.0503        1.1908       -.17569E-06    .87789E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.06625
  Normalizat = 1.03925
  Prefactor  = 1.05034
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   52138.32     FROM HESSE     STATUS=FAILED         9 CALLS      228 TOTAL
                     EDM=   .33E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.7555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0614        2.1725        .41131E-04   -.39711    
   3  Normalizat    1.0392        1.2200        .25416E-05   -.91727    
   4  Prefactor     1.0503        1.1908       -.17569E-06   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.33134e-15
Minuit parameter uncertainties:
  1  3.16349e-07
  2  1.93435
  3  1.25549
  4  1.22302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 52138.3177027
delta logL = 0.0

Extracting fit parameters...

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  0.000e+00  3.163e-07  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  3.066e+00  1.934e+00  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.050e+00  1.223e+00  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.039e+00  1.255e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 104.985 17.152

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/39447035/cmap_HighResolution_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2026-09-29 10:09:35.791222', job_id='39447035', GAL2='1.05', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1790701775.79', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='947' AND source_name='4FGL J0659.9+1709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 10:09:36 PDT 2026

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 52138.3177027
delta logL = 0.0

Extracting fit parameters...

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  0.000e+00  3.163e-07  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  3.066e+00  1.934e+00  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.050e+00  1.223e+00  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.039e+00  1.255e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 104.985 17.152

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/39447041/cmap_HighResolution_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2026-09-29 10:09:39.585369', job_id='39447041', GAL2='1.05', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1790701779.59', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='947' AND source_name='4FGL J0659.9+1709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 10:09:40 PDT 2026

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

 FCN=   52138.32     FROM HESSE     STATUS=OK           157 CALLS      783 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1632        7.6547        .35168E-03   -1.5651    
   2  norm          4.9717        5.7219        .45127E-03   -1.5663    
   3  Prefactor     11.452        10.665        .29565E-03   -1.5640    
   4  norm          18.486        6.0387        .23283E-03   -1.5622    
   5  Prefactor      .0000        9.9444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.2538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        2.5804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .15141        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3250        1.4145        .43493E-03   -1.5662    
  10  Prefactor     8.8431        55.985        .36551E-03   -1.5648    
  11  Normalizat    1.0392        .12114        .14638       -.91727    
  12  Prefactor     1.0503        .33255E-01    .39894E-01   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10893e-08
Minuit parameter uncertainties:
  1  7.65471
  2  5.72194
  3  10.6647
  4  6.03867
  5  7.36167e-07
  6  9.85591e-08
  7  1.57005e-06
  8  1.81696e-07
  9  1.41446
  10  44.5016
  11  0.121175
  12  0.0332553
Done.

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

Extracting fit parameters...

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  0.000e+00  7.362e-07  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.550e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.050e+00  3.326e-02  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.039e+00  1.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 104.985 17.152
Photon Flux Upper Limit: 4.62969064702e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00361227907838 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39447119/likelihoodResults_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 52138.367344
delta logL = -0.0496412352149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 52138.3177028
delta logL = -1.35332811624e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   52138.32     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      219 TOTAL
                     EDM=   .33E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.7555        .42118E-03** at limit **
   2  Index         3.0662        1.8781        .41131E-04     .0000    
   3  Normalizat    1.0392        1.2200        .25416E-05    .16525E-05
   4  Prefactor     1.0503        1.1908       -.17569E-06    .87789E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.06625
  Normalizat = 1.03925
  Prefactor  = 1.05034
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   52138.32     FROM HESSE     STATUS=FAILED         9 CALLS      228 TOTAL
                     EDM=   .33E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.7555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0614        2.1725        .41131E-04   -.39711    
   3  Normalizat    1.0392        1.2200        .25416E-05   -.91727    
   4  Prefactor     1.0503        1.1908       -.17569E-06   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.33134e-15
Minuit parameter uncertainties:
  1  3.16349e-07
  2  1.93435
  3  1.25549
  4  1.22302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 52138.3177027
delta logL = 0.0

Extracting fit parameters...

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  0.000e+00  3.163e-07  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  3.066e+00  1.934e+00  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.050e+00  1.223e+00  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.039e+00  1.255e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 104.985 17.152

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/39447119/cmap_HighResolution_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2026-09-29 10:12:30.141883', job_id='39447119', GAL2='1.05', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1790701950.14', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='947' AND source_name='4FGL J0659.9+1709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 10:12:31 PDT 2026

) and linked library (v3.41).

This is gtbin version HEAD
real 0.82
user 0.22
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39447266/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39447266/ft2_4FGL_J0659.9+1709_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39447266/Model_4FGL_J0659.9+1709_weekly_bin947.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/lscratch/kocevski/39447266/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits.....................!
real 395.78
user 392.07
sys 0.69

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39447266/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits', '/lscratch/kocevski/39447266/ft2_4FGL_J0659.9+1709_weekly_bin947.fits', expMap='/lscratch/kocevski/39447266/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits', expCube='/lscratch/kocevski/39447266/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39447266/Model_4FGL_J0659.9+1709_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0659.9+1709'

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  5.571e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.550e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39447266/ft1_filtered_4FGL_J0659.9+1709_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39447266/ft2_4FGL_J0659.9+1709_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39447266/expmap_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39447266/ltcube_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39447266/Model_4FGL_J0659.9+1709_weekly_bin947.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) = 52139.3640728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1162       1.0000          .0000       .10000E+07
     2 'norm      '    4.9615       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.462       1.0000          .0000       .10000E+07
     4 'norm      '    18.461       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19318E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11491E-07   1.0000          .0000       .10000E+07
     7 'norm      '    .54179E-07   1.0000          .0000       .10000E+07
     8 'norm      '    .87708E-08   1.0000          .0000       .10000E+07
     9 'norm      '    5.3337       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.5187       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.0401       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   52138.32     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      626 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1632        7.6765       -.20062E-06   -.52200E-03
   2  norm          4.9717        5.7345        .45728E-07    .62945E-04
   3  Prefactor     11.452        10.662       -.65182E-06   -.92017E-04
   4  norm          18.486        6.0387        .50889E-06   -.76962E-04
   5  Prefactor      .0000        9.9504        .66804E-06** at limit **
   6  Prefactor      .0000        1.2538       -.75207E-07** at limit **
   7  norm           .0000        2.5883        .26913E-06** at limit **
   8  norm           .0000        .81135       -.17630E-06** at limit **
   9  norm          5.3250        1.4109       -.46239E-07    .13969E-02
  10  Prefactor     8.8431        56.116       -.40036E-05    .34358E-04
  11  Normalizat    1.0392        .12355        .30991E-05    .11880E-04
  12  Prefactor     1.0503        .34579E-01   -.12271E-05   -.50304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.16322
  norm       = 4.97168
  Prefactor  = 11.4521
  norm       = 18.4865
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  norm       = 5.32502
  Prefactor  = 8.8431
  Normalizat = 1.03925
  Prefactor  = 1.05034
 **********
 **   18 **HESSE 
 **********

 FCN=   52138.32     FROM HESSE     STATUS=OK           157 CALLS      783 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1632        7.6547        .35168E-03   -1.5651    
   2  norm          4.9717        5.7219        .45127E-03   -1.5663    
   3  Prefactor     11.452        10.665        .29565E-03   -1.5640    
   4  norm          18.486        6.0387        .23283E-03   -1.5622    
   5  Prefactor      .0000        9.9444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.2538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        2.5804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .15141        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3250        1.4145        .43493E-03   -1.5662    
  10  Prefactor     8.8431        55.985        .36551E-03   -1.5648    
  11  Normalizat    1.0392        .12114        .14638       -.91727    
  12  Prefactor     1.0503        .33255E-01    .39894E-01   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10893e-08
Minuit parameter uncertainties:
  1  7.65471
  2  5.72194
  3  10.6647
  4  6.03867
  5  7.36167e-07
  6  9.85591e-08
  7  1.57005e-06
  8  1.81696e-07
  9  1.41446
  10  44.5016
  11  0.121175
  12  0.0332553
Done.

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

Extracting fit parameters...

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  0.000e+00  7.362e-07  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.550e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.050e+00  3.326e-02  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.039e+00  1.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 104.985 17.152
Photon Flux Upper Limit: 4.62969064702e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00361227907838 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39447266/likelihoodResults_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 52138.367344
delta logL = -0.0496412352149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 52138.3177028
delta logL = -1.35332811624e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   52138.32     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      219 TOTAL
                     EDM=   .33E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.7555        .42118E-03** at limit **
   2  Index         3.0662        1.8781        .41131E-04     .0000    
   3  Normalizat    1.0392        1.2200        .25416E-05    .16525E-05
   4  Prefactor     1.0503        1.1908       -.17569E-06    .87789E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.06625
  Normalizat = 1.03925
  Prefactor  = 1.05034
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   52138.32     FROM HESSE     STATUS=FAILED         9 CALLS      228 TOTAL
                     EDM=   .33E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.7555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0614        2.1725        .41131E-04   -.39711    
   3  Normalizat    1.0392        1.2200        .25416E-05   -.91727    
   4  Prefactor     1.0503        1.1908       -.17569E-06   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.33134e-15
Minuit parameter uncertainties:
  1  3.16349e-07
  2  1.93435
  3  1.25549
  4  1.22302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 52138.3177027
delta logL = 0.0

Extracting fit parameters...

4FGL J0659.9+1709
   Spectrum: PowerLaw
292    Prefactor:  0.000e+00  3.163e-07  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  3.066e+00  1.934e+00  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  8.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.050e+00  1.223e+00  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.039e+00  1.255e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 104.985 17.152

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/39447266/cmap_HighResolution_811728001_812332801_4FGL_J0659.9+1709_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2026-09-29 10:17:30.817031', job_id='39447266', GAL2='1.05', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1790702250.82', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='947' AND source_name='4FGL J0659.9+1709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 10:17:31 PDT 2026

