/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_J1058.6+2817_weekly_bin947
RA = 164.65, Dec = 28.2866
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='39460410', job_status='RUN', time_executed='2026-09-29 13:00:54.075479', time_epoch_executed='1790712054.08' WHERE source_name='4FGL J1058.6+2817' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39460410

Creating custom pfile directory:
/lscratch/kocevski/39460410/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/39460410/ft1_4FGL_J1058.6+2817_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/39460410/ft2_4FGL_J1058.6+2817_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39460410/ft1_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460410/ft1_filteredMKT_4FGL_J1058.6+2817_weekly_bin947.fits ra=164.65 dec=28.2866 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.82
user 6.28
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39460410/ft2_4FGL_J1058.6+2817_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39460410/ft2_4FGL_J1058.6+2817_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/39460410/ft1_filteredMKT_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39460410/ft1_filtered_4FGL_J1058.6+2817_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.53
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 1294

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39460410/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39460410/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" outfile=/lscratch/kocevski/39460244/ltcube_811728001_812332801_4FGL_J1058.6+2817_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/39460244/ft2_4FGL_J1058.6+2817_weekly_bin947.fits
.....................!
real 15.85
user 15.26
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39460244/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460244/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39460244/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460244/expmap_811728001_812332801_4FGL_J1058.6+2817_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/39460244/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
.....................!
real 67.57
user 62.97
sys 3.92

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

Setting source of interest to:
4FGL J1058.6+2817 @ 164.65 28.2866

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39460244/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits scfile=/lscratch/kocevski/39460244/ft2_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460244/cmap_811728001_812332801_4FGL_J1058.6+2817_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=164.65 yref=28.2866 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.65
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39460244/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits scfile=/lscratch/kocevski/39460244/ft2_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460244/cmap_HighResolution_811728001_812332801_4FGL_J1058.6+2817_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=164.65 yref=28.2866 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.68
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39460244/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460244/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39460244/Model_4FGL_J1058.6+2817_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 GALnumber of points = 17526
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1058.6+2817_weekly_bin947
RA = 164.65, Dec = 28.2866
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='39460536', job_status='RUN', time_executed='2026-09-29 13:01:47.109302', time_epoch_executed='1790712107.11' WHERE source_name='4FGL J1058.6+2817' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39460536

Creating custom pfile directory:
/lscratch/kocevski/39460536/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/39460536/ft1_4FGL_J1058.6+2817_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/39460536/ft2_4FGL_J1058.6+2817_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39460536/ft1_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460536/ft1_filteredMKT_4FGL_J1058.6+2817_weekly_bin947.fits ra=164.65 dec=28.2866 rad=12.0 tmin=811728001.0 tmax=812332801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.38
user 4.83
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39460536/ft2_4FGL_J1058.6+2817_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39460536/ft2_4FGL_J1058.6+2817_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/39460536/ft1_filteredMKT_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39460536/ft1_filtered_4FGL_J1058.6+2817_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.53
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1294

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39460536/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39460536/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" otfile=/lscratch/kocevski/39460246/ltcube_811728001_812332801_4FGL_J1058.6+2817_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/39460246/ft2_4FGL_J1058.6+2817_weekly_bin947.fits
.....................!
real 19.42
user 18.71
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39460246/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460246/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39460246/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460246/expmap_811728001_812332801_4FGL_J1058.6+2817_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/39460246/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
.....................!
real 73.44
user 68.18
sys 4.39

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

Setting source of interest to:
4FGL J1058.6+2817 @ 164.65 28.2866

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39460246/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits scfile=/lscratch/kocevski/39460246/ft2_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460246/cmap_811728001_812332801_4FGL_J1058.6+2817_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=164.65 yref=28.2866 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.10

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39460246/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits scfile=/lscratch/kocevski/39460246/ft2_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460246/cmap_HighResolution_811728001_812332801_4FGL_J1058.6+2817_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=164.65 yref=28.2866 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.73
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39460246/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460246/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39460246/Model_4FGL_J1058.6+2817_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_number of points = 17526
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1058.6+2817_weekly_bin947
RA = 164.65, Dec = 28.2866
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='39460557', job_status='RUN', time_executed='2026-09-29 13:02:01.111171', time_epoch_executed='1790712121.11' WHERE source_name='4FGL J1058.6+2817' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39460557

Creating custom pfile directory:
/lscratch/kocevski/39460557/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/39460557/ft1_4FGL_J1058.6+2817_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/39460557/ft2_4FGL_J1058.6+2817_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39460557/ft1_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460557/ft1_filteredMKT_4FGL_J1058.6+2817_weekly_bin947.fits ra=164.65 dec=28.2866 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.41
user 5.76
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39460557/ft2_4FGL_J1058.6+2817_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39460557/ft2_4FGL_J1058.6+2817_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/39460557/ft1_filteredMKT_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39460557/ft1_filtered_4FGL_J1058.6+2817_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.58
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 1294

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39460557/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39460557/ft2_4FGL_J1058.6+2817_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_J1058.6+2817_weekly_bin947
RA = 164.65, Dec = 28.2866
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='39460523', job_status='RUN', time_executed='2026-09-29 13:01:43.560714', time_epoch_executed='1790712103.56' WHERE source_name='4FGL J1058.6+2817' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39460523

Creating custom pfile directory:
/lscratch/kocevski/39460523/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/39460523/ft1_4FGL_J1058.6+2817_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/39460523/ft2_4FGL_J1058.6+2817_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39460523/ft1_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460523/ft1_filteredMKT_4FGL_J1058.6+2817_weekly_bin947.fits ra=164.65 dec=28.2866 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.49
user 6.47
sys 0.30

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39460523/ft2_4FGL_J1058.6+2817_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39460523/ft2_4FGL_J1058.6+2817_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/39460523/ft1_filteredMKT_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39460523/ft1_filtered_4FGL_J1058.6+2817_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 1.04
user 0.28
sys 0.12

Number of photons that the gtmktime cut: 1294

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39460523/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39460523/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" outfile=/lscratch/kocevski/39460536/ltcube_811728001_812332801_4FGL_J1058.6+2817_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/39460536/ft2_4FGL_J1058.6+2817_weekly_bin947.fits
.....................!
real 15.76
user 15.23
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39460536/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460536/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39460536/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460536/expmap_811728001_812332801_4FGL_J1058.6+2817_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/39460536/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
.....................!
real 59.94
user 55.70
sys 3.61

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

Setting source of interest to:
4FGL J1058.6+2817 @ 164.65 28.2866

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39460536/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits scfile=/lscratch/kocevski/39460536/ft2_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460536/cmap_811728001_812332801_4FGL_J1058.6+2817_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=164.65 yref=28.2866 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.55
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39460536/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits scfile=/lscratch/kocevski/39460536/ft2_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460536/cmap_HighResolution_811728001_812332801_4FGL_J1058.6+2817_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=164.65 yref=28.2866 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.55
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39460536/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460536/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39460536/Model_4FGL_J1058.6+2817_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/39460410/ltcube_811728001_812332801_4FGL_J1058.6+2817_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/39460410/ft2_4FGL_J1058.6+2817_weekly_bin947.fits
.....................!
real 20.24
user 19.60
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39460410/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460410/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39460410/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460410/expmap_811728001_812332801_4FGL_J1058.6+2817_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/39460410/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
.....................!
real 78.85
user 73.17
sys 4.80

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

Setting source of interest to:
4FGL J1058.6+2817 @ 164.65 28.2866

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39460410/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits scfile=/lscratch/kocevski/39460410/ft2_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460410/cmap_811728001_812332801_4FGL_J1058.6+2817_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=164.65 yref=28.2866 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.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39460410/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits scfile=/lscratch/kocevski/39460410/ft2_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460410/cmap_HighResolution_811728001_812332801_4FGL_J1058.6+2817_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=164.65 yref=28.2866 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.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39460410/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460410/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39460410/Model_4FGL_J1058.6+2817_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/39460244/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits.....................!
real 48.30
user 46.56
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39460244/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits', '/lscratch/kocevski/39460244/ft2_4FGL_J1058.6+2817_weekly_bin947.fits', expMap='/lscratch/kocevski/39460244/expmap_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits', expCube='/lscratch/kocevski/39460244/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39460244/Model_4FGL_J1058.6+2817_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+2817'

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.847e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39460244/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39460244/ft2_4FGL_J1058.6+2817_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39460244/expmap_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39460244/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39460244/Model_4FGL_J1058.6+2817_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) = 13811.1241338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.416       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.4102       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.2392       1.0000          .0000       .10000E+07
     4 'Prefactor '    .42891       1.0000          .0000       .10000E+07
     5 'Prefactor '    23.442       1.0000          .0000       .10000E+07
     6 'Prefactor '    26.269       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56550E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.1714       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.1972       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.1117       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.486       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7860       1.0000          .0000       .10000E+07
    13 'norm      '    1.3221       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12212E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.0216       1.0000          .0000       .10000E+07
    16 'Prefactor '    .90969E-05   1.0000          .0000       .10000E+07
    17 'norm      '    1.2454       1.0000          .0000       .10000E+07
    18 'Prefactor '    7.2534       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.9713       1.0000          .0000       .10000E+07
    20 'Prefactor '    .90422E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    84.618       1.0000          .0000       .10000E+07
    22 'Prefactor '    8.1237       1.0000          .0000       .10000E+07
    23 'Prefactor '    .50069E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .20093E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    12.556       1.0000          .0000       .10000E+07
    26 'Normalizat'    .82078       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2213       1.0000          .00V02
