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


Performing analysis on: 4FGL_J1059.5+2057_weekly_bin947
RA = 164.878, Dec = 20.9524
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='39460700', job_status='RUN', time_executed='2026-09-29 13:03:32.117815', time_epoch_executed='1790712212.12' WHERE source_name='4FGL J1059.5+2057' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39460700

Creating custom pfile directory:
/lscratch/kocevski/39460700/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/39460700/ft1_4FGL_J1059.5+2057_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/39460700/ft2_4FGL_J1059.5+2057_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39460700/ft1_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460700/ft1_filteredMKT_4FGL_J1059.5+2057_weekly_bin947.fits ra=164.878 dec=20.9524 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.45
user 4.93
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39460700/ft2_4FGL_J1059.5+2057_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39460700/ft2_4FGL_J1059.5+2057_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/39460700/ft1_filteredMKT_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39460700/ft1_filtered_4FGL_J1059.5+2057_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.51
user 0.22
sys 0.12

Number of photons that the gtmktime cut: 1186

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

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

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

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

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

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

 outfile=/lscratch/kocevski/39460583/ltcube_811728001_812332801_4FGL_J1059.5+2057_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/39460583/ft2_4FGL_J1059.5+2057_weekly_bin947.fits
.....................!
real 16.62
user 16.00
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39460583/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460583/ft2_4FGL_J1059.5+2057_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39460583/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460583/expmap_811728001_812332801_4FGL_J1059.5+2057_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/39460583/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
.....................!
real 59.99
user 55.87
sys 3.44

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

Setting source of interest to:
4FGL J1059.5+2057 @ 164.878 20.9524

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39460583/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits scfile=/lscratch/kocevski/39460583/ft2_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460583/cmap_811728001_812332801_4FGL_J1059.5+2057_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.878 yref=20.9524 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.50
user 0.23
sys 0.10

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39460583/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits scfile=/lscratch/kocevski/39460583/ft2_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460583/cmap_HighResolution_811728001_812332801_4FGL_J1059.5+2057_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.878 yref=20.9524 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.51
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39460583/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460583/ft2_4FGL_J1059.5+2057_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39460583/Model_4FGL_J1059.5+2057_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 sourcnumber of points = 17526
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1059.5+2057_weekly_bin947
RA = 164.878, Dec = 20.9524
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='39460728', job_status='RUN', time_executed='2026-09-29 13:04:15.559810', time_epoch_executed='1790712255.56' WHERE source_name='4FGL J1059.5+2057' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39460728

Creating custom pfile directory:
/lscratch/kocevski/39460728/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/39460728/ft1_4FGL_J1059.5+2057_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/39460728/ft2_4FGL_J1059.5+2057_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39460728/ft1_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460728/ft1_filteredMKT_4FGL_J1059.5+2057_weekly_bin947.fits ra=164.878 dec=20.9524 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.29
user 5.81
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39460728/ft2_4FGL_J1059.5+2057_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39460728/ft2_4FGL_J1059.5+2057_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/39460728/ft1_filteredMKT_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39460728/ft1_filtered_4FGL_J1059.5+2057_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.54
user 0.23
sys 0.12

Number of photons that the gtmktime cut: 1186

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


Performing analysis on: 4FGL_J1059.5+2057_weekly_bin947
RA = 164.878, Dec = 20.9524
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='39460730', job_status='RUN', time_executed='2026-09-29 13:04:20.427959', time_epoch_executed='1790712260.43' WHERE source_name='4FGL J1059.5+2057' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39460730

Creating custom pfile directory:
/lscratch/kocevski/39460730/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/39460730/ft1_4FGL_J1059.5+2057_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/39460730/ft2_4FGL_J1059.5+2057_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39460730/ft1_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460730/ft1_filteredMKT_4FGL_J1059.5+2057_weekly_bin947.fits ra=164.878 dec=20.9524 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.18
user 6.43
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39460730/ft2_4FGL_J1059.5+2057_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39460730/ft2_4FGL_J1059.5+2057_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/39460730/ft1_filteredMKT_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39460730/ft1_filtered_4FGL_J1059.5+2057_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.82
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 1186

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


Performing analysis on: 4FGL_J1059.5+2057_weekly_bin947
RA = 164.878, Dec = 20.9524
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='39460741', job_status='RUN', time_executed='2026-09-29 13:04:38.838807', time_epoch_executed='1790712278.84' WHERE source_name='4FGL J1059.5+2057' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39460741

Creating custom pfile directory:
/lscratch/kocevski/39460741/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/39460741/ft1_4FGL_J1059.5+2057_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/39460741/ft2_4FGL_J1059.5+2057_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39460741/ft1_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460741/ft1_filteredMKT_4FGL_J1059.5+2057_weekly_bin947.fits ra=164.878 dec=20.9524 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.43
user 6.83
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39460741/ft2_4FGL_J1059.5+2057_weekly_bin947.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39460741/ft2_4FGL_J1059.5+2057_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/39460741/ft1_filteredMKT_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39460741/ft1_filtered_4FGL_J1059.5+2057_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.24
sys 0.12

Number of photons that the gtmktime cut: 1186

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39460741/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39460741/ft2_4FGL_J1059.5+2057_weekly_bin947.fits sctable="SC_DATA" outfile=/lscratch/kocevski/39460524/ltcube_811728001_812332801_4FGL_J1059.5+2057_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/39460524/ft2_4FGL_J1059.5+2057_weekly_bin947.fits
.....................!
real 29.65
user 28.52
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39460524/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460524/ft2_4FGL_J1059.5+2057_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39460524/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460524/expmap_811728001_812332801_4FGL_J1059.5+2057_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/39460524/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
.....................!
real 77.83
user 72.87
sys 4.10

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

Setting source of interest to:
4FGL J1059.5+2057 @ 164.878 20.9524

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39460524/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits scfile=/lscratch/kocevski/39460524/ft2_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460524/cmap_811728001_812332801_4FGL_J1059.5+2057_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.878 yref=20.9524 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.74
user 0.28
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39460524/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits scfile=/lscratch/kocevski/39460524/ft2_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460524/cmap_HighResolution_811728001_812332801_4FGL_J1059.5+2057_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.878 yref=20.9524 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.31
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39460524/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460524/ft2_4FGL_J1059.5+2057_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39460524/Model_4FGL_J1059.5+2057_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 sourc outfile=/lscratch/kocevski/39460700/ltcube_811728001_812332801_4FGL_J1059.5+2057_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/39460700/ft2_4FGL_J1059.5+2057_weekly_bin947.fits
.....................!
real 16.17
user 15.60
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39460700/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460700/ft2_4FGL_J1059.5+2057_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39460700/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460700/expmap_811728001_812332801_4FGL_J1059.5+2057_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/39460700/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
.....................!
real 60.94
user 57.07
sys 3.35

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

