/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_J1017.8+0715_weekly_bin947
RA = 154.473, Dec = 7.2638
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='39457883', job_status='RUN', time_executed='2026-09-29 12:19:21.240771', time_epoch_executed='1790709561.24' WHERE source_name='4FGL J1017.8+0715' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39457883

Creating custom pfile directory:
/lscratch/kocevski/39457883/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/39457883/ft1_4FGL_J1017.8+0715_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/39457883/ft2_4FGL_J1017.8+0715_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39457883/ft1_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457883/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin947.fits ra=154.473 dec=7.2638 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 6.87
user 6.08
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39457883/ft2_4FGL_J1017.8+0715_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39457883/ft2_4FGL_J1017.8+0715_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/39457883/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39457883/ft1_filtered_4FGL_J1017.8+0715_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.69
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 1057

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39457883/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39457883/ft2_4FGL_J1017.8+0715_weekly_bin947.fits sctable="SC_DATA" onumber of points = 17526
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1017.8+0715_weekly_bin947
RA = 154.473, Dec = 7.2638
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='39457902', job_status='RUN', time_executed='2026-09-29 12:19:46.949065', time_epoch_executed='1790709586.95' WHERE source_name='4FGL J1017.8+0715' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39457902

Creating custom pfile directory:
/lscratch/kocevski/39457902/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/39457902/ft1_4FGL_J1017.8+0715_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/39457902/ft2_4FGL_J1017.8+0715_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39457902/ft1_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457902/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin947.fits ra=154.473 dec=7.2638 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 7.17
user 6.67
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39457902/ft2_4FGL_J1017.8+0715_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39457902/ft2_4FGL_J1017.8+0715_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/39457902/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39457902/ft1_filtered_4FGL_J1017.8+0715_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.57
user 0.25
sys 0.13

Number of photons that the gtmktime cut: 1057

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39457902/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39457902/ft2_4FGL_J1017.8+0715_weekly_bin947.fits sctable="SC_DATA" onumber of points = 17526
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1017.8+0715_weekly_bin947
RA = 154.473, Dec = 7.2638
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='39457903', job_status='RUN', time_executed='2026-09-29 12:19:56.832684', time_epoch_executed='1790709596.83' WHERE source_name='4FGL J1017.8+0715' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39457903

Creating custom pfile directory:
/lscratch/kocevski/39457903/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/39457903/ft1_4FGL_J1017.8+0715_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/39457903/ft2_4FGL_J1017.8+0715_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39457903/ft1_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457903/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin947.fits ra=154.473 dec=7.2638 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 6.28
user 5.76
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39457903/ft2_4FGL_J1017.8+0715_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39457903/ft2_4FGL_J1017.8+0715_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/39457903/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39457903/ft1_filtered_4FGL_J1017.8+0715_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.68
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1057

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39457903/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39457903/ft2_4FGL_J1017.8+0715_weekly_bin947.fits sctable="SC_DATA" onumber of points = 17526
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1017.8+0715_weekly_bin947
RA = 154.473, Dec = 7.2638
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='39457947', job_status='RUN', time_executed='2026-09-29 12:20:19.313207', time_epoch_executed='1790709619.31' WHERE source_name='4FGL J1017.8+0715' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39457947

Creating custom pfile directory:
/lscratch/kocevski/39457947/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/39457947/ft1_4FGL_J1017.8+0715_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/39457947/ft2_4FGL_J1017.8+0715_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39457947/ft1_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457947/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin947.fits ra=154.473 dec=7.2638 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 6.59
user 6.10
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39457947/ft2_4FGL_J1017.8+0715_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39457947/ft2_4FGL_J1017.8+0715_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/39457947/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39457947/ft1_filtered_4FGL_J1017.8+0715_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.65
user 0.27
sys 0.13

Number of photons that the gtmktime cut: 1057

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39457947/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39457947/ft2_4FGL_J1017.8+0715_weekly_bin947.fits sctable="SC_DATA" o_V02
Working on...
/lscratch/kocevski/39457736/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits.....................!
real 50.32
user 46.91
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39457736/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits', '/lscratch/kocevski/39457736/ft2_4FGL_J1017.8+0715_weekly_bin947.fits', expMap='/lscratch/kocevski/39457736/expmap_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits', expCube='/lscratch/kocevski/39457736/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39457736/Model_4FGL_J1017.8+0715_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1017.8+0715'

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.924e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39457736/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39457736/ft2_4FGL_J1017.8+0715_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39457736/expmap_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39457736/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39457736/Model_4FGL_J1017.8+0715_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) = 11600.4289063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26357E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .78885       1.0000          .0000       .10000E+07
     3 'Prefactor '    .55789E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.804       1.0000          .0000       .10000E+07
     5 'Prefactor '    .82157E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0023       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15665E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .56838E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .49754E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10562E-02   1.0000          .0000       .10000E+07
    11 'norm      '    6.9188       1.0000          .0000       .10000E+07
    12 'Prefactor '    .60870E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4507       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.5107       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.1750       1.0000          .0000       .10000E+07
    16 'norm      '    .40806       1.0000          .0000       .10000E+07
    17 'Prefactor '    10.354       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3605       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .74141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11600.31     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1137 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    1.0876        .29252E-06** at limit **
   2  norm          .78911        .40691       -.13523E-07    .58849E-02
   3  Prefactor      .0000        2.4975        .76243E-07** at limit **
   4  Prefactor     17.003        19.928       -.13342E-06    .95374E-02
   5  Prefactor     .33307E-09    9.5113       -.32354E-06** at limit **
   6  Prefactor     6.0092        5.7317       -.33881E-06    .24182E-02
   7  Prefactor      .0000        21.556        .15245E-06** at limit **
   8  Prefactor     .94369E-08    58.335       -.33685E-05** at limit **
   9  Prefactor     .81601E-08    .78281       -.48317E-08** at limit **
  10  Prefactor      .0000        5.1613       -.80889E-07** at limit **
  11  norm          6.9187        1.5068        .40174E-07   -.28706E-02
  12  Prefactor     .22204E-09    4.1869        .45663E-06** at limit **
  13  Prefactor     1.4504        1.9611        .16665E-06   -.13610E-02
  14  Prefactor     4.5107        4.0739       -.64371E-07    .10408E-02
  15  Prefactor     1.1778        4.5508       -.29131E-06    .11564E-02
  16  norm          .40796        .33606        .33744E-07   -.33870E-02
  17  Prefactor     10.402        1.7841       -.16088E-07   -.96769E-01
  18  Normalizat    1.3605        .15512       -.86505E-06    .32920E-03
  19  Prefactor     .74145        .13105       -.25300E-05    .29435E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  norm       = 0.789113
  Prefactor  = 0
  Prefactor  = 17.0026
  Prefactor  = 3.33067e-10
  Prefactor  = 6.00923
  Prefactor  = 0
  Prefactor  = 9.4369e-09
  Prefactor  = 8.16014e-09
  Prefactor  = 0
  norm       = 6.91869
  Prefactor  = 2.22045e-10
  Prefactor  = 1.45043
  Prefactor  = 4.51073
  Prefactor  = 1.17778
  norm       = 0.407957
  Prefactor  = 10.4017
  Normalizat = 1.36046
  Prefactor  = 0.741448