Working on...
/lscratch/kocevski/39460246/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits.....................!
real 45.13
user 43.61
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39460246/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits', '/lscratch/kocevski/39460246/ft2_4FGL_J1058.6+2817_weekly_bin947.fits', expMap='/lscratch/kocevski/39460246/expmap_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits', expCube='/lscratch/kocevski/39460246/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39460246/Model_4FGL_J1058.6+2817_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+2817'

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.847e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39460246/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39460246/ft2_4FGL_J1058.6+2817_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39460246/expmap_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39460246/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39460246/Model_4FGL_J1058.6+2817_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) = 13811.1241338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.416       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.4102       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.2392       1.0000          .0000       .10000E+07
     4 'Prefactor '    .42891       1.0000          .0000       .10000E+07
     5 'Prefactor '    23.442       1.0000          .0000       .10000E+07
     6 'Prefactor '    26.269       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56550E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.1714       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.1972       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.1117       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.486       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7860       1.0000          .0000       .10000E+07
    13 'norm      '    1.3221       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12212E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.0216       1.0000          .0000       .10000E+07
    16 'Prefactor '    .90969E-05   1.0000          .0000       .10000E+07
    17 'norm      '    1.2454       1.0000          .0000       .10000E+07
    18 'Prefactor '    7.2534       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.9713       1.0000          .0000       .10000E+07
    20 'Prefactor '    .90422E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    84.618       1.0000          .0000       .10000E+07
    22 'Prefactor '    8.1237       1.0000          .0000       .10000E+07
    23 'Prefactor '    .50069E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .20093E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    12.556       1.0000          .0000       .10000E+07
    26 'Normalizat'    .82078       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2213       1.0000          .00000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13806.46     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1428 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.372        6.1662       -.18650E-06    .51490E-01
   2  Prefactor     2.4167        2.5019        .63883E-07    .14197E-02
   3  Prefactor     3.2308        2.6959       -.11701E-06   -.28766E-02
   4  Prefactor     .22260E-07    65.153        .21719E-05** at limit **
   5  Prefactor     23.199        18.758        .71685E-06   -.47933E-01
   6  Prefactor     26.242        4.1301       -.11796E-06   -.12598    
   7  Prefactor     .51814E-01    8.6038        .64566E-06** at limit **
   8  Prefactor     3.1754        3.9357        .29656E-06    .76839E-02
   9  Prefactor     7.3129        5.4468        .42756E-06    .48349E-01
  10  Prefactor     8.1302        3.1411        .23728E-06    .18389E-01
  11  Prefactor     16.546        8.3081        .53815E-06   -.66221E-02
  12  Prefactor     6.7861        2.6458        .68459E-07    .11263E-01
  13  norm          1.3220        .21594       -.17391E-07   -.18919E-01
  14  Prefactor      .0000        3.5156       -.30039E-06** at limit **
  15  Prefactor     6.0406        5.9391        .47553E-06    .18279E-01
  16  Prefactor     .10936E-07    3.1934        .13999E-06** at limit **
  17  norm          1.2557        5.9653       -.86902E-06   -.35663E-02
  18  Prefactor     7.2385        4.3069        .97331E-07    .73915E-02
  19  Prefactor     8.9677        6.0460       -.22455E-07   -.37776E-01
  20  Prefactor      .0000        .67233       -.96169E-07** at limit **
  21  Prefactor     84.482        5.5846        .37452E-06   -.17747E-01
  22  Prefactor     8.0549        6.3075       -.21810E-06   -.21276E-01
  23  Prefactor     .57732E-08    3.5017        .55530E-06** at limit **
  24  Prefactor     .10775E-06    91.599       -.11257E-04** at limit **
  25  Prefactor     12.640        4.3745        .20178E-06    .59975E-01
  26  Normalizat    .82079        .14303       -.12632E-05    .23114E-03
  27  Prefactor     1.2216        .16129       -.16269E-06    .11344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.3717
  Prefactor  = 2.41666
  Prefactor  = 3.23083
  Prefactor  = 2.226e-08
  Prefactor  = 23.1989
  Prefactor  = 26.2416
  Prefactor  = 0.051814
  Prefactor  = 3.17538
  Prefactor  = 7.31288
  Prefactor  = 8.13024
  Prefactor  = 16.5456
  Prefactor  = 6.78605
  norm       = 1.32202
  Prefactor  = 0
  Prefactor  = 6.04061
  Prefactor  = 1.09357e-08
  norm       = 1.25571
  Prefactor  = 7.23847
  Prefactor  = 8.96774
  Prefactor  = 0
  Prefactor  = 84.4825
  Prefactor  = 8.05491
  Prefactor  = 5.77316e-09
  Prefactor  = 1.07747e-07
  Prefactor  = 12.6399
  Normalizat = 0.820787
  Prefactor  = 1.22159
0       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13806.46     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1428 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.372        6.1662       -.18650E-06    .51490E-01
   2  Prefactor     2.4167        2.5019        .63883E-07    .14197E-02
   3  Prefactor     3.2308        2.6959       -.11701E-06   -.28766E-02
   4  Prefactor     .22260E-07    65.153        .21719E-05** at limit **
   5  Prefactor     23.199        18.758        .71685E-06   -.47933E-01
   6  Prefactor     26.242        4.1301       -.11796E-06   -.12598    
   7  Prefactor     .51814E-01    8.6038        .64566E-06** at limit **
   8  Prefactor     3.1754        3.9357        .29656E-06    .76839E-02
   9  Prefactor     7.3129        5.4468        .42756E-06    .48349E-01
  10  Prefactor     8.1302        3.1411        .23728E-06    .18389E-01
  11  Prefactor     16.546        8.3081        .53815E-06   -.66221E-02
  12  Prefactor     6.7861        2.6458        .68459E-07    .11263E-01
  13  norm          1.3220        .21594       -.17391E-07   -.18919E-01
  14  Prefactor      .0000        3.5156       -.30039E-06** at limit **
  15  Prefactor     6.0406        5.9391        .47553E-06    .18279E-01
  16  Prefactor     .10936E-07    3.1934        .13999E-06** at limit **
  17  norm          1.2557        5.9653       -.86902E-06   -.35663E-02
  18  Prefactor     7.2385        4.3069        .97331E-07    .73915E-02
  19  Prefactor     8.9677        6.0460       -.22455E-07   -.37776E-01
  20  Prefactor      .0000        .67233       -.96169E-07** at limit **
  21  Prefactor     84.482        5.5846        .37452E-06   -.17747E-01
  22  Prefactor     8.0549        6.3075       -.21810E-06   -.21276E-01
  23  Prefactor     .57732E-08    3.5017        .55530E-06** at limit **
  24  Prefactor     .10775E-06    91.599       -.11257E-04** at limit **
  25  Prefactor     12.640        4.3745        .20178E-06    .59975E-01
  26  Normalizat    .82079        .14303       -.12632E-05    .23114E-03
  27  Prefactor     1.2216        .16129       -.16269E-06    .11344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.3717
  Prefactor  = 2.41666
  Prefactor  = 3.23083
  Prefactor  = 2.226e-08
  Prefactor  = 23.1989
  Prefactor  = 26.2416
  Prefactor  = 0.051814
  Prefactor  = 3.17538
  Prefactor  = 7.31288
  Prefactor  = 8.13024
  Prefactor  = 16.5456
  Prefactor  = 6.78605
  norm       = 1.32202
  Prefactor  = 0
  Prefactor  = 6.04061
  Prefactor  = 1.09357e-08
  norm       = 1.25571
  Prefactor  = 7.23847
  Prefactor  = 8.96774
  Prefactor  = 0
  Prefactor  = 84.4825
  Prefactor  = 8.05491
  Prefactor  = 5.77316e-09
  Prefactor  = 1.07747e-07
  Prefactor  = 12.6399
  Normalizat = 0.820787
  Prefactor  = 1.22159
utfile=/lscratch/kocevski/39460557/ltcube_811728001_812332801_4FGL_J1058.6+2817_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/39460557/ft2_4FGL_J1058.6+2817_weekly_bin947.fits
.....................!
real 18.68
user 18.14
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39460557/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460557/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39460557/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460557/expmap_811728001_812332801_4FGL_J1058.6+2817_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/39460557/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
.....................!
real 70.46
user 65.74
sys 4.01

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