Setting source of interest to:
4FGL J1059.5+2057 @ 164.878 20.9524

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39460700/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits scfile=/lscratch/kocevski/39460700/ft2_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460700/cmap_811728001_812332801_4FGL_J1059.5+2057_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.878 yref=20.9524 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.81
user 0.26
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39460700/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits scfile=/lscratch/kocevski/39460700/ft2_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460700/cmap_HighResolution_811728001_812332801_4FGL_J1059.5+2057_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.878 yref=20.9524 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.62
user 0.27
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39460700/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460700/ft2_4FGL_J1059.5+2057_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39460700/Model_4FGL_J1059.5+2057_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/39460583/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits.....................!
real 36.16
user 34.89
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39460583/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits', '/lscratch/kocevski/39460583/ft2_4FGL_J1059.5+2057_weekly_bin947.fits', expMap='/lscratch/kocevski/39460583/expmap_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits', expCube='/lscratch/kocevski/39460583/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39460583/Model_4FGL_J1059.5+2057_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1059.5+2057'

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.435e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39460583/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39460583/ft2_4FGL_J1059.5+2057_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39460583/expmap_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39460583/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39460583/Model_4FGL_J1059.5+2057_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) = 12753.9531915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.833       1.0000          .0000       .10000E+07
     2 'Prefactor '    .33317E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    24.804       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30476E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.3242       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.2143       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.6218       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.479       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.2285       1.0000          .0000       .10000E+07
    10 'norm      '    2.0707       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19873E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7987       1.0000          .0000       .10000E+07
    13 'norm      '    12.024       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1576       1.0000          .0000       .10000E+07
    15 'Prefactor '    .21313E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    17 'Normalizat'    .91019       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12753.59     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1041 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.865        4.6541       -.20237E-06    .32255E-01
   2  Prefactor     .26368E-07    26.889        .43140E-07** at limit **
   3  Prefactor     24.819        5.7921       -.27233E-07    .19806E-02
   4  Prefactor     .79936E-08    3.0969        .55828E-06** at limit **
   5  Prefactor     5.3381        4.4745       -.27379E-07    .18170E-02
   6  Prefactor     2.2740        3.9780        .15865E-08    .93596E-03
   7  Prefactor     7.5873        3.1437        .17577E-06    .47964E-02
   8  Prefactor     14.543        7.5156       -.24216E-06    .93883E-02
   9  Prefactor     6.2664        2.8847       -.33916E-06   -.40181E-02
  10  norm          2.0711        1.0008       -.21262E-07   -.22458E-01
  11  Prefactor     .55511E-10    1.9833       -.38780E-06** at limit **
  12  Prefactor     6.8069        4.1181        .10241E-06   -.33870E-02
  13  norm          12.049        4.9975        .25527E-06    .95096E-02
  14  Prefactor     8.1695        5.5269       -.82422E-06   -.13019E-01
  15  Prefactor     .53291E-08    11.946        .15552E-06** at limit **
  16  Prefactor     .55511E-10    1.9262       -.85101E-07** at limit **
  17  Normalizat    .90954        .15078        .29020E-05   -.12692E-03
  18  Prefactor     1.2395        .15974       -.15631E-05    .36255E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.8647
  Prefactor  = 2.63678e-08
  Prefactor  = 24.819
  Prefactor  = 7.99361e-09
  Prefactor  = 5.33814
  Prefactor  = 2.27402
  Prefactor  = 7.58728
  Prefactor  = 14.5434
  Prefactor  = 6.26638
  norm       = 2.07106
  Prefactor  = 5.55112e-11
  Prefactor  = 6.80686
  norm       = 12.0494
  Prefactor  = 8.16953
  Prefactor  = 5.32907e-09
  Prefactor  = 5.55112e-11
  Normalizat = 0.909538
  Prefactor  = 1.23947
 **********
 **   18 **HESSE 
 **********

 FCN=   12753.59     FROM HESSE     STATUS=OK           292 CALLS     1333 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.865        7.5992        .19679E-03   -1.5606    
   2  Prefactor     .26368E-07    26.965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.819        6.2907        .20083E-03   -1.5608    
   4  Prefactor     .79936E-08    .62361        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3381        4.4839        .43533E-03   -1.5662    
   6  Prefactor     2.2740        5.7739        .69090E-03   -1.5678    
   7  Prefactor     7.5873        6.3962        .36301E-03   -1.5653    
   8  Prefactor     14.543        8.1876        .26296E-03   -1.5632    
   9  Prefactor     6.2664        6.6870        .40200E-03   -1.5658    
  10  norm          2.0711        1.0067        .71760E-03   -1.5679    
  11  Prefactor     .55511E-10    2.0307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8069        4.1521        .38457E-03   -1.5656    
  13  norm          12.049        8.1246        .28864E-03   -1.5639    
  14  Prefactor     8.1695        6.7972        .35079E-03   -1.5651    
  15  Prefactor     .53291E-08    11.935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    1.9664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .90954        .12920        .45032E-01   -.96126    
  18  Prefactor     1.2395        .13567        .57887E-01   -.85125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84981e-09
Minuit parameter uncertainties:
  1  7.59916
  2  0.00168648
  3  6.29074
  4  0.000141431
  5  4.48395
  6  5.77389
  7  6.39616
  8  8.1876
  9  6.68702
  10  1.0067
  11  2.0136e-05
  12  4.15213
  13  8.12458
  14  6.79723
  15  0.000503557
  16  1.80909e-05
  17  0.129242
  18  0.135709
 outfile=/lscratch/kocevski/39460728/ltcube_811728001_812332801_4FGL_J1059.5+2057_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/39460728/ft2_4FGL_J1059.5+2057_weekly_bin947.fits
.....................!
real 18.67
user 18.15
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39460728/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460728/ft2_4FGL_J1059.5+2057_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39460728/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460728/expmap_811728001_812332801_4FGL_J1059.5+2057_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/39460728/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
.....................!
real 70.33
user 65.99
sys 3.68

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

Setting source of interest to:
4FGL J1059.5+2057 @ 164.878 20.9524

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39460728/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits scfile=/lscratch/kocevski/39460728/ft2_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460728/cmap_811728001_812332801_4FGL_J1059.5+2057_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.878 yref=20.9524 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.69
user 0.27
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39460728/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits scfile=/lscratch/kocevski/39460728/ft2_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460728/cmap_HighResolution_811728001_812332801_4FGL_J1059.5+2057_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.878 yref=20.9524 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.72
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39460728/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460728/ft2_4FGL_J1059.5+2057_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39460728/Model_4FGL_J1059.5+2057_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 sourcDone.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  6.266e+00  6.687e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.239e+00  1.357e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.095e-01  1.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 164.878 20.952
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.52e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 4.89e-06 +/- 5.22e-06

TS (Fixed Index): 1.79
Ra Dec: 164.878 20.952
Photon Flux Upper Limit: 5.66692559107e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00438332594035 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39460583/likelihoodResults_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12753.5869465
delta logL = 0.000650753272566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12753.5865723
delta logL = 0.00102494095336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0733       1.0000          .0000       .10000E+07
     2 'Index     '    2.4692       1.0000          .0000       10.000    
     3 'Normalizat'    .90825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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.

 FCN=   12753.59     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0704        8.6162        .81434E-04   -.14631E-03
   2  Index         2.4720        1.3979        .13249E-01    .23868E-03
   3  Normalizat    .90807        .14831        .26460E-03   -.12890E-04
   4  Prefactor     1.2405        .16135        .25589E-03   -.10663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.07036
  Index      = 2.47203
  Normalizat = 0.908071
  Prefactor  = 1.24048
 **********
 **   18 **HESSE 
 **********

 FCN=   12753.59     FROM HESSE     STATUS=OK            27 CALLS      275 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0704        7.8784        .32574E-05   -1.5659    
   2  Index         2.4720        1.2792        .26499E-02   -.53007    
   3  Normalizat    .90807        .14745        .10584E-04   -.96177    
   4  Prefactor     1.2405        .16100        .10236E-04   -.85094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76783e-13