_V02
Working on...
/lscratch/kocevski/39457741/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits.....................!
real 49.17
user 47.35
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39457741/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits', '/lscratch/kocevski/39457741/ft2_4FGL_J1017.8+0715_weekly_bin947.fits', expMap='/lscratch/kocevski/39457741/expmap_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits', expCube='/lscratch/kocevski/39457741/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39457741/Model_4FGL_J1017.8+0715_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1017.8+0715'

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.924e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39457741/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39457741/ft2_4FGL_J1017.8+0715_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39457741/expmap_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39457741/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39457741/Model_4FGL_J1017.8+0715_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) = 11600.4289063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26357E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .78885       1.0000          .0000       .10000E+07
     3 'Prefactor '    .55789E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.804       1.0000          .0000       .10000E+07
     5 'Prefactor '    .82157E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0023       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15665E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .56838E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .49754E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10562E-02   1.0000          .0000       .10000E+07
    11 'norm      '    6.9188       1.0000          .0000       .10000E+07
    12 'Prefactor '    .60870E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4507       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.5107       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.1750       1.0000          .0000       .10000E+07
    16 'norm      '    .40806       1.0000          .0000       .10000E+07
    17 'Prefactor '    10.354       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3605       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .74141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11600.31     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1137 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    1.0876        .29252E-06** at limit **
   2  norm          .78911        .40691       -.13523E-07    .58849E-02
   3  Prefactor      .0000        2.4975        .76243E-07** at limit **
   4  Prefactor     17.003        19.928       -.13342E-06    .95374E-02
   5  Prefactor     .33307E-09    9.5113       -.32354E-06** at limit **
   6  Prefactor     6.0092        5.7317       -.33881E-06    .24182E-02
   7  Prefactor      .0000        21.556        .15245E-06** at limit **
   8  Prefactor     .94369E-08    58.335       -.33685E-05** at limit **
   9  Prefactor     .81601E-08    .78281       -.48317E-08** at limit **
  10  Prefactor      .0000        5.1613       -.80889E-07** at limit **
  11  norm          6.9187        1.5068        .40174E-07   -.28706E-02
  12  Prefactor     .22204E-09    4.1869        .45663E-06** at limit **
  13  Prefactor     1.4504        1.9611        .16665E-06   -.13610E-02
  14  Prefactor     4.5107        4.0739       -.64371E-07    .10408E-02
  15  Prefactor     1.1778        4.5508       -.29131E-06    .11564E-02
  16  norm          .40796        .33606        .33744E-07   -.33870E-02
  17  Prefactor     10.402        1.7841       -.16088E-07   -.96769E-01
  18  Normalizat    1.3605        .15512       -.86505E-06    .32920E-03
  19  Prefactor     .74145        .13105       -.25300E-05    .29435E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  norm       = 0.789113
  Prefactor  = 0
  Prefactor  = 17.0026
  Prefactor  = 3.33067e-10
  Prefactor  = 6.00923
  Prefactor  = 0
  Prefactor  = 9.4369e-09
  Prefactor  = 8.16014e-09
  Prefactor  = 0
  norm       = 6.91869
  Prefactor  = 2.22045e-10
  Prefactor  = 1.45043
  Prefactor  = 4.51073
  Prefactor  = 1.17778
  norm       = 0.407957
  Prefactor  = 10.4017
  Normalizat = 1.36046
  Prefactor  = 0.741448
 **********
 **   18 **HESSE 
 **********

 FCN=   11600.31     FROM HESSE     STATUS=OK           314 CALLS     1451 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    .42544        .21911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .78911        .41092        .53770E-03   -1.5690    
   3  Prefactor      .0000        2.5043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.003        20.094        .24405E-03   -1.5625    
   5  Prefactor     .33307E-09    9.5405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0092        5.7791        .40960E-03   -1.5659    
   7  Prefactor      .0000        21.389        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .94369E-08    58.024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .81601E-08    68.840        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        5.1768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9187        1.5095        .38118E-03   -1.5655    
  12  Prefactor     .22204E-09    4.1610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4504        2.0020        .89413E-03   -1.5684    
  14  Prefactor     4.5107        4.0759        .47380E-03   -1.5665    
  15  Prefactor     1.1778        4.5978        .10565E-02   -1.5686    
  16  norm          .40796        .34008        .88559E-03   -1.5695    
  17  Prefactor     10.402        11.126        .31115E-03   -1.5643    
  18  Normalizat    1.3605        .13398        .52362E-01   -.81779    
  19  Prefactor     .74145        .11263        .42950E-01   -1.0192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24432e-07
