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


Performing analysis on: 4FGL_J1657.0+6010_weekly_bin933
RA = 254.258, Dec = 60.1676
tmin = 803260801, tmax = 803865601
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='31180159', job_status='RUN', time_executed='2026-07-09 23:02:15.913784', time_epoch_executed='1783663335.91' WHERE source_name='4FGL J1657.0+6010' and cadence='weekly' and bin_id='933'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31180159

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31180159/ft1_4FGL_J1657.0+6010_weekly_bin933.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31180159/ft2_4FGL_J1657.0+6010_weekly_bin933.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31180159/ft1_4FGL_J1657.0+6010_weekly_bin933.fits outfile=/lscratch/kocevski/31180159/ft1_filteredMKT_4FGL_J1657.0+6010_weekly_bin933.fits ra=254.258 dec=60.1676 rad=12.0 tmin=803260801.0 tmax=803865601.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 3.99
user 3.24
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31180159/ft2_4FGL_J1657.0+6010_weekly_bin933.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31180159/ft2_4FGL_J1657.0+6010_weekly_bin933.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/31180159/ft1_filteredMKT_4FGL_J1657.0+6010_weekly_bin933.fits evtable="EVENTS" outfile="/lscratch/kocevski/31180159/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.64
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 3473

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31180159/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31180159/ft2_4FGL_J1657.0+6010_weekly_bin933.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/31180159/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.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/31180159/ft2_4FGL_J1657.0+6010_weekly_bin933.fits
.....................!
real 17.80
user 17.23
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31180159/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits evtable="EVENTS" scfile=/lscratch/kocevski/31180159/ft2_4FGL_J1657.0+6010_weekly_bin933.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31180159/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits outfile=/lscratch/kocevski/31180159/expmap_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.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/31180159/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits
.....................!
real 64.20
user 59.89
sys 3.75

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

Setting source of interest to:
4FGL J1657.0+6010 @ 254.258 60.1676

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31180159/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits scfile=/lscratch/kocevski/31180159/ft2_4FGL_J1657.0+6010_weekly_bin933.fits outfile=/lscratch/kocevski/31180159/cmap_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.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=254.258 yref=60.1676 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.67
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31180159/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits scfile=/lscratch/kocevski/31180159/ft2_4FGL_J1657.0+6010_weekly_bin933.fits outfile=/lscratch/kocevski/31180159/cmap_HighResolution_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.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=254.258 yref=60.1676 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.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31180159/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits evtable="EVENTS" scfile=/lscratch/kocevski/31180159/ft2_4FGL_J1657.0+6010_weekly_bin933.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31180159/Model_4FGL_J1657.0+6010_weekly_bin933.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 = 17530
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1657.0+6010_weekly_bin933
RA = 254.258, Dec = 60.1676
tmin = 803260801, tmax = 803865601
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='31180295', job_status='RUN', time_executed='2026-07-09 23:05:52.679524', time_epoch_executed='1783663552.68' WHERE source_name='4FGL J1657.0+6010' and cadence='weekly' and bin_id='933'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31180295

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31180295/ft1_4FGL_J1657.0+6010_weekly_bin933.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31180295/ft2_4FGL_J1657.0+6010_weekly_bin933.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31180295/ft1_4FGL_J1657.0+6010_weekly_bin933.fits outfile=/lscratch/kocevski/31180295/ft1_filteredMKT_4FGL_J1657.0+6010_weekly_bin933.fits ra=254.258 dec=60.1676 rad=12.0 tmin=803260801.0 tmax=803865601.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 3.93
user 3.32
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31180295/ft2_4FGL_J1657.0+6010_weekly_bin933.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31180295/ft2_4FGL_J1657.0+6010_weekly_bin933.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/31180295/ft1_filteredMKT_4FGL_J1657.0+6010_weekly_bin933.fits evtable="EVENTS" outfile="/lscratch/kocevski/31180295/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.65
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 3473

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31180295/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31180295/ft2_4FGL_J1657.0+6010_weekly_bin933.fits sctable="SC_DATA"number of points = 17530
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1657.0+6010_weekly_bin933
RA = 254.258, Dec = 60.1676
tmin = 803260801, tmax = 803865601
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='31180305', job_status='RUN', time_executed='2026-07-09 23:06:52.729746', time_epoch_executed='1783663612.73' WHERE source_name='4FGL J1657.0+6010' and cadence='weekly' and bin_id='933'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31180305

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31180305/ft1_4FGL_J1657.0+6010_weekly_bin933.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31180305/ft2_4FGL_J1657.0+6010_weekly_bin933.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31180305/ft1_4FGL_J1657.0+6010_weekly_bin933.fits outfile=/lscratch/kocevski/31180305/ft1_filteredMKT_4FGL_J1657.0+6010_weekly_bin933.fits ra=254.258 dec=60.1676 rad=12.0 tmin=803260801.0 tmax=803865601.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 3.96
user 3.38
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31180305/ft2_4FGL_J1657.0+6010_weekly_bin933.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31180305/ft2_4FGL_J1657.0+6010_weekly_bin933.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/31180305/ft1_filteredMKT_4FGL_J1657.0+6010_weekly_bin933.fits evtable="EVENTS" outfile="/lscratch/kocevski/31180305/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.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.61
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 3473

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31180305/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31180305/ft2_4FGL_J1657.0+6010_weekly_bin933.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31180295/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.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/31180295/ft2_4FGL_J1657.0+6010_weekly_bin933.fits
.....................!
real 18.43
user 17.78
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31180295/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits evtable="EVENTS" scfile=/lscratch/kocevski/31180295/ft2_4FGL_J1657.0+6010_weekly_bin933.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31180295/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits outfile=/lscratch/kocevski/31180295/expmap_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.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/31180295/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits
.....................!
real 66.68
user 62.11
sys 3.86

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