Setting source of interest to:
4FGL J1058.6+2817 @ 164.65 28.2866

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39460557/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits scfile=/lscratch/kocevski/39460557/ft2_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460557/cmap_811728001_812332801_4FGL_J1058.6+2817_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=164.65 yref=28.2866 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.60
user 0.26
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39460557/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits scfile=/lscratch/kocevski/39460557/ft2_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460557/cmap_HighResolution_811728001_812332801_4FGL_J1058.6+2817_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=164.65 yref=28.2866 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.56
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39460557/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460557/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39460557/Model_4FGL_J1058.6+2817_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/39460523/ltcube_811728001_812332801_4FGL_J1058.6+2817_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/39460523/ft2_4FGL_J1058.6+2817_weekly_bin947.fits
.....................!
real 24.26
user 23.05
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39460523/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460523/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39460523/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460523/expmap_811728001_812332801_4FGL_J1058.6+2817_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/39460523/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
.....................!
real 78.96
user 73.39
sys 4.47

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

Setting source of interest to:
4FGL J1058.6+2817 @ 164.65 28.2866

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39460523/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits scfile=/lscratch/kocevski/39460523/ft2_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460523/cmap_811728001_812332801_4FGL_J1058.6+2817_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=164.65 yref=28.2866 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.65
user 0.29
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39460523/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits scfile=/lscratch/kocevski/39460523/ft2_4FGL_J1058.6+2817_weekly_bin947.fits outfile=/lscratch/kocevski/39460523/cmap_HighResolution_811728001_812332801_4FGL_J1058.6+2817_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=164.65 yref=28.2866 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.63
user 0.29
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39460523/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460523/ft2_4FGL_J1058.6+2817_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39460523/Model_4FGL_J1058.6+2817_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 **********
 **   18 **HESSE 
 **********

 FCN=   13806.46     FROM HESSE     STATUS=OK           572 CALLS     2000 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.372        7.1188        .19840E-03   -1.5607    
   2  Prefactor     2.4167        2.5284        .65915E-03   -1.5677    
   3  Prefactor     3.2308        2.7173        .56254E-03   -1.5672    
   4  Prefactor     .22260E-07    64.158        .86211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.199        21.103        .20659E-03   -1.5612    
   6  Prefactor     26.242        6.4203        .19515E-03   -1.5606    
   7  Prefactor     .51814E-01    .51610        .52922E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1754        6.0767        .56884E-03   -1.5672    
   9  Prefactor     7.3129        14.712        .37366E-03   -1.5654    
  10  Prefactor     8.1302        6.6922        .35178E-03   -1.5651    
  11  Prefactor     16.546        8.8157        .24640E-03   -1.5627    
  12  Prefactor     6.7861        6.9588        .38493E-03   -1.5656    
  13  norm          1.3220        .21597        .48027E-03   -1.5685    
  14  Prefactor      .0000        .74744        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0406        6.0552        .40894E-03   -1.5659    
  16  Prefactor     .10936E-07    3.8862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2557        6.1177        .10031E-02   -1.5686    
  18  Prefactor     7.2385        4.3248        .37220E-03   -1.5654    
  19  Prefactor     8.9677        6.9591        .33439E-03   -1.5648    
  20  Prefactor      .0000        .66999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     84.482        32.062        .10872E-03   -1.5524    
  22  Prefactor     8.0549        9.7227        .35152E-03   -1.5651    
  23  Prefactor     .57732E-08    4.5669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10775E-06    1.5435        .50792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.640        13.425        .28243E-03   -1.5637    
  26  Normalizat    .82079        .12698        .43881E-01   -.99302    
  27  Prefactor     1.2216        .13877        .61294E-01   -.85669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54063e-06
Minuit parameter uncertainties:
  1  7.11884
  2  2.52843
  3  2.7173
  4  0.00238964
  5  21.1026
  6  6.42028
  7  0.327056
  8  6.07669
  9  14.7125
  10  6.69216
  11  8.81567
  12  6.95885
  13  0.215969
  14  6.68148e-06
  15  6.05525
  16  0.000412814
  17  5.5433
  18  4.32479
  19  6.95911
  20  7.53025e-06
  21  32.0623
  22  9.72275
  23  0.000325384
  24  0.000815559
  25  13.4247
  26  0.127027
  27  0.138815
 **********
 **   18 **HESSE 
 **********

 FCN=   13806.46     FROM HESSE     STATUS=OK           572 CALLS     2000 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.372        7.1188        .19840E-03   -1.5607    
   2  Prefactor     2.4167        2.5284        .65915E-03   -1.5677    
   3  Prefactor     3.2308        2.7173        .56254E-03   -1.5672    
   4  Prefactor     .22260E-07    64.158        .86211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.199        21.103        .20659E-03   -1.5612    
   6  Prefactor     26.242        6.4203        .19515E-03   -1.5606    
   7  Prefactor     .51814E-01    .51610        .52922E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1754        6.0767        .56884E-03   -1.5672    
   9  Prefactor     7.3129        14.712        .37366E-03   -1.5654    
  10  Prefactor     8.1302        6.6922        .35178E-03   -1.5651    
  11  Prefactor     16.546        8.8157        .24640E-03   -1.5627    
  12  Prefactor     6.7861        6.9588        .38493E-03   -1.5656    
  13  norm          1.3220        .21597        .48027E-03   -1.5685    
  14  Prefactor      .0000        .74744        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0406        6.0552        .40894E-03   -1.5659    
  16  Prefactor     .10936E-07    3.8862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2557        6.1177        .10031E-02   -1.5686    
  18  Prefactor     7.2385        4.3248        .37220E-03   -1.5654    
  19  Prefactor     8.9677        6.9591        .33439E-03   -1.5648    
  20  Prefactor      .0000        .66999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     84.482        32.062        .10872E-03   -1.5524    
  22  Prefactor     8.0549        9.7227        .35152E-03   -1.5651    
  23  Prefactor     .57732E-08    4.5669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10775E-06    1.5435        .50792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.640        13.425        .28243E-03   -1.5637    
  26  Normalizat    .82079        .12698        .43881E-01   -.99302    
  27  Prefactor     1.2216        .13877        .61294E-01   -.85669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54063e-06
Minuit parameter uncertainties:
  1  7.11884
  2  2.52843
  3  2.7173
  4  0.00238964
  5  21.1026
  6  6.42028
  7  0.327056
  8  6.07669
  9  14.7125
  10  6.69216
  11  8.81567
  12  6.95885
  13  0.215969
  14  6.68148e-06
  15  6.05525
  16  0.000412814
  17  5.5433
  18  4.32479
  19  6.95911
  20  7.53025e-06
  21  32.0623
  22  9.72275
  23  0.000325384
  24  0.000815559
  25  13.4247
  26  0.127027
  27  0.138815
_V02
Working on...
/lscratch/kocevski/39460536/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits.....................!
real 37.87
user 36.29
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39460536/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits', '/lscratch/kocevski/39460536/ft2_4FGL_J1058.6+2817_weekly_bin947.fits', expMap='/lscratch/kocevski/39460536/expmap_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits', expCube='/lscratch/kocevski/39460536/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39460536/Model_4FGL_J1058.6+2817_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+2817'

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.847e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39460536/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39460536/ft2_4FGL_J1058.6+2817_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39460536/expmap_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39460536/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39460536/Model_4FGL_J1058.6+2817_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) = 13811.1241338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.416       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.4102       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.2392       1.0000          .0000       .10000E+07
     4 'Prefactor '    .42891       1.0000          .0000       .10000E+07
     5 'Prefactor '    23.442       1.0000          .0000       .10000E+07
     6 'Prefactor '    26.269       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56550E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.1714       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.1972       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.1117       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.486       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7860       1.0000          .0000       .10000E+07
    13 'norm      '    1.3221       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12212E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.0216       1.0000          .0000       .10000E+07
    16 'Prefactor '    .90969E-05   1.0000          .0000       .10000E+07
    17 'norm      '    1.2454       1.0000          .0000       .10000E+07
    18 'Prefactor '    7.2534       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.9713       1.0000          .0000       .10000E+07
    20 'Prefactor '    .90422E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    84.618       1.0000          .0000       .10000E+07
    22 'Prefactor '    8.1237       1.0000          .0000       .10000E+07
    23 'Prefactor '    .50069E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .20093E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    12.556       1.0000          .0000       .10000E+07
    26 'Normalizat'    .82078       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2213       1.0000          .00Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.655e+01  8.816e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.222e+00  1.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  8.208e-01  1.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.46