Minuit parameter uncertainties:
  1  6.91629e-06
  2  0.410922
  3  1.07678e-05
  4  20.0939
  5  0.000108208
  6  5.77915
  7  2.48943e-05
  8  0.00147918
  9  0.0015003
  10  1.76586e-05
  11  1.50946
  12  5.74091e-05
  13  2.00205
  14  4.07586
  15  4.59781
  16  0.340079
  17  11.1256
  18  0.134012
  19  0.112663
 **********
 **   18 **HESSE 
 **********

 FCN=   11600.31     FROM HESSE     STATUS=OK           314 CALLS     1451 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    .42544        .21911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .78911        .41092        .53770E-03   -1.5690    
   3  Prefactor      .0000        2.5043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.003        20.094        .24405E-03   -1.5625    
   5  Prefactor     .33307E-09    9.5405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0092        5.7791        .40960E-03   -1.5659    
   7  Prefactor      .0000        21.389        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .94369E-08    58.024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .81601E-08    68.840        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        5.1768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9187        1.5095        .38118E-03   -1.5655    
  12  Prefactor     .22204E-09    4.1610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4504        2.0020        .89413E-03   -1.5684    
  14  Prefactor     4.5107        4.0759        .47380E-03   -1.5665    
  15  Prefactor     1.1778        4.5978        .10565E-02   -1.5686    
  16  norm          .40796        .34008        .88559E-03   -1.5695    
  17  Prefactor     10.402        11.126        .31115E-03   -1.5643    
  18  Normalizat    1.3605        .13398        .52362E-01   -.81779    
  19  Prefactor     .74145        .11263        .42950E-01   -1.0192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24432e-07
Minuit parameter uncertainties:
  1  6.91629e-06
  2  0.410922
  3  1.07678e-05
  4  20.0939
  5  0.000108208
  6  5.77915
  7  2.48943e-05
  8  0.00147918
  9  0.0015003
  10  1.76586e-05
  11  1.50946
  12  5.74091e-05
  13  2.00205
  14  4.07586
  15  4.59781
  16  0.340079
  17  11.1256
  18  0.134012
  19  0.112663
utfile=/lscratch/kocevski/39457883/ltcube_811728001_812332801_4FGL_J1017.8+0715_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/39457883/ft2_4FGL_J1017.8+0715_weekly_bin947.fits
.....................!
real 19.76
user 19.11
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39457883/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39457883/ft2_4FGL_J1017.8+0715_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39457883/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457883/expmap_811728001_812332801_4FGL_J1017.8+0715_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/39457883/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
.....................!
real 74.83
user 70.09
sys 4.03

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1017.8+0715 @ 154.473 7.2638

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39457883/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits scfile=/lscratch/kocevski/39457883/ft2_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457883/cmap_811728001_812332801_4FGL_J1017.8+0715_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=154.473 yref=7.2638 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.58
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39457883/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits scfile=/lscratch/kocevski/39457883/ft2_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457883/cmap_HighResolution_811728001_812332801_4FGL_J1017.8+0715_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=154.473 yref=7.2638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.72
user 0.27
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39457883/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39457883/ft2_4FGL_J1017.8+0715_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39457883/Model_4FGL_J1017.8+0715_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 GALDone.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  2.489e-05  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.414e-01  1.127e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.360e+00  1.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 5.06857203628e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.003997639865 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39457736/likelihoodResults_811728001_812332801_4FGL_J1017.8+0715_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): 102
logL (Free Index) = 11600.3133394
delta logL = 0.000219795263547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11599.8580296
delta logL = 0.455529616152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26744E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.7063       1.0000          .0000       10.000    
     3 'Normalizat'    1.3240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   11600.31     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      428 TOTAL
                     EDM=   .13E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        17.419        .42118E-03** at limit **
   2  Index         2.3873        1.3701        .80686E-07     .0000    
   3  Normalizat    1.3605        1.0870       -.11049E-06   -.19636E-04
   4  Prefactor     .74145        1.0977        .22097E-05   -.18608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.38727
  Normalizat = 1.36046
  Prefactor  = 0.741448
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11600.31     FROM HESSE     STATUS=FAILED         9 CALLS      437 TOTAL
                     EDM=   .13E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        17.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .63863        1.8873        .80686E-07   -251.88    
   3  Normalizat    1.3605        1.0870       -.11049E-06   -8.6070    
   4  Prefactor     .74145        1.0977        .22097E-05   -8.4055    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.27893e-13
Minuit parameter uncertainties:
  1  8.75517e-07
  2  1.39491
  3  1.10629
  4  1.1327
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  2.489e-05  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.414e-01  1.127e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.360e+00  1.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 5.06857203628e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.003997639865 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39457741/likelihoodResults_811728001_812332801_4FGL_J1017.8+0715_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): 102
logL (Free Index) = 11600.3133394
delta logL = 0.000219795263547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11599.8580296
delta logL = 0.455529616152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26744E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.7063       1.0000          .0000       10.000    
     3 'Normalizat'    1.3240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   11600.31     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      428 TOTAL
                     EDM=   .13E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        17.419        .42118E-03** at limit **
   2  Index         2.3873        1.3701        .80686E-07     .0000    
   3  Normalizat    1.3605        1.0870       -.11049E-06   -.19636E-04
   4  Prefactor     .74145        1.0977        .22097E-05   -.18608E-04
                               ERR DEF=  .500    
Final values: 
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
  Prefactor  = 0
  Index      = 2.38727
  Normalizat = 1.36046
  Prefactor  = 0.741448
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 11600.3135592
delta logL = 2.91038304567e-11

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  8.755e-07  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.387e+00  1.395e+00  0.000e+00  1.000e+01 (-1.000e+00)
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.414e-01  1.133e+00  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.360e+00  1.106e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 154.473 7.264

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/39457736/cmap_HighResolution_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2026-09-29 12:22:52.911226', job_id='39457736', GAL2='0.74', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1790709772.91', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.91e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='947' AND source_name='4FGL J1017.8+0715' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 12:22:55 PDT 2026

 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11600.31     FROM HESSE     STATUS=FAILED         9 CALLS      437 TOTAL
                     EDM=   .13E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        17.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .63863        1.8873        .80686E-07   -251.88    
   3  Normalizat    1.3605        1.0870       -.11049E-06   -8.6070    
   4  Prefactor     .74145        1.0977        .22097E-05   -8.4055    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.27893e-13
Minuit parameter uncertainties:
  1  8.75517e-07
  2  1.39491
  3  1.10629
  4  1.1327
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) = 11600.3135592
delta logL = 2.91038304567e-11

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  8.755e-07  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.387e+00  1.395e+00  0.000e+00  1.000e+01 (-1.000e+00)
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.414e-01  1.133e+00  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.360e+00  1.106e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 154.473 7.264

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/39457741/cmap_HighResolution_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2026-09-29 12:22:58.001196', job_id='39457741', GAL2='0.74', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1790709778.0', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.91e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='947' AND source_name='4FGL J1017.8+0715' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 12:22:58 PDT 2026