Setting source of interest to:
4FGL J1657.0+6010 @ 254.258 60.1676

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31180295/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits scfile=/lscratch/kocevski/31180295/ft2_4FGL_J1657.0+6010_weekly_bin933.fits outfile=/lscratch/kocevski/31180295/cmap_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.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=254.258 yref=60.1676 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.70
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31180295/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits scfile=/lscratch/kocevski/31180295/ft2_4FGL_J1657.0+6010_weekly_bin933.fits outfile=/lscratch/kocevski/31180295/cmap_HighResolution_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.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=254.258 yref=60.1676 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.77
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31180295/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits evtable="EVENTS" scfile=/lscratch/kocevski/31180295/ft2_4FGL_J1657.0+6010_weekly_bin933.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31180295/Model_4FGL_J1657.0+6010_weekly_bin933.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/31180305/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.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/31180305/ft2_4FGL_J1657.0+6010_weekly_bin933.fits
.....................!
real 19.12
user 18.57
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31180305/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits evtable="EVENTS" scfile=/lscratch/kocevski/31180305/ft2_4FGL_J1657.0+6010_weekly_bin933.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31180305/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits outfile=/lscratch/kocevski/31180305/expmap_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.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/31180305/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits
.....................!
real 68.18
user 63.39
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 222 point sources and 0 extended sources

Setting source of interest to:
4FGL J1657.0+6010 @ 254.258 60.1676

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31180305/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits scfile=/lscratch/kocevski/31180305/ft2_4FGL_J1657.0+6010_weekly_bin933.fits outfile=/lscratch/kocevski/31180305/cmap_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.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=254.258 yref=60.1676 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.70
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31180305/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits scfile=/lscratch/kocevski/31180305/ft2_4FGL_J1657.0+6010_weekly_bin933.fits outfile=/lscratch/kocevski/31180305/cmap_HighResolution_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.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=254.258 yref=60.1676 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.70
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31180305/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits evtable="EVENTS" scfile=/lscratch/kocevski/31180305/ft2_4FGL_J1657.0+6010_weekly_bin933.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31180305/Model_4FGL_J1657.0+6010_weekly_bin933.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/31180159/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits.....................!
real 100.22
user 98.07
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31180159/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits', '/lscratch/kocevski/31180159/ft2_4FGL_J1657.0+6010_weekly_bin933.fits', expMap='/lscratch/kocevski/31180159/expmap_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits', expCube='/lscratch/kocevski/31180159/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31180159/Model_4FGL_J1657.0+6010_weekly_bin933.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1657.0+6010'

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  3.318e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
376        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31180159/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits
Spacecraft file(s): /lscratch/kocevski/31180159/ft2_4FGL_J1657.0+6010_weekly_bin933.fits
Exposure map: /lscratch/kocevski/31180159/expmap_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits
Exposure cube: /lscratch/kocevski/31180159/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31180159/Model_4FGL_J1657.0+6010_weekly_bin933.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) = 37004.1664171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1470       1.0000          .0000       .10000E+07
     2 'Prefactor '    .37820E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.3982       1.0000          .0000       .10000E+07
     4 'norm      '    .25091E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    10.615       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13776       1.0000          .0000       .10000E+07
     7 'norm      '    11.656       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.7117       1.0000          .0000       .10000E+07
     9 'Prefactor '    .40147       1.0000          .0000       .10000E+07
    10 'norm      '    6.1268       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16598E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    21.908       1.0000          .0000       .10000E+07
    13 'Prefactor '    12.853       1.0000          .0000       .10000E+07
    14 'norm      '    .49110       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.0674       1.0000          .0000       .10000E+07
    16 'Prefactor '    10.187       1.0000          .0000       .10000E+07
    17 'Prefactor '    .27250E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .27852E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.4347       1.0000          .0000       .10000E+07
    20 'Prefactor '    .23005E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .22333E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    6.1256       1.0000          .0000       .10000E+07
    23 'Prefactor '    14.639       1.0000          .0000       .10000E+07
    24 'Prefactor '    .10130E-05   1.0000          .0000       .10000E+07
    25 'norm      '    2.3859       1.0000          .0000       .10000E+07
    26 'Prefactor '    7.0614       1.0000          .0000       .10000E+07
    27 'Prefactor '    .73219E-06   1.0000          .0000       .10000E+07
    28 'Prefactor '    .11789E-02   1.0000          .0000       .10000E+07
    29 'norm      '    .13572E-06   1.0000          .0000       .10000E+07
    30 'Normalizat'    .93386       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0536       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   37004.10     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     2324 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1468        1.1596       -.82153E-08   -.13531E-01
   2  Prefactor     .41078E-08    13.291       -.24309E-06** at limit **
   3  Prefactor     6.3977        2.6176        .10851E-07    .18879E-01
   4  norm          .16653E-08    3.2797       -.19782E-06** at limit **
   5  Prefactor     10.605        1.0359        .25903E-07   -.43557E-04
   6  Prefactor     .12971        2.1989        .12862E-07** at limit **
   7  norm          11.653        3.3557       -.12744E-06    .56212E-02
   8  Prefactor     4.7149        3.2852        .34891E-07    .11677E-01
   9  Prefactor     .30549        .99290       -.50322E-06    .94356E-02
  10  norm          6.1267        2.7643       -.13750E-07    .79085E-03
  11  Prefactor     .64948E-08    4.0718       -.39962E-06** at limit **
  12  Prefactor     21.901        5.1226       -.28287E-06   -.42696E-01
  13  Prefactor     12.875        4.6529       -.30056E-06    .55396E-02
  14  norm          .49155        .24491        .15532E-07    .93870E-02
  15  Prefactor     4.0593        2.8320        .60229E-08   -.94845E-02
  16  Prefactor     10.189        5.4624       -.39968E-06   -.29308E-01
  17  Prefactor     .26090E-08    1.4505       -.11978E-06** at limit **
  18  Prefactor     .11102E-09    1.2304        .97690E-07** at limit **
  19  Prefactor     2.4343        1.5850        .62503E-08    .64656E-05
  20  Prefactor     .87153E-07    3.4976        .15922E-06** at limit **
  21  norm          .55511E-10    1.0180        .82005E-07** at limit **
  22  Prefactor     6.1312        2.1804       -.15509E-07   -.59251E-02
  23  Prefactor     14.310        3.6699       -.19144E-06    .43315E-01
  24  Prefactor     .45897E-06    5.2361       -.26728E-06** at limit **
  25  norm          2.3860        1.0119       -.21070E-10    .67224E-03
  26  Prefactor     7.0665        1.1804        .17354E-07    .43180E-02
  27  Prefactor     .55511E-10    5.2287       -.41093E-07** at limit **
  28  Prefactor     .27112E-06    3.5031        .24939E-06** at limit **
  29  norm          .13878E-08    1.5747        .23264E-06** at limit **
  30  Normalizat    .93382        .95307E-01    .16946E-05   -.12185E-02
  31  Prefactor     1.0538        .78755E-01    .16669E-06   -.14140E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 4.14681
  Prefactor  = 4.10783e-09
  Prefactor  = 6.39774
  norm       = 1.66533e-09
  Prefactor  = 10.605
  Prefactor  = 0.129714
  norm       = 11.6527
  Prefactor  = 4.71488
  Prefactor  = 0.305493
  norm       = 6.1267
  Prefactor  = 6.4948e-09
  Prefactor  = 21.9007
  Prefactor  = 12.8747
  norm       = 0.491546
  Prefactor  = 4.05935
  Prefactor  = 10.1887
  Prefactor  = 2.60902e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 2.43428
  Prefactor  = 8.71525e-08
  norm       = 5.55112e-11
  Prefactor  = 6.13122
  Prefactor  = 14.31
  Prefactor  = 4.58966e-07
  norm       = 2.38595
  Prefactor  = 7.06651
  Prefactor  = 5.55112e-11
  Prefactor  = 2.71116e-07
  norm       = 1.38778e-09
  Normalizat = 0.933822
  Prefactor  = 1.05381