Minuit parameter uncertainties:
  1  7.87846
  2  1.29878
  3  0.147512
  4  0.161066
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) = 12753.586569
delta logL = 0.00102827274532

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  6.070e+00  7.878e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.472e+00  1.299e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.240e+00  1.611e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.081e-01  1.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 164.878 20.952
Photon Index (Free Index): 2.47 +/- 1.30
Photon Flux (Free Index): 1.63e-08 +/- 2.92e-08
Energy Flux (Free Index): 4.88e-06 +/- 5.04e-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/39460583/cmap_HighResolution_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', comment='SUCCESS', photon_flux='1.52e-08', energy_flux2='4.88e-06', photon_flux_error='1.62e-08', dlogl='1.03e-03', energy_flux='4.89e-06', photon_flux2='1.63e-08', job_status='DONE', time_completed='2026-09-29 13:07:47.896198', photon_index_error2='1.30', photon_index2='2.47', ts='1.79', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='5.67e-08', energy_flux_error2='5.04e-06', EG='0.91', time_epoch_completed='1790712467.9', return_code='0', job_id='39460583', GAL2='1.24', EG2='0.91', return_code2='0', energy_flux_error='5.22e-06', photon_flux_error2='2.92e-08', ts2='1.79', photon_index='2.41' WHERE bin_id='947' AND source_name='4FGL J1059.5+2057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 13:07:47 PDT 2026

 outfile=/lscratch/kocevski/39460730/ltcube_811728001_812332801_4FGL_J1059.5+2057_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/39460730/ft2_4FGL_J1059.5+2057_weekly_bin947.fits
.....................!
real 20.47
user 19.80
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39460730/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460730/ft2_4FGL_J1059.5+2057_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39460730/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460730/expmap_811728001_812332801_4FGL_J1059.5+2057_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/39460730/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
.....................!
real 80.85
user 74.67
sys 4.59

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

Setting source of interest to:
4FGL J1059.5+2057 @ 164.878 20.9524

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39460730/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits scfile=/lscratch/kocevski/39460730/ft2_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460730/cmap_811728001_812332801_4FGL_J1059.5+2057_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.878 yref=20.9524 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.66
user 0.27
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39460730/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits scfile=/lscratch/kocevski/39460730/ft2_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460730/cmap_HighResolution_811728001_812332801_4FGL_J1059.5+2057_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.878 yref=20.9524 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.66
user 0.26
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39460730/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460730/ft2_4FGL_J1059.5+2057_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39460730/Model_4FGL_J1059.5+2057_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/39460700/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits.....................!
real 38.18
user 36.73
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39460700/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits', '/lscratch/kocevski/39460700/ft2_4FGL_J1059.5+2057_weekly_bin947.fits', expMap='/lscratch/kocevski/39460700/expmap_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits', expCube='/lscratch/kocevski/39460700/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39460700/Model_4FGL_J1059.5+2057_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1059.5+2057'

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.435e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39460700/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39460700/ft2_4FGL_J1059.5+2057_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39460700/expmap_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39460700/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39460700/Model_4FGL_J1059.5+2057_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) = 12753.9531915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.833       1.0000          .0000       .10000E+07
     2 'Prefactor '    .33317E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    24.804       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30476E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.3242       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.2143       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.6218       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.479       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.2285       1.0000          .0000       .10000E+07
    10 'norm      '    2.0707       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19873E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7987       1.0000          .0000       .10000E+07
    13 'norm      '    12.024       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1576       1.0000          .0000       .10000E+07
    15 'Prefactor '    .21313E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    17 'Normalizat'    .91019       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12753.59     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1041 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.865        4.6541       -.20237E-06    .32255E-01
   2  Prefactor     .26368E-07    26.889        .43140E-07** at limit **
   3  Prefactor     24.819        5.7921       -.27233E-07    .19806E-02
   4  Prefactor     .79936E-08    3.0969        .55828E-06** at limit **
   5  Prefactor     5.3381        4.4745       -.27379E-07    .18170E-02
   6  Prefactor     2.2740        3.9780        .15865E-08    .93596E-03
   7  Prefactor     7.5873        3.1437        .17577E-06    .47964E-02
   8  Prefactor     14.543        7.5156       -.24216E-06    .93883E-02
   9  Prefactor     6.2664        2.8847       -.33916E-06   -.40181E-02
  10  norm          2.0711        1.0008       -.21262E-07   -.22458E-01
  11  Prefactor     .55511E-10    1.9833       -.38780E-06** at limit **
  12  Prefactor     6.8069        4.1181        .10241E-06   -.33870E-02
  13  norm          12.049        4.9975        .25527E-06    .95096E-02
  14  Prefactor     8.1695        5.5269       -.82422E-06   -.13019E-01
  15  Prefactor     .53291E-08    11.946        .15552E-06** at limit **
  16  Prefactor     .55511E-10    1.9262       -.85101E-07** at limit **
  17  Normalizat    .90954        .15078        .29020E-05   -.12692E-03
  18  Prefactor     1.2395        .15974       -.15631E-05    .36255E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.8647
  Prefactor  = 2.63678e-08
  Prefactor  = 24.819
  Prefactor  = 7.99361e-09
  Prefactor  = 5.33814
  Prefactor  = 2.27402
  Prefactor  = 7.58728
  Prefactor  = 14.5434
  Prefactor  = 6.26638
  norm       = 2.07106
  Prefactor  = 5.55112e-11
  Prefactor  = 6.80686
  norm       = 12.0494
  Prefactor  = 8.16953
  Prefactor  = 5.32907e-09
  Prefactor  = 5.55112e-11
  Normalizat = 0.909538
  Prefactor  = 1.23947