Ra Dec: 164.650 28.287
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 9.87e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6911607
delta logL = 0.767835485682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6735144
delta logL = 0.785481793337

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13805.67     FROM MIGRAD    STATUS=FAILED       103 CALLS      307 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        61.120        .63296E-04   -.29647E-02
   2  Index         2.9050        2.9072        .44012E-02    .12132E-02
   3  Normalizat    .77794        .18858        .28060E-03   -.31359E-04
   4  Prefactor     1.2570        .21286        .26786E-03   -.62814E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13805.67     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      398 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        61.120        .10305E-04   -.29647E-02
   2  Index         2.9050        2.9072        .48636E-03    .12132E-02
   3  Normalizat    .77794        .18858        .22569E-03   -.31359E-04
   4  Prefactor     1.2570        .21286        .20733E-03   -.62814E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13805.67     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      430 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        9.1196        .25318E-05   -.31881E-02
   2  Index         2.9050        .69465        .88024E-03   -.66876E-04
   3  Normalizat    .77794        .14267        .11224E-04   -.29576E-04
   4  Prefactor     1.2570        .16603        .10715E-04   -.63663E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.96142
  Index      = 2.90498
  Normalizat = 0.777939
  Prefactor  = 1.25699
 **********
 **   18 **HESSE 
 **********

 FCN=   13805.67     FROM HESSE     STATUS=OK            23 CALLS      453 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9614        8.4087        .10127E-06   -1.5655    
   2  Index         2.9050        .64087        .35210E-04   -.43235    
   3  Normalizat    .77794        .14214        .22448E-05   -1.0089    
   4  Prefactor     1.2570        .16550        .21429E-05   -.84595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30538e-11
Minuit parameter uncertainties:
  1  8.40873
  2  0.643014
  3  0.14221
  4  0.165564
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.655e+01  8.816e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.222e+00  1.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  8.208e-01  1.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.46
Ra Dec: 164.650 28.287
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 9.87e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6911607
delta logL = 0.767835485682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6735144
delta logL = 0.785481793337

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13805.67     FROM MIGRAD    STATUS=FAILED       103 CALLS      307 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        61.120        .63296E-04   -.29647E-02
   2  Index         2.9050        2.9072        .44012E-02    .12132E-02
   3  Normalizat    .77794        .18858        .28060E-03   -.31359E-04
   4  Prefactor     1.2570        .21286        .26786E-03   -.62814E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13805.67     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      398 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        61.120        .10305E-04   -.29647E-02
   2  Index         2.9050        2.9072        .48636E-03    .12132E-02
   3  Normalizat    .77794        .18858        .22569E-03   -.31359E-04
   4  Prefactor     1.2570        .21286        .20733E-03   -.62814E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13805.67     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      430 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        9.1196        .25318E-05   -.31881E-02
   2  Index         2.9050        .69465        .88024E-03   -.66876E-04
   3  Normalizat    .77794        .14267        .11224E-04   -.29576E-04
   4  Prefactor     1.2570        .16603        .10715E-04   -.63663E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.96142
  Index      = 2.90498
  Normalizat = 0.777939
  Prefactor  = 1.25699
 **********
 **   18 **HESSE 
 **********

 FCN=   13805.67     FROM HESSE     STATUS=OK            23 CALLS      453 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9614        8.4087        .10127E-06   -1.5655    
   2  Index         2.9050        .64087        .35210E-04   -.43235    
   3  Normalizat    .77794        .14214        .22448E-05   -1.0089    
   4  Prefactor     1.2570        .16550        .21429E-05   -.84595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30538e-11
Minuit parameter uncertainties:
  1  8.40873
  2  0.643014
  3  0.14221
  4  0.165564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6735127
delta logL = 0.785483536687

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  6.961e+00  8.409e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.905e+00  6.430e-01  0.000e+00  1.000e+01 (-1.000e+00)
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.257e+00  1.656e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  7.779e-01  1.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.09
Ra Dec: 164.650 28.287
Photon Index (Free Index): 2.90 +/- 0.64
Photon Flux (Free Index): 6.81e-08 +/- 3.25e-08
Energy Flux (Free Index): 1.43e-05 +/- 6.62e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/39460246/cmap_HighResolution_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='1.43e-05', photon_flux_error='2.30e-08', dlogl='7.85e-01', energy_flux='1.85e-05', photon_flux2='6.81e-08', job_status='DONE', time_completed='2026-09-29 13:06:44.108885', photon_index_error2='0.64', photon_index2='2.90', ts='6.46', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='6.62e-06', EG='0.82', time_epoch_completed='1790712404.11', return_code='0', job_id='39460246', GAL2='1.26', EG2='0.78', return_code2='0', energy_flux_error='9.87e-06', photon_flux_error2='3.25e-08', ts2='8.09', photon_index='2.23' WHERE bin_id='947' AND source_name='4FGL J1058.6+2817' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 13:06:44 PDT 2026

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

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6735127
delta logL = 0.785483536687

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  6.961e+00  8.409e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.905e+00  6.430e-01  0.000e+00  1.000e+01 (-1.000e+00)
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.257e+00  1.656e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  7.779e-01  1.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.09
Ra Dec: 164.650 28.287
Photon Index (Free Index): 2.90 +/- 0.64
Photon Flux (Free Index): 6.81e-08 +/- 3.25e-08
Energy Flux (Free Index): 1.43e-05 +/- 6.62e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/39460244/cmap_HighResolution_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='1.43e-05', photon_flux_error='2.30e-08', dlogl='7.85e-01', energy_flux='1.85e-05', photon_flux2='6.81e-08', job_status='DONE', time_completed='2026-09-29 13:06:46.120786', photon_index_error2='0.64', photon_index2='2.90', ts='6.46', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='6.62e-06', EG='0.82', time_epoch_completed='1790712406.12', return_code='0', job_id='39460244', GAL2='1.26', EG2='0.78', return_code2='0', energy_flux_error='9.87e-06', photon_flux_error2='3.25e-08', ts2='8.09', photon_index='2.23' WHERE bin_id='947' AND source_name='4FGL J1058.6+2817' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 13:06:46 PDT 2026

00       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13806.46     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1428 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.372        6.1662       -.18650E-06    .51490E-01
   2  Prefactor     2.4167        2.5019        .63883E-07    .14197E-02
   3  Prefactor     3.2308        2.6959       -.11701E-06   -.28766E-02
   4  Prefactor     .22260E-07    65.153        .21719E-05** at limit **
   5  Prefactor     23.199        18.758        .71685E-06   -.47933E-01
   6  Prefactor     26.242        4.1301       -.11796E-06   -.12598    
   7  Prefactor     .51814E-01    8.6038        .64566E-06** at limit **
   8  Prefactor     3.1754        3.9357        .29656E-06    .76839E-02
   9  Prefactor     7.3129        5.4468        .42756E-06    .48349E-01
  10  Prefactor     8.1302        3.1411        .23728E-06    .18389E-01
  11  Prefactor     16.546        8.3081        .53815E-06   -.66221E-02
  12  Prefactor     6.7861        2.6458        .68459E-07    .11263E-01
  13  norm          1.3220        .21594       -.17391E-07   -.18919E-01
  14  Prefactor      .0000        3.5156       -.30039E-06** at limit **
  15  Prefactor     6.0406        5.9391        .47553E-06    .18279E-01
  16  Prefactor     .10936E-07    3.1934        .13999E-06** at limit **
  17  norm          1.2557        5.9653       -.86902E-06   -.35663E-02
  18  Prefactor     7.2385        4.3069        .97331E-07    .73915E-02
  19  Prefactor     8.9677        6.0460       -.22455E-07   -.37776E-01
  20  Prefactor      .0000        .67233       -.96169E-07** at limit **
  21  Prefactor     84.482        5.5846        .37452E-06   -.17747E-01
  22  Prefactor     8.0549        6.3075       -.21810E-06   -.21276E-01
  23  Prefactor     .57732E-08    3.5017        .55530E-06** at limit **
  24  Prefactor     .10775E-06    91.599       -.11257E-04** at limit **
  25  Prefactor     12.640        4.3745        .20178E-06    .59975E-01
  26  Normalizat    .82079        .14303       -.12632E-05    .23114E-03
  27  Prefactor     1.2216        .16129       -.16269E-06    .11344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.3717
  Prefactor  = 2.41666
  Prefactor  = 3.23083
  Prefactor  = 2.226e-08
  Prefactor  = 23.1989
  Prefactor  = 26.2416
  Prefactor  = 0.051814
  Prefactor  = 3.17538
  Prefactor  = 7.31288
  Prefactor  = 8.13024
  Prefactor  = 16.5456
  Prefactor  = 6.78605
  norm       = 1.32202
  Prefactor  = 0
  Prefactor  = 6.04061
  Prefactor  = 1.09357e-08
  norm       = 1.25571
  Prefactor  = 7.23847
  Prefactor  = 8.96774
  Prefactor  = 0
  Prefactor  = 84.4825
  Prefactor  = 8.05491
  Prefactor  = 5.77316e-09
  Prefactor  = 1.07747e-07
  Prefactor  = 12.6399
  Normalizat = 0.820787
  Prefactor  = 1.22159