e GAL_V02
Working on...
/lscratch/kocevski/31180295/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits.....................!
real 104.39
user 101.98
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31180295/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits', '/lscratch/kocevski/31180295/ft2_4FGL_J1657.0+6010_weekly_bin933.fits', expMap='/lscratch/kocevski/31180295/expmap_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits', expCube='/lscratch/kocevski/31180295/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31180295/Model_4FGL_J1657.0+6010_weekly_bin933.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1657.0+6010'

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  3.318e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
376        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31180295/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits
Spacecraft file(s): /lscratch/kocevski/31180295/ft2_4FGL_J1657.0+6010_weekly_bin933.fits
Exposure map: /lscratch/kocevski/31180295/expmap_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits
Exposure cube: /lscratch/kocevski/31180295/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31180295/Model_4FGL_J1657.0+6010_weekly_bin933.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) = 37004.1664171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1470       1.0000          .0000       .10000E+07
     2 'Prefactor '    .37820E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.3982       1.0000          .0000       .10000E+07
     4 'norm      '    .25091E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    10.615       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13776       1.0000          .0000       .10000E+07
     7 'norm      '    11.656       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.7117       1.0000          .0000       .10000E+07
     9 'Prefactor '    .40147       1.0000          .0000       .10000E+07
    10 'norm      '    6.1268       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16598E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    21.908       1.0000          .0000       .10000E+07
    13 'Prefactor '    12.853       1.0000          .0000       .10000E+07
    14 'norm      '    .49110       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.0674       1.0000          .0000       .10000E+07
    16 'Prefactor '    10.187       1.0000          .0000       .10000E+07
    17 'Prefactor '    .27250E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .27852E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.4347       1.0000          .0000       .10000E+07
    20 'Prefactor '    .23005E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .22333E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    6.1256       1.0000          .0000       .10000E+07
    23 'Prefactor '    14.639       1.0000          .0000       .10000E+07
    24 'Prefactor '    .10130E-05   1.0000          .0000       .10000E+07
    25 'norm      '    2.3859       1.0000          .0000       .10000E+07
    26 'Prefactor '    7.0614       1.0000          .0000       .10000E+07
    27 'Prefactor '    .73219E-06   1.0000       **********
 **   18 **HESSE 
 **********

 FCN=   37004.10     FROM HESSE     STATUS=OK           702 CALLS     3026 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1468        1.1601        .49472E-03   -1.5667    
   2  Prefactor     .41078E-08    14.138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3977        2.6236        .39656E-03   -1.5657    
   4  norm          .16653E-08    3.2226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.605        8.6286        .30728E-03   -1.5643    
   6  Prefactor     .12971        .60895        .48202E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.653        6.4235        .29318E-03   -1.5640    
   8  Prefactor     4.7149        3.2981        .46334E-03   -1.5665    
   9  Prefactor     .30549        3.4146        .13490E-01   -1.5697    
  10  norm          6.1267        2.7710        .40537E-03   -1.5658    
  11  Prefactor     .64948E-08    .50983        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.901        5.8291        .21371E-03   -1.5614    
  13  Prefactor     12.875        7.1515        .27915E-03   -1.5636    
  14  norm          .49155        .25377        .79610E-03   -1.5694    
  15  Prefactor     4.0593        2.8649        .49969E-03   -1.5668    
  16  Prefactor     10.189        5.6331        .31370E-03   -1.5644    
  17  Prefactor     .26090E-08    1.9836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    1.2297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4343        1.5920        .65550E-03   -1.5677    
  20  Prefactor     .87153E-07    11.722        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .55511E-10    1.0204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.1312        2.2424        .40540E-03   -1.5658    
  23  Prefactor     14.310        19.263        .26152E-03   -1.5632    
  24  Prefactor     .45897E-06    11.113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.3860        1.0115        .66283E-04   -1.5677    
  26  Prefactor     7.0665        5.6633        .37727E-03   -1.5655    
  27  Prefactor     .55511E-10    5.2388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .27112E-06    11.782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .13878E-08    1.9119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93382        .83860E-01    .45333E-01   -.95282    
  31  Prefactor     1.0538        .68573E-01    .39702E-01   -.90957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02699e-07