e GAL_V02
Working on...
/lscratch/kocevski/39460524/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits.....................!
real 48.37
user 46.13
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39460524/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits', '/lscratch/kocevski/39460524/ft2_4FGL_J1059.5+2057_weekly_bin947.fits', expMap='/lscratch/kocevski/39460524/expmap_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits', expCube='/lscratch/kocevski/39460524/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39460524/Model_4FGL_J1059.5+2057_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1059.5+2057'

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.435e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39460524/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39460524/ft2_4FGL_J1059.5+2057_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39460524/expmap_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39460524/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39460524/Model_4FGL_J1059.5+2057_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) = 12753.9531915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.833       1.0000          .0000       .10000E+07
     2 'Prefactor '    .33317E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    24.804       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30476E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.3242       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.2143       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.6218       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.479       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.2285       1.0000          .0000       .10000E+07
    10 'norm      '    2.0707       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19873E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7987       1.0000          .0000       .10000E+07
    13 'norm      '    12.024       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1576       1.0000          .0000       .10000E+07
    15 'Prefactor '    .21313E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    17 'Normalizat'    .91019       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12753.59     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1041 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.865        4.6541       -.20237E-06    .32255E-01
   2  Prefactor     .26368E-07    26.889        .43140E-07** at limit **
   3  Prefactor     24.819        5.7921       -.27233E-07    .19806E-02
   4  Prefactor     .79936E-08    3.0969        .55828E-06** at limit **
   5  Prefactor     5.3381        4.4745       -.27379E-07    .18170E-02
   6  Prefactor     2.2740        3.9780        .15865E-08    .93596E-03
   7  Prefactor     7.5873        3.1437        .17577E-06    .47964E-02
   8  Prefactor     14.543        7.5156       -.24216E-06    .93883E-02
   9  Prefactor     6.2664        2.8847       -.33916E-06   -.40181E-02
  10  norm          2.0711        1.0008       -.21262E-07   -.22458E-01
  11  Prefactor     .55511E-10    1.9833       -.38780E-06** at limit **
  12  Prefactor     6.8069        4.1181        .10241E-06   -.33870E-02
  13  norm          12.049        4.9975        .25527E-06    .95096E-02
  14  Prefactor     8.1695        5.5269       -.82422E-06   -.13019E-01
  15  Prefactor     .53291E-08    11.946        .15552E-06** at limit **
  16  Prefactor     .55511E-10    1.9262       -.85101E-07** at limit **
  17  Normalizat    .90954        .15078        .29020E-05   -.12692E-03
  18  Prefactor     1.2395        .15974       -.15631E-05    .36255E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.8647
  Prefactor  = 2.63678e-08
  Prefactor  = 24.819
  Prefactor  = 7.99361e-09
  Prefactor  = 5.33814
  Prefactor  = 2.27402
  Prefactor  = 7.58728
  Prefactor  = 14.5434
  Prefactor  = 6.26638
  norm       = 2.07106
  Prefactor  = 5.55112e-11
  Prefactor  = 6.80686
  norm       = 12.0494
  Prefactor  = 8.16953
  Prefactor  = 5.32907e-09
  Prefactor  = 5.55112e-11
  Normalizat = 0.909538
  Prefactor  = 1.23947
 outfile=/lscratch/kocevski/39460741/ltcube_811728001_812332801_4FGL_J1059.5+2057_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/39460741/ft2_4FGL_J1059.5+2057_weekly_bin947.fits
.....................!
real 21.47
user 20.85
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39460741/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460741/ft2_4FGL_J1059.5+2057_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39460741/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460741/expmap_811728001_812332801_4FGL_J1059.5+2057_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/39460741/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
.....................!
real 82.57
user 77.45
sys 4.13

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

Setting source of interest to:
4FGL J1059.5+2057 @ 164.878 20.9524

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39460741/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits scfile=/lscratch/kocevski/39460741/ft2_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460741/cmap_811728001_812332801_4FGL_J1059.5+2057_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.878 yref=20.9524 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.27
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39460741/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits scfile=/lscratch/kocevski/39460741/ft2_4FGL_J1059.5+2057_weekly_bin947.fits outfile=/lscratch/kocevski/39460741/cmap_HighResolution_811728001_812332801_4FGL_J1059.5+2057_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.878 yref=20.9524 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.26
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39460741/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39460741/ft2_4FGL_J1059.5+2057_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39460741/Model_4FGL_J1059.5+2057_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 sourc **********
 **   18 **HESSE 
 **********

 FCN=   12753.59     FROM HESSE     STATUS=OK           292 CALLS     1333 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.865        7.5992        .19679E-03   -1.5606    
   2  Prefactor     .26368E-07    26.965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.819        6.2907        .20083E-03   -1.5608    
   4  Prefactor     .79936E-08    .62361        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3381        4.4839        .43533E-03   -1.5662    
   6  Prefactor     2.2740        5.7739        .69090E-03   -1.5678    
   7  Prefactor     7.5873        6.3962        .36301E-03   -1.5653    
   8  Prefactor     14.543        8.1876        .26296E-03   -1.5632    
   9  Prefactor     6.2664        6.6870        .40200E-03   -1.5658    
  10  norm          2.0711        1.0067        .71760E-03   -1.5679    
  11  Prefactor     .55511E-10    2.0307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8069        4.1521        .38457E-03   -1.5656    
  13  norm          12.049        8.1246        .28864E-03   -1.5639    
  14  Prefactor     8.1695        6.7972        .35079E-03   -1.5651    
  15  Prefactor     .53291E-08    11.935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    1.9664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .90954        .12920        .45032E-01   -.96126    
  18  Prefactor     1.2395        .13567        .57887E-01   -.85125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84981e-09
Minuit parameter uncertainties:
  1  7.59916
  2  0.00168648
  3  6.29074
  4  0.000141431
  5  4.48395
  6  5.77389
  7  6.39616
  8  8.1876
  9  6.68702
  10  1.0067
  11  2.0136e-05
  12  4.15213
  13  8.12458
  14  6.79723
  15  0.000503557
  16  1.80909e-05
  17  0.129242
  18  0.135709
 **********
 **   18 **HESSE 
 **********

 FCN=   12753.59     FROM HESSE     STATUS=OK           292 CALLS     1333 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.865        7.5992        .19679E-03   -1.5606    
   2  Prefactor     .26368E-07    26.965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.819        6.2907        .20083E-03   -1.5608    
   4  Prefactor     .79936E-08    .62361        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3381        4.4839        .43533E-03   -1.5662    
   6  Prefactor     2.2740        5.7739        .69090E-03   -1.5678    
   7  Prefactor     7.5873        6.3962        .36301E-03   -1.5653    
   8  Prefactor     14.543        8.1876        .26296E-03   -1.5632    
   9  Prefactor     6.2664        6.6870        .40200E-03   -1.5658    
  10  norm          2.0711        1.0067        .71760E-03   -1.5679    
  11  Prefactor     .55511E-10    2.0307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8069        4.1521        .38457E-03   -1.5656    
  13  norm          12.049        8.1246        .28864E-03   -1.5639    
  14  Prefactor     8.1695        6.7972        .35079E-03   -1.5651    
  15  Prefactor     .53291E-08    11.935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    1.9664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .90954        .12920        .45032E-01   -.96126    
  18  Prefactor     1.2395        .13567        .57887E-01   -.85125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84981e-09
Minuit parameter uncertainties:
  1  7.59916
  2  0.00168648
  3  6.29074
  4  0.000141431
  5  4.48395
  6  5.77389
  7  6.39616
  8  8.1876
  9  6.68702
  10  1.0067
  11  2.0136e-05
  12  4.15213
  13  8.12458
  14  6.79723
  15  0.000503557
  16  1.80909e-05
  17  0.129242
  18  0.135709
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  6.266e+00  6.687e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.239e+00  1.357e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.095e-01  1.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 164.878 20.952
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.52e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 4.89e-06 +/- 5.22e-06