utfile=/lscratch/kocevski/39457903/ltcube_811728001_812332801_4FGL_J1017.8+0715_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/39457903/ft2_4FGL_J1017.8+0715_weekly_bin947.fits
.....................!
real 18.45
user 17.83
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39457903/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39457903/ft2_4FGL_J1017.8+0715_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39457903/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457903/expmap_811728001_812332801_4FGL_J1017.8+0715_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/39457903/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
.....................!
real 70.85
user 65.95
sys 4.16

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1017.8+0715 @ 154.473 7.2638

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39457903/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits scfile=/lscratch/kocevski/39457903/ft2_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457903/cmap_811728001_812332801_4FGL_J1017.8+0715_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=154.473 yref=7.2638 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.70
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39457903/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits scfile=/lscratch/kocevski/39457903/ft2_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457903/cmap_HighResolution_811728001_812332801_4FGL_J1017.8+0715_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=154.473 yref=7.2638 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.58
user 0.26
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39457903/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39457903/ft2_4FGL_J1017.8+0715_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39457903/Model_4FGL_J1017.8+0715_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 GALutfile=/lscratch/kocevski/39457902/ltcube_811728001_812332801_4FGL_J1017.8+0715_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/39457902/ft2_4FGL_J1017.8+0715_weekly_bin947.fits
.....................!
real 22.79
user 21.79
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39457902/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39457902/ft2_4FGL_J1017.8+0715_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39457902/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457902/expmap_811728001_812332801_4FGL_J1017.8+0715_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/39457902/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
.....................!
real 81.62
user 76.37
sys 4.62

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1017.8+0715 @ 154.473 7.2638

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39457902/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits scfile=/lscratch/kocevski/39457902/ft2_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457902/cmap_811728001_812332801_4FGL_J1017.8+0715_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=154.473 yref=7.2638 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.57
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39457902/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits scfile=/lscratch/kocevski/39457902/ft2_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457902/cmap_HighResolution_811728001_812332801_4FGL_J1017.8+0715_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=154.473 yref=7.2638 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.59
user 0.28
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39457902/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39457902/ft2_4FGL_J1017.8+0715_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39457902/Model_4FGL_J1017.8+0715_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 GALutfile=/lscratch/kocevski/39457947/ltcube_811728001_812332801_4FGL_J1017.8+0715_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/39457947/ft2_4FGL_J1017.8+0715_weekly_bin947.fits
.....................!
real 25.66
user 24.87
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39457947/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39457947/ft2_4FGL_J1017.8+0715_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39457947/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457947/expmap_811728001_812332801_4FGL_J1017.8+0715_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/39457947/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
.....................!
real 78.08
user 72.88
sys 4.43

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1017.8+0715 @ 154.473 7.2638

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39457947/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits scfile=/lscratch/kocevski/39457947/ft2_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457947/cmap_811728001_812332801_4FGL_J1017.8+0715_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=154.473 yref=7.2638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.72
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39457947/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits scfile=/lscratch/kocevski/39457947/ft2_4FGL_J1017.8+0715_weekly_bin947.fits outfile=/lscratch/kocevski/39457947/cmap_HighResolution_811728001_812332801_4FGL_J1017.8+0715_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=154.473 yref=7.2638 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.58
user 0.30
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39457947/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39457947/ft2_4FGL_J1017.8+0715_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39457947/Model_4FGL_J1017.8+0715_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
Working on...
/lscratch/kocevski/39457883/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits.....................!
real 43.97
user 42.68
sys 0.72

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39457883/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits', '/lscratch/kocevski/39457883/ft2_4FGL_J1017.8+0715_weekly_bin947.fits', expMap='/lscratch/kocevski/39457883/expmap_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits', expCube='/lscratch/kocevski/39457883/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39457883/Model_4FGL_J1017.8+0715_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1017.8+0715'

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.924e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39457883/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39457883/ft2_4FGL_J1017.8+0715_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39457883/expmap_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39457883/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39457883/Model_4FGL_J1017.8+0715_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) = 11600.4289063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26357E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .78885       1.0000          .0000       .10000E+07
     3 'Prefactor '    .55789E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.804       1.0000          .0000       .10000E+07
     5 'Prefactor '    .82157E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0023       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15665E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .56838E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .49754E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10562E-02   1.0000          .0000       .10000E+07
    11 'norm      '    6.9188       1.0000          .0000       .10000E+07
    12 'Prefactor '    .60870E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4507       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.5107       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.1750       1.0000          .0000       .10000E+07
    16 'norm      '    .40806       1.0000          .0000       .10000E+07
    17 'Prefactor '    10.354       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3605       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .74141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11600.31     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1137 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    1.0876        .29252E-06** at limit **
   2  norm          .78911        .40691       -.13523E-07    .58849E-02
   3  Prefactor      .0000        2.4975        .76243E-07** at limit **
   4  Prefactor     17.003        19.928       -.13342E-06    .95374E-02
   5  Prefactor     .33307E-09    9.5113       -.32354E-06** at limit **
   6  Prefactor     6.0092        5.7317       -.33881E-06    .24182E-02
   7  Prefactor      .0000        21.556        .15245E-06** at limit **
   8  Prefactor     .94369E-08    58.335       -.33685E-05** at limit **
   9  Prefactor     .81601E-08    .78281       -.48317E-08** at limit **
  10  Prefactor      .0000        5.1613       -.80889E-07** at limit **
  11  norm          6.9187        1.5068        .40174E-07   -.28706E-02
  12  Prefactor     .22204E-09    4.1869        .45663E-06** at limit **
  13  Prefactor     1.4504        1.9611        .16665E-06   -.13610E-02
  14  Prefactor     4.5107        4.0739       -.64371E-07    .10408E-02
  15  Prefactor     1.1778        4.5508       -.29131E-06    .11564E-02
  16  norm          .40796        .33606        .33744E-07   -.33870E-02
  17  Prefactor     10.402        1.7841       -.16088E-07   -.96769E-01
  18  Normalizat    1.3605        .15512       -.86505E-06    .32920E-03
  19  Prefactor     .74145        .13105       -.25300E-05    .29435E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  norm       = 0.789113
  Prefactor  = 0
  Prefactor  = 17.0026
  Prefactor  = 3.33067e-10
  Prefactor  = 6.00923
  Prefactor  = 0
  Prefactor  = 9.4369e-09
  Prefactor  = 8.16014e-09
  Prefactor  = 0
  norm       = 6.91869
  Prefactor  = 2.22045e-10
  Prefactor  = 1.45043
  Prefactor  = 4.51073
  Prefactor  = 1.17778
  norm       = 0.407957
  Prefactor  = 10.4017
  Normalizat = 1.36046
  Prefactor  = 0.741448