Minuit parameter uncertainties:
  1  1.16006
  2  0.000483053
  3  2.62363
  4  0.000146757
  5  8.62862
  6  0.562102
  7  6.42351
  8  3.29813
  9  2.0427
  10  2.77099
  11  0.000115133
  12  5.82907
  13  7.15146
  14  0.253772
  15  2.86494
  16  5.63315
  17  0.00014418
  18  2.25009e-05
  19  1.59197
  20  0.00202124
  21  1.34482e-05
  22  2.24241
  23  19.2634
  24  0.0045168
  25  1.01154
  26  5.66334
  27  3.11612e-05
  28  0.00357456
  29  0.000103117
  30  0.083872
  31  0.0685786
    .0000       .10000E+07
    28 'Prefactor '    .11789E-02   1.0000          .0000       .10000E+07
    29 'norm      '    .13572E-06   1.0000          .0000       .10000E+07
    30 'Normalizat'    .93386       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0536       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   37004.10     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     2324 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1468        1.1596       -.82153E-08   -.13531E-01
   2  Prefactor     .41078E-08    13.291       -.24309E-06** at limit **
   3  Prefactor     6.3977        2.6176        .10851E-07    .18879E-01
   4  norm          .16653E-08    3.2797       -.19782E-06** at limit **
   5  Prefactor     10.605        1.0359        .25903E-07   -.43557E-04
   6  Prefactor     .12971        2.1989        .12862E-07** at limit **
   7  norm          11.653        3.3557       -.12744E-06    .56212E-02
   8  Prefactor     4.7149        3.2852        .34891E-07    .11677E-01
   9  Prefactor     .30549        .99290       -.50322E-06    .94356E-02
  10  norm          6.1267        2.7643       -.13750E-07    .79085E-03
  11  Prefactor     .64948E-08    4.0718       -.39962E-06** at limit **
  12  Prefactor     21.901        5.1226       -.28287E-06   -.42696E-01
  13  Prefactor     12.875        4.6529       -.30056E-06    .55396E-02
  14  norm          .49155        .24491        .15532E-07    .93870E-02
  15  Prefactor     4.0593        2.8320        .60229E-08   -.94845E-02
  16  Prefactor     10.189        5.4624       -.39968E-06   -.29308E-01
  17  Prefactor     .26090E-08    1.4505       -.11978E-06** at limit **
  18  Prefactor     .11102E-09    1.2304        .97690E-07** at limit **
  19  Prefactor     2.4343        1.5850        .62503E-08    .64656E-05
  20  Prefactor     .87153E-07    3.4976        .15922E-06** at limit **
  21  norm          .55511E-10    1.0180        .82005E-07** at limit **
  22  Prefactor     6.1312        2.1804       -.15509E-07   -.59251E-02
  23  Prefactor     14.310        3.6699       -.19144E-06    .43315E-01
  24  Prefactor     .45897E-06    5.2361       -.26728E-06** at limit **
  25  norm          2.3860        1.0119       -.21070E-10    .67224E-03
  26  Prefactor     7.0665        1.1804        .17354E-07    .43180E-02
  27  Prefactor     .55511E-10    5.2287       -.41093E-07** at limit **
  28  Prefactor     .27112E-06    3.5031        .24939E-06** at limit **
  29  norm          .13878E-08    1.5747        .23264E-06** at limit **
  30  Normalizat    .93382        .95307E-01    .16946E-05   -.12185E-02
  31  Prefactor     1.0538        .78755E-01    .16669E-06   -.14140E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 4.14681
  Prefactor  = 4.10783e-09
  Prefactor  = 6.39774
  norm       = 1.66533e-09
  Prefactor  = 10.605
  Prefactor  = 0.129714
  norm       = 11.6527
  Prefactor  = 4.71488
  Prefactor  = 0.305493
  norm       = 6.1267
  Prefactor  = 6.4948e-09
  Prefactor  = 21.9007
  Prefactor  = 12.8747
  norm       = 0.491546
  Prefactor  = 4.05935
  Prefactor  = 10.1887
  Prefactor  = 2.60902e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 2.43428
  Prefactor  = 8.71525e-08
  norm       = 5.55112e-11
  Prefactor  = 6.13122
  Prefactor  = 14.31
  Prefactor  = 4.58966e-07
  norm       = 2.38595
  Prefactor  = 7.06651
  Prefactor  = 5.55112e-11
  Prefactor  = 2.71116e-07
  norm       = 1.38778e-09
  Normalizat = 0.933822
  Prefactor  = 1.05381