TS (Fixed Index): 1.79
Ra Dec: 164.878 20.952
Photon Flux Upper Limit: 5.66692559107e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00438332594035 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39460700/likelihoodResults_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12753.5869465
delta logL = 0.000650753272566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12753.5865723
delta logL = 0.00102494095336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0733       1.0000          .0000       .10000E+07
     2 'Index     '    2.4692       1.0000          .0000       10.000    
     3 'Normalizat'    .90825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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.

 FCN=   12753.59     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0704        8.6162        .81434E-04   -.14631E-03
   2  Index         2.4720        1.3979        .13249E-01    .23868E-03
   3  Normalizat    .90807        .14831        .26460E-03   -.12890E-04
   4  Prefactor     1.2405        .16135        .25589E-03   -.10663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.07036
  Index      = 2.47203
  Normalizat = 0.908071
  Prefactor  = 1.24048
e GAL_V02
Working on...
/lscratch/kocevski/39460728/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits.....................!
real 42.31
user 41.08
sys 0.60

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39460728/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits', '/lscratch/kocevski/39460728/ft2_4FGL_J1059.5+2057_weekly_bin947.fits', expMap='/lscratch/kocevski/39460728/expmap_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits', expCube='/lscratch/kocevski/39460728/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39460728/Model_4FGL_J1059.5+2057_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1059.5+2057'

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.435e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39460728/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39460728/ft2_4FGL_J1059.5+2057_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39460728/expmap_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39460728/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39460728/Model_4FGL_J1059.5+2057_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) = 12753.9531915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.833       1.0000          .0000       .10000E+07
     2 'Prefactor '    .33317E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    24.804       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30476E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.3242       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.2143       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.6218       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.479       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.2285       1.0000          .0000       .10000E+07
    10 'norm      '    2.0707       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19873E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7987       1.0000          .0000       .10000E+07
    13 'norm      '    12.024       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1576       1.0000          .0000       .10000E+07
    15 'Prefactor '    .21313E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    17 'Normalizat'    .91019       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12753.59     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1041 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.865        4.6541       -.20237E-06    .32255E-01
   2  Prefactor     .26368E-07    26.889        .43140E-07** at limit **
   3  Prefactor     24.819        5.7921       -.27233E-07    .19806E-02
   4  Prefactor     .79936E-08    3.0969        .55828E-06** at limit **
   5  Prefactor     5.3381        4.4745       -.27379E-07    .18170E-02
   6  Prefactor     2.2740        3.9780        .15865E-08    .93596E-03
   7  Prefactor     7.5873        3.1437        .17577E-06    .47964E-02
   8  Prefactor     14.543        7.5156       -.24216E-06    .93883E-02
   9  Prefactor     6.2664        2.8847       -.33916E-06   -.40181E-02
  10  norm          2.0711        1.0008       -.21262E-07   -.22458E-01
  11  Prefactor     .55511E-10    1.9833       -.38780E-06** at limit **
  12  Prefactor     6.8069        4.1181        .10241E-06   -.33870E-02
  13  norm          12.049        4.9975        .25527E-06    .95096E-02
  14  Prefactor     8.1695        5.5269       -.82422E-06   -.13019E-01
  15  Prefactor     .53291E-08    11.946        .15552E-06** at limit **
  16  Prefactor     .55511E-10    1.9262       -.85101E-07** at limit **
  17  Normalizat    .90954        .15078        .29020E-05   -.12692E-03
  18  Prefactor     1.2395        .15974       -.15631E-05    .36255E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.8647
  Prefactor  = 2.63678e-08
  Prefactor  = 24.819
  Prefactor  = 7.99361e-09
  Prefactor  = 5.33814
  Prefactor  = 2.27402
  Prefactor  = 7.58728
  Prefactor  = 14.5434
  Prefactor  = 6.26638
  norm       = 2.07106
  Prefactor  = 5.55112e-11
  Prefactor  = 6.80686
  norm       = 12.0494
  Prefactor  = 8.16953
  Prefactor  = 5.32907e-09
  Prefactor  = 5.55112e-11
  Normalizat = 0.909538
  Prefactor  = 1.23947
 **********
 **   18 **HESSE 
 **********

 FCN=   12753.59     FROM HESSE     STATUS=OK            27 CALLS      275 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0704        7.8784        .32574E-05   -1.5659    
   2  Index         2.4720        1.2792        .26499E-02   -.53007    
   3  Normalizat    .90807        .14745        .10584E-04   -.96177    
   4  Prefactor     1.2405        .16100        .10236E-04   -.85094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76783e-13
Minuit parameter uncertainties:
  1  7.87846
  2  1.29878
  3  0.147512
  4  0.161066
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) = 12753.586569
delta logL = 0.00102827274532

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  6.070e+00  7.878e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.472e+00  1.299e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.240e+00  1.611e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.081e-01  1.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 164.878 20.952
Photon Index (Free Index): 2.47 +/- 1.30
Photon Flux (Free Index): 1.63e-08 +/- 2.92e-08
Energy Flux (Free Index): 4.88e-06 +/- 5.04e-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/39460700/cmap_HighResolution_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', comment='SUCCESS', photon_flux='1.52e-08', energy_flux2='4.88e-06', photon_flux_error='1.62e-08', dlogl='1.03e-03', energy_flux='4.89e-06', photon_flux2='1.63e-08', job_status='DONE', time_completed='2026-09-29 13:09:19.982904', photon_index_error2='1.30', photon_index2='2.47', ts='1.79', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='5.67e-08', energy_flux_error2='5.04e-06', EG='0.91', time_epoch_completed='1790712559.98', return_code='0', job_id='39460700', GAL2='1.24', EG2='0.91', return_code2='0', energy_flux_error='5.22e-06', photon_flux_error2='2.92e-08', ts2='1.79', photon_index='2.41' WHERE bin_id='947' AND source_name='4FGL J1059.5+2057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 13:09:20 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  6.266e+00  6.687e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.239e+00  1.357e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.095e-01  1.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 164.878 20.952
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.52e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 4.89e-06 +/- 5.22e-06

TS (Fixed Index): 1.79
Ra Dec: 164.878 20.952
Photon Flux Upper Limit: 5.66692559107e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00438332594035 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39460524/likelihoodResults_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12753.5869465
delta logL = 0.000650753272566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12753.5865723
delta logL = 0.00102494095336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0733       1.0000          .0000       .10000E+07
     2 'Index     '    2.4692       1.0000          .0000       10.000    
     3 'Normalizat'    .90825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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.

 FCN=   12753.59     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0704        8.6162        .81434E-04   -.14631E-03
   2  Index         2.4720        1.3979        .13249E-01    .23868E-03
   3  Normalizat    .90807        .14831        .26460E-03   -.12890E-04
   4  Prefactor     1.2405        .16135        .25589E-03   -.10663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.07036
  Index      = 2.47203
  Normalizat = 0.908071
  Prefactor  = 1.24048
 **********
 **   18 **HESSE 
 **********

 FCN=   12753.59     FROM HESSE     STATUS=OK            27 CALLS      275 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0704        7.8784        .32574E-05   -1.5659    
   2  Index         2.4720        1.2792        .26499E-02   -.53007    
   3  Normalizat    .90807        .14745        .10584E-04   -.96177    
   4  Prefactor     1.2405        .16100        .10236E-04   -.85094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76783e-13