_V02
Working on...
/lscratch/kocevski/39460410/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits.....................!
real 48.56
user 46.92
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39460410/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits', '/lscratch/kocevski/39460410/ft2_4FGL_J1058.6+2817_weekly_bin947.fits', expMap='/lscratch/kocevski/39460410/expmap_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits', expCube='/lscratch/kocevski/39460410/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39460410/Model_4FGL_J1058.6+2817_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+2817'

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.847e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39460410/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39460410/ft2_4FGL_J1058.6+2817_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39460410/expmap_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39460410/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39460410/Model_4FGL_J1058.6+2817_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) = 13811.1241338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.416       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.4102       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.2392       1.0000          .0000       .10000E+07
     4 'Prefactor '    .42891       1.0000          .0000       .10000E+07
     5 'Prefactor '    23.442       1.0000          .0000       .10000E+07
     6 'Prefactor '    26.269       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56550E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.1714       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.1972       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.1117       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.486       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7860       1.0000          .0000       .10000E+07
    13 'norm      '    1.3221       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12212E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.0216       1.0000          .0000       .10000E+07
    16 'Prefactor '    .90969E-05   1.0000          .0000       .10000E+07
    17 'norm      '    1.2454       1.0000          .0000       .10000E+07
    18 'Prefactor '    7.2534       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.9713       1.0000          .0000       .10000E+07
    20 'Prefactor '    .90422E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    84.618       1.0000          .0000       .10000E+07
    22 'Prefactor '    8.1237       1.0000          .0000       .10000E+07
    23 'Prefactor '    .50069E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .20093E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    12.556       1.0000          .0000       .10000E+07
    26 'Normalizat'    .82078       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2213       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13806.46     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1428 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.372        6.1662       -.18650E-06    .51490E-01
   2  Prefactor     2.4167        2.5019        .63883E-07    .14197E-02
   3  Prefactor     3.2308        2.6959       -.11701E-06   -.28766E-02
   4  Prefactor     .22260E-07    65.153        .21719E-05** at limit **
   5  Prefactor     23.199        18.758        .71685E-06   -.47933E-01
   6  Prefactor     26.242        4.1301       -.11796E-06   -.12598    
   7  Prefactor     .51814E-01    8.6038        .64566E-06** at limit **
   8  Prefactor     3.1754        3.9357        .29656E-06    .76839E-02
   9  Prefactor     7.3129        5.4468        .42756E-06    .48349E-01
  10  Prefactor     8.1302        3.1411        .23728E-06    .18389E-01
  11  Prefactor     16.546        8.3081        .53815E-06   -.66221E-02
  12  Prefactor     6.7861        2.6458        .68459E-07    .11263E-01
  13  norm          1.3220        .21594       -.17391E-07   -.18919E-01
  14  Prefactor      .0000        3.5156       -.30039E-06** at limit **
  15  Prefactor     6.0406        5.9391        .47553E-06    .18279E-01
  16  Prefactor     .10936E-07    3.1934        .13999E-06** at limit **
  17  norm          1.2557        5.9653       -.86902E-06   -.35663E-02
  18  Prefactor     7.2385        4.3069        .97331E-07    .73915E-02
  19  Prefactor     8.9677        6.0460       -.22455E-07   -.37776E-01
  20  Prefactor      .0000        .67233       -.96169E-07** at limit **
  21  Prefactor     84.482        5.5846        .37452E-06   -.17747E-01
  22  Prefactor     8.0549        6.3075       -.21810E-06   -.21276E-01
  23  Prefactor     .57732E-08    3.5017        .55530E-06** at limit **
  24  Prefactor     .10775E-06    91.599       -.11257E-04** at limit **
  25  Prefactor     12.640        4.3745        .20178E-06    .59975E-01
  26  Normalizat    .82079        .14303       -.12632E-05    .23114E-03
  27  Prefactor     1.2216        .16129       -.16269E-06    .11344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.3717
  Prefactor  = 2.41666
  Prefactor  = 3.23083
  Prefactor  = 2.226e-08
  Prefactor  = 23.1989
  Prefactor  = 26.2416
  Prefactor  = 0.051814
  Prefactor  = 3.17538
  Prefactor  = 7.31288
  Prefactor  = 8.13024
  Prefactor  = 16.5456
  Prefactor  = 6.78605
  norm       = 1.32202
  Prefactor  = 0
  Prefactor  = 6.04061
  Prefactor  = 1.09357e-08
  norm       = 1.25571
  Prefactor  = 7.23847
  Prefactor  = 8.96774
  Prefactor  = 0
  Prefactor  = 84.4825
  Prefactor  = 8.05491
  Prefactor  = 5.77316e-09
  Prefactor  = 1.07747e-07
  Prefactor  = 12.6399
  Normalizat = 0.820787
  Prefactor  = 1.22159
 **********
 **   18 **HESSE 
 **********

 FCN=   13806.46     FROM HESSE     STATUS=OK           572 CALLS     2000 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.372        7.1188        .19840E-03   -1.5607    
   2  Prefactor     2.4167        2.5284        .65915E-03   -1.5677    
   3  Prefactor     3.2308        2.7173        .56254E-03   -1.5672    
   4  Prefactor     .22260E-07    64.158        .86211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.199        21.103        .20659E-03   -1.5612    
   6  Prefactor     26.242        6.4203        .19515E-03   -1.5606    
   7  Prefactor     .51814E-01    .51610        .52922E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1754        6.0767        .56884E-03   -1.5672    
   9  Prefactor     7.3129        14.712        .37366E-03   -1.5654    
  10  Prefactor     8.1302        6.6922        .35178E-03   -1.5651    
  11  Prefactor     16.546        8.8157        .24640E-03   -1.5627    
  12  Prefactor     6.7861        6.9588        .38493E-03   -1.5656    
  13  norm          1.3220        .21597        .48027E-03   -1.5685    
  14  Prefactor      .0000        .74744        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0406        6.0552        .40894E-03   -1.5659    
  16  Prefactor     .10936E-07    3.8862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2557        6.1177        .10031E-02   -1.5686    
  18  Prefactor     7.2385        4.3248        .37220E-03   -1.5654    
  19  Prefactor     8.9677        6.9591        .33439E-03   -1.5648    
  20  Prefactor      .0000        .66999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     84.482        32.062        .10872E-03   -1.5524    
  22  Prefactor     8.0549        9.7227        .35152E-03   -1.5651    
  23  Prefactor     .57732E-08    4.5669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10775E-06    1.5435        .50792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.640        13.425        .28243E-03   -1.5637    
  26  Normalizat    .82079        .12698        .43881E-01   -.99302    
  27  Prefactor     1.2216        .13877        .61294E-01   -.85669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54063e-06
Minuit parameter uncertainties:
  1  7.11884
  2  2.52843
  3  2.7173
  4  0.00238964
  5  21.1026
  6  6.42028
  7  0.327056
  8  6.07669
  9  14.7125
  10  6.69216
  11  8.81567
  12  6.95885
  13  0.215969
  14  6.68148e-06
  15  6.05525
  16  0.000412814
  17  5.5433
  18  4.32479
  19  6.95911
  20  7.53025e-06
  21  32.0623
  22  9.72275
  23  0.000325384
  24  0.000815559
  25  13.4247
  26  0.127027
  27  0.138815