Done.

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

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  1.287e+01  7.151e+00  0.000e+00  1.000e+06 ( 1.000e-13)
376        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.054e+00  6.858e-02  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  9.338e-01  8.387e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.78
Ra Dec: 254.258 60.168
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 1.36e-08
Energy Flux (Fixed Index): 7.55e-06 +/- 4.19e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 37003.731295
delta logL = 0.37162442338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 37003.7149842
delta logL = 0.387935163984

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   37003.71     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      279 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2164        10.787        .13982E-04    .20789E-01
   2  Index         2.9237        .83898        .90192E-02    .70615E-03
   3  Normalizat    .91765        .94043E-01    .28275E-03    .18412E-02
   4  Prefactor     1.0628        .79075E-01    .22732E-03    .22964E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.21637
  Index      = 2.92366
  Normalizat = 0.917646
  Prefactor  = 1.06284
 **********
 **   18 **HESSE 
 **********

 FCN=   37003.71     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2164        7.4796        .55927E-06   -1.5651    
   2  Index         2.9237        .58213        .36077E-03   -.42824    
   3  Normalizat    .91765        .92950E-01    .11310E-04   -.95843    
   4  Prefactor     1.0628        .78431E-01    .45463E-04   -.90663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23159e-09
Minuit parameter uncertainties:
  1  7.4796
  2  0.583732
  3  0.0929662
  4  0.0784397
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) = 37003.7149837
delta logL = 0.387935699764

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  8.216e+00  7.480e+00  0.000e+00  1.000e+06 ( 1.000e-13)
376        Index:  2.924e+00  5.837e-01  0.000e+00  1.000e+01 (-1.000e+00)
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.063e+00  7.844e-02  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  9.176e-01  9.297e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.62
Ra Dec: 254.258 60.168
Photon Index (Free Index): 2.92 +/- 0.58
Photon Flux (Free Index): 3.51e-08 +/- 1.99e-08
Energy Flux (Free Index): 7.28e-06 +/- 3.64e-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/31180159/cmap_HighResolution_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='7.28e-06', photon_flux_error='1.36e-08', dlogl='3.88e-01', energy_flux='7.55e-06', photon_flux2='3.51e-08', job_status='DONE', time_completed='2026-07-09 23:24:21.595648', photon_index_error2='0.58', photon_index2='2.92', ts='4.78', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.64e-06', EG='0.93', time_epoch_completed='1783664661.6', return_code='0', job_id='31180159', GAL2='1.06', EG2='0.92', return_code2='0', energy_flux_error='4.19e-06', photon_flux_error2='1.99e-08', ts2='5.62', photon_index='2.45' WHERE bin_id='933' AND source_name='4FGL J1657.0+6010' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  9 23:24:21 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/31180305/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits.....................!
real 106.71
user 105.00
sys 0.74

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31180305/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits', '/lscratch/kocevski/31180305/ft2_4FGL_J1657.0+6010_weekly_bin933.fits', expMap='/lscratch/kocevski/31180305/expmap_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits', expCube='/lscratch/kocevski/31180305/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31180305/Model_4FGL_J1657.0+6010_weekly_bin933.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1657.0+6010'

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  3.318e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
376        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31180305/ft1_filtered_4FGL_J1657.0+6010_weekly_bin933.fits
Spacecraft file(s): /lscratch/kocevski/31180305/ft2_4FGL_J1657.0+6010_weekly_bin933.fits
Exposure map: /lscratch/kocevski/31180305/expmap_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits
Exposure cube: /lscratch/kocevski/31180305/ltcube_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31180305/Model_4FGL_J1657.0+6010_weekly_bin933.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) = 37004.1664171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1470       1.0000          .0000       .10000E+07
     2 'Prefactor '    .37820E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.3982       1.0000          .0000       .10000E+07
     4 'norm      '    .25091E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    10.615       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13776       1.0000          .0000       .10000E+07
     7 'norm      '    11.656       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.7117       1.0000          .0000       .10000E+07
     9 'Prefactor '    .40147       1.0000          .0000       .10000E+07
    10 'norm      '    6.1268       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16598E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    21.908       1.0000          .0000       .10000E+07
    13 'Prefactor '    12.853       1.0000          .0000       .10000E+07
    14 'norm      '    .49110       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.0674       1.0000          .0000       .10000E+07
    16 'Prefactor '    10.187       1.0000          .0000       .10000E+07
    17 'Prefactor '    .27250E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .27852E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.4347       1.0000          .0000       .10000E+07
    20 'Prefactor '    .23005E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .22333E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    6.1256       1.0000          .0000       .10000E+07
    23 'Prefactor '    14.639       1.0000          .0000       .10000E+07
    24 'Prefactor '    .10130E-05   1.0000          .0000       .10000E+07
    25 'norm      '    2.3859       1.0000          .0000       .10000E+07
    26 'Prefactor '    7.0614       1.0000          .0000       .10000E+07
    27 'Prefactor '    .73219E-06   1.0000          .0000       .10000E+07
    28 'Prefactor '    .11789E-02   1.0000          .0000       .10000E+07
    29 'norm      '    .13572E-06   1.0000          .0000       .10000E+07
    30 'Normalizat'    .93386       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0536       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   37004.10     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     2324 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1468        1.1596       -.82153E-08   -.13531E-01
   2  Prefactor     .41078E-08    13.291       -.24309E-06** at limit **
   3  Prefactor     6.3977        2.6176        .10851E-07    .18879E-01
   4  norm          .16653E-08    3.2797       -.19782E-06** at limit **
   5  Prefactor     10.605        1.0359        .25903E-07   -.43557E-04
   6  Prefactor     .12971        2.1989        .12862E-07** at limit **
   7  norm          11.653        3.3557       -.12744E-06    .56212E-02
   8  Prefactor     4.7149        3.2852        .34891E-07    .11677E-01
   9  Prefactor     .30549        .99290       -.50322E-06    .94356E-02
  10  norm          6.1267        2.7643       -.13750E-07    .79085E-03
  11  Prefactor     .64948E-08    4.0718       -.39962E-06** at limit **
  12  Prefactor     21.901        5.1226       -.28287E-06   -.42696E-01
  13  Prefactor     12.875        4.6529       -.30056E-06    .55396E-02
  14  norm          .49155        .24491        .15532E-07    .93870E-02
  15  Prefactor     4.0593        2.8320        .60229E-08   -.94845E-02
  16  Prefactor     10.189        5.4624       -.39968E-06   -.29308E-01
  17  Prefactor     .26090E-08    1.4505       -.11978E-06** at limit **
  18  Prefactor     .11102E-09    1.2304        .97690E-07** at limit **
  19  Prefactor     2.4343        1.5850        .62503E-08    .64656E-05
  20  Prefactor     .87153E-07    3.4976        .15922E-06** at limit **
  21  norm          .55511E-10    1.0180        .82005E-07** at limit **
  22  Prefactor     6.1312        2.1804       -.15509E-07   -.59251E-02
  23  Prefactor     14.310        3.6699       -.19144E-06    .43315E-01
  24  Prefactor     .45897E-06    5.2361       -.26728E-06** at limit **
  25  norm          2.3860        1.0119       -.21070E-10    .67224E-03
  26  Prefactor     7.0665        1.1804        .17354E-07    .43180E-02
  27  Prefactor     .55511E-10    5.2287       -.41093E-07** at limit **
  28  Prefactor     .27112E-06    3.5031        .24939E-06** at limit **
  29  norm          .13878E-08    1.5747        .23264E-06** at limit **
  30  Normalizat    .93382        .95307E-01    .16946E-05   -.12185E-02
  31  Prefactor     1.0538        .78755E-01    .16669E-06   -.14140E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 4.14681
  Prefactor  = 4.10783e-09
  Prefactor  = 6.39774
  norm       = 1.66533e-09
  Prefactor  = 10.605
  Prefactor  = 0.129714
  norm       = 11.6527
  Prefactor  = 4.71488
  Prefactor  = 0.305493
  norm       = 6.1267
  Prefactor  = 6.4948e-09
  Prefactor  = 21.9007
  Prefactor  = 12.8747
  norm       = 0.491546
  Prefactor  = 4.05935
  Prefactor  = 10.1887
  Prefactor  = 2.60902e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 2.43428
  Prefactor  = 8.71525e-08
  norm       = 5.55112e-11
  Prefactor  = 6.13122
  Prefactor  = 14.31
  Prefactor  = 4.58966e-07
  norm       = 2.38595
  Prefactor  = 7.06651
  Prefactor  = 5.55112e-11
  Prefactor  = 2.71116e-07
  norm       = 1.38778e-09
  Normalizat = 0.933822
  Prefactor  = 1.05381
 **********
 **   18 **HESSE 
 **********

 FCN=   37004.10     FROM HESSE     STATUS=OK           702 CALLS     3026 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1468        1.1601        .49472E-03   -1.5667    
   2  Prefactor     .41078E-08    14.138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3977        2.6236        .39656E-03   -1.5657    
   4  norm          .16653E-08    3.2226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.605        8.6286        .30728E-03   -1.5643    
   6  Prefactor     .12971        .60895        .48202E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.653        6.4235        .29318E-03   -1.5640    
   8  Prefactor     4.7149        3.2981        .46334E-03   -1.5665    
   9  Prefactor     .30549        3.4146        .13490E-01   -1.5697    
  10  norm          6.1267        2.7710        .40537E-03   -1.5658    
  11  Prefactor     .64948E-08    .50983        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.901        5.8291        .21371E-03   -1.5614    
  13  Prefactor     12.875        7.1515        .27915E-03   -1.5636    
  14  norm          .49155        .25377        .79610E-03   -1.5694    
  15  Prefactor     4.0593        2.8649        .49969E-03   -1.5668    
  16  Prefactor     10.189        5.6331        .31370E-03   -1.5644    
  17  Prefactor     .26090E-08    1.9836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    1.2297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4343        1.5920        .65550E-03   -1.5677    
  20  Prefactor     .87153E-07    11.722        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .55511E-10    1.0204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.1312        2.2424        .40540E-03   -1.5658    
  23  Prefactor     14.310        19.263        .26152E-03   -1.5632    
  24  Prefactor     .45897E-06    11.113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.3860        1.0115        .66283E-04   -1.5677    
  26  Prefactor     7.0665        5.6633        .37727E-03   -1.5655    
  27  Prefactor     .55511E-10    5.2388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .27112E-06    11.782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .13878E-08    1.9119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93382        .83860E-01    .45333E-01   -.95282    
  31  Prefactor     1.0538        .68573E-01    .39702E-01   -.90957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02699e-07