Minuit parameter uncertainties:
  1  7.87846
  2  1.29878
  3  0.147512
  4  0.161066
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) = 12753.586569
delta logL = 0.00102827274532

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  6.070e+00  7.878e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.472e+00  1.299e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.240e+00  1.611e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.081e-01  1.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 164.878 20.952
Photon Index (Free Index): 2.47 +/- 1.30
Photon Flux (Free Index): 1.63e-08 +/- 2.92e-08
Energy Flux (Free Index): 4.88e-06 +/- 5.04e-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/39460524/cmap_HighResolution_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', comment='SUCCESS', photon_flux='1.52e-08', energy_flux2='4.88e-06', photon_flux_error='1.62e-08', dlogl='1.03e-03', energy_flux='4.89e-06', photon_flux2='1.63e-08', job_status='DONE', time_completed='2026-09-29 13:09:25.716627', photon_index_error2='1.30', photon_index2='2.47', ts='1.79', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='5.67e-08', energy_flux_error2='5.04e-06', EG='0.91', time_epoch_completed='1790712565.72', return_code='0', job_id='39460524', GAL2='1.24', EG2='0.91', return_code2='0', energy_flux_error='5.22e-06', photon_flux_error2='2.92e-08', ts2='1.79', photon_index='2.41' WHERE bin_id='947' AND source_name='4FGL J1059.5+2057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 13:09:25 PDT 2026

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

 FCN=   12753.59     FROM HESSE     STATUS=OK           292 CALLS     1333 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.865        7.5992        .19679E-03   -1.5606    
   2  Prefactor     .26368E-07    26.965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.819        6.2907        .20083E-03   -1.5608    
   4  Prefactor     .79936E-08    .62361        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3381        4.4839        .43533E-03   -1.5662    
   6  Prefactor     2.2740        5.7739        .69090E-03   -1.5678    
   7  Prefactor     7.5873        6.3962        .36301E-03   -1.5653    
   8  Prefactor     14.543        8.1876        .26296E-03   -1.5632    
   9  Prefactor     6.2664        6.6870        .40200E-03   -1.5658    
  10  norm          2.0711        1.0067        .71760E-03   -1.5679    
  11  Prefactor     .55511E-10    2.0307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8069        4.1521        .38457E-03   -1.5656    
  13  norm          12.049        8.1246        .28864E-03   -1.5639    
  14  Prefactor     8.1695        6.7972        .35079E-03   -1.5651    
  15  Prefactor     .53291E-08    11.935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    1.9664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .90954        .12920        .45032E-01   -.96126    
  18  Prefactor     1.2395        .13567        .57887E-01   -.85125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84981e-09
Minuit parameter uncertainties:
  1  7.59916
  2  0.00168648
  3  6.29074
  4  0.000141431
  5  4.48395
  6  5.77389
  7  6.39616
  8  8.1876
  9  6.68702
  10  1.0067
  11  2.0136e-05
  12  4.15213
  13  8.12458
  14  6.79723
  15  0.000503557
  16  1.80909e-05
  17  0.129242
  18  0.135709
e GAL_V02
Working on...
/lscratch/kocevski/39460730/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits.....................!
real 47.53
user 45.51
sys 0.65

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39460730/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits', '/lscratch/kocevski/39460730/ft2_4FGL_J1059.5+2057_weekly_bin947.fits', expMap='/lscratch/kocevski/39460730/expmap_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits', expCube='/lscratch/kocevski/39460730/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39460730/Model_4FGL_J1059.5+2057_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1059.5+2057'

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.435e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39460730/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39460730/ft2_4FGL_J1059.5+2057_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39460730/expmap_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39460730/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39460730/Model_4FGL_J1059.5+2057_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) = 12753.9531915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.833       1.0000          .0000       .10000E+07
     2 'Prefactor '    .33317E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    24.804       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30476E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.3242       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.2143       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.6218       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.479       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.2285       1.0000          .0000       .10000E+07
    10 'norm      '    2.0707       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19873E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7987       1.0000          .0000       .10000E+07
    13 'norm      '    12.024       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1576       1.0000          .0000       .10000E+07
    15 'Prefactor '    .21313E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    17 'Normalizat'    .91019       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12753.59     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1041 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.865        4.6541       -.20237E-06    .32255E-01
   2  Prefactor     .26368E-07    26.889        .43140E-07** at limit **
   3  Prefactor     24.819        5.7921       -.27233E-07    .19806E-02
   4  Prefactor     .79936E-08    3.0969        .55828E-06** at limit **
   5  Prefactor     5.3381        4.4745       -.27379E-07    .18170E-02
   6  Prefactor     2.2740        3.9780        .15865E-08    .93596E-03
   7  Prefactor     7.5873        3.1437        .17577E-06    .47964E-02
   8  Prefactor     14.543        7.5156       -.24216E-06    .93883E-02
   9  Prefactor     6.2664        2.8847       -.33916E-06   -.40181E-02
  10  norm          2.0711        1.0008       -.21262E-07   -.22458E-01
  11  Prefactor     .55511E-10    1.9833       -.38780E-06** at limit **
  12  Prefactor     6.8069        4.1181        .10241E-06   -.33870E-02
  13  norm          12.049        4.9975        .25527E-06    .95096E-02
  14  Prefactor     8.1695        5.5269       -.82422E-06   -.13019E-01
  15  Prefactor     .53291E-08    11.946        .15552E-06** at limit **
  16  Prefactor     .55511E-10    1.9262       -.85101E-07** at limit **
  17  Normalizat    .90954        .15078        .29020E-05   -.12692E-03
  18  Prefactor     1.2395        .15974       -.15631E-05    .36255E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.8647
  Prefactor  = 2.63678e-08
  Prefactor  = 24.819
  Prefactor  = 7.99361e-09
  Prefactor  = 5.33814
  Prefactor  = 2.27402
  Prefactor  = 7.58728
  Prefactor  = 14.5434
  Prefactor  = 6.26638
  norm       = 2.07106
  Prefactor  = 5.55112e-11
  Prefactor  = 6.80686
  norm       = 12.0494
  Prefactor  = 8.16953
  Prefactor  = 5.32907e-09
  Prefactor  = 5.55112e-11
  Normalizat = 0.909538
  Prefactor  = 1.23947
 **********
 **   18 **HESSE 
 **********

 FCN=   12753.59     FROM HESSE     STATUS=OK           292 CALLS     1333 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.865        7.5992        .19679E-03   -1.5606    
   2  Prefactor     .26368E-07    26.965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.819        6.2907        .20083E-03   -1.5608    
   4  Prefactor     .79936E-08    .62361        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3381        4.4839        .43533E-03   -1.5662    
   6  Prefactor     2.2740        5.7739        .69090E-03   -1.5678    
   7  Prefactor     7.5873        6.3962        .36301E-03   -1.5653    
   8  Prefactor     14.543        8.1876        .26296E-03   -1.5632    
   9  Prefactor     6.2664        6.6870        .40200E-03   -1.5658    
  10  norm          2.0711        1.0067        .71760E-03   -1.5679    
  11  Prefactor     .55511E-10    2.0307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8069        4.1521        .38457E-03   -1.5656    
  13  norm          12.049        8.1246        .28864E-03   -1.5639    
  14  Prefactor     8.1695        6.7972        .35079E-03   -1.5651    
  15  Prefactor     .53291E-08    11.935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    1.9664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .90954        .12920        .45032E-01   -.96126    
  18  Prefactor     1.2395        .13567        .57887E-01   -.85125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84981e-09