_V02
Working on...
/lscratch/kocevski/39457903/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits.....................!
real 41.58
user 40.03
sys 0.61

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39457903/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits', '/lscratch/kocevski/39457903/ft2_4FGL_J1017.8+0715_weekly_bin947.fits', expMap='/lscratch/kocevski/39457903/expmap_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits', expCube='/lscratch/kocevski/39457903/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39457903/Model_4FGL_J1017.8+0715_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1017.8+0715'

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.924e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39457903/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39457903/ft2_4FGL_J1017.8+0715_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39457903/expmap_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39457903/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39457903/Model_4FGL_J1017.8+0715_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) = 11600.4289063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26357E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .78885       1.0000          .0000       .10000E+07
     3 'Prefactor '    .55789E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.804       1.0000          .0000       .10000E+07
     5 'Prefactor '    .82157E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0023       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15665E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .56838E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .49754E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10562E-02   1.0000          .0000       .10000E+07
    11 'norm      '    6.9188       1.0000          .0000       .10000E+07
    12 'Prefactor '    .60870E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4507       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.5107       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.1750       1.0000          .0000       .10000E+07
    16 'norm      '    .40806       1.0000          .0000       .10000E+07
    17 'Prefactor '    10.354       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3605       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .74141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11600.31     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1137 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    1.0876        .29252E-06** at limit **
   2  norm          .78911        .40691       -.13523E-07    .58849E-02
   3  Prefactor      .0000        2.4975        .76243E-07** at limit **
   4  Prefactor     17.003        19.928       -.13342E-06    .95374E-02
   5  Prefactor     .33307E-09    9.5113       -.32354E-06** at limit **
   6  Prefactor     6.0092        5.7317       -.33881E-06    .24182E-02
   7  Prefactor      .0000        21.556        .15245E-06** at limit **
   8  Prefactor     .94369E-08    58.335       -.33685E-05** at limit **
   9  Prefactor     .81601E-08    .78281       -.48317E-08** at limit **
  10  Prefactor      .0000        5.1613       -.80889E-07** at limit **
  11  norm          6.9187        1.5068        .40174E-07   -.28706E-02
  12  Prefactor     .22204E-09    4.1869        .45663E-06** at limit **
  13  Prefactor     1.4504        1.9611        .16665E-06   -.13610E-02
  14  Prefactor     4.5107        4.0739       -.64371E-07    .10408E-02
  15  Prefactor     1.1778        4.5508       -.29131E-06    .11564E-02
  16  norm          .40796        .33606        .33744E-07   -.33870E-02
  17  Prefactor     10.402        1.7841       -.16088E-07   -.96769E-01
  18  Normalizat    1.3605        .15512       -.86505E-06    .32920E-03
  19  Prefactor     .74145        .13105       -.25300E-05    .29435E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  norm       = 0.789113
  Prefactor  = 0
  Prefactor  = 17.0026
  Prefactor  = 3.33067e-10
  Prefactor  = 6.00923
  Prefactor  = 0
  Prefactor  = 9.4369e-09
  Prefactor  = 8.16014e-09
  Prefactor  = 0
  norm       = 6.91869
  Prefactor  = 2.22045e-10
  Prefactor  = 1.45043
  Prefactor  = 4.51073
  Prefactor  = 1.17778
  norm       = 0.407957
  Prefactor  = 10.4017
  Normalizat = 1.36046
  Prefactor  = 0.741448
 **********
 **   18 **HESSE 
 **********

 FCN=   11600.31     FROM HESSE     STATUS=OK           314 CALLS     1451 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    .42544        .21911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .78911        .41092        .53770E-03   -1.5690    
   3  Prefactor      .0000        2.5043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.003        20.094        .24405E-03   -1.5625    
   5  Prefactor     .33307E-09    9.5405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0092        5.7791        .40960E-03   -1.5659    
   7  Prefactor      .0000        21.389        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .94369E-08    58.024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .81601E-08    68.840        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        5.1768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9187        1.5095        .38118E-03   -1.5655    
  12  Prefactor     .22204E-09    4.1610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4504        2.0020        .89413E-03   -1.5684    
  14  Prefactor     4.5107        4.0759        .47380E-03   -1.5665    
  15  Prefactor     1.1778        4.5978        .10565E-02   -1.5686    
  16  norm          .40796        .34008        .88559E-03   -1.5695    
  17  Prefactor     10.402        11.126        .31115E-03   -1.5643    
  18  Normalizat    1.3605        .13398        .52362E-01   -.81779    
  19  Prefactor     .74145        .11263        .42950E-01   -1.0192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24432e-07
Minuit parameter uncertainties:
  1  6.91629e-06
  2  0.410922
  3  1.07678e-05
  4  20.0939
  5  0.000108208
  6  5.77915
  7  2.48943e-05
  8  0.00147918
  9  0.0015003
  10  1.76586e-05
  11  1.50946
  12  5.74091e-05
  13  2.00205
  14  4.07586
  15  4.59781
  16  0.340079
  17  11.1256
  18  0.134012
  19  0.112663
 **********
 **   18 **HESSE 
 **********

 FCN=   11600.31     FROM HESSE     STATUS=OK           314 CALLS     1451 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    .42544        .21911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .78911        .41092        .53770E-03   -1.5690    
   3  Prefactor      .0000        2.5043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.003        20.094        .24405E-03   -1.5625    
   5  Prefactor     .33307E-09    9.5405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0092        5.7791        .40960E-03   -1.5659    
   7  Prefactor      .0000        21.389        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .94369E-08    58.024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .81601E-08    68.840        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        5.1768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9187        1.5095        .38118E-03   -1.5655    
  12  Prefactor     .22204E-09    4.1610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4504        2.0020        .89413E-03   -1.5684    
  14  Prefactor     4.5107        4.0759        .47380E-03   -1.5665    
  15  Prefactor     1.1778        4.5978        .10565E-02   -1.5686    
  16  norm          .40796        .34008        .88559E-03   -1.5695    
  17  Prefactor     10.402        11.126        .31115E-03   -1.5643    
  18  Normalizat    1.3605        .13398        .52362E-01   -.81779    
  19  Prefactor     .74145        .11263        .42950E-01   -1.0192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24432e-07