Minuit parameter uncertainties:
  1  1.16006
  2  0.000483053
  3  2.62363
  4  0.000146757
  5  8.62862
  6  0.562102
  7  6.42351
  8  3.29813
  9  2.0427
  10  2.77099
  11  0.000115133
  12  5.82907
  13  7.15146
  14  0.253772
  15  2.86494
  16  5.63315
  17  0.00014418
  18  2.25009e-05
  19  1.59197
  20  0.00202124
  21  1.34482e-05
  22  2.24241
  23  19.2634
  24  0.0045168
  25  1.01154
  26  5.66334
  27  3.11612e-05
  28  0.00357456
  29  0.000103117
  30  0.083872
  31  0.0685786
Done.

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

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  1.287e+01  7.151e+00  0.000e+00  1.000e+06 ( 1.000e-13)
376        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.054e+00  6.858e-02  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  9.338e-01  8.387e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.78
Ra Dec: 254.258 60.168
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 1.36e-08
Energy Flux (Fixed Index): 7.55e-06 +/- 4.19e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 37003.731295
delta logL = 0.37162442338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 37003.7149842
delta logL = 0.387935163984

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   37003.71     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      279 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2164        10.787        .13982E-04    .20789E-01
   2  Index         2.9237        .83898        .90192E-02    .70615E-03
   3  Normalizat    .91765        .94043E-01    .28275E-03    .18412E-02
   4  Prefactor     1.0628        .79075E-01    .22732E-03    .22964E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.21637
  Index      = 2.92366
  Normalizat = 0.917646
  Prefactor  = 1.06284
 **********
 **   18 **HESSE 
 **********

 FCN=   37003.71     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2164        7.4796        .55927E-06   -1.5651    
   2  Index         2.9237        .58213        .36077E-03   -.42824    
   3  Normalizat    .91765        .92950E-01    .11310E-04   -.95843    
   4  Prefactor     1.0628        .78431E-01    .45463E-04   -.90663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23159e-09