Minuit parameter uncertainties:
  1  7.59916
  2  0.00168648
  3  6.29074
  4  0.000141431
  5  4.48395
  6  5.77389
  7  6.39616
  8  8.1876
  9  6.68702
  10  1.0067
  11  2.0136e-05
  12  4.15213
  13  8.12458
  14  6.79723
  15  0.000503557
  16  1.80909e-05
  17  0.129242
  18  0.135709
e GAL_V02
Working on...
/lscratch/kocevski/39460741/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits.....................!
real 50.08
user 48.55
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39460741/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits', '/lscratch/kocevski/39460741/ft2_4FGL_J1059.5+2057_weekly_bin947.fits', expMap='/lscratch/kocevski/39460741/expmap_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits', expCube='/lscratch/kocevski/39460741/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39460741/Model_4FGL_J1059.5+2057_weekly_bin947.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1059.5+2057'

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.435e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39460741/ft1_filtered_4FGL_J1059.5+2057_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39460741/ft2_4FGL_J1059.5+2057_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39460741/expmap_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39460741/ltcube_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39460741/Model_4FGL_J1059.5+2057_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) = 12753.9531915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.833       1.0000          .0000       .10000E+07
     2 'Prefactor '    .33317E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    24.804       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30476E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.3242       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.2143       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.6218       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.479       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.2285       1.0000          .0000       .10000E+07
    10 'norm      '    2.0707       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19873E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7987       1.0000          .0000       .10000E+07
    13 'norm      '    12.024       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1576       1.0000          .0000       .10000E+07
    15 'Prefactor '    .21313E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    17 'Normalizat'    .91019       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12753.59     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1041 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.865        4.6541       -.20237E-06    .32255E-01
   2  Prefactor     .26368E-07    26.889        .43140E-07** at limit **
   3  Prefactor     24.819        5.7921       -.27233E-07    .19806E-02
   4  Prefactor     .79936E-08    3.0969        .55828E-06** at limit **
   5  Prefactor     5.3381        4.4745       -.27379E-07    .18170E-02
   6  Prefactor     2.2740        3.9780        .15865E-08    .93596E-03
   7  Prefactor     7.5873        3.1437        .17577E-06    .47964E-02
   8  Prefactor     14.543        7.5156       -.24216E-06    .93883E-02
   9  Prefactor     6.2664        2.8847       -.33916E-06   -.40181E-02
  10  norm          2.0711        1.0008       -.21262E-07   -.22458E-01
  11  Prefactor     .55511E-10    1.9833       -.38780E-06** at limit **
  12  Prefactor     6.8069        4.1181        .10241E-06   -.33870E-02
  13  norm          12.049        4.9975        .25527E-06    .95096E-02
  14  Prefactor     8.1695        5.5269       -.82422E-06   -.13019E-01
  15  Prefactor     .53291E-08    11.946        .15552E-06** at limit **
  16  Prefactor     .55511E-10    1.9262       -.85101E-07** at limit **
  17  Normalizat    .90954        .15078        .29020E-05   -.12692E-03
  18  Prefactor     1.2395        .15974       -.15631E-05    .36255E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.8647
  Prefactor  = 2.63678e-08
  Prefactor  = 24.819
  Prefactor  = 7.99361e-09
  Prefactor  = 5.33814
  Prefactor  = 2.27402
  Prefactor  = 7.58728
  Prefactor  = 14.5434
  Prefactor  = 6.26638
  norm       = 2.07106
  Prefactor  = 5.55112e-11
  Prefactor  = 6.80686
  norm       = 12.0494
  Prefactor  = 8.16953
  Prefactor  = 5.32907e-09
  Prefactor  = 5.55112e-11
  Normalizat = 0.909538
  Prefactor  = 1.23947
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  6.266e+00  6.687e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.239e+00  1.357e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.095e-01  1.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 164.878 20.952
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.52e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 4.89e-06 +/- 5.22e-06

TS (Fixed Index): 1.79
Ra Dec: 164.878 20.952
Photon Flux Upper Limit: 5.66692559107e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00438332594035 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39460728/likelihoodResults_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12753.5869465
delta logL = 0.000650753272566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12753.5865723
delta logL = 0.00102494095336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0733       1.0000          .0000       .10000E+07
     2 'Index     '    2.4692       1.0000          .0000       10.000    
     3 'Normalizat'    .90825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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.

 FCN=   12753.59     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0704        8.6162        .81434E-04   -.14631E-03
   2  Index         2.4720        1.3979        .13249E-01    .23868E-03
   3  Normalizat    .90807        .14831        .26460E-03   -.12890E-04
   4  Prefactor     1.2405        .16135        .25589E-03   -.10663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.07036
  Index      = 2.47203
  Normalizat = 0.908071
  Prefactor  = 1.24048
 **********
 **   18 **HESSE 
 **********

 FCN=   12753.59     FROM HESSE     STATUS=OK            27 CALLS      275 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0704        7.8784        .32574E-05   -1.5659    
   2  Index         2.4720        1.2792        .26499E-02   -.53007    
   3  Normalizat    .90807        .14745        .10584E-04   -.96177    
   4  Prefactor     1.2405        .16100        .10236E-04   -.85094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76783e-13
Minuit parameter uncertainties:
  1  7.87846
  2  1.29878
  3  0.147512
  4  0.161066
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) = 12753.586569
delta logL = 0.00102827274532

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  6.070e+00  7.878e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.472e+00  1.299e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.240e+00  1.611e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.081e-01  1.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 164.878 20.952
Photon Index (Free Index): 2.47 +/- 1.30
Photon Flux (Free Index): 1.63e-08 +/- 2.92e-08
Energy Flux (Free Index): 4.88e-06 +/- 5.04e-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/39460728/cmap_HighResolution_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', comment='SUCCESS', photon_flux='1.52e-08', energy_flux2='4.88e-06', photon_flux_error='1.62e-08', dlogl='1.03e-03', energy_flux='4.89e-06', photon_flux2='1.63e-08', job_status='DONE', time_completed='2026-09-29 13:10:23.825098', photon_index_error2='1.30', photon_index2='2.47', ts='1.79', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='5.67e-08', energy_flux_error2='5.04e-06', EG='0.91', time_epoch_completed='1790712623.83', return_code='0', job_id='39460728', GAL2='1.24', EG2='0.91', return_code2='0', energy_flux_error='5.22e-06', photon_flux_error2='2.92e-08', ts2='1.79', photon_index='2.41' WHERE bin_id='947' AND source_name='4FGL J1059.5+2057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 13:10:23 PDT 2026

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

 FCN=   12753.59     FROM HESSE     STATUS=OK           292 CALLS     1333 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.865        7.5992        .19679E-03   -1.5606    
   2  Prefactor     .26368E-07    26.965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.819        6.2907        .20083E-03   -1.5608    
   4  Prefactor     .79936E-08    .62361        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3381        4.4839        .43533E-03   -1.5662    
   6  Prefactor     2.2740        5.7739        .69090E-03   -1.5678    
   7  Prefactor     7.5873        6.3962        .36301E-03   -1.5653    
   8  Prefactor     14.543        8.1876        .26296E-03   -1.5632    
   9  Prefactor     6.2664        6.6870        .40200E-03   -1.5658    
  10  norm          2.0711        1.0067        .71760E-03   -1.5679    
  11  Prefactor     .55511E-10    2.0307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8069        4.1521        .38457E-03   -1.5656    
  13  norm          12.049        8.1246        .28864E-03   -1.5639    
  14  Prefactor     8.1695        6.7972        .35079E-03   -1.5651    
  15  Prefactor     .53291E-08    11.935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    1.9664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .90954        .12920        .45032E-01   -.96126    
  18  Prefactor     1.2395        .13567        .57887E-01   -.85125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84981e-09