Minuit parameter uncertainties:
  1  6.91629e-06
  2  0.410922
  3  1.07678e-05
  4  20.0939
  5  0.000108208
  6  5.77915
  7  2.48943e-05
  8  0.00147918
  9  0.0015003
  10  1.76586e-05
  11  1.50946
  12  5.74091e-05
  13  2.00205
  14  4.07586
  15  4.59781
  16  0.340079
  17  11.1256
  18  0.134012
  19  0.112663
_V02
Working on...
/lscratch/kocevski/39457902/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits.....................!
real 48.38
user 46.56
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39457902/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits', '/lscratch/kocevski/39457902/ft2_4FGL_J1017.8+0715_weekly_bin947.fits', expMap='/lscratch/kocevski/39457902/expmap_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits', expCube='/lscratch/kocevski/39457902/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39457902/Model_4FGL_J1017.8+0715_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1017.8+0715'

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.924e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39457902/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39457902/ft2_4FGL_J1017.8+0715_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39457902/expmap_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39457902/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39457902/Model_4FGL_J1017.8+0715_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) = 11600.4289063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26357E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .78885       1.0000          .0000       .10000E+07
     3 'Prefactor '    .55789E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.804       1.0000          .0000       .10000E+07
     5 'Prefactor '    .82157E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0023       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15665E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .56838E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .49754E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10562E-02   1.0000          .0000       .10000E+07
    11 'norm      '    6.9188       1.0000          .0000       .10000E+07
    12 'Prefactor '    .60870E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4507       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.5107       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.1750       1.0000          .0000       .10000E+07
    16 'norm      '    .40806       1.0000          .0000       .10000E+07
    17 'Prefactor '    10.354       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3605       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .74141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11600.31     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1137 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    1.0876        .29252E-06** at limit **
   2  norm          .78911        .40691       -.13523E-07    .58849E-02
   3  Prefactor      .0000        2.4975        .76243E-07** at limit **
   4  Prefactor     17.003        19.928       -.13342E-06    .95374E-02
   5  Prefactor     .33307E-09    9.5113       -.32354E-06** at limit **
   6  Prefactor     6.0092        5.7317       -.33881E-06    .24182E-02
   7  Prefactor      .0000        21.556        .15245E-06** at limit **
   8  Prefactor     .94369E-08    58.335       -.33685E-05** at limit **
   9  Prefactor     .81601E-08    .78281       -.48317E-08** at limit **
  10  Prefactor      .0000        5.1613       -.80889E-07** at limit **
  11  norm          6.9187        1.5068        .40174E-07   -.28706E-02
  12  Prefactor     .22204E-09    4.1869        .45663E-06** at limit **
  13  Prefactor     1.4504        1.9611        .16665E-06   -.13610E-02
  14  Prefactor     4.5107        4.0739       -.64371E-07    .10408E-02
  15  Prefactor     1.1778        4.5508       -.29131E-06    .11564E-02
  16  norm          .40796        .33606        .33744E-07   -.33870E-02
  17  Prefactor     10.402        1.7841       -.16088E-07   -.96769E-01
  18  Normalizat    1.3605        .15512       -.86505E-06    .32920E-03
  19  Prefactor     .74145        .13105       -.25300E-05    .29435E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  norm       = 0.789113
  Prefactor  = 0
  Prefactor  = 17.0026
  Prefactor  = 3.33067e-10
  Prefactor  = 6.00923
  Prefactor  = 0
  Prefactor  = 9.4369e-09
  Prefactor  = 8.16014e-09
  Prefactor  = 0
  norm       = 6.91869
  Prefactor  = 2.22045e-10
  Prefactor  = 1.45043
  Prefactor  = 4.51073
  Prefactor  = 1.17778
  norm       = 0.407957
  Prefactor  = 10.4017
  Normalizat = 1.36046
  Prefactor  = 0.741448
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  2.489e-05  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.414e-01  1.127e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.360e+00  1.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 5.06857203628e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.003997639865 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39457883/likelihoodResults_811728001_812332801_4FGL_J1017.8+0715_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): 102
logL (Free Index) = 11600.3133394
delta logL = 0.000219795263547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11599.8580296
delta logL = 0.455529616152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26744E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.7063       1.0000          .0000       10.000    
     3 'Normalizat'    1.3240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   11600.31     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      428 TOTAL
                     EDM=   .13E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        17.419        .42118E-03** at limit **
   2  Index         2.3873        1.3701        .80686E-07     .0000    
   3  Normalizat    1.3605        1.0870       -.11049E-06   -.19636E-04
   4  Prefactor     .74145        1.0977        .22097E-05   -.18608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.38727
  Normalizat = 1.36046
  Prefactor  = 0.741448
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11600.31     FROM HESSE     STATUS=FAILED         9 CALLS      437 TOTAL
                     EDM=   .13E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        17.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .63863        1.8873        .80686E-07   -251.88    
   3  Normalizat    1.3605        1.0870       -.11049E-06   -8.6070    
   4  Prefactor     .74145        1.0977        .22097E-05   -8.4055    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.27893e-13