Minuit parameter uncertainties:
  1  7.4796
  2  0.583732
  3  0.0929662
  4  0.0784397
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) = 37003.7149837
delta logL = 0.387935699764

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  8.216e+00  7.480e+00  0.000e+00  1.000e+06 ( 1.000e-13)
376        Index:  2.924e+00  5.837e-01  0.000e+00  1.000e+01 (-1.000e+00)
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.063e+00  7.844e-02  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  9.176e-01  9.297e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.62
Ra Dec: 254.258 60.168
Photon Index (Free Index): 2.92 +/- 0.58
Photon Flux (Free Index): 3.51e-08 +/- 1.99e-08
Energy Flux (Free Index): 7.28e-06 +/- 3.64e-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/31180295/cmap_HighResolution_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='7.28e-06', photon_flux_error='1.36e-08', dlogl='3.88e-01', energy_flux='7.55e-06', photon_flux2='3.51e-08', job_status='DONE', time_completed='2026-07-09 23:27:47.727830', photon_index_error2='0.58', photon_index2='2.92', ts='4.78', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.64e-06', EG='0.93', time_epoch_completed='1783664867.73', return_code='0', job_id='31180295', GAL2='1.06', EG2='0.92', return_code2='0', energy_flux_error='4.19e-06', photon_flux_error2='1.99e-08', ts2='5.62', photon_index='2.45' WHERE bin_id='933' AND source_name='4FGL J1657.0+6010' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  9 23:27:47 PDT 2026

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

 FCN=   37004.10     FROM HESSE     STATUS=OK           702 CALLS     3026 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1468        1.1601        .49472E-03   -1.5667    
   2  Prefactor     .41078E-08    14.138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3977        2.6236        .39656E-03   -1.5657    
   4  norm          .16653E-08    3.2226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.605        8.6286        .30728E-03   -1.5643    
   6  Prefactor     .12971        .60895        .48202E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.653        6.4235        .29318E-03   -1.5640    
   8  Prefactor     4.7149        3.2981        .46334E-03   -1.5665    
   9  Prefactor     .30549        3.4146        .13490E-01   -1.5697    
  10  norm          6.1267        2.7710        .40537E-03   -1.5658    
  11  Prefactor     .64948E-08    .50983        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.901        5.8291        .21371E-03   -1.5614    
  13  Prefactor     12.875        7.1515        .27915E-03   -1.5636    
  14  norm          .49155        .25377        .79610E-03   -1.5694    
  15  Prefactor     4.0593        2.8649        .49969E-03   -1.5668    
  16  Prefactor     10.189        5.6331        .31370E-03   -1.5644    
  17  Prefactor     .26090E-08    1.9836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    1.2297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4343        1.5920        .65550E-03   -1.5677    
  20  Prefactor     .87153E-07    11.722        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .55511E-10    1.0204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.1312        2.2424        .40540E-03   -1.5658    
  23  Prefactor     14.310        19.263        .26152E-03   -1.5632    
  24  Prefactor     .45897E-06    11.113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.3860        1.0115        .66283E-04   -1.5677    
  26  Prefactor     7.0665        5.6633        .37727E-03   -1.5655    
  27  Prefactor     .55511E-10    5.2388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .27112E-06    11.782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .13878E-08    1.9119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93382        .83860E-01    .45333E-01   -.95282    
  31  Prefactor     1.0538        .68573E-01    .39702E-01   -.90957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02699e-07