_V02
Working on...
/lscratch/kocevski/39460557/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits.....................!
real 43.25
user 42.15
sys 0.59

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39460557/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits', '/lscratch/kocevski/39460557/ft2_4FGL_J1058.6+2817_weekly_bin947.fits', expMap='/lscratch/kocevski/39460557/expmap_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits', expCube='/lscratch/kocevski/39460557/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39460557/Model_4FGL_J1058.6+2817_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+2817'

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.847e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39460557/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39460557/ft2_4FGL_J1058.6+2817_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39460557/expmap_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39460557/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39460557/Model_4FGL_J1058.6+2817_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) = 13811.1241338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.416       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.4102       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.2392       1.0000          .0000       .10000E+07
     4 'Prefactor '    .42891       1.0000          .0000       .10000E+07
     5 'Prefactor '    23.442       1.0000          .0000       .10000E+07
     6 'Prefactor '    26.269       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56550E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.1714       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.1972       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.1117       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.486       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7860       1.0000          .0000       .10000E+07
    13 'norm      '    1.3221       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12212E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.0216       1.0000          .0000       .10000E+07
    16 'Prefactor '    .90969E-05   1.0000          .0000       .10000E+07
    17 'norm      '    1.2454       1.0000          .0000       .10000E+07
    18 'Prefactor '    7.2534       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.9713       1.0000          .0000       .10000E+07
    20 'Prefactor '    .90422E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    84.618       1.0000          .0000       .10000E+07
    22 'Prefactor '    8.1237       1.0000          .0000       .10000E+07
    23 'Prefactor '    .50069E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .20093E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    12.556       1.0000          .0000       .10000E+07
    26 'Normalizat'    .82078       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2213       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13806.46     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1428 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.372        6.1662       -.18650E-06    .51490E-01
   2  Prefactor     2.4167        2.5019        .63883E-07    .14197E-02
   3  Prefactor     3.2308        2.6959       -.11701E-06   -.28766E-02
   4  Prefactor     .22260E-07    65.153        .21719E-05** at limit **
   5  Prefactor     23.199        18.758        .71685E-06   -.47933E-01
   6  Prefactor     26.242        4.1301       -.11796E-06   -.12598    
   7  Prefactor     .51814E-01    8.6038        .64566E-06** at limit **
   8  Prefactor     3.1754        3.9357        .29656E-06    .76839E-02
   9  Prefactor     7.3129        5.4468        .42756E-06    .48349E-01
  10  Prefactor     8.1302        3.1411        .23728E-06    .18389E-01
  11  Prefactor     16.546        8.3081        .53815E-06   -.66221E-02
  12  Prefactor     6.7861        2.6458        .68459E-07    .11263E-01
  13  norm          1.3220        .21594       -.17391E-07   -.18919E-01
  14  Prefactor      .0000        3.5156       -.30039E-06** at limit **
  15  Prefactor     6.0406        5.9391        .47553E-06    .18279E-01
  16  Prefactor     .10936E-07    3.1934        .13999E-06** at limit **
  17  norm          1.2557        5.9653       -.86902E-06   -.35663E-02
  18  Prefactor     7.2385        4.3069        .97331E-07    .73915E-02
  19  Prefactor     8.9677        6.0460       -.22455E-07   -.37776E-01
  20  Prefactor      .0000        .67233       -.96169E-07** at limit **
  21  Prefactor     84.482        5.5846        .37452E-06   -.17747E-01
  22  Prefactor     8.0549        6.3075       -.21810E-06   -.21276E-01
  23  Prefactor     .57732E-08    3.5017        .55530E-06** at limit **
  24  Prefactor     .10775E-06    91.599       -.11257E-04** at limit **
  25  Prefactor     12.640        4.3745        .20178E-06    .59975E-01
  26  Normalizat    .82079        .14303       -.12632E-05    .23114E-03
  27  Prefactor     1.2216        .16129       -.16269E-06    .11344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.3717
  Prefactor  = 2.41666
  Prefactor  = 3.23083
  Prefactor  = 2.226e-08
  Prefactor  = 23.1989
  Prefactor  = 26.2416
  Prefactor  = 0.051814
  Prefactor  = 3.17538
  Prefactor  = 7.31288
  Prefactor  = 8.13024
  Prefactor  = 16.5456
  Prefactor  = 6.78605
  norm       = 1.32202
  Prefactor  = 0
  Prefactor  = 6.04061
  Prefactor  = 1.09357e-08
  norm       = 1.25571
  Prefactor  = 7.23847
  Prefactor  = 8.96774
  Prefactor  = 0
  Prefactor  = 84.4825
  Prefactor  = 8.05491
  Prefactor  = 5.77316e-09
  Prefactor  = 1.07747e-07
  Prefactor  = 12.6399
  Normalizat = 0.820787
  Prefactor  = 1.22159
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.655e+01  8.816e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.222e+00  1.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  8.208e-01  1.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.46
Ra Dec: 164.650 28.287
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 9.87e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6911607
delta logL = 0.767835485682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6735144
delta logL = 0.785481793337

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13805.67     FROM MIGRAD    STATUS=FAILED       103 CALLS      307 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        61.120        .63296E-04   -.29647E-02
   2  Index         2.9050        2.9072        .44012E-02    .12132E-02
   3  Normalizat    .77794        .18858        .28060E-03   -.31359E-04
   4  Prefactor     1.2570        .21286        .26786E-03   -.62814E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13805.67     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      398 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        61.120        .10305E-04   -.29647E-02
   2  Index         2.9050        2.9072        .48636E-03    .12132E-02
   3  Normalizat    .77794        .18858        .22569E-03   -.31359E-04
   4  Prefactor     1.2570        .21286        .20733E-03   -.62814E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13805.67     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      430 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        9.1196        .25318E-05   -.31881E-02
   2  Index         2.9050        .69465        .88024E-03   -.66876E-04
   3  Normalizat    .77794        .14267        .11224E-04   -.29576E-04
   4  Prefactor     1.2570        .16603        .10715E-04   -.63663E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.96142
  Index      = 2.90498
  Normalizat = 0.777939
  Prefactor  = 1.25699
 **********
 **   18 **HESSE 
 **********

 FCN=   13805.67     FROM HESSE     STATUS=OK            23 CALLS      453 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9614        8.4087        .10127E-06   -1.5655    
   2  Index         2.9050        .64087        .35210E-04   -.43235    
   3  Normalizat    .77794        .14214        .22448E-05   -1.0089    
   4  Prefactor     1.2570        .16550        .21429E-05   -.84595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30538e-11
Minuit parameter uncertainties:
  1  8.40873
  2  0.643014
  3  0.14221
  4  0.165564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6735127
delta logL = 0.785483536687

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  6.961e+00  8.409e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.905e+00  6.430e-01  0.000e+00  1.000e+01 (-1.000e+00)
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.257e+00  1.656e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  7.779e-01  1.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.09
Ra Dec: 164.650 28.287
Photon Index (Free Index): 2.90 +/- 0.64
Photon Flux (Free Index): 6.81e-08 +/- 3.25e-08
Energy Flux (Free Index): 1.43e-05 +/- 6.62e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/39460536/cmap_HighResolution_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='1.43e-05', photon_flux_error='2.30e-08', dlogl='7.85e-01', energy_flux='1.85e-05', photon_flux2='6.81e-08', job_status='DONE', time_completed='2026-09-29 13:08:07.062371', photon_index_error2='0.64', photon_index2='2.90', ts='6.46', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='6.62e-06', EG='0.82', time_epoch_completed='1790712487.06', return_code='0', job_id='39460536', GAL2='1.26', EG2='0.78', return_code2='0', energy_flux_error='9.87e-06', photon_flux_error2='3.25e-08', ts2='8.09', photon_index='2.23' WHERE bin_id='947' AND source_name='4FGL J1058.6+2817' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 13:08:07 PDT 2026

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

 FCN=   13806.46     FROM HESSE     STATUS=OK           572 CALLS     2000 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.372        7.1188        .19840E-03   -1.5607    
   2  Prefactor     2.4167        2.5284        .65915E-03   -1.5677    
   3  Prefactor     3.2308        2.7173        .56254E-03   -1.5672    
   4  Prefactor     .22260E-07    64.158        .86211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.199        21.103        .20659E-03   -1.5612    
   6  Prefactor     26.242        6.4203        .19515E-03   -1.5606    
   7  Prefactor     .51814E-01    .51610        .52922E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1754        6.0767        .56884E-03   -1.5672    
   9  Prefactor     7.3129        14.712        .37366E-03   -1.5654    
  10  Prefactor     8.1302        6.6922        .35178E-03   -1.5651    
  11  Prefactor     16.546        8.8157        .24640E-03   -1.5627    
  12  Prefactor     6.7861        6.9588        .38493E-03   -1.5656    
  13  norm          1.3220        .21597        .48027E-03   -1.5685    
  14  Prefactor      .0000        .74744        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0406        6.0552        .40894E-03   -1.5659    
  16  Prefactor     .10936E-07    3.8862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2557        6.1177        .10031E-02   -1.5686    
  18  Prefactor     7.2385        4.3248        .37220E-03   -1.5654    
  19  Prefactor     8.9677        6.9591        .33439E-03   -1.5648    
  20  Prefactor      .0000        .66999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     84.482        32.062        .10872E-03   -1.5524    
  22  Prefactor     8.0549        9.7227        .35152E-03   -1.5651    
  23  Prefactor     .57732E-08    4.5669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10775E-06    1.5435        .50792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.640        13.425        .28243E-03   -1.5637    
  26  Normalizat    .82079        .12698        .43881E-01   -.99302    
  27  Prefactor     1.2216        .13877        .61294E-01   -.85669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54063e-06
Minuit parameter uncertainties:
  1  7.11884
  2  2.52843
  3  2.7173
  4  0.00238964
  5  21.1026
  6  6.42028
  7  0.327056
  8  6.07669
  9  14.7125
  10  6.69216
  11  8.81567
  12  6.95885
  13  0.215969
  14  6.68148e-06
  15  6.05525
  16  0.000412814
  17  5.5433
  18  4.32479
  19  6.95911
  20  7.53025e-06
  21  32.0623
  22  9.72275
  23  0.000325384
  24  0.000815559
  25  13.4247
  26  0.127027
  27  0.138815