Minuit parameter uncertainties:
  1  8.75517e-07
  2  1.39491
  3  1.10629
  4  1.1327
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) = 11600.3135592
delta logL = 2.91038304567e-11

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  8.755e-07  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.387e+00  1.395e+00  0.000e+00  1.000e+01 (-1.000e+00)
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.414e-01  1.133e+00  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.360e+00  1.106e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 154.473 7.264

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/39457883/cmap_HighResolution_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2026-09-29 12:25:23.921932', job_id='39457883', GAL2='0.74', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1790709923.92', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.91e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='947' AND source_name='4FGL J1017.8+0715' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 12:25:23 PDT 2026

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

 FCN=   11600.31     FROM HESSE     STATUS=OK           314 CALLS     1451 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    .42544        .21911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .78911        .41092        .53770E-03   -1.5690    
   3  Prefactor      .0000        2.5043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.003        20.094        .24405E-03   -1.5625    
   5  Prefactor     .33307E-09    9.5405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0092        5.7791        .40960E-03   -1.5659    
   7  Prefactor      .0000        21.389        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .94369E-08    58.024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .81601E-08    68.840        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        5.1768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9187        1.5095        .38118E-03   -1.5655    
  12  Prefactor     .22204E-09    4.1610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4504        2.0020        .89413E-03   -1.5684    
  14  Prefactor     4.5107        4.0759        .47380E-03   -1.5665    
  15  Prefactor     1.1778        4.5978        .10565E-02   -1.5686    
  16  norm          .40796        .34008        .88559E-03   -1.5695    
  17  Prefactor     10.402        11.126        .31115E-03   -1.5643    
  18  Normalizat    1.3605        .13398        .52362E-01   -.81779    
  19  Prefactor     .74145        .11263        .42950E-01   -1.0192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24432e-07
Minuit parameter uncertainties:
  1  6.91629e-06
  2  0.410922
  3  1.07678e-05
  4  20.0939
  5  0.000108208
  6  5.77915
  7  2.48943e-05
  8  0.00147918
  9  0.0015003
  10  1.76586e-05
  11  1.50946
  12  5.74091e-05
  13  2.00205
  14  4.07586
  15  4.59781
  16  0.340079
  17  11.1256
  18  0.134012
  19  0.112663
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  2.489e-05  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.414e-01  1.127e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.360e+00  1.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 5.06857203628e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.003997639865 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39457903/likelihoodResults_811728001_812332801_4FGL_J1017.8+0715_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): 102
logL (Free Index) = 11600.3133394
delta logL = 0.000219795263547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11599.8580296
delta logL = 0.455529616152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26744E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.7063       1.0000          .0000       10.000    
     3 'Normalizat'    1.3240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   11600.31     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      428 TOTAL
                     EDM=   .13E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        17.419        .42118E-03** at limit **
   2  Index         2.3873        1.3701        .80686E-07     .0000    
   3  Normalizat    1.3605        1.0870       -.11049E-06   -.19636E-04
   4  Prefactor     .74145        1.0977        .22097E-05   -.18608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.38727
  Normalizat = 1.36046
  Prefactor  = 0.741448
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11600.31     FROM HESSE     STATUS=FAILED         9 CALLS      437 TOTAL
                     EDM=   .13E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        17.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .63863        1.8873        .80686E-07   -251.88    
   3  Normalizat    1.3605        1.0870       -.11049E-06   -8.6070    
   4  Prefactor     .74145        1.0977        .22097E-05   -8.4055    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.27893e-13
Minuit parameter uncertainties:
  1  8.75517e-07
  2  1.39491
  3  1.10629
  4  1.1327
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) = 11600.3135592
delta logL = 2.91038304567e-11

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  8.755e-07  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.387e+00  1.395e+00  0.000e+00  1.000e+01 (-1.000e+00)
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.414e-01  1.133e+00  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.360e+00  1.106e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 154.473 7.264

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/39457903/cmap_HighResolution_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2026-09-29 12:25:31.959866', job_id='39457903', GAL2='0.74', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1790709931.96', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.91e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='947' AND source_name='4FGL J1017.8+0715' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 12:25:32 PDT 2026

_V02
Working on...
/lscratch/kocevski/39457947/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits.....................!
real 45.28
user 43.99
sys 0.73

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39457947/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits', '/lscratch/kocevski/39457947/ft2_4FGL_J1017.8+0715_weekly_bin947.fits', expMap='/lscratch/kocevski/39457947/expmap_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits', expCube='/lscratch/kocevski/39457947/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39457947/Model_4FGL_J1017.8+0715_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1017.8+0715'

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.924e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39457947/ft1_filtered_4FGL_J1017.8+0715_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39457947/ft2_4FGL_J1017.8+0715_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39457947/expmap_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39457947/ltcube_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39457947/Model_4FGL_J1017.8+0715_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) = 11600.4289063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26357E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .78885       1.0000          .0000       .10000E+07
     3 'Prefactor '    .55789E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.804       1.0000          .0000       .10000E+07
     5 'Prefactor '    .82157E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0023       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15665E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .56838E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .49754E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10562E-02   1.0000          .0000       .10000E+07
    11 'norm      '    6.9188       1.0000          .0000       .10000E+07
    12 'Prefactor '    .60870E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4507       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.5107       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.1750       1.0000          .0000       .10000E+07
    16 'norm      '    .40806       1.0000          .0000       .10000E+07
    17 'Prefactor '    10.354       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3605       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .74141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11600.31     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1137 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    1.0876        .29252E-06** at limit **
   2  norm          .78911        .40691       -.13523E-07    .58849E-02
   3  Prefactor      .0000        2.4975        .76243E-07** at limit **
   4  Prefactor     17.003        19.928       -.13342E-06    .95374E-02
   5  Prefactor     .33307E-09    9.5113       -.32354E-06** at limit **
   6  Prefactor     6.0092        5.7317       -.33881E-06    .24182E-02
   7  Prefactor      .0000        21.556        .15245E-06** at limit **
   8  Prefactor     .94369E-08    58.335       -.33685E-05** at limit **
   9  Prefactor     .81601E-08    .78281       -.48317E-08** at limit **
  10  Prefactor      .0000        5.1613       -.80889E-07** at limit **
  11  norm          6.9187        1.5068        .40174E-07   -.28706E-02
  12  Prefactor     .22204E-09    4.1869        .45663E-06** at limit **
  13  Prefactor     1.4504        1.9611        .16665E-06   -.13610E-02
  14  Prefactor     4.5107        4.0739       -.64371E-07    .10408E-02
  15  Prefactor     1.1778        4.5508       -.29131E-06    .11564E-02
  16  norm          .40796        .33606        .33744E-07   -.33870E-02
  17  Prefactor     10.402        1.7841       -.16088E-07   -.96769E-01
  18  Normalizat    1.3605        .15512       -.86505E-06    .32920E-03
  19  Prefactor     .74145        .13105       -.25300E-05    .29435E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  norm       = 0.789113
  Prefactor  = 0
  Prefactor  = 17.0026
  Prefactor  = 3.33067e-10
  Prefactor  = 6.00923
  Prefactor  = 0
  Prefactor  = 9.4369e-09
  Prefactor  = 8.16014e-09
  Prefactor  = 0
  norm       = 6.91869
  Prefactor  = 2.22045e-10
  Prefactor  = 1.45043
  Prefactor  = 4.51073
  Prefactor  = 1.17778
  norm       = 0.407957
  Prefactor  = 10.4017
  Normalizat = 1.36046
  Prefactor  = 0.741448
 **********
 **   18 **HESSE 
 **********

 FCN=   11600.31     FROM HESSE     STATUS=OK           314 CALLS     1451 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    .42544        .21911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .78911        .41092        .53770E-03   -1.5690    
   3  Prefactor      .0000        2.5043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.003        20.094        .24405E-03   -1.5625    
   5  Prefactor     .33307E-09    9.5405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0092        5.7791        .40960E-03   -1.5659    
   7  Prefactor      .0000        21.389        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .94369E-08    58.024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .81601E-08    68.840        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        5.1768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9187        1.5095        .38118E-03   -1.5655    
  12  Prefactor     .22204E-09    4.1610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4504        2.0020        .89413E-03   -1.5684    
  14  Prefactor     4.5107        4.0759        .47380E-03   -1.5665    
  15  Prefactor     1.1778        4.5978        .10565E-02   -1.5686    
  16  norm          .40796        .34008        .88559E-03   -1.5695    
  17  Prefactor     10.402        11.126        .31115E-03   -1.5643    
  18  Normalizat    1.3605        .13398        .52362E-01   -.81779    
  19  Prefactor     .74145        .11263        .42950E-01   -1.0192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24432e-07