Minuit parameter uncertainties:
  1  1.16006
  2  0.000483053
  3  2.62363
  4  0.000146757
  5  8.62862
  6  0.562102
  7  6.42351
  8  3.29813
  9  2.0427
  10  2.77099
  11  0.000115133
  12  5.82907
  13  7.15146
  14  0.253772
  15  2.86494
  16  5.63315
  17  0.00014418
  18  2.25009e-05
  19  1.59197
  20  0.00202124
  21  1.34482e-05
  22  2.24241
  23  19.2634
  24  0.0045168
  25  1.01154
  26  5.66334
  27  3.11612e-05
  28  0.00357456
  29  0.000103117
  30  0.083872
  31  0.0685786
Done.

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

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  1.287e+01  7.151e+00  0.000e+00  1.000e+06 ( 1.000e-13)
376        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.054e+00  6.858e-02  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  9.338e-01  8.387e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.78
Ra Dec: 254.258 60.168
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 1.36e-08
Energy Flux (Fixed Index): 7.55e-06 +/- 4.19e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 37003.731295
delta logL = 0.37162442338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 37003.7149842
delta logL = 0.387935163984

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   37003.71     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      279 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2164        10.787        .13982E-04    .20789E-01
   2  Index         2.9237        .83898        .90192E-02    .70615E-03
   3  Normalizat    .91765        .94043E-01    .28275E-03    .18412E-02
   4  Prefactor     1.0628        .79075E-01    .22732E-03    .22964E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.21637
  Index      = 2.92366
  Normalizat = 0.917646
  Prefactor  = 1.06284
 **********
 **   18 **HESSE 
 **********

 FCN=   37003.71     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2164        7.4796        .55927E-06   -1.5651    
   2  Index         2.9237        .58213        .36077E-03   -.42824    
   3  Normalizat    .91765        .92950E-01    .11310E-04   -.95843    
   4  Prefactor     1.0628        .78431E-01    .45463E-04   -.90663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23159e-09
Minuit parameter uncertainties:
  1  7.4796
  2  0.583732
  3  0.0929662
  4  0.0784397
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) = 37003.7149837
delta logL = 0.387935699764

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  8.216e+00  7.480e+00  0.000e+00  1.000e+06 ( 1.000e-13)
376        Index:  2.924e+00  5.837e-01  0.000e+00  1.000e+01 (-1.000e+00)
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.063e+00  7.844e-02  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  9.176e-01  9.297e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.62
Ra Dec: 254.258 60.168
Photon Index (Free Index): 2.92 +/- 0.58
Photon Flux (Free Index): 3.51e-08 +/- 1.99e-08
Energy Flux (Free Index): 7.28e-06 +/- 3.64e-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/31180305/cmap_HighResolution_803260801_803865601_4FGL_J1657.0+6010_weekly_bin933.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='7.28e-06', photon_flux_error='1.36e-08', dlogl='3.88e-01', energy_flux='7.55e-06', photon_flux2='3.51e-08', job_status='DONE', time_completed='2026-07-09 23:30:40.012783', photon_index_error2='0.58', photon_index2='2.92', ts='4.78', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.64e-06', EG='0.93', time_epoch_completed='1783665040.01', return_code='0', job_id='31180305', GAL2='1.06', EG2='0.92', return_code2='0', energy_flux_error='4.19e-06', photon_flux_error2='1.99e-08', ts2='5.62', photon_index='2.45' WHERE bin_id='933' AND source_name='4FGL J1657.0+6010' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  9 23:30:40 PDT 2026