_V02
Working on...
/lscratch/kocevski/39460523/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits.....................!
real 50.01
user 48.03
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39460523/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits', '/lscratch/kocevski/39460523/ft2_4FGL_J1058.6+2817_weekly_bin947.fits', expMap='/lscratch/kocevski/39460523/expmap_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits', expCube='/lscratch/kocevski/39460523/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39460523/Model_4FGL_J1058.6+2817_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+2817'

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.847e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39460523/ft1_filtered_4FGL_J1058.6+2817_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39460523/ft2_4FGL_J1058.6+2817_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39460523/expmap_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39460523/ltcube_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39460523/Model_4FGL_J1058.6+2817_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) = 13811.1241338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.416       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.4102       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.2392       1.0000          .0000       .10000E+07
     4 'Prefactor '    .42891       1.0000          .0000       .10000E+07
     5 'Prefactor '    23.442       1.0000          .0000       .10000E+07
     6 'Prefactor '    26.269       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56550E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.1714       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.1972       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.1117       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.486       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7860       1.0000          .0000       .10000E+07
    13 'norm      '    1.3221       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12212E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.0216       1.0000          .0000       .10000E+07
    16 'Prefactor '    .90969E-05   1.0000          .0000       .10000E+07
    17 'norm      '    1.2454       1.0000          .0000       .10000E+07
    18 'Prefactor '    7.2534       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.9713       1.0000          .0000       .10000E+07
    20 'Prefactor '    .90422E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    84.618       1.0000          .0000       .10000E+07
    22 'Prefactor '    8.1237       1.0000          .0000       .10000E+07
    23 'Prefactor '    .50069E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .20093E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    12.556       1.0000          .0000       .10000E+07
    26 'Normalizat'    .82078       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2213       1.0000          .00 **********
 **   18 **HESSE 
 **********

 FCN=   13806.46     FROM HESSE     STATUS=OK           572 CALLS     2000 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.372        7.1188        .19840E-03   -1.5607    
   2  Prefactor     2.4167        2.5284        .65915E-03   -1.5677    
   3  Prefactor     3.2308        2.7173        .56254E-03   -1.5672    
   4  Prefactor     .22260E-07    64.158        .86211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.199        21.103        .20659E-03   -1.5612    
   6  Prefactor     26.242        6.4203        .19515E-03   -1.5606    
   7  Prefactor     .51814E-01    .51610        .52922E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1754        6.0767        .56884E-03   -1.5672    
   9  Prefactor     7.3129        14.712        .37366E-03   -1.5654    
  10  Prefactor     8.1302        6.6922        .35178E-03   -1.5651    
  11  Prefactor     16.546        8.8157        .24640E-03   -1.5627    
  12  Prefactor     6.7861        6.9588        .38493E-03   -1.5656    
  13  norm          1.3220        .21597        .48027E-03   -1.5685    
  14  Prefactor      .0000        .74744        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0406        6.0552        .40894E-03   -1.5659    
  16  Prefactor     .10936E-07    3.8862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2557        6.1177        .10031E-02   -1.5686    
  18  Prefactor     7.2385        4.3248        .37220E-03   -1.5654    
  19  Prefactor     8.9677        6.9591        .33439E-03   -1.5648    
  20  Prefactor      .0000        .66999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     84.482        32.062        .10872E-03   -1.5524    
  22  Prefactor     8.0549        9.7227        .35152E-03   -1.5651    
  23  Prefactor     .57732E-08    4.5669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10775E-06    1.5435        .50792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.640        13.425        .28243E-03   -1.5637    
  26  Normalizat    .82079        .12698        .43881E-01   -.99302    
  27  Prefactor     1.2216        .13877        .61294E-01   -.85669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54063e-06
Minuit parameter uncertainties:
  1  7.11884
  2  2.52843
  3  2.7173
  4  0.00238964
  5  21.1026
  6  6.42028
  7  0.327056
  8  6.07669
  9  14.7125
  10  6.69216
  11  8.81567
  12  6.95885
  13  0.215969
  14  6.68148e-06
  15  6.05525
  16  0.000412814
  17  5.5433
  18  4.32479
  19  6.95911
  20  7.53025e-06
  21  32.0623
  22  9.72275
  23  0.000325384
  24  0.000815559
  25  13.4247
  26  0.127027
  27  0.138815
00       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13806.46     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1428 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.372        6.1662       -.18650E-06    .51490E-01
   2  Prefactor     2.4167        2.5019        .63883E-07    .14197E-02
   3  Prefactor     3.2308        2.6959       -.11701E-06   -.28766E-02
   4  Prefactor     .22260E-07    65.153        .21719E-05** at limit **
   5  Prefactor     23.199        18.758        .71685E-06   -.47933E-01
   6  Prefactor     26.242        4.1301       -.11796E-06   -.12598    
   7  Prefactor     .51814E-01    8.6038        .64566E-06** at limit **
   8  Prefactor     3.1754        3.9357        .29656E-06    .76839E-02
   9  Prefactor     7.3129        5.4468        .42756E-06    .48349E-01
  10  Prefactor     8.1302        3.1411        .23728E-06    .18389E-01
  11  Prefactor     16.546        8.3081        .53815E-06   -.66221E-02
  12  Prefactor     6.7861        2.6458        .68459E-07    .11263E-01
  13  norm          1.3220        .21594       -.17391E-07   -.18919E-01
  14  Prefactor      .0000        3.5156       -.30039E-06** at limit **
  15  Prefactor     6.0406        5.9391        .47553E-06    .18279E-01
  16  Prefactor     .10936E-07    3.1934        .13999E-06** at limit **
  17  norm          1.2557        5.9653       -.86902E-06   -.35663E-02
  18  Prefactor     7.2385        4.3069        .97331E-07    .73915E-02
  19  Prefactor     8.9677        6.0460       -.22455E-07   -.37776E-01
  20  Prefactor      .0000        .67233       -.96169E-07** at limit **
  21  Prefactor     84.482        5.5846        .37452E-06   -.17747E-01
  22  Prefactor     8.0549        6.3075       -.21810E-06   -.21276E-01
  23  Prefactor     .57732E-08    3.5017        .55530E-06** at limit **
  24  Prefactor     .10775E-06    91.599       -.11257E-04** at limit **
  25  Prefactor     12.640        4.3745        .20178E-06    .59975E-01
  26  Normalizat    .82079        .14303       -.12632E-05    .23114E-03
  27  Prefactor     1.2216        .16129       -.16269E-06    .11344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.3717
  Prefactor  = 2.41666
  Prefactor  = 3.23083
  Prefactor  = 2.226e-08
  Prefactor  = 23.1989
  Prefactor  = 26.2416
  Prefactor  = 0.051814
  Prefactor  = 3.17538
  Prefactor  = 7.31288
  Prefactor  = 8.13024
  Prefactor  = 16.5456
  Prefactor  = 6.78605
  norm       = 1.32202
  Prefactor  = 0
  Prefactor  = 6.04061
  Prefactor  = 1.09357e-08
  norm       = 1.25571
  Prefactor  = 7.23847
  Prefactor  = 8.96774
  Prefactor  = 0
  Prefactor  = 84.4825
  Prefactor  = 8.05491
  Prefactor  = 5.77316e-09
  Prefactor  = 1.07747e-07
  Prefactor  = 12.6399
  Normalizat = 0.820787
  Prefactor  = 1.22159
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.655e+01  8.816e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.222e+00  1.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  8.208e-01  1.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.46
Ra Dec: 164.650 28.287
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 9.87e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6911607
delta logL = 0.767835485682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6735144
delta logL = 0.785481793337

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13805.67     FROM MIGRAD    STATUS=FAILED       103 CALLS      307 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        61.120        .63296E-04   -.29647E-02
   2  Index         2.9050        2.9072        .44012E-02    .12132E-02
   3  Normalizat    .77794        .18858        .28060E-03   -.31359E-04
   4  Prefactor     1.2570        .21286        .26786E-03   -.62814E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13805.67     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      398 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        61.120        .10305E-04   -.29647E-02
   2  Index         2.9050        2.9072        .48636E-03    .12132E-02
   3  Normalizat    .77794        .18858        .22569E-03   -.31359E-04
   4  Prefactor     1.2570        .21286        .20733E-03   -.62814E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13805.67     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      430 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        9.1196        .25318E-05   -.31881E-02
   2  Index         2.9050        .69465        .88024E-03   -.66876E-04
   3  Normalizat    .77794        .14267        .11224E-04   -.29576E-04
   4  Prefactor     1.2570        .16603        .10715E-04   -.63663E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.96142
  Index      = 2.90498
  Normalizat = 0.777939
  Prefactor  = 1.25699
 **********
 **   18 **HESSE 
 **********

 FCN=   13805.67     FROM HESSE     STATUS=OK            23 CALLS      453 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9614        8.4087        .10127E-06   -1.5655    
   2  Index         2.9050        .64087        .35210E-04   -.43235    
   3  Normalizat    .77794        .14214        .22448E-05   -1.0089    
   4  Prefactor     1.2570        .16550        .21429E-05   -.84595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30538e-11
Minuit parameter uncertainties:
  1  8.40873
  2  0.643014
  3  0.14221
  4  0.165564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6735127