Minuit parameter uncertainties:
  1  6.91629e-06
  2  0.410922
  3  1.07678e-05
  4  20.0939
  5  0.000108208
  6  5.77915
  7  2.48943e-05
  8  0.00147918
  9  0.0015003
  10  1.76586e-05
  11  1.50946
  12  5.74091e-05
  13  2.00205
  14  4.07586
  15  4.59781
  16  0.340079
  17  11.1256
  18  0.134012
  19  0.112663
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  2.489e-05  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.414e-01  1.127e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.360e+00  1.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 5.06857203628e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.003997639865 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39457902/likelihoodResults_811728001_812332801_4FGL_J1017.8+0715_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): 102
logL (Free Index) = 11600.3133394
delta logL = 0.000219795263547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11599.8580296
delta logL = 0.455529616152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26744E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.7063       1.0000          .0000       10.000    
     3 'Normalizat'    1.3240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   11600.31     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      428 TOTAL
                     EDM=   .13E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        17.419        .42118E-03** at limit **
   2  Index         2.3873        1.3701        .80686E-07     .0000    
   3  Normalizat    1.3605        1.0870       -.11049E-06   -.19636E-04
   4  Prefactor     .74145        1.0977        .22097E-05   -.18608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.38727
  Normalizat = 1.36046
  Prefactor  = 0.741448
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11600.31     FROM HESSE     STATUS=FAILED         9 CALLS      437 TOTAL
                     EDM=   .13E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        17.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .63863        1.8873        .80686E-07   -251.88    
   3  Normalizat    1.3605        1.0870       -.11049E-06   -8.6070    
   4  Prefactor     .74145        1.0977        .22097E-05   -8.4055    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.27893e-13
Minuit parameter uncertainties:
  1  8.75517e-07
  2  1.39491
  3  1.10629
  4  1.1327
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) = 11600.3135592
delta logL = 2.91038304567e-11

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  8.755e-07  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.387e+00  1.395e+00  0.000e+00  1.000e+01 (-1.000e+00)
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.414e-01  1.133e+00  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.360e+00  1.106e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 154.473 7.264

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/39457902/cmap_HighResolution_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2026-09-29 12:26:16.675242', job_id='39457902', GAL2='0.74', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1790709976.68', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.91e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='947' AND source_name='4FGL J1017.8+0715' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 12:26:16 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  2.489e-05  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.414e-01  1.127e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.360e+00  1.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 5.06857203628e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.003997639865 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39457947/likelihoodResults_811728001_812332801_4FGL_J1017.8+0715_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): 102
logL (Free Index) = 11600.3133394
delta logL = 0.000219795263547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11599.8580296
delta logL = 0.455529616152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26744E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.7063       1.0000          .0000       10.000    
     3 'Normalizat'    1.3240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   11600.31     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      428 TOTAL
                     EDM=   .13E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        17.419        .42118E-03** at limit **
   2  Index         2.3873        1.3701        .80686E-07     .0000    
   3  Normalizat    1.3605        1.0870       -.11049E-06   -.19636E-04
   4  Prefactor     .74145        1.0977        .22097E-05   -.18608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.38727
  Normalizat = 1.36046
  Prefactor  = 0.741448
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11600.31     FROM HESSE     STATUS=FAILED         9 CALLS      437 TOTAL
                     EDM=   .13E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        17.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .63863        1.8873        .80686E-07   -251.88    
   3  Normalizat    1.3605        1.0870       -.11049E-06   -8.6070    
   4  Prefactor     .74145        1.0977        .22097E-05   -8.4055    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.27893e-13
Minuit parameter uncertainties:
  1  8.75517e-07
  2  1.39491
  3  1.10629
  4  1.1327
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) = 11600.3135592
delta logL = 2.91038304567e-11

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  8.755e-07  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.387e+00  1.395e+00  0.000e+00  1.000e+01 (-1.000e+00)
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.414e-01  1.133e+00  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.360e+00  1.106e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 154.473 7.264

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/39457947/cmap_HighResolution_811728001_812332801_4FGL_J1017.8+0715_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2026-09-29 12:26:42.193434', job_id='39457947', GAL2='0.74', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1790710002.19', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.91e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='947' AND source_name='4FGL J1017.8+0715' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 12:26:42 PDT 2026