Minuit parameter uncertainties:
  1  7.59916
  2  0.00168648
  3  6.29074
  4  0.000141431
  5  4.48395
  6  5.77389
  7  6.39616
  8  8.1876
  9  6.68702
  10  1.0067
  11  2.0136e-05
  12  4.15213
  13  8.12458
  14  6.79723
  15  0.000503557
  16  1.80909e-05
  17  0.129242
  18  0.135709
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  6.266e+00  6.687e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.239e+00  1.357e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.095e-01  1.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 164.878 20.952
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.52e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 4.89e-06 +/- 5.22e-06

TS (Fixed Index): 1.79
Ra Dec: 164.878 20.952
Photon Flux Upper Limit: 5.66692559107e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00438332594035 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39460730/likelihoodResults_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12753.5869465
delta logL = 0.000650753272566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12753.5865723
delta logL = 0.00102494095336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0733       1.0000          .0000       .10000E+07
     2 'Index     '    2.4692       1.0000          .0000       10.000    
     3 'Normalizat'    .90825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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.

 FCN=   12753.59     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0704        8.6162        .81434E-04   -.14631E-03
   2  Index         2.4720        1.3979        .13249E-01    .23868E-03
   3  Normalizat    .90807        .14831        .26460E-03   -.12890E-04
   4  Prefactor     1.2405        .16135        .25589E-03   -.10663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.07036
  Index      = 2.47203
  Normalizat = 0.908071
  Prefactor  = 1.24048
 **********
 **   18 **HESSE 
 **********

 FCN=   12753.59     FROM HESSE     STATUS=OK            27 CALLS      275 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0704        7.8784        .32574E-05   -1.5659    
   2  Index         2.4720        1.2792        .26499E-02   -.53007    
   3  Normalizat    .90807        .14745        .10584E-04   -.96177    
   4  Prefactor     1.2405        .16100        .10236E-04   -.85094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76783e-13
Minuit parameter uncertainties:
  1  7.87846
  2  1.29878
  3  0.147512
  4  0.161066
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) = 12753.586569
delta logL = 0.00102827274532

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  6.070e+00  7.878e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.472e+00  1.299e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.240e+00  1.611e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.081e-01  1.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 164.878 20.952
Photon Index (Free Index): 2.47 +/- 1.30
Photon Flux (Free Index): 1.63e-08 +/- 2.92e-08
Energy Flux (Free Index): 4.88e-06 +/- 5.04e-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/39460730/cmap_HighResolution_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', comment='SUCCESS', photon_flux='1.52e-08', energy_flux2='4.88e-06', photon_flux_error='1.62e-08', dlogl='1.03e-03', energy_flux='4.89e-06', photon_flux2='1.63e-08', job_status='DONE', time_completed='2026-09-29 13:11:09.075823', photon_index_error2='1.30', photon_index2='2.47', ts='1.79', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='5.67e-08', energy_flux_error2='5.04e-06', EG='0.91', time_epoch_completed='1790712669.08', return_code='0', job_id='39460730', GAL2='1.24', EG2='0.91', return_code2='0', energy_flux_error='5.22e-06', photon_flux_error2='2.92e-08', ts2='1.79', photon_index='2.41' WHERE bin_id='947' AND source_name='4FGL J1059.5+2057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 13:11:09 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  6.266e+00  6.687e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.239e+00  1.357e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.095e-01  1.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 164.878 20.952
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.52e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 4.89e-06 +/- 5.22e-06

TS (Fixed Index): 1.79
Ra Dec: 164.878 20.952
Photon Flux Upper Limit: 5.66692559107e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00438332594035 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39460741/likelihoodResults_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12753.5869465
delta logL = 0.000650753272566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12753.5865723
delta logL = 0.00102494095336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0733       1.0000          .0000       .10000E+07
     2 'Index     '    2.4692       1.0000          .0000       10.000    
     3 'Normalizat'    .90825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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.

 FCN=   12753.59     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0704        8.6162        .81434E-04   -.14631E-03
   2  Index         2.4720        1.3979        .13249E-01    .23868E-03
   3  Normalizat    .90807        .14831        .26460E-03   -.12890E-04
   4  Prefactor     1.2405        .16135        .25589E-03   -.10663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.07036
  Index      = 2.47203
  Normalizat = 0.908071
  Prefactor  = 1.24048
 **********
 **   18 **HESSE 
 **********

 FCN=   12753.59     FROM HESSE     STATUS=OK            27 CALLS      275 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0704        7.8784        .32574E-05   -1.5659    
   2  Index         2.4720        1.2792        .26499E-02   -.53007    
   3  Normalizat    .90807        .14745        .10584E-04   -.96177    
   4  Prefactor     1.2405        .16100        .10236E-04   -.85094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76783e-13
Minuit parameter uncertainties:
  1  7.87846
  2  1.29878
  3  0.147512
  4  0.161066
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) = 12753.586569
delta logL = 0.00102827274532

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  6.070e+00  7.878e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.472e+00  1.299e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.240e+00  1.611e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.081e-01  1.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 164.878 20.952
Photon Index (Free Index): 2.47 +/- 1.30
Photon Flux (Free Index): 1.63e-08 +/- 2.92e-08
Energy Flux (Free Index): 4.88e-06 +/- 5.04e-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/39460741/cmap_HighResolution_811728001_812332801_4FGL_J1059.5+2057_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', comment='SUCCESS', photon_flux='1.52e-08', energy_flux2='4.88e-06', photon_flux_error='1.62e-08', dlogl='1.03e-03', energy_flux='4.89e-06', photon_flux2='1.63e-08', job_status='DONE', time_completed='2026-09-29 13:11:32.859658', photon_index_error2='1.30', photon_index2='2.47', ts='1.79', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='5.67e-08', energy_flux_error2='5.04e-06', EG='0.91', time_epoch_completed='1790712692.86', return_code='0', job_id='39460741', GAL2='1.24', EG2='0.91', return_code2='0', energy_flux_error='5.22e-06', photon_flux_error2='2.92e-08', ts2='1.79', photon_index='2.41' WHERE bin_id='947' AND source_name='4FGL J1059.5+2057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 13:11:32 PDT 2026