delta logL = 0.785483536687

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  6.961e+00  8.409e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.905e+00  6.430e-01  0.000e+00  1.000e+01 (-1.000e+00)
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.257e+00  1.656e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  7.779e-01  1.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.09
Ra Dec: 164.650 28.287
Photon Index (Free Index): 2.90 +/- 0.64
Photon Flux (Free Index): 6.81e-08 +/- 3.25e-08
Energy Flux (Free Index): 1.43e-05 +/- 6.62e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/39460410/cmap_HighResolution_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='1.43e-05', photon_flux_error='2.30e-08', dlogl='7.85e-01', energy_flux='1.85e-05', photon_flux2='6.81e-08', job_status='DONE', time_completed='2026-09-29 13:08:59.315042', photon_index_error2='0.64', photon_index2='2.90', ts='6.46', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='6.62e-06', EG='0.82', time_epoch_completed='1790712539.32', return_code='0', job_id='39460410', GAL2='1.26', EG2='0.78', return_code2='0', energy_flux_error='9.87e-06', photon_flux_error2='3.25e-08', ts2='8.09', photon_index='2.23' WHERE bin_id='947' AND source_name='4FGL J1058.6+2817' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 13:08:59 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.655e+01  8.816e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.222e+00  1.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  8.208e-01  1.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.46
Ra Dec: 164.650 28.287
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 9.87e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6911607
delta logL = 0.767835485682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6735144
delta logL = 0.785481793337

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13805.67     FROM MIGRAD    STATUS=FAILED       103 CALLS      307 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        61.120        .63296E-04   -.29647E-02
   2  Index         2.9050        2.9072        .44012E-02    .12132E-02
   3  Normalizat    .77794        .18858        .28060E-03   -.31359E-04
   4  Prefactor     1.2570        .21286        .26786E-03   -.62814E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13805.67     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      398 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        61.120        .10305E-04   -.29647E-02
   2  Index         2.9050        2.9072        .48636E-03    .12132E-02
   3  Normalizat    .77794        .18858        .22569E-03   -.31359E-04
   4  Prefactor     1.2570        .21286        .20733E-03   -.62814E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13805.67     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      430 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        9.1196        .25318E-05   -.31881E-02
   2  Index         2.9050        .69465        .88024E-03   -.66876E-04
   3  Normalizat    .77794        .14267        .11224E-04   -.29576E-04
   4  Prefactor     1.2570        .16603        .10715E-04   -.63663E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.96142
  Index      = 2.90498
  Normalizat = 0.777939
  Prefactor  = 1.25699
 **********
 **   18 **HESSE 
 **********

 FCN=   13805.67     FROM HESSE     STATUS=OK            23 CALLS      453 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9614        8.4087        .10127E-06   -1.5655    
   2  Index         2.9050        .64087        .35210E-04   -.43235    
   3  Normalizat    .77794        .14214        .22448E-05   -1.0089    
   4  Prefactor     1.2570        .16550        .21429E-05   -.84595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30538e-11
Minuit parameter uncertainties:
  1  8.40873
  2  0.643014
  3  0.14221
  4  0.165564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6735127
delta logL = 0.785483536687

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  6.961e+00  8.409e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.905e+00  6.430e-01  0.000e+00  1.000e+01 (-1.000e+00)
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.257e+00  1.656e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  7.779e-01  1.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.09
Ra Dec: 164.650 28.287
Photon Index (Free Index): 2.90 +/- 0.64
Photon Flux (Free Index): 6.81e-08 +/- 3.25e-08
Energy Flux (Free Index): 1.43e-05 +/- 6.62e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/39460557/cmap_HighResolution_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='1.43e-05', photon_flux_error='2.30e-08', dlogl='7.85e-01', energy_flux='1.85e-05', photon_flux2='6.81e-08', job_status='DONE', time_completed='2026-09-29 13:09:06.350801', photon_index_error2='0.64', photon_index2='2.90', ts='6.46', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='6.62e-06', EG='0.82', time_epoch_completed='1790712546.35', return_code='0', job_id='39460557', GAL2='1.26', EG2='0.78', return_code2='0', energy_flux_error='9.87e-06', photon_flux_error2='3.25e-08', ts2='8.09', photon_index='2.23' WHERE bin_id='947' AND source_name='4FGL J1058.6+2817' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 13:09:06 PDT 2026

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

 FCN=   13806.46     FROM HESSE     STATUS=OK           572 CALLS     2000 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.372        7.1188        .19840E-03   -1.5607    
   2  Prefactor     2.4167        2.5284        .65915E-03   -1.5677    
   3  Prefactor     3.2308        2.7173        .56254E-03   -1.5672    
   4  Prefactor     .22260E-07    64.158        .86211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.199        21.103        .20659E-03   -1.5612    
   6  Prefactor     26.242        6.4203        .19515E-03   -1.5606    
   7  Prefactor     .51814E-01    .51610        .52922E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1754        6.0767        .56884E-03   -1.5672    
   9  Prefactor     7.3129        14.712        .37366E-03   -1.5654    
  10  Prefactor     8.1302        6.6922        .35178E-03   -1.5651    
  11  Prefactor     16.546        8.8157        .24640E-03   -1.5627    
  12  Prefactor     6.7861        6.9588        .38493E-03   -1.5656    
  13  norm          1.3220        .21597        .48027E-03   -1.5685    
  14  Prefactor      .0000        .74744        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0406        6.0552        .40894E-03   -1.5659    
  16  Prefactor     .10936E-07    3.8862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2557        6.1177        .10031E-02   -1.5686    
  18  Prefactor     7.2385        4.3248        .37220E-03   -1.5654    
  19  Prefactor     8.9677        6.9591        .33439E-03   -1.5648    
  20  Prefactor      .0000        .66999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     84.482        32.062        .10872E-03   -1.5524    
  22  Prefactor     8.0549        9.7227        .35152E-03   -1.5651    
  23  Prefactor     .57732E-08    4.5669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10775E-06    1.5435        .50792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.640        13.425        .28243E-03   -1.5637    
  26  Normalizat    .82079        .12698        .43881E-01   -.99302    
  27  Prefactor     1.2216        .13877        .61294E-01   -.85669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54063e-06
Minuit parameter uncertainties:
  1  7.11884
  2  2.52843
  3  2.7173
  4  0.00238964
  5  21.1026
  6  6.42028
  7  0.327056
  8  6.07669
  9  14.7125
  10  6.69216
  11  8.81567
  12  6.95885
  13  0.215969
  14  6.68148e-06
  15  6.05525
  16  0.000412814
  17  5.5433
  18  4.32479
  19  6.95911
  20  7.53025e-06
  21  32.0623
  22  9.72275
  23  0.000325384
  24  0.000815559
  25  13.4247
  26  0.127027
  27  0.138815
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.655e+01  8.816e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.222e+00  1.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  8.208e-01  1.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.46
Ra Dec: 164.650 28.287
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 9.87e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6911607
delta logL = 0.767835485682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6735144
delta logL = 0.785481793337

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13805.67     FROM MIGRAD    STATUS=FAILED       103 CALLS      307 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        61.120        .63296E-04   -.29647E-02
   2  Index         2.9050        2.9072        .44012E-02    .12132E-02
   3  Normalizat    .77794        .18858        .28060E-03   -.31359E-04
   4  Prefactor     1.2570        .21286        .26786E-03   -.62814E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13805.67     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      398 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        61.120        .10305E-04   -.29647E-02
   2  Index         2.9050        2.9072        .48636E-03    .12132E-02
   3  Normalizat    .77794        .18858        .22569E-03   -.31359E-04
   4  Prefactor     1.2570        .21286        .20733E-03   -.62814E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13805.67     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      430 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9614        9.1196        .25318E-05   -.31881E-02
   2  Index         2.9050        .69465        .88024E-03   -.66876E-04
   3  Normalizat    .77794        .14267        .11224E-04   -.29576E-04
   4  Prefactor     1.2570        .16603        .10715E-04   -.63663E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.96142
  Index      = 2.90498
  Normalizat = 0.777939
  Prefactor  = 1.25699
 **********
 **   18 **HESSE 
 **********

 FCN=   13805.67     FROM HESSE     STATUS=OK            23 CALLS      453 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9614        8.4087        .10127E-06   -1.5655    
   2  Index         2.9050        .64087        .35210E-04   -.43235    
   3  Normalizat    .77794        .14214        .22448E-05   -1.0089    
   4  Prefactor     1.2570        .16550        .21429E-05   -.84595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30538e-11
Minuit parameter uncertainties:
  1  8.40873
  2  0.643014
  3  0.14221
  4  0.165564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13805.6735127
delta logL = 0.785483536687

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  6.961e+00  8.409e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.905e+00  6.430e-01  0.000e+00  1.000e+01 (-1.000e+00)
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.257e+00  1.656e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  7.779e-01  1.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.09
Ra Dec: 164.650 28.287
Photon Index (Free Index): 2.90 +/- 0.64
Photon Flux (Free Index): 6.81e-08 +/- 3.25e-08
Energy Flux (Free Index): 1.43e-05 +/- 6.62e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/39460523/cmap_HighResolution_811728001_812332801_4FGL_J1058.6+2817_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='1.43e-05', photon_flux_error='2.30e-08', dlogl='7.85e-01', energy_flux='1.85e-05', photon_flux2='6.81e-08', job_status='DONE', time_completed='2026-09-29 13:10:12.245138', photon_index_error2='0.64', photon_index2='2.90', ts='6.46', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='6.62e-06', EG='0.82', time_epoch_completed='1790712612.25', return_code='0', job_id='39460523', GAL2='1.26', EG2='0.78', return_code2='0', energy_flux_error='9.87e-06', photon_flux_error2='3.25e-08', ts2='8.09', photon_index='2.23' WHERE bin_id='947' AND source_name='4FGL J1058.6+2817' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 13:10:12 PDT 2026

