/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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

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

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

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

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

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


Performing analysis on: 4FGL_J1638.1+5721_weekly_bin928
RA = 249.525, Dec = 57.3577
tmin = 800236801, tmax = 800841601
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='26874204', job_status='RUN', time_executed='2026-05-19 12:41:59.639092', time_epoch_executed='1779219719.64' WHERE source_name='4FGL J1638.1+5721' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26874204

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26874204/ft1_4FGL_J1638.1+5721_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26874204/ft2_4FGL_J1638.1+5721_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26874204/ft1_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874204/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits ra=249.525 dec=57.3577 rad=12.0 tmin=800236801.0 tmax=800841601.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.30
user 4.60
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26874204/ft2_4FGL_J1638.1+5721_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26874204/ft2_4FGL_J1638.1+5721_weekly_bin928.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/26874204/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26874204/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.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.85
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 2486

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26874204/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26874204/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA"number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1638.1+5721_weekly_bin928
RA = 249.525, Dec = 57.3577
tmin = 800236801, tmax = 800841601
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='26874216', job_status='RUN', time_executed='2026-05-19 12:42:42.795877', time_epoch_executed='1779219762.8' WHERE source_name='4FGL J1638.1+5721' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26874216

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26874216/ft1_4FGL_J1638.1+5721_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26874216/ft2_4FGL_J1638.1+5721_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26874216/ft1_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874216/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits ra=249.525 dec=57.3577 rad=12.0 tmin=800236801.0 tmax=800841601.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.27
user 4.56
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26874216/ft2_4FGL_J1638.1+5721_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26874216/ft2_4FGL_J1638.1+5721_weekly_bin928.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/26874216/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26874216/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2486

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26874216/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26874216/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" Done.


Performing analysis on: 4FGL_J1638.1+5721_weekly_bin928
RA = 249.525, Dec = 57.3577
tmin = 800236801, tmax = 800841601
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='26874218', job_status='RUN', time_executed='2026-05-19 12:42:42.279028', time_epoch_executed='1779219762.28' WHERE source_name='4FGL J1638.1+5721' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26874218

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26874218/ft1_4FGL_J1638.1+5721_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26874218/ft2_4FGL_J1638.1+5721_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26874218/ft1_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874218/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits ra=249.525 dec=57.3577 rad=12.0 tmin=800236801.0 tmax=800841601.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.36
user 4.65
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26874218/ft2_4FGL_J1638.1+5721_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26874218/ft2_4FGL_J1638.1+5721_weekly_bin928.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/26874218/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26874218/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.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.77
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 2486

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26874218/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26874218/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA"number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1638.1+5721_weekly_bin928
RA = 249.525, Dec = 57.3577
tmin = 800236801, tmax = 800841601
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='26874226', job_status='RUN', time_executed='2026-05-19 12:42:42.473808', time_epoch_executed='1779219762.47' WHERE source_name='4FGL J1638.1+5721' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26874226

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26874226/ft1_4FGL_J1638.1+5721_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26874226/ft2_4FGL_J1638.1+5721_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26874226/ft1_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874226/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits ra=249.525 dec=57.3577 rad=12.0 tmin=800236801.0 tmax=800841601.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 4.74
user 3.98
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26874226/ft2_4FGL_J1638.1+5721_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26874226/ft2_4FGL_J1638.1+5721_weekly_bin928.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/26874226/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26874226/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.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.79
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 2486

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26874226/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26874226/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA"number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1638.1+5721_weekly_bin928
RA = 249.525, Dec = 57.3577
tmin = 800236801, tmax = 800841601
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='26874234', job_status='RUN', time_executed='2026-05-19 12:43:04.195939', time_epoch_executed='1779219784.2' WHERE source_name='4FGL J1638.1+5721' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26874234

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26874234/ft1_4FGL_J1638.1+5721_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26874234/ft2_4FGL_J1638.1+5721_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26874234/ft1_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874234/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits ra=249.525 dec=57.3577 rad=12.0 tmin=800236801.0 tmax=800841601.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.40
user 4.72
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26874234/ft2_4FGL_J1638.1+5721_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26874234/ft2_4FGL_J1638.1+5721_weekly_bin928.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/26874234/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26874234/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2486

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26874234/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26874234/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1638.1+5721_weekly_bin928
RA = 249.525, Dec = 57.3577
tmin = 800236801, tmax = 800841601
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='26874228', job_status='RUN', time_executed='2026-05-19 12:42:44.021022', time_epoch_executed='1779219764.02' WHERE source_name='4FGL J1638.1+5721' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26874228

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26874228/ft1_4FGL_J1638.1+5721_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26874228/ft2_4FGL_J1638.1+5721_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26874228/ft1_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874228/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits ra=249.525 dec=57.3577 rad=12.0 tmin=800236801.0 tmax=800841601.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.19
user 4.43
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26874228/ft2_4FGL_J1638.1+5721_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26874228/ft2_4FGL_J1638.1+5721_weekly_bin928.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/26874228/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26874228/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.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.83
user 0.22
sys 0.12

Number of photons that the gtmktime cut: 2486

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26874228/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26874228/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA"number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1638.1+5721_weekly_bin928
RA = 249.525, Dec = 57.3577
tmin = 800236801, tmax = 800841601
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='26874237', job_status='RUN', time_executed='2026-05-19 12:43:02.445103', time_epoch_executed='1779219782.45' WHERE source_name='4FGL J1638.1+5721' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26874237

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26874237/ft1_4FGL_J1638.1+5721_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26874237/ft2_4FGL_J1638.1+5721_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26874237/ft1_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874237/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits ra=249.525 dec=57.3577 rad=12.0 tmin=800236801.0 tmax=800841601.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 4.87
user 4.14
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26874237/ft2_4FGL_J1638.1+5721_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26874237/ft2_4FGL_J1638.1+5721_weekly_bin928.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/26874237/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26874237/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2486

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26874237/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26874237/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA"number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1638.1+5721_weekly_bin928
RA = 249.525, Dec = 57.3577
tmin = 800236801, tmax = 800841601
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='26874470', job_status='RUN', time_executed='2026-05-19 12:44:00.581823', time_epoch_executed='1779219840.58' WHERE source_name='4FGL J1638.1+5721' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26874470

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26874470/ft1_4FGL_J1638.1+5721_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26874470/ft2_4FGL_J1638.1+5721_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26874470/ft1_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874470/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits ra=249.525 dec=57.3577 rad=12.0 tmin=800236801.0 tmax=800841601.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.05
user 4.85
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26874470/ft2_4FGL_J1638.1+5721_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26874470/ft2_4FGL_J1638.1+5721_weekly_bin928.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/26874470/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26874470/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2486

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26874470/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26874470/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA"number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1638.1+5721_weekly_bin928
RA = 249.525, Dec = 57.3577
tmin = 800236801, tmax = 800841601
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='26874473', job_status='RUN', time_executed='2026-05-19 12:44:42.320680', time_epoch_executed='1779219882.32' WHERE source_name='4FGL J1638.1+5721' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26874473

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26874473/ft1_4FGL_J1638.1+5721_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26874473/ft2_4FGL_J1638.1+5721_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26874473/ft1_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874473/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits ra=249.525 dec=57.3577 rad=12.0 tmin=800236801.0 tmax=800841601.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 4.90
user 4.07
sys 0.35

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26874473/ft2_4FGL_J1638.1+5721_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26874473/ft2_4FGL_J1638.1+5721_weekly_bin928.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/26874473/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26874473/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.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.77
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 2486

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26874473/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26874473/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26874204/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874204/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 18.98
user 18.20
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26874204/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874204/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26874204/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874204/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874204/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 70.15
user 65.35
sys 4.01

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

Setting source of interest to:
4FGL J1638.1+5721 @ 249.525 57.3577

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26874204/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874204/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874204/cmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.92
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26874204/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874204/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874204/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.83
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26874204/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874204/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26874204/Model_4FGL_J1638.1+5721_weekly_bin928.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 = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1638.1+5721_weekly_bin928
RA = 249.525, Dec = 57.3577
tmin = 800236801, tmax = 800841601
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='26874527', job_status='RUN', time_executed='2026-05-19 12:44:48.071092', time_epoch_executed='1779219888.07' WHERE source_name='4FGL J1638.1+5721' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26874527

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26874527/ft1_4FGL_J1638.1+5721_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26874527/ft2_4FGL_J1638.1+5721_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26874527/ft1_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874527/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits ra=249.525 dec=57.3577 rad=12.0 tmin=800236801.0 tmax=800841601.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.58
user 4.63
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26874527/ft2_4FGL_J1638.1+5721_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26874527/ft2_4FGL_J1638.1+5721_weekly_bin928.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/26874527/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26874527/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2486

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26874527/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26874527/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26874226/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874226/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 16.30
user 15.48
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26874226/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874226/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26874226/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874226/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874226/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 59.81
user 55.63
sys 3.49

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

Setting source of interest to:
4FGL J1638.1+5721 @ 249.525 57.3577

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26874226/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874226/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874226/cmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.76
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26874226/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874226/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874226/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.84
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26874226/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874226/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26874226/Model_4FGL_J1638.1+5721_weekly_bin928.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/26874218/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874218/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 19.18
user 18.39
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26874218/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874218/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26874218/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874218/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874218/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 68.62
user 63.97
sys 3.92

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

Setting source of interest to:
4FGL J1638.1+5721 @ 249.525 57.3577

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26874218/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874218/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874218/cmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.71
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26874218/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874218/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874218/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.75
user 0.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26874218/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874218/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26874218/Model_4FGL_J1638.1+5721_weekly_bin928.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 sourcoutfile=/lscratch/kocevski/26874216/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874216/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 18.91
user 18.05
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26874216/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874216/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26874216/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874216/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874216/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 69.57
user 64.56
sys 4.16

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

Setting source of interest to:
4FGL J1638.1+5721 @ 249.525 57.3577

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26874216/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874216/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874216/cmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.65
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26874216/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874216/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874216/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.78
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26874216/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874216/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26874216/Model_4FGL_J1638.1+5721_weekly_bin928.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 sourcenumber of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
 outfile=/lscratch/kocevski/26874237/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874237/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 16.79
user 15.96
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26874237/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874237/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26874237/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874237/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874237/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 61.40
user 57.12
sys 3.54

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

Setting source of interest to:
4FGL J1638.1+5721 @ 249.525 57.3577

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26874237/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874237/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874237/cmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26874237/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874237/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874237/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.92
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26874237/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874237/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26874237/Model_4FGL_J1638.1+5721_weekly_bin928.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.


Performing analysis on: 4FGL_J1638.1+5721_weekly_bin928
RA = 249.525, Dec = 57.3577
tmin = 800236801, tmax = 800841601
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='26874629', job_status='RUN', time_executed='2026-05-19 12:45:45.492835', time_epoch_executed='1779219945.49' WHERE source_name='4FGL J1638.1+5721' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26874629

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26874629/ft1_4FGL_J1638.1+5721_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26874629/ft2_4FGL_J1638.1+5721_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26874629/ft1_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874629/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits ra=249.525 dec=57.3577 rad=12.0 tmin=800236801.0 tmax=800841601.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.80
user 4.96
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26874629/ft2_4FGL_J1638.1+5721_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26874629/ft2_4FGL_J1638.1+5721_weekly_bin928.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/26874629/ft1_filteredMKT_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26874629/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.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.73
user 0.24
sys 0.13

Number of photons that the gtmktime cut: 2486

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26874629/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26874629/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA"outfile=/lscratch/kocevski/26874234/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874234/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 19.42
user 18.48
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26874234/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874234/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26874234/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874234/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874234/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 69.51
user 64.72
sys 4.06

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

Setting source of interest to:
4FGL J1638.1+5721 @ 249.525 57.3577

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26874234/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874234/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874234/cmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.83
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26874234/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874234/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874234/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.83
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26874234/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874234/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26874234/Model_4FGL_J1638.1+5721_weekly_bin928.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 outfile=/lscratch/kocevski/26874228/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874228/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 19.08
user 18.29
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26874228/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874228/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26874228/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874228/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874228/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 67.74
user 62.68
sys 4.22

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

Setting source of interest to:
4FGL J1638.1+5721 @ 249.525 57.3577

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26874228/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874228/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874228/cmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.83
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26874228/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874228/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874228/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26874228/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874228/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26874228/Model_4FGL_J1638.1+5721_weekly_bin928.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/26874473/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874473/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 16.25
user 15.44
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26874473/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874473/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26874473/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874473/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874473/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 60.19
user 55.71
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 221 point sources and 0 extended sources

Setting source of interest to:
4FGL J1638.1+5721 @ 249.525 57.3577

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26874473/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874473/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874473/cmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26874473/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874473/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874473/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.65
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26874473/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874473/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26874473/Model_4FGL_J1638.1+5721_weekly_bin928.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/26874470/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874470/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 21.26
user 19.74
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26874470/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874470/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26874470/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874470/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874470/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 72.19
user 66.10
sys 4.06

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

Setting source of interest to:
4FGL J1638.1+5721 @ 249.525 57.3577

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26874470/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874470/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874470/cmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.04
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26874470/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874470/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874470/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.24
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26874470/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874470/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26874470/Model_4FGL_J1638.1+5721_weekly_bin928.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/26874527/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874527/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 21.10
user 20.24
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26874527/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874527/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26874527/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874527/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874527/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 71.60
user 66.90
sys 3.87

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

Setting source of interest to:
4FGL J1638.1+5721 @ 249.525 57.3577

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26874527/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874527/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874527/cmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26874527/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874527/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874527/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.76
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26874527/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874527/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26874527/Model_4FGL_J1638.1+5721_weekly_bin928.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/26874629/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874629/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 21.31
user 20.29
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26874629/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874629/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26874629/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874629/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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/26874629/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
.....................!
real 75.32
user 70.12
sys 4.12

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

Setting source of interest to:
4FGL J1638.1+5721 @ 249.525 57.3577

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26874629/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874629/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874629/cmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.85
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26874629/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits scfile=/lscratch/kocevski/26874629/ft2_4FGL_J1638.1+5721_weekly_bin928.fits outfile=/lscratch/kocevski/26874629/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.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=249.525 yref=57.3577 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.88
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26874629/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26874629/ft2_4FGL_J1638.1+5721_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26874629/Model_4FGL_J1638.1+5721_weekly_bin928.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/26874226/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits.....................!
real 63.01
user 61.38
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26874226/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits', '/lscratch/kocevski/26874226/ft2_4FGL_J1638.1+5721_weekly_bin928.fits', expMap='/lscratch/kocevski/26874226/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', expCube='/lscratch/kocevski/26874226/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26874226/Model_4FGL_J1638.1+5721_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1638.1+5721'

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  2.779e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26874226/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26874226/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26874226/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26874226/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26874226/Model_4FGL_J1638.1+5721_weekly_bin928.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) = 26629.7715599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27455E-04   1.0000          .0000       .10000E+07
     2 'norm      '    4.1422       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.649       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12697E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .39596E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.196       1.0000          .0000       .10000E+07
     7 'Prefactor '    .66740E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4044       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15424E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1870       1.0000          .0000       .10000E+07
    11 'norm      '    4.6003       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22427E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.3776       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0681       1.0000          .0000       .10000E+07
    15 'norm      '    .14730E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0028       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.957       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8288       1.0000          .0000       .10000E+07
    19 'norm      '    .55111       1.0000          .0000       .10000E+07
    20 'norm      '    .17093       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4442       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14009E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1217       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0143       1.0000          .0000       .10000E+07
    25 'Prefactor '    50.688       1.0000          .0000       .10000E+07
    26 'norm      '    .21747E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.3657       1.0000          .0000       .10000E+07
    28 'Prefactor '    24.278       1.0000          .0000       .10000E+07
    29 'Prefactor '    56.676       1.0000          .0000       .10000E+07
    30 'Normalizat'    .89614       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26629.72     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2967 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0766        .53813E-06** at limit **
   2  norm          4.1458        1.3602       -.24387E-07    .34434E-03
   3  Prefactor     13.258        19.401        .19036E-05   -.49791E-02
   4  Prefactor      .0000        1.4970       -.20581E-07** at limit **
   5  norm          .20539E-08    2.7499        .67846E-06** at limit **
   6  Prefactor     18.986        13.131        .45388E-06   -.15104E-02
   7  Prefactor     .54956E-08    19.738       -.10274E-06** at limit **
   8  Prefactor     2.4050        1.9944        .42678E-08   -.50641E-02
   9  Prefactor     .13323E-08    3.6630       -.17222E-06** at limit **
  10  Prefactor     1.1864        2.8137       -.47761E-07   -.14357E-02
  11  norm          4.6018        5.8808        .85695E-06    .40001E-01
  12  Prefactor     .11102E-09    .64659        .13708E-07** at limit **
  13  Prefactor     6.3564        2.9399       -.43402E-07   -.55895E-02
  14  Prefactor     4.0701        4.8435       -.10060E-05    .29478E-01
  15  norm          .83267E-08    2.1451       -.99828E-06** at limit **
  16  Prefactor     4.0041        1.5464        .11922E-07    .51264E-02
  17  Prefactor     19.955        5.7883       -.17277E-07   -.36168E-02
  18  Prefactor     1.8295        5.6170        .19434E-05    .30481E-01
  19  norm          .55068        .35670        .17727E-08    .47459E-02
  20  norm          .17098        .20225        .31250E-08** at limit **
  21  Prefactor     5.4394        3.2486        .34951E-07   -.24961E-03
  22  Prefactor     .16653E-08    2.4010        .85824E-07** at limit **
  23  Prefactor     1.1187        2.2787       -.10752E-07    .98797E-03
  24  Prefactor     2.0139        1.4171        .33260E-07    .11152E-01
  25  Prefactor     50.798        13.242       -.53819E-06    .72647E-01
  26  norm          .16653E-09    1.1069       -.41392E-07** at limit **
  27  Prefactor     2.3667        1.5738        .20293E-07   -.12212E-02
  28  Prefactor     24.211        7.3169       -.31741E-06   -.75463E-01
  29  Prefactor     57.332        33.959        .85181E-06   -.27178E-01
  30  Normalizat    .89647        .10163       -.16429E-05    .57003E-03
  31  Prefactor     1.0577        .91637E-01   -.50560E-06    .80056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.14581
  Prefactor  = 13.2578
  Prefactor  = 0
  norm       = 2.05391e-09
  Prefactor  = 18.986
  Prefactor  = 5.4956e-09
  Prefactor  = 2.40501
  Prefactor  = 1.33227e-09
  Prefactor  = 1.18644
  norm       = 4.60179
  Prefactor  = 1.11022e-10
  Prefactor  = 6.35641
  Prefactor  = 4.07012
  norm       = 8.32667e-09
  Prefactor  = 4.00411
  Prefactor  = 19.9552
  Prefactor  = 1.8295
  norm       = 0.550684
  norm       = 0.170981
  Prefactor  = 5.43938
  Prefactor  = 1.66533e-09
  Prefactor  = 1.1187
  Prefactor  = 2.01388
  Prefactor  = 50.7976
  norm       = 1.66533e-10
  Prefactor  = 2.36672
  Prefactor  = 24.211
  Prefactor  = 57.3318
  Normalizat = 0.896466
  Prefactor  = 1.05768
e GAL_V02
Working on...
/lscratch/kocevski/26874237/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits.....................!
real 63.17
user 61.27
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26874237/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits', '/lscratch/kocevski/26874237/ft2_4FGL_J1638.1+5721_weekly_bin928.fits', expMap='/lscratch/kocevski/26874237/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', expCube='/lscratch/kocevski/26874237/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26874237/Model_4FGL_J1638.1+5721_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1638.1+5721'

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  2.779e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26874237/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26874237/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26874237/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26874237/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26874237/Model_4FGL_J1638.1+5721_weekly_bin928.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) = 26629.7715599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27455E-04   1.0000          .0000       .10000E+07
     2 'norm      '    4.1422       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.649       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12697E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .39596E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.196       1.0000          .0000       .10000E+07
     7 'Prefactor '    .66740E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4044       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15424E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1870       1.0000          .0000       .10000E+07
    11 'norm      '    4.6003       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22427E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.3776       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0681       1.0000          .0000       .10000E+07
    15 'norm      '    .14730E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0028       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.957       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8288       1.0000          .0000       .10000E+07
    19 'norm      '    .55111       1.0000          .0000       .10000E+07
    20 'norm      '    .17093       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4442       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14009E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1217       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0143       1.0000          .0000       .10000E+07
    25 'Prefactor '    50.688       1.0000          .0000       .10000E+07
    26 'norm      '    .21747E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.3657       1.0000        e GAL_V02
Working on...
/lscratch/kocevski/26874204/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits.....................!
real 72.81
user 70.73
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26874204/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits', '/lscratch/kocevski/26874204/ft2_4FGL_J1638.1+5721_weekly_bin928.fits', expMap='/lscratch/kocevski/26874204/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', expCube='/lscratch/kocevski/26874204/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26874204/Model_4FGL_J1638.1+5721_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1638.1+5721'

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  2.779e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26874204/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26874204/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26874204/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26874204/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26874204/Model_4FGL_J1638.1+5721_weekly_bin928.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) = 26629.7715599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27455E-04   1.0000          .0000       .10000E+07
     2 'norm      '    4.1422       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.649       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12697E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .39596E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.196       1.0000          .0000       .10000E+07
     7 'Prefactor '    .66740E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4044       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15424E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1870       1.0000          .0000       .10000E+07
    11 'norm      '    4.6003       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22427E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.3776       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0681       1.0000          .0000       .10000E+07
    15 'norm      '    .14730E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0028       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.957       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8288       1.0000          .0000       .10000E+07
    19 'norm      '    .55111       1.0000          .0000       .10000E+07
    20 'norm      '    .17093       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4442       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14009E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1217       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0143       1.0000          .0000       .10000E+07
    25 'Prefactor '    50.688       1.0000          .0000       .10000E+07
    26 'norm      '    .21747E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.3657       1.0000          .0000       .10000E+07
    28 'Prefactor '    24.278       1.0000          .0000       .10000E+07
    29 'Prefactor '    56.676       1.0000          .0000       .10000E+07
    30 'Normalizat'    .89614       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26629.72     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2967 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0766        .53813E-06** at limit **
   2  norm          4.1458        1.3602       -.24387E-07    .34434E-03
   3  Prefactor     13.258        19.401        .19036E-05   -.49791E-02
   4  Prefactor      .0000        1.4970       -.20581E-07** at limit **
   5  norm          .20539E-08    2.7499        .67846E-06** at limit **
   6  Prefactor     18.986        13.131        .45388E-06   -.15104E-02
   7  Prefactor     .54956E-08    19.738       -.10274E-06** at limit **
   8  Prefactor     2.4050        1.9944        .42678E-08   -.50641E-02
   9  Prefactor     .13323E-08    3.6630       -.17222E-06** at limit **
  10  Prefactor     1.1864        2.8137       -.47761E-07   -.14357E-02
  11  norm          4.6018        5.8808        .85695E-06    .40001E-01
  12  Prefactor     .11102E-09    .64659        .13708E-07** at limit **
  13  Prefactor     6.3564        2.9399       -.43402E-07   -.55895E-02
  14  Prefactor     4.0701        4.8435       -.10060E-05    .29478E-01
  15  norm          .83267E-08    2.1451       -.99828E-06** at limit **
  16  Prefactor     4.0041        1.5464        .11922E-07    .51264E-02
  17  Prefactor     19.955        5.7883       -.17277E-07   -.36168E-02
  18  Prefactor     1.8295        5.6170        .19434E-05    .30481E-01
  19  norm          .55068        .35670        .17727E-08    .47459E-02
  20  norm          .17098        .20225        .31250E-08** at limit **
  21  Prefactor     5.4394        3.2486        .34951E-07   -.24961E-03
  22  Prefactor     .16653E-08    2.4010        .85824E-07** at limit **
  23  Prefactor     1.1187        2.2787       -.10752E-07    .98797E-03
  24  Prefactor     2.0139        1.4171        .33260E-07    .11152E-01
  25  Prefactor     50.798        13.242       -.53819E-06    .72647E-01
  26  norm          .16653E-09    1.1069       -.41392E-07** at limit **
  27  Prefactor     2.3667        1.5738        .20293E-07   -.12212E-02
  28  Prefactor     24.211        7.3169       -.31741E-06   -.75463E-01
  29  Prefactor     57.332        33.959        .85181E-06   -.27178E-01
  30  Normalizat    .89647        .10163       -.16429E-05    .57003E-03
  31  Prefactor     1.0577        .91637E-01   -.50560E-06    .80056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.14581
  Prefactor  = 13.2578
  Prefactor  = 0
  norm       = 2.05391e-09
  Prefactor  = 18.986
  Prefactor  = 5.4956e-09
  Prefactor  = 2.40501
  Prefactor  = 1.33227e-09
  Prefactor  = 1.18644
  norm       = 4.60179
  Prefactor  = 1.11022e-10
  Prefactor  = 6.35641
  Prefactor  = 4.07012
  norm       = 8.32667e-09
  Prefactor  = 4.00411
  Prefactor  = 19.9552
  Prefactor  = 1.8295
  norm       = 0.550684
  norm       = 0.170981
  Prefactor  = 5.43938
  Prefactor  = 1.66533e-09
  Prefactor  = 1.1187
  Prefactor  = 2.01388
  Prefactor  = 50.7976
  norm       = 1.66533e-10
  Prefactor  = 2.36672
  Prefactor  = 24.211
  Prefactor  = 57.3318
  Normalizat = 0.896466
  Prefactor  = 1.05768
 GAL_V02
Working on...
/lscratch/kocevski/26874216/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits.....................!
real 71.61
user 69.47
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26874216/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits', '/lscratch/kocevski/26874216/ft2_4FGL_J1638.1+5721_weekly_bin928.fits', expMap='/lscratch/kocevski/26874216/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', expCube='/lscratch/kocevski/26874216/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26874216/Model_4FGL_J1638.1+5721_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1638.1+5721'

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  2.779e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26874216/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26874216/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26874216/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26874216/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26874216/Model_4FGL_J1638.1+5721_weekly_bin928.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) = 26629.7715599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27455E-04   1.0000          .0000       .10000E+07
     2 'norm      '    4.1422       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.649       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12697E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .39596E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.196       1.0000          .0000       .10000E+07
     7 'Prefactor '    .66740E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4044       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15424E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1870       1.0000          .0000       .10000E+07
    11 'norm      '    4.6003       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22427E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.3776       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0681       1.0000          .0000       .10000E+07
    15 'norm      '    .14730E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0028       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.957       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8288       1.0000          .0000       .10000E+07
    19 'norm      '    .55111       1.0000          .0000       .10000E+07
    20 'norm      '    .17093       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4442       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14009E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1217       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0143       1.0000          .0000       .10000E+07
    25 'Prefactor '    50.688       1.0000          .0000       .10000E+07
    26 'norm      '    .21747E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.3657       1.0000         e GAL_V02
Working on...
/lscratch/kocevski/26874218/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits.....................!
real 69.76
user 68.01
sys 0.92

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26874218/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits', '/lscratch/kocevski/26874218/ft2_4FGL_J1638.1+5721_weekly_bin928.fits', expMap='/lscratch/kocevski/26874218/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', expCube='/lscratch/kocevski/26874218/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26874218/Model_4FGL_J1638.1+5721_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1638.1+5721'

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  2.779e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26874218/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26874218/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26874218/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26874218/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26874218/Model_4FGL_J1638.1+5721_weekly_bin928.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) = 26629.7715599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27455E-04   1.0000          .0000       .10000E+07
     2 'norm      '    4.1422       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.649       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12697E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .39596E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.196       1.0000          .0000       .10000E+07
     7 'Prefactor '    .66740E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4044       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15424E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1870       1.0000          .0000       .10000E+07
    11 'norm      '    4.6003       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22427E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.3776       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0681       1.0000          .0000       .10000E+07
    15 'norm      '    .14730E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0028       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.957       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8288       1.0000          .0000       .10000E+07
    19 'norm      '    .55111       1.0000          .0000       .10000E+07
    20 'norm      '    .17093       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4442       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14009E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1217       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0143       1.0000          .0000       .10000E+07
    25 'Prefactor '    50.688       1.0000          .0000       .10000E+07
    26 'norm      '    .21747E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.3657       1.0000        e GAL_V02
Working on...
/lscratch/kocevski/26874228/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits.....................!
real 70.12
user 67.97
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26874228/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits', '/lscratch/kocevski/26874228/ft2_4FGL_J1638.1+5721_weekly_bin928.fits', expMap='/lscratch/kocevski/26874228/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', expCube='/lscratch/kocevski/26874228/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26874228/Model_4FGL_J1638.1+5721_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1638.1+5721'

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  2.779e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26874228/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26874228/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26874228/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26874228/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26874228/Model_4FGL_J1638.1+5721_weekly_bin928.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) = 26629.7715599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27455E-04   1.0000          .0000       .10000E+07
     2 'norm      '    4.1422       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.649       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12697E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .39596E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.196       1.0000          .0000       .10000E+07
     7 'Prefactor '    .66740E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4044       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15424E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1870       1.0000          .0000       .10000E+07
    11 'norm      '    4.6003       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22427E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.3776       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0681       1.0000          .0000       .10000E+07
    15 'norm      '    .14730E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0028       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.957       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8288       1.0000          .0000       .10000E+07
    19 'norm      '    .55111       1.0000          .0000       .10000E+07
    20 'norm      '    .17093       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4442       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14009E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1217       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0143       1.0000          .0000       .10000E+07
    25 'Prefactor '    50.688       1.0000          .0000       .10000E+07
    26 'norm      '    .21747E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.3657       1.0000          .0000       .10000E+07
    28 'Prefactor '    24.278       1.0000          .0000       .10000E+07
    29 'Prefactor '    56.676       1.0000          .0000       .10000E+07
    30 'Normalizat'    .89614       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26629.72     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2967 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0766        .53813E-06** at limit **
   2  norm          4.1458        1.3602       -.24387E-07    .34434E-03
   3  Prefactor     13.258        19.401        .19036E-05   -.49791E-02
   4  Prefactor      .0000        1.4970       -.20581E-07** at limit **
   5  norm          .20539E-08    2.7499        .67846E-06** at limit **
   6  Prefactor     18.986        13.131        .45388E-06   -.15104E-02
   7  Prefactor     .54956E-08    19.738       -.10274E-06** at limit **
   8  Prefactor     2.4050        1.9944        .42678E-08   -.50641E-02
   9  Prefactor     .13323E-08    3.6630       -.17222E-06** at limit **
  10  Prefactor     1.1864        2.8137       -.47761E-07   -.14357E-02
  11  norm          4.6018        5.8808        .85695E-06    .40001E-01
  12  Prefactor     .11102E-09    .64659        .13708E-07** at limit **
  13  Prefactor     6.3564        2.9399       -.43402E-07   -.55895E-02
  14  Prefactor     4.0701        4.8435       -.10060E-05    .29478E-01
  15  norm          .83267E-08    2.1451       -.99828E-06** at limit **
  16  Prefactor     4.0041        1.5464        .11922E-07    .51264E-02
  17  Prefactor     19.955        5.7883       -.17277E-07   -.36168E-02
  18  Prefactor     1.8295        5.6170        .19434E-05    .30481E-01
  19  norm          .55068        .35670        .17727E-08    .47459E-02
  20  norm          .17098        .20225        .31250E-08** at limit **
  21  Prefactor     5.4394        3.2486        .34951E-07   -.24961E-03
  22  Prefactor     .16653E-08    2.4010        .85824E-07** at limit **
  23  Prefactor     1.1187        2.2787       -.10752E-07    .98797E-03
  24  Prefactor     2.0139        1.4171        .33260E-07    .11152E-01
  25  Prefactor     50.798        13.242       -.53819E-06    .72647E-01
  26  norm          .16653E-09    1.1069       -.41392E-07** at limit **
  27  Prefactor     2.3667        1.5738        .20293E-07   -.12212E-02
  28  Prefactor     24.211        7.3169       -.31741E-06   -.75463E-01
  29  Prefactor     57.332        33.959        .85181E-06   -.27178E-01
  30  Normalizat    .89647        .10163       -.16429E-05    .57003E-03
  31  Prefactor     1.0577        .91637E-01   -.50560E-06    .80056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.14581
  Prefactor  = 13.2578
  Prefactor  = 0
  norm       = 2.05391e-09
  Prefactor  = 18.986
  Prefactor  = 5.4956e-09
  Prefactor  = 2.40501
  Prefactor  = 1.33227e-09
  Prefactor  = 1.18644
  norm       = 4.60179
  Prefactor  = 1.11022e-10
  Prefactor  = 6.35641
  Prefactor  = 4.07012
  norm       = 8.32667e-09
  Prefactor  = 4.00411
  Prefactor  = 19.9552
  Prefactor  = 1.8295
  norm       = 0.550684
  norm       = 0.170981
  Prefactor  = 5.43938
  Prefactor  = 1.66533e-09
  Prefactor  = 1.1187
  Prefactor  = 2.01388
  Prefactor  = 50.7976
  norm       = 1.66533e-10
  Prefactor  = 2.36672
  Prefactor  = 24.211
  Prefactor  = 57.3318
  Normalizat = 0.896466
  Prefactor  = 1.05768
 GAL_V02
Working on...
/lscratch/kocevski/26874234/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits.....................!
real 71.49
user 69.61
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26874234/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits', '/lscratch/kocevski/26874234/ft2_4FGL_J1638.1+5721_weekly_bin928.fits', expMap='/lscratch/kocevski/26874234/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', expCube='/lscratch/kocevski/26874234/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26874234/Model_4FGL_J1638.1+5721_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1638.1+5721'

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  2.779e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26874234/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26874234/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26874234/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26874234/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26874234/Model_4FGL_J1638.1+5721_weekly_bin928.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) = 26629.7715599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27455E-04   1.0000          .0000       .10000E+07
     2 'norm      '    4.1422       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.649       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12697E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .39596E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.196       1.0000          .0000       .10000E+07
     7 'Prefactor '    .66740E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4044       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15424E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1870       1.0000          .0000       .10000E+07
    11 'norm      '    4.6003       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22427E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.3776       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0681       1.0000          .0000       .10000E+07
    15 'norm      '    .14730E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0028       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.957       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8288       1.0000          .0000       .10000E+07
    19 'norm      '    .55111       1.0000          .0000       .10000E+07
    20 'norm      '    .17093       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4442       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14009E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1217       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0143       1.0000          .0000       .10000E+07
    25 'Prefactor '    50.688       1.0000          .0000       .10000E+07
    26 'norm      '    .21747E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.3657       1.0000          .0000       .10000E+07
    28 'Prefactor '    24.278       1.0000          .0000       .10000E+07
    29 'Prefactor '    56.676       1.0000          .0000       .10000E+07
    30 'Normalizat'    .89614       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26629.72     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2967 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0766        .53813E-06** at limit **
   2  norm          4.1458        1.3602       -.24387E-07    .34434E-03
   3  Prefactor     13.258        19.401        .19036E-05   -.49791E-02
   4  Prefactor      .0000        1.4970       -.20581E-07** at limit **
   5  norm          .20539E-08    2.7499        .67846E-06** at limit **
   6  Prefactor     18.986        13.131        .45388E-06   -.15104E-02
   7  Prefactor     .54956E-08    19.738       -.10274E-06** at limit **
   8  Prefactor     2.4050        1.9944        .42678E-08   -.50641E-02
   9  Prefactor     .13323E-08    3.6630       -.17222E-06** at limit **
  10  Prefactor     1.1864        2.8137       -.47761E-07   -.14357E-02
  11  norm          4.6018        5.8808        .85695E-06    .40001E-01
  12  Prefactor     .11102E-09    .64659        .13708E-07** at limit **
  13  Prefactor     6.3564        2.9399       -.43402E-07   -.55895E-02
  14  Prefactor     4.0701        4.8435       -.10060E-05    .29478E-01
  15  norm          .83267E-08    2.1451       -.99828E-06** at limit **
  16  Prefactor     4.0041        1.5464        .11922E-07    .51264E-02
  17  Prefactor     19.955        5.7883       -.17277E-07   -.36168E-02
  18  Prefactor     1.8295        5.6170        .19434E-05    .30481E-01
  19  norm          .55068        .35670        .17727E-08    .47459E-02
  20  norm          .17098        .20225        .31250E-08** at limit **
  21  Prefactor     5.4394        3.2486        .34951E-07   -.24961E-03
  22  Prefactor     .16653E-08    2.4010        .85824E-07** at limit **
  23  Prefactor     1.1187        2.2787       -.10752E-07    .98797E-03
  24  Prefactor     2.0139        1.4171        .33260E-07    .11152E-01
  25  Prefactor     50.798        13.242       -.53819E-06    .72647E-01
  26  norm          .16653E-09    1.1069       -.41392E-07** at limit **
  27  Prefactor     2.3667        1.5738        .20293E-07   -.12212E-02
  28  Prefactor     24.211        7.3169       -.31741E-06   -.75463E-01
  29  Prefactor     57.332        33.959        .85181E-06   -.27178E-01
  30  Normalizat    .89647        .10163       -.16429E-05    .57003E-03
  31  Prefactor     1.0577        .91637E-01   -.50560E-06    .80056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.14581
  Prefactor  = 13.2578
  Prefactor  = 0
  norm       = 2.05391e-09
  Prefactor  = 18.986
  Prefactor  = 5.4956e-09
  Prefactor  = 2.40501
  Prefactor  = 1.33227e-09
  Prefactor  = 1.18644
  norm       = 4.60179
  Prefactor  = 1.11022e-10
  Prefactor  = 6.35641
  Prefactor  = 4.07012
  norm       = 8.32667e-09
  Prefactor  = 4.00411
  Prefactor  = 19.9552
  Prefactor  = 1.8295
  norm       = 0.550684
  norm       = 0.170981
  Prefactor  = 5.43938
  Prefactor  = 1.66533e-09
  Prefactor  = 1.1187
  Prefactor  = 2.01388
  Prefactor  = 50.7976
  norm       = 1.66533e-10
  Prefactor  = 2.36672
  Prefactor  = 24.211
  Prefactor  = 57.3318
  Normalizat = 0.896466
  Prefactor  = 1.05768
  .0000       .10000E+07
    28 'Prefactor '    24.278       1.0000          .0000       .10000E+07
    29 'Prefactor '    56.676       1.0000          .0000       .10000E+07
    30 'Normalizat'    .89614       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26629.72     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2967 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0766        .53813E-06** at limit **
   2  norm          4.1458        1.3602       -.24387E-07    .34434E-03
   3  Prefactor     13.258        19.401        .19036E-05   -.49791E-02
   4  Prefactor      .0000        1.4970       -.20581E-07** at limit **
   5  norm          .20539E-08    2.7499        .67846E-06** at limit **
   6  Prefactor     18.986        13.131        .45388E-06   -.15104E-02
   7  Prefactor     .54956E-08    19.738       -.10274E-06** at limit **
   8  Prefactor     2.4050        1.9944        .42678E-08   -.50641E-02
   9  Prefactor     .13323E-08    3.6630       -.17222E-06** at limit **
  10  Prefactor     1.1864        2.8137       -.47761E-07   -.14357E-02
  11  norm          4.6018        5.8808        .85695E-06    .40001E-01
  12  Prefactor     .11102E-09    .64659        .13708E-07** at limit **
  13  Prefactor     6.3564        2.9399       -.43402E-07   -.55895E-02
  14  Prefactor     4.0701        4.8435       -.10060E-05    .29478E-01
  15  norm          .83267E-08    2.1451       -.99828E-06** at limit **
  16  Prefactor     4.0041        1.5464        .11922E-07    .51264E-02
  17  Prefactor     19.955        5.7883       -.17277E-07   -.36168E-02
  18  Prefactor     1.8295        5.6170        .19434E-05    .30481E-01
  19  norm          .55068        .35670        .17727E-08    .47459E-02
  20  norm          .17098        .20225        .31250E-08** at limit **
  21  Prefactor     5.4394        3.2486        .34951E-07   -.24961E-03
  22  Prefactor     .16653E-08    2.4010        .85824E-07** at limit **
  23  Prefactor     1.1187        2.2787       -.10752E-07    .98797E-03
  24  Prefactor     2.0139        1.4171        .33260E-07    .11152E-01
  25  Prefactor     50.798        13.242       -.53819E-06    .72647E-01
  26  norm          .16653E-09    1.1069       -.41392E-07** at limit **
  27  Prefactor     2.3667        1.5738        .20293E-07   -.12212E-02
  28  Prefactor     24.211        7.3169       -.31741E-06   -.75463E-01
  29  Prefactor     57.332        33.959        .85181E-06   -.27178E-01
  30  Normalizat    .89647        .10163       -.16429E-05    .57003E-03
  31  Prefactor     1.0577        .91637E-01   -.50560E-06    .80056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.14581
  Prefactor  = 13.2578
  Prefactor  = 0
  norm       = 2.05391e-09
  Prefactor  = 18.986
  Prefactor  = 5.4956e-09
  Prefactor  = 2.40501
  Prefactor  = 1.33227e-09
  Prefactor  = 1.18644
  norm       = 4.60179
  Prefactor  = 1.11022e-10
  Prefactor  = 6.35641
  Prefactor  = 4.07012
  norm       = 8.32667e-09
  Prefactor  = 4.00411
  Prefactor  = 19.9552
  Prefactor  = 1.8295
  norm       = 0.550684
  norm       = 0.170981
  Prefactor  = 5.43938
  Prefactor  = 1.66533e-09
  Prefactor  = 1.1187
  Prefactor  = 2.01388
  Prefactor  = 50.7976
  norm       = 1.66533e-10
  Prefactor  = 2.36672
  Prefactor  = 24.211
  Prefactor  = 57.3318
  Normalizat = 0.896466
  Prefactor  = 1.05768
  .0000       .10000E+07
    28 'Prefactor '    24.278       1.0000          .0000       .10000E+07
    29 'Prefactor '    56.676       1.0000          .0000       .10000E+07
    30 'Normalizat'    .89614       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26629.72     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2967 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0766        .53813E-06** at limit **
   2  norm          4.1458        1.3602       -.24387E-07    .34434E-03
   3  Prefactor     13.258        19.401        .19036E-05   -.49791E-02
   4  Prefactor      .0000        1.4970       -.20581E-07** at limit **
   5  norm          .20539E-08    2.7499        .67846E-06** at limit **
   6  Prefactor     18.986        13.131        .45388E-06   -.15104E-02
   7  Prefactor     .54956E-08    19.738       -.10274E-06** at limit **
   8  Prefactor     2.4050        1.9944        .42678E-08   -.50641E-02
   9  Prefactor     .13323E-08    3.6630       -.17222E-06** at limit **
  10  Prefactor     1.1864        2.8137       -.47761E-07   -.14357E-02
  11  norm          4.6018        5.8808        .85695E-06    .40001E-01
  12  Prefactor     .11102E-09    .64659        .13708E-07** at limit **
  13  Prefactor     6.3564        2.9399       -.43402E-07   -.55895E-02
  14  Prefactor     4.0701        4.8435       -.10060E-05    .29478E-01
  15  norm          .83267E-08    2.1451       -.99828E-06** at limit **
  16  Prefactor     4.0041        1.5464        .11922E-07    .51264E-02
  17  Prefactor     19.955        5.7883       -.17277E-07   -.36168E-02
  18  Prefactor     1.8295        5.6170        .19434E-05    .30481E-01
  19  norm          .55068        .35670        .17727E-08    .47459E-02
  20  norm          .17098        .20225        .31250E-08** at limit **
  21  Prefactor     5.4394        3.2486        .34951E-07   -.24961E-03
  22  Prefactor     .16653E-08    2.4010        .85824E-07** at limit **
  23  Prefactor     1.1187        2.2787       -.10752E-07    .98797E-03
  24  Prefactor     2.0139        1.4171        .33260E-07    .11152E-01
  25  Prefactor     50.798        13.242       -.53819E-06    .72647E-01
  26  norm          .16653E-09    1.1069       -.41392E-07** at limit **
  27  Prefactor     2.3667        1.5738        .20293E-07   -.12212E-02
  28  Prefactor     24.211        7.3169       -.31741E-06   -.75463E-01
  29  Prefactor     57.332        33.959        .85181E-06   -.27178E-01
  30  Normalizat    .89647        .10163       -.16429E-05    .57003E-03
  31  Prefactor     1.0577        .91637E-01   -.50560E-06    .80056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.14581
  Prefactor  = 13.2578
  Prefactor  = 0
  norm       = 2.05391e-09
  Prefactor  = 18.986
  Prefactor  = 5.4956e-09
  Prefactor  = 2.40501
  Prefactor  = 1.33227e-09
  Prefactor  = 1.18644
  norm       = 4.60179
  Prefactor  = 1.11022e-10
  Prefactor  = 6.35641
  Prefactor  = 4.07012
  norm       = 8.32667e-09
  Prefactor  = 4.00411
  Prefactor  = 19.9552
  Prefactor  = 1.8295
  norm       = 0.550684
  norm       = 0.170981
  Prefactor  = 5.43938
  Prefactor  = 1.66533e-09
  Prefactor  = 1.1187
  Prefactor  = 2.01388
  Prefactor  = 50.7976
  norm       = 1.66533e-10
  Prefactor  = 2.36672
  Prefactor  = 24.211
  Prefactor  = 57.3318
  Normalizat = 0.896466
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.72     FROM HESSE     STATUS=OK           694 CALLS     3661 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1458        1.3634        .49502E-03   -1.5667    
   3  Prefactor     13.258        24.049        .27086E-03   -1.5635    
   4  Prefactor      .0000        1.4947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20539E-08    3.1472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.986        13.291        .22832E-03   -1.5621    
   7  Prefactor     .54956E-08    19.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4050        2.0028        .66003E-03   -1.5677    
   9  Prefactor     .13323E-08    3.7026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1864        2.8346        .10464E-02   -1.5686    
  11  norm          4.6018        6.7021        .46905E-03   -1.5665    
  12  Prefactor     .11102E-09    .64466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3564        2.9418        .39721E-03   -1.5658    
  14  Prefactor     4.0701        9.8944        .49964E-03   -1.5668    
  15  norm          .83267E-08    3.2247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0041        1.5576        .50384E-03   -1.5668    
  17  Prefactor     19.955        5.7968        .22392E-03   -1.5619    
  18  Prefactor     1.8295        6.9093        .77151E-03   -1.5681    
  19  norm          .55068        .36208        .73726E-03   -1.5693    
  20  norm          .17098        .24943        .21442E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4394        3.3306        .43042E-03   -1.5661    
  22  Prefactor     .16653E-08    2.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1187        2.3409        .11077E-02   -1.5687    
  24  Prefactor     2.0139        1.4263        .72904E-03   -1.5680    
  25  Prefactor     50.798        29.281        .14047E-03   -1.5565    
  26  norm          .16653E-09    1.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3667        1.5898        .66595E-03   -1.5677    
  28  Prefactor     24.211        17.625        .20300E-03   -1.5610    
  29  Prefactor     57.332        35.310        .13284E-03   -1.5557    
  30  Normalizat    .89647        .89184E-01    .44852E-01   -.96584    
  31  Prefactor     1.0577        .79664E-01    .39466E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42227e-07
Minuit parameter uncertainties:
  1  1.70417e-05
  2  1.36336
  3  24.0494
  4  8.6222e-06
  5  0.000161528
  6  13.2915
  7  0.000660578
  8  2.00284
  9  0.000141638
  10  2.83465
  11  6.70215
  12  1.60895e-05
  13  2.94176
  14  9.89445
  15  0.000327568
  16  1.55762
  17  5.7968
  18  6.90931
  19  0.362083
  20  0.249431
  21  3.33062
  22  0.000126822
  23  2.34092
  24  1.42635
  25  29.2809
  26  2.58404e-05
  27  1.58977
  28  17.6255
  29  35.3104
  30  0.0891983
  31  0.0796728
 .0000       .10000E+07
    28 'Prefactor '    24.278       1.0000          .0000       .10000E+07
    29 'Prefactor '    56.676       1.0000          .0000       .10000E+07
    30 'Normalizat'    .89614       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26629.72     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2967 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0766        .53813E-06** at limit **
   2  norm          4.1458        1.3602       -.24387E-07    .34434E-03
   3  Prefactor     13.258        19.401        .19036E-05   -.49791E-02
   4  Prefactor      .0000        1.4970       -.20581E-07** at limit **
   5  norm          .20539E-08    2.7499        .67846E-06** at limit **
   6  Prefactor     18.986        13.131        .45388E-06   -.15104E-02
   7  Prefactor     .54956E-08    19.738       -.10274E-06** at limit **
   8  Prefactor     2.4050        1.9944        .42678E-08   -.50641E-02
   9  Prefactor     .13323E-08    3.6630       -.17222E-06** at limit **
  10  Prefactor     1.1864        2.8137       -.47761E-07   -.14357E-02
  11  norm          4.6018        5.8808        .85695E-06    .40001E-01
  12  Prefactor     .11102E-09    .64659        .13708E-07** at limit **
  13  Prefactor     6.3564        2.9399       -.43402E-07   -.55895E-02
  14  Prefactor     4.0701        4.8435       -.10060E-05    .29478E-01
  15  norm          .83267E-08    2.1451       -.99828E-06** at limit **
  16  Prefactor     4.0041        1.5464        .11922E-07    .51264E-02
  17  Prefactor     19.955        5.7883       -.17277E-07   -.36168E-02
  18  Prefactor     1.8295        5.6170        .19434E-05    .30481E-01
  19  norm          .55068        .35670        .17727E-08    .47459E-02
  20  norm          .17098        .20225        .31250E-08** at limit **
  21  Prefactor     5.4394        3.2486        .34951E-07   -.24961E-03
  22  Prefactor     .16653E-08    2.4010        .85824E-07** at limit **
  23  Prefactor     1.1187        2.2787       -.10752E-07    .98797E-03
  24  Prefactor     2.0139        1.4171        .33260E-07    .11152E-01
  25  Prefactor     50.798        13.242       -.53819E-06    .72647E-01
  26  norm          .16653E-09    1.1069       -.41392E-07** at limit **
  27  Prefactor     2.3667        1.5738        .20293E-07   -.12212E-02
  28  Prefactor     24.211        7.3169       -.31741E-06   -.75463E-01
  29  Prefactor     57.332        33.959        .85181E-06   -.27178E-01
  30  Normalizat    .89647        .10163       -.16429E-05    .57003E-03
  31  Prefactor     1.0577        .91637E-01   -.50560E-06    .80056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.14581
  Prefactor  = 13.2578
  Prefactor  = 0
  norm       = 2.05391e-09
  Prefactor  = 18.986
  Prefactor  = 5.4956e-09
  Prefactor  = 2.40501
  Prefactor  = 1.33227e-09
  Prefactor  = 1.18644
  norm       = 4.60179
  Prefactor  = 1.11022e-10
  Prefactor  = 6.35641
  Prefactor  = 4.07012
  norm       = 8.32667e-09
  Prefactor  = 4.00411
  Prefactor  = 19.9552
  Prefactor  = 1.8295
  norm       = 0.550684
  norm       = 0.170981
  Prefactor  = 5.43938
  Prefactor  = 1.66533e-09
  Prefactor  = 1.1187
  Prefactor  = 2.01388
  Prefactor  = 50.7976
  norm       = 1.66533e-10
  Prefactor  = 2.36672
  Prefactor  = 24.211
  Prefactor  = 57.3318
  Normalizat = 0.896466
  Prefactor  = 1.05768
e GAL_V02
Working on...
/lscratch/kocevski/26874470/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits.....................!
real 77.10
user 73.64
sys 1.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26874470/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits', '/lscratch/kocevski/26874470/ft2_4FGL_J1638.1+5721_weekly_bin928.fits', expMap='/lscratch/kocevski/26874470/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', expCube='/lscratch/kocevski/26874470/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26874470/Model_4FGL_J1638.1+5721_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1638.1+5721'

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  2.779e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26874470/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26874470/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26874470/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26874470/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26874470/Model_4FGL_J1638.1+5721_weekly_bin928.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) = 26629.7715599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27455E-04   1.0000          .0000       .10000E+07
     2 'norm      '    4.1422       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.649       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12697E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .39596E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.196       1.0000          .0000       .10000E+07
     7 'Prefactor '    .66740E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4044       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15424E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1870       1.0000          .0000       .10000E+07
    11 'norm      '    4.6003       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22427E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.3776       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0681       1.0000          .0000       .10000E+07
    15 'norm      '    .14730E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0028       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.957       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8288       1.0000          .0000       .10000E+07
    19 'norm      '    .55111       1.0000          .0000       .10000E+07
    20 'norm      '    .17093       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4442       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14009E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1217       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0143       1.0000          .0000       .10000E+07
    25 'Prefactor '    50.688       1.0000          .0000       .10000E+07
    26 'norm      '    .21747E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.3657       1.0000        e GAL_V02
Working on...
/lscratch/kocevski/26874473/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits.....................!
real 63.03
user 61.38
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26874473/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits', '/lscratch/kocevski/26874473/ft2_4FGL_J1638.1+5721_weekly_bin928.fits', expMap='/lscratch/kocevski/26874473/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', expCube='/lscratch/kocevski/26874473/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26874473/Model_4FGL_J1638.1+5721_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1638.1+5721'

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  2.779e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26874473/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26874473/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26874473/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26874473/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26874473/Model_4FGL_J1638.1+5721_weekly_bin928.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) = 26629.7715599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27455E-04   1.0000          .0000       .10000E+07
     2 'norm      '    4.1422       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.649       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12697E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .39596E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.196       1.0000          .0000       .10000E+07
     7 'Prefactor '    .66740E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4044       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15424E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1870       1.0000          .0000       .10000E+07
    11 'norm      '    4.6003       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22427E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.3776       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0681       1.0000          .0000       .10000E+07
    15 'norm      '    .14730E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0028       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.957       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8288       1.0000          .0000       .10000E+07
    19 'norm      '    .55111       1.0000          .0000       .10000E+07
    20 'norm      '    .17093       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4442       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14009E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1217       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0143       1.0000          .0000       .10000E+07
    25 'Prefactor '    50.688       1.0000          .0000       .10000E+07
    26 'norm      '    .21747E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.3657       1.0000        Done.

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

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.356e+00  2.942e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.058e+00  7.967e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  8.965e-01  8.920e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 249.525 57.358
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 4.11e-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) = 26629.4458398
delta logL = 0.270425332361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26629.4362697
delta logL = 0.279995496821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9409       1.0000          .0000       .10000E+07
     2 'Index     '    2.3466       1.0000          .0000       10.000    
     3 'Normalizat'    .90928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   26629.44     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9411        3.3899        .15223E-04   -.27465E-01
   2  Index         2.3468        .43084        .12015E-01   -.40049E-03
   3  Normalizat    .90928        .98524E-01    .25749E-03    .29246E-03
   4  Prefactor     1.0499        .90634E-01    .22464E-03    .34961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94112
  Index      = 2.34682
  Normalizat = 0.909276
  Prefactor  = 1.0499
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.44     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9411        3.3933        .60890E-06   -1.5655    
   2  Index         2.3468        .43104        .48059E-03   -.55935    
   3  Normalizat    .90928        .98631E-01    .10300E-04   -.96135    
   4  Prefactor     1.0499        .90711E-01    .89855E-05   -.91084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.197e-09
Minuit parameter uncertainties:
  1  3.39332
  2  0.431786
  3  0.0986502
  4  0.0907239
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) = 26629.4362695
delta logL = 0.279995627661

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.941e+00  3.393e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.347e+00  4.318e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.050e+00  9.072e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.093e-01  9.865e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 249.525 57.358
Photon Index (Free Index): 2.35 +/- 0.43
Photon Flux (Free Index): 2.80e-08 +/- 1.84e-08
Energy Flux (Free Index): 9.89e-06 +/- 5.18e-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/26874226/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='9.89e-06', photon_flux_error='1.68e-08', dlogl='2.80e-01', energy_flux='8.89e-06', photon_flux2='2.80e-08', job_status='DONE', time_completed='2026-05-19 13:03:18.290317', photon_index_error2='0.43', photon_index2='2.35', ts='8.82', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.18e-06', EG='0.90', time_epoch_completed='1779220998.29', return_code='0', job_id='26874226', GAL2='1.05', EG2='0.91', return_code2='0', energy_flux_error='4.11e-06', photon_flux_error2='1.84e-08', ts2='9.32', photon_index='2.68' WHERE bin_id='928' AND source_name='4FGL J1638.1+5721' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:03:18 PDT 2026

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

 FCN=   26629.72     FROM HESSE     STATUS=OK           694 CALLS     3661 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1458        1.3634        .49502E-03   -1.5667    
   3  Prefactor     13.258        24.049        .27086E-03   -1.5635    
   4  Prefactor      .0000        1.4947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20539E-08    3.1472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.986        13.291        .22832E-03   -1.5621    
   7  Prefactor     .54956E-08    19.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4050        2.0028        .66003E-03   -1.5677    
   9  Prefactor     .13323E-08    3.7026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1864        2.8346        .10464E-02   -1.5686    
  11  norm          4.6018        6.7021        .46905E-03   -1.5665    
  12  Prefactor     .11102E-09    .64466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3564        2.9418        .39721E-03   -1.5658    
  14  Prefactor     4.0701        9.8944        .49964E-03   -1.5668    
  15  norm          .83267E-08    3.2247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0041        1.5576        .50384E-03   -1.5668    
  17  Prefactor     19.955        5.7968        .22392E-03   -1.5619    
  18  Prefactor     1.8295        6.9093        .77151E-03   -1.5681    
  19  norm          .55068        .36208        .73726E-03   -1.5693    
  20  norm          .17098        .24943        .21442E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4394        3.3306        .43042E-03   -1.5661    
  22  Prefactor     .16653E-08    2.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1187        2.3409        .11077E-02   -1.5687    
  24  Prefactor     2.0139        1.4263        .72904E-03   -1.5680    
  25  Prefactor     50.798        29.281        .14047E-03   -1.5565    
  26  norm          .16653E-09    1.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3667        1.5898        .66595E-03   -1.5677    
  28  Prefactor     24.211        17.625        .20300E-03   -1.5610    
  29  Prefactor     57.332        35.310        .13284E-03   -1.5557    
  30  Normalizat    .89647        .89184E-01    .44852E-01   -.96584    
  31  Prefactor     1.0577        .79664E-01    .39466E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42227e-07
Minuit parameter uncertainties:
  1  1.70417e-05
  2  1.36336
  3  24.0494
  4  8.6222e-06
  5  0.000161528
  6  13.2915
  7  0.000660578
  8  2.00284
  9  0.000141638
  10  2.83465
  11  6.70215
  12  1.60895e-05
  13  2.94176
  14  9.89445
  15  0.000327568
  16  1.55762
  17  5.7968
  18  6.90931
  19  0.362083
  20  0.249431
  21  3.33062
  22  0.000126822
  23  2.34092
  24  1.42635
  25  29.2809
  26  2.58404e-05
  27  1.58977
  28  17.6255
  29  35.3104
  30  0.0891983
  31  0.0796728
  .0000       .10000E+07
    28 'Prefactor '    24.278       1.0000          .0000       .10000E+07
    29 'Prefactor '    56.676       1.0000          .0000       .10000E+07
    30 'Normalizat'    .89614       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26629.72     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2967 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0766        .53813E-06** at limit **
   2  norm          4.1458        1.3602       -.24387E-07    .34434E-03
   3  Prefactor     13.258        19.401        .19036E-05   -.49791E-02
   4  Prefactor      .0000        1.4970       -.20581E-07** at limit **
   5  norm          .20539E-08    2.7499        .67846E-06** at limit **
   6  Prefactor     18.986        13.131        .45388E-06   -.15104E-02
   7  Prefactor     .54956E-08    19.738       -.10274E-06** at limit **
   8  Prefactor     2.4050        1.9944        .42678E-08   -.50641E-02
   9  Prefactor     .13323E-08    3.6630       -.17222E-06** at limit **
  10  Prefactor     1.1864        2.8137       -.47761E-07   -.14357E-02
  11  norm          4.6018        5.8808        .85695E-06    .40001E-01
  12  Prefactor     .11102E-09    .64659        .13708E-07** at limit **
  13  Prefactor     6.3564        2.9399       -.43402E-07   -.55895E-02
  14  Prefactor     4.0701        4.8435       -.10060E-05    .29478E-01
  15  norm          .83267E-08    2.1451       -.99828E-06** at limit **
  16  Prefactor     4.0041        1.5464        .11922E-07    .51264E-02
  17  Prefactor     19.955        5.7883       -.17277E-07   -.36168E-02
  18  Prefactor     1.8295        5.6170        .19434E-05    .30481E-01
  19  norm          .55068        .35670        .17727E-08    .47459E-02
  20  norm          .17098        .20225        .31250E-08** at limit **
  21  Prefactor     5.4394        3.2486        .34951E-07   -.24961E-03
  22  Prefactor     .16653E-08    2.4010        .85824E-07** at limit **
  23  Prefactor     1.1187        2.2787       -.10752E-07    .98797E-03
  24  Prefactor     2.0139        1.4171        .33260E-07    .11152E-01
  25  Prefactor     50.798        13.242       -.53819E-06    .72647E-01
  26  norm          .16653E-09    1.1069       -.41392E-07** at limit **
  27  Prefactor     2.3667        1.5738        .20293E-07   -.12212E-02
  28  Prefactor     24.211        7.3169       -.31741E-06   -.75463E-01
  29  Prefactor     57.332        33.959        .85181E-06   -.27178E-01
  30  Normalizat    .89647        .10163       -.16429E-05    .57003E-03
  31  Prefactor     1.0577        .91637E-01   -.50560E-06    .80056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.14581
  Prefactor  = 13.2578
  Prefactor  = 0
  norm       = 2.05391e-09
  Prefactor  = 18.986
  Prefactor  = 5.4956e-09
  Prefactor  = 2.40501
  Prefactor  = 1.33227e-09
  Prefactor  = 1.18644
  norm       = 4.60179
  Prefactor  = 1.11022e-10
  Prefactor  = 6.35641
  Prefactor  = 4.07012
  norm       = 8.32667e-09
  Prefactor  = 4.00411
  Prefactor  = 19.9552
  Prefactor  = 1.8295
  norm       = 0.550684
  norm       = 0.170981
  Prefactor  = 5.43938
  Prefactor  = 1.66533e-09
  Prefactor  = 1.1187
  Prefactor  = 2.01388
  Prefactor  = 50.7976
  norm       = 1.66533e-10
  Prefactor  = 2.36672
  Prefactor  = 24.211
  Prefactor  = 57.3318
  Normalizat = 0.896466
  Prefactor  = 1.05768
  .0000       .10000E+07
    28 'Prefactor '    24.278       1.0000          .0000       .10000E+07
    29 'Prefactor '    56.676       1.0000          .0000       .10000E+07
    30 'Normalizat'    .89614       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26629.72     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2967 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0766        .53813E-06** at limit **
   2  norm          4.1458        1.3602       -.24387E-07    .34434E-03
   3  Prefactor     13.258        19.401        .19036E-05   -.49791E-02
   4  Prefactor      .0000        1.4970       -.20581E-07** at limit **
   5  norm          .20539E-08    2.7499        .67846E-06** at limit **
   6  Prefactor     18.986        13.131        .45388E-06   -.15104E-02
   7  Prefactor     .54956E-08    19.738       -.10274E-06** at limit **
   8  Prefactor     2.4050        1.9944        .42678E-08   -.50641E-02
   9  Prefactor     .13323E-08    3.6630       -.17222E-06** at limit **
  10  Prefactor     1.1864        2.8137       -.47761E-07   -.14357E-02
  11  norm          4.6018        5.8808        .85695E-06    .40001E-01
  12  Prefactor     .11102E-09    .64659        .13708E-07** at limit **
  13  Prefactor     6.3564        2.9399       -.43402E-07   -.55895E-02
  14  Prefactor     4.0701        4.8435       -.10060E-05    .29478E-01
  15  norm          .83267E-08    2.1451       -.99828E-06** at limit **
  16  Prefactor     4.0041        1.5464        .11922E-07    .51264E-02
  17  Prefactor     19.955        5.7883       -.17277E-07   -.36168E-02
  18  Prefactor     1.8295        5.6170        .19434E-05    .30481E-01
  19  norm          .55068        .35670        .17727E-08    .47459E-02
  20  norm          .17098        .20225        .31250E-08** at limit **
  21  Prefactor     5.4394        3.2486        .34951E-07   -.24961E-03
  22  Prefactor     .16653E-08    2.4010        .85824E-07** at limit **
  23  Prefactor     1.1187        2.2787       -.10752E-07    .98797E-03
  24  Prefactor     2.0139        1.4171        .33260E-07    .11152E-01
  25  Prefactor     50.798        13.242       -.53819E-06    .72647E-01
  26  norm          .16653E-09    1.1069       -.41392E-07** at limit **
  27  Prefactor     2.3667        1.5738        .20293E-07   -.12212E-02
  28  Prefactor     24.211        7.3169       -.31741E-06   -.75463E-01
  29  Prefactor     57.332        33.959        .85181E-06   -.27178E-01
  30  Normalizat    .89647        .10163       -.16429E-05    .57003E-03
  31  Prefactor     1.0577        .91637E-01   -.50560E-06    .80056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.14581
  Prefactor  = 13.2578
  Prefactor  = 0
  norm       = 2.05391e-09
  Prefactor  = 18.986
  Prefactor  = 5.4956e-09
  Prefactor  = 2.40501
  Prefactor  = 1.33227e-09
  Prefactor  = 1.18644
  norm       = 4.60179
  Prefactor  = 1.11022e-10
  Prefactor  = 6.35641
  Prefactor  = 4.07012
  norm       = 8.32667e-09
  Prefactor  = 4.00411
  Prefactor  = 19.9552
  Prefactor  = 1.8295
  norm       = 0.550684
  norm       = 0.170981
  Prefactor  = 5.43938
  Prefactor  = 1.66533e-09
  Prefactor  = 1.1187
  Prefactor  = 2.01388
  Prefactor  = 50.7976
  norm       = 1.66533e-10
  Prefactor  = 2.36672
  Prefactor  = 24.211
  Prefactor  = 57.3318
  Normalizat = 0.896466
  Prefactor  = 1.05768
Done.

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

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.356e+00  2.942e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.058e+00  7.967e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  8.965e-01  8.920e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 249.525 57.358
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 4.11e-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) = 26629.4458398
delta logL = 0.270425332361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26629.4362697
delta logL = 0.279995496821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9409       1.0000          .0000       .10000E+07
     2 'Index     '    2.3466       1.0000          .0000       10.000    
     3 'Normalizat'    .90928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   26629.44     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9411        3.3899        .15223E-04   -.27465E-01
   2  Index         2.3468        .43084        .12015E-01   -.40049E-03
   3  Normalizat    .90928        .98524E-01    .25749E-03    .29246E-03
   4  Prefactor     1.0499        .90634E-01    .22464E-03    .34961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94112
  Index      = 2.34682
  Normalizat = 0.909276
  Prefactor  = 1.0499
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.44     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9411        3.3933        .60890E-06   -1.5655    
   2  Index         2.3468        .43104        .48059E-03   -.55935    
   3  Normalizat    .90928        .98631E-01    .10300E-04   -.96135    
   4  Prefactor     1.0499        .90711E-01    .89855E-05   -.91084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.197e-09
Minuit parameter uncertainties:
  1  3.39332
  2  0.431786
  3  0.0986502
  4  0.0907239
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.72     FROM HESSE     STATUS=OK           694 CALLS     3661 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1458        1.3634        .49502E-03   -1.5667    
   3  Prefactor     13.258        24.049        .27086E-03   -1.5635    
   4  Prefactor      .0000        1.4947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20539E-08    3.1472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.986        13.291        .22832E-03   -1.5621    
   7  Prefactor     .54956E-08    19.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4050        2.0028        .66003E-03   -1.5677    
   9  Prefactor     .13323E-08    3.7026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1864        2.8346        .10464E-02   -1.5686    
  11  norm          4.6018        6.7021        .46905E-03   -1.5665    
  12  Prefactor     .11102E-09    .64466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3564        2.9418        .39721E-03   -1.5658    
  14  Prefactor     4.0701        9.8944        .49964E-03   -1.5668    
  15  norm          .83267E-08    3.2247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0041        1.5576        .50384E-03   -1.5668    
  17  Prefactor     19.955        5.7968        .22392E-03   -1.5619    
  18  Prefactor     1.8295        6.9093        .77151E-03   -1.5681    
  19  norm          .55068        .36208        .73726E-03   -1.5693    
  20  norm          .17098        .24943        .21442E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4394        3.3306        .43042E-03   -1.5661    
  22  Prefactor     .16653E-08    2.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1187        2.3409        .11077E-02   -1.5687    
  24  Prefactor     2.0139        1.4263        .72904E-03   -1.5680    
  25  Prefactor     50.798        29.281        .14047E-03   -1.5565    
  26  norm          .16653E-09    1.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3667        1.5898        .66595E-03   -1.5677    
  28  Prefactor     24.211        17.625        .20300E-03   -1.5610    
  29  Prefactor     57.332        35.310        .13284E-03   -1.5557    
  30  Normalizat    .89647        .89184E-01    .44852E-01   -.96584    
  31  Prefactor     1.0577        .79664E-01    .39466E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42227e-07
Minuit parameter uncertainties:
  1  1.70417e-05
  2  1.36336
  3  24.0494
  4  8.6222e-06
  5  0.000161528
  6  13.2915
  7  0.000660578
  8  2.00284
  9  0.000141638
  10  2.83465
  11  6.70215
  12  1.60895e-05
  13  2.94176
  14  9.89445
  15  0.000327568
  16  1.55762
  17  5.7968
  18  6.90931
  19  0.362083
  20  0.249431
  21  3.33062
  22  0.000126822
  23  2.34092
  24  1.42635
  25  29.2809
  26  2.58404e-05
  27  1.58977
  28  17.6255
  29  35.3104
  30  0.0891983
  31  0.0796728
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) = 26629.4362695
delta logL = 0.279995627661

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.941e+00  3.393e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.347e+00  4.318e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.050e+00  9.072e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.093e-01  9.865e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 249.525 57.358
Photon Index (Free Index): 2.35 +/- 0.43
Photon Flux (Free Index): 2.80e-08 +/- 1.84e-08
Energy Flux (Free Index): 9.89e-06 +/- 5.18e-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/26874237/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='9.89e-06', photon_flux_error='1.68e-08', dlogl='2.80e-01', energy_flux='8.89e-06', photon_flux2='2.80e-08', job_status='DONE', time_completed='2026-05-19 13:04:07.541729', photon_index_error2='0.43', photon_index2='2.35', ts='8.82', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.18e-06', EG='0.90', time_epoch_completed='1779221047.54', return_code='0', job_id='26874237', GAL2='1.05', EG2='0.91', return_code2='0', energy_flux_error='4.11e-06', photon_flux_error2='1.84e-08', ts2='9.32', photon_index='2.68' WHERE bin_id='928' AND source_name='4FGL J1638.1+5721' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:04:07 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/26874527/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits.....................!
real 75.78
user 73.89
sys 0.82

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26874527/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits', '/lscratch/kocevski/26874527/ft2_4FGL_J1638.1+5721_weekly_bin928.fits', expMap='/lscratch/kocevski/26874527/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', expCube='/lscratch/kocevski/26874527/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26874527/Model_4FGL_J1638.1+5721_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1638.1+5721'

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  2.779e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26874527/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26874527/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26874527/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26874527/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26874527/Model_4FGL_J1638.1+5721_weekly_bin928.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) = 26629.7715599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27455E-04   1.0000          .0000       .10000E+07
     2 'norm      '    4.1422       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.649       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12697E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .39596E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.196       1.0000          .0000       .10000E+07
     7 'Prefactor '    .66740E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4044       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15424E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1870       1.0000          .0000       .10000E+07
    11 'norm      '    4.6003       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22427E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.3776       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0681       1.0000          .0000       .10000E+07
    15 'norm      '    .14730E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0028       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.957       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8288       1.0000          .0000       .10000E+07
    19 'norm      '    .55111       1.0000          .0000       .10000E+07
    20 'norm      '    .17093       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4442       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14009E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1217       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0143       1.0000          .0000       .10000E+07
    25 'Prefactor '    50.688       1.0000          .0000       .10000E+07
    26 'norm      '    .21747E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.3657       1.0000         **********
 **   18 **HESSE 
 **********

 FCN=   26629.72     FROM HESSE     STATUS=OK           694 CALLS     3661 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1458        1.3634        .49502E-03   -1.5667    
   3  Prefactor     13.258        24.049        .27086E-03   -1.5635    
   4  Prefactor      .0000        1.4947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20539E-08    3.1472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.986        13.291        .22832E-03   -1.5621    
   7  Prefactor     .54956E-08    19.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4050        2.0028        .66003E-03   -1.5677    
   9  Prefactor     .13323E-08    3.7026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1864        2.8346        .10464E-02   -1.5686    
  11  norm          4.6018        6.7021        .46905E-03   -1.5665    
  12  Prefactor     .11102E-09    .64466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3564        2.9418        .39721E-03   -1.5658    
  14  Prefactor     4.0701        9.8944        .49964E-03   -1.5668    
  15  norm          .83267E-08    3.2247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0041        1.5576        .50384E-03   -1.5668    
  17  Prefactor     19.955        5.7968        .22392E-03   -1.5619    
  18  Prefactor     1.8295        6.9093        .77151E-03   -1.5681    
  19  norm          .55068        .36208        .73726E-03   -1.5693    
  20  norm          .17098        .24943        .21442E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4394        3.3306        .43042E-03   -1.5661    
  22  Prefactor     .16653E-08    2.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1187        2.3409        .11077E-02   -1.5687    
  24  Prefactor     2.0139        1.4263        .72904E-03   -1.5680    
  25  Prefactor     50.798        29.281        .14047E-03   -1.5565    
  26  norm          .16653E-09    1.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3667        1.5898        .66595E-03   -1.5677    
  28  Prefactor     24.211        17.625        .20300E-03   -1.5610    
  29  Prefactor     57.332        35.310        .13284E-03   -1.5557    
  30  Normalizat    .89647        .89184E-01    .44852E-01   -.96584    
  31  Prefactor     1.0577        .79664E-01    .39466E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42227e-07
Minuit parameter uncertainties:
  1  1.70417e-05
  2  1.36336
  3  24.0494
  4  8.6222e-06
  5  0.000161528
  6  13.2915
  7  0.000660578
  8  2.00284
  9  0.000141638
  10  2.83465
  11  6.70215
  12  1.60895e-05
  13  2.94176
  14  9.89445
  15  0.000327568
  16  1.55762
  17  5.7968
  18  6.90931
  19  0.362083
  20  0.249431
  21  3.33062
  22  0.000126822
  23  2.34092
  24  1.42635
  25  29.2809
  26  2.58404e-05
  27  1.58977
  28  17.6255
  29  35.3104
  30  0.0891983
  31  0.0796728
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.72     FROM HESSE     STATUS=OK           694 CALLS     3661 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1458        1.3634        .49502E-03   -1.5667    
   3  Prefactor     13.258        24.049        .27086E-03   -1.5635    
   4  Prefactor      .0000        1.4947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20539E-08    3.1472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.986        13.291        .22832E-03   -1.5621    
   7  Prefactor     .54956E-08    19.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4050        2.0028        .66003E-03   -1.5677    
   9  Prefactor     .13323E-08    3.7026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1864        2.8346        .10464E-02   -1.5686    
  11  norm          4.6018        6.7021        .46905E-03   -1.5665    
  12  Prefactor     .11102E-09    .64466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3564        2.9418        .39721E-03   -1.5658    
  14  Prefactor     4.0701        9.8944        .49964E-03   -1.5668    
  15  norm          .83267E-08    3.2247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0041        1.5576        .50384E-03   -1.5668    
  17  Prefactor     19.955        5.7968        .22392E-03   -1.5619    
  18  Prefactor     1.8295        6.9093        .77151E-03   -1.5681    
  19  norm          .55068        .36208        .73726E-03   -1.5693    
  20  norm          .17098        .24943        .21442E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4394        3.3306        .43042E-03   -1.5661    
  22  Prefactor     .16653E-08    2.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1187        2.3409        .11077E-02   -1.5687    
  24  Prefactor     2.0139        1.4263        .72904E-03   -1.5680    
  25  Prefactor     50.798        29.281        .14047E-03   -1.5565    
  26  norm          .16653E-09    1.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3667        1.5898        .66595E-03   -1.5677    
  28  Prefactor     24.211        17.625        .20300E-03   -1.5610    
  29  Prefactor     57.332        35.310        .13284E-03   -1.5557    
  30  Normalizat    .89647        .89184E-01    .44852E-01   -.96584    
  31  Prefactor     1.0577        .79664E-01    .39466E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42227e-07
Minuit parameter uncertainties:
  1  1.70417e-05
  2  1.36336
  3  24.0494
  4  8.6222e-06
  5  0.000161528
  6  13.2915
  7  0.000660578
  8  2.00284
  9  0.000141638
  10  2.83465
  11  6.70215
  12  1.60895e-05
  13  2.94176
  14  9.89445
  15  0.000327568
  16  1.55762
  17  5.7968
  18  6.90931
  19  0.362083
  20  0.249431
  21  3.33062
  22  0.000126822
  23  2.34092
  24  1.42635
  25  29.2809
  26  2.58404e-05
  27  1.58977
  28  17.6255
  29  35.3104
  30  0.0891983
  31  0.0796728
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.72     FROM HESSE     STATUS=OK           694 CALLS     3661 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1458        1.3634        .49502E-03   -1.5667    
   3  Prefactor     13.258        24.049        .27086E-03   -1.5635    
   4  Prefactor      .0000        1.4947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20539E-08    3.1472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.986        13.291        .22832E-03   -1.5621    
   7  Prefactor     .54956E-08    19.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4050        2.0028        .66003E-03   -1.5677    
   9  Prefactor     .13323E-08    3.7026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1864        2.8346        .10464E-02   -1.5686    
  11  norm          4.6018        6.7021        .46905E-03   -1.5665    
  12  Prefactor     .11102E-09    .64466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3564        2.9418        .39721E-03   -1.5658    
  14  Prefactor     4.0701        9.8944        .49964E-03   -1.5668    
  15  norm          .83267E-08    3.2247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0041        1.5576        .50384E-03   -1.5668    
  17  Prefactor     19.955        5.7968        .22392E-03   -1.5619    
  18  Prefactor     1.8295        6.9093        .77151E-03   -1.5681    
  19  norm          .55068        .36208        .73726E-03   -1.5693    
  20  norm          .17098        .24943        .21442E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4394        3.3306        .43042E-03   -1.5661    
  22  Prefactor     .16653E-08    2.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1187        2.3409        .11077E-02   -1.5687    
  24  Prefactor     2.0139        1.4263        .72904E-03   -1.5680    
  25  Prefactor     50.798        29.281        .14047E-03   -1.5565    
  26  norm          .16653E-09    1.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3667        1.5898        .66595E-03   -1.5677    
  28  Prefactor     24.211        17.625        .20300E-03   -1.5610    
  29  Prefactor     57.332        35.310        .13284E-03   -1.5557    
  30  Normalizat    .89647        .89184E-01    .44852E-01   -.96584    
  31  Prefactor     1.0577        .79664E-01    .39466E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42227e-07
Minuit parameter uncertainties:
  1  1.70417e-05
  2  1.36336
  3  24.0494
  4  8.6222e-06
  5  0.000161528
  6  13.2915
  7  0.000660578
  8  2.00284
  9  0.000141638
  10  2.83465
  11  6.70215
  12  1.60895e-05
  13  2.94176
  14  9.89445
  15  0.000327568
  16  1.55762
  17  5.7968
  18  6.90931
  19  0.362083
  20  0.249431
  21  3.33062
  22  0.000126822
  23  2.34092
  24  1.42635
  25  29.2809
  26  2.58404e-05
  27  1.58977
  28  17.6255
  29  35.3104
  30  0.0891983
  31  0.0796728
Done.

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

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.356e+00  2.942e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.058e+00  7.967e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  8.965e-01  8.920e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 249.525 57.358
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 4.11e-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) = 26629.4458398
delta logL = 0.270425332361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26629.4362697
delta logL = 0.279995496821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9409       1.0000          .0000       .10000E+07
     2 'Index     '    2.3466       1.0000          .0000       10.000    
     3 'Normalizat'    .90928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   26629.44     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9411        3.3899        .15223E-04   -.27465E-01
   2  Index         2.3468        .43084        .12015E-01   -.40049E-03
   3  Normalizat    .90928        .98524E-01    .25749E-03    .29246E-03
   4  Prefactor     1.0499        .90634E-01    .22464E-03    .34961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94112
  Index      = 2.34682
  Normalizat = 0.909276
  Prefactor  = 1.0499
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.44     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9411        3.3933        .60890E-06   -1.5655    
   2  Index         2.3468        .43104        .48059E-03   -.55935    
   3  Normalizat    .90928        .98631E-01    .10300E-04   -.96135    
   4  Prefactor     1.0499        .90711E-01    .89855E-05   -.91084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.197e-09
Minuit parameter uncertainties:
  1  3.39332
  2  0.431786
  3  0.0986502
  4  0.0907239
  .0000       .10000E+07
    28 'Prefactor '    24.278       1.0000          .0000       .10000E+07
    29 'Prefactor '    56.676       1.0000          .0000       .10000E+07
    30 'Normalizat'    .89614       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26629.72     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2967 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0766        .53813E-06** at limit **
   2  norm          4.1458        1.3602       -.24387E-07    .34434E-03
   3  Prefactor     13.258        19.401        .19036E-05   -.49791E-02
   4  Prefactor      .0000        1.4970       -.20581E-07** at limit **
   5  norm          .20539E-08    2.7499        .67846E-06** at limit **
   6  Prefactor     18.986        13.131        .45388E-06   -.15104E-02
   7  Prefactor     .54956E-08    19.738       -.10274E-06** at limit **
   8  Prefactor     2.4050        1.9944        .42678E-08   -.50641E-02
   9  Prefactor     .13323E-08    3.6630       -.17222E-06** at limit **
  10  Prefactor     1.1864        2.8137       -.47761E-07   -.14357E-02
  11  norm          4.6018        5.8808        .85695E-06    .40001E-01
  12  Prefactor     .11102E-09    .64659        .13708E-07** at limit **
  13  Prefactor     6.3564        2.9399       -.43402E-07   -.55895E-02
  14  Prefactor     4.0701        4.8435       -.10060E-05    .29478E-01
  15  norm          .83267E-08    2.1451       -.99828E-06** at limit **
  16  Prefactor     4.0041        1.5464        .11922E-07    .51264E-02
  17  Prefactor     19.955        5.7883       -.17277E-07   -.36168E-02
  18  Prefactor     1.8295        5.6170        .19434E-05    .30481E-01
  19  norm          .55068        .35670        .17727E-08    .47459E-02
  20  norm          .17098        .20225        .31250E-08** at limit **
  21  Prefactor     5.4394        3.2486        .34951E-07   -.24961E-03
  22  Prefactor     .16653E-08    2.4010        .85824E-07** at limit **
  23  Prefactor     1.1187        2.2787       -.10752E-07    .98797E-03
  24  Prefactor     2.0139        1.4171        .33260E-07    .11152E-01
  25  Prefactor     50.798        13.242       -.53819E-06    .72647E-01
  26  norm          .16653E-09    1.1069       -.41392E-07** at limit **
  27  Prefactor     2.3667        1.5738        .20293E-07   -.12212E-02
  28  Prefactor     24.211        7.3169       -.31741E-06   -.75463E-01
  29  Prefactor     57.332        33.959        .85181E-06   -.27178E-01
  30  Normalizat    .89647        .10163       -.16429E-05    .57003E-03
  31  Prefactor     1.0577        .91637E-01   -.50560E-06    .80056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.14581
  Prefactor  = 13.2578
  Prefactor  = 0
  norm       = 2.05391e-09
  Prefactor  = 18.986
  Prefactor  = 5.4956e-09
  Prefactor  = 2.40501
  Prefactor  = 1.33227e-09
  Prefactor  = 1.18644
  norm       = 4.60179
  Prefactor  = 1.11022e-10
  Prefactor  = 6.35641
  Prefactor  = 4.07012
  norm       = 8.32667e-09
  Prefactor  = 4.00411
  Prefactor  = 19.9552
  Prefactor  = 1.8295
  norm       = 0.550684
  norm       = 0.170981
  Prefactor  = 5.43938
  Prefactor  = 1.66533e-09
  Prefactor  = 1.1187
  Prefactor  = 2.01388
  Prefactor  = 50.7976
  norm       = 1.66533e-10
  Prefactor  = 2.36672
  Prefactor  = 24.211
  Prefactor  = 57.3318
  Normalizat = 0.896466
  Prefactor  = 1.05768
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) = 26629.4362695
delta logL = 0.279995627661

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.941e+00  3.393e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.347e+00  4.318e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.050e+00  9.072e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.093e-01  9.865e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 249.525 57.358
Photon Index (Free Index): 2.35 +/- 0.43
Photon Flux (Free Index): 2.80e-08 +/- 1.84e-08
Energy Flux (Free Index): 9.89e-06 +/- 5.18e-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/26874204/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='9.89e-06', photon_flux_error='1.68e-08', dlogl='2.80e-01', energy_flux='8.89e-06', photon_flux2='2.80e-08', job_status='DONE', time_completed='2026-05-19 13:04:57.653422', photon_index_error2='0.43', photon_index2='2.35', ts='8.82', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.18e-06', EG='0.90', time_epoch_completed='1779221097.65', return_code='0', job_id='26874204', GAL2='1.05', EG2='0.91', return_code2='0', energy_flux_error='4.11e-06', photon_flux_error2='1.84e-08', ts2='9.32', photon_index='2.68' WHERE bin_id='928' AND source_name='4FGL J1638.1+5721' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:04:58 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/26874629/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits.....................!
real 82.43
user 79.32
sys 1.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26874629/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits', '/lscratch/kocevski/26874629/ft2_4FGL_J1638.1+5721_weekly_bin928.fits', expMap='/lscratch/kocevski/26874629/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', expCube='/lscratch/kocevski/26874629/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26874629/Model_4FGL_J1638.1+5721_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1638.1+5721'

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  2.779e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26874629/ft1_filtered_4FGL_J1638.1+5721_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26874629/ft2_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26874629/expmap_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26874629/ltcube_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26874629/Model_4FGL_J1638.1+5721_weekly_bin928.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) = 26629.7715599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27455E-04   1.0000          .0000       .10000E+07
     2 'norm      '    4.1422       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.649       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12697E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .39596E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.196       1.0000          .0000       .10000E+07
     7 'Prefactor '    .66740E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4044       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15424E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1870       1.0000          .0000       .10000E+07
    11 'norm      '    4.6003       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22427E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.3776       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0681       1.0000          .0000       .10000E+07
    15 'norm      '    .14730E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0028       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.957       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8288       1.0000          .0000       .10000E+07
    19 'norm      '    .55111       1.0000          .0000       .10000E+07
    20 'norm      '    .17093       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4442       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14009E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1217       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0143       1.0000          .0000       .10000E+07
    25 'Prefactor '    50.688       1.0000          .0000       .10000E+07
    26 'norm      '    .21747E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.3657       1.0000         **********
 **   18 **HESSE 
 **********

 FCN=   26629.72     FROM HESSE     STATUS=OK           694 CALLS     3661 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1458        1.3634        .49502E-03   -1.5667    
   3  Prefactor     13.258        24.049        .27086E-03   -1.5635    
   4  Prefactor      .0000        1.4947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20539E-08    3.1472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.986        13.291        .22832E-03   -1.5621    
   7  Prefactor     .54956E-08    19.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4050        2.0028        .66003E-03   -1.5677    
   9  Prefactor     .13323E-08    3.7026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1864        2.8346        .10464E-02   -1.5686    
  11  norm          4.6018        6.7021        .46905E-03   -1.5665    
  12  Prefactor     .11102E-09    .64466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3564        2.9418        .39721E-03   -1.5658    
  14  Prefactor     4.0701        9.8944        .49964E-03   -1.5668    
  15  norm          .83267E-08    3.2247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0041        1.5576        .50384E-03   -1.5668    
  17  Prefactor     19.955        5.7968        .22392E-03   -1.5619    
  18  Prefactor     1.8295        6.9093        .77151E-03   -1.5681    
  19  norm          .55068        .36208        .73726E-03   -1.5693    
  20  norm          .17098        .24943        .21442E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4394        3.3306        .43042E-03   -1.5661    
  22  Prefactor     .16653E-08    2.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1187        2.3409        .11077E-02   -1.5687    
  24  Prefactor     2.0139        1.4263        .72904E-03   -1.5680    
  25  Prefactor     50.798        29.281        .14047E-03   -1.5565    
  26  norm          .16653E-09    1.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3667        1.5898        .66595E-03   -1.5677    
  28  Prefactor     24.211        17.625        .20300E-03   -1.5610    
  29  Prefactor     57.332        35.310        .13284E-03   -1.5557    
  30  Normalizat    .89647        .89184E-01    .44852E-01   -.96584    
  31  Prefactor     1.0577        .79664E-01    .39466E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42227e-07
Minuit parameter uncertainties:
  1  1.70417e-05
  2  1.36336
  3  24.0494
  4  8.6222e-06
  5  0.000161528
  6  13.2915
  7  0.000660578
  8  2.00284
  9  0.000141638
  10  2.83465
  11  6.70215
  12  1.60895e-05
  13  2.94176
  14  9.89445
  15  0.000327568
  16  1.55762
  17  5.7968
  18  6.90931
  19  0.362083
  20  0.249431
  21  3.33062
  22  0.000126822
  23  2.34092
  24  1.42635
  25  29.2809
  26  2.58404e-05
  27  1.58977
  28  17.6255
  29  35.3104
  30  0.0891983
  31  0.0796728
Done.

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

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.356e+00  2.942e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.058e+00  7.967e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  8.965e-01  8.920e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 249.525 57.358
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 4.11e-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) = 26629.4458398
delta logL = 0.270425332361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26629.4362697
delta logL = 0.279995496821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9409       1.0000          .0000       .10000E+07
     2 'Index     '    2.3466       1.0000          .0000       10.000    
     3 'Normalizat'    .90928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   26629.44     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9411        3.3899        .15223E-04   -.27465E-01
   2  Index         2.3468        .43084        .12015E-01   -.40049E-03
   3  Normalizat    .90928        .98524E-01    .25749E-03    .29246E-03
   4  Prefactor     1.0499        .90634E-01    .22464E-03    .34961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94112
  Index      = 2.34682
  Normalizat = 0.909276
  Prefactor  = 1.0499
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.44     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9411        3.3933        .60890E-06   -1.5655    
   2  Index         2.3468        .43104        .48059E-03   -.55935    
   3  Normalizat    .90928        .98631E-01    .10300E-04   -.96135    
   4  Prefactor     1.0499        .90711E-01    .89855E-05   -.91084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.197e-09
Minuit parameter uncertainties:
  1  3.39332
  2  0.431786
  3  0.0986502
  4  0.0907239
Done.

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

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.356e+00  2.942e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.058e+00  7.967e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  8.965e-01  8.920e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 249.525 57.358
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 4.11e-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) = 26629.4458398
delta logL = 0.270425332361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26629.4362697
delta logL = 0.279995496821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9409       1.0000          .0000       .10000E+07
     2 'Index     '    2.3466       1.0000          .0000       10.000    
     3 'Normalizat'    .90928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   26629.44     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9411        3.3899        .15223E-04   -.27465E-01
   2  Index         2.3468        .43084        .12015E-01   -.40049E-03
   3  Normalizat    .90928        .98524E-01    .25749E-03    .29246E-03
   4  Prefactor     1.0499        .90634E-01    .22464E-03    .34961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94112
  Index      = 2.34682
  Normalizat = 0.909276
  Prefactor  = 1.0499
Done.

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

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.356e+00  2.942e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.058e+00  7.967e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  8.965e-01  8.920e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 249.525 57.358
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 4.11e-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) = 26629.4458398
delta logL = 0.270425332361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26629.4362697
delta logL = 0.279995496821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9409       1.0000          .0000       .10000E+07
     2 'Index     '    2.3466       1.0000          .0000       10.000    
     3 'Normalizat'    .90928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   26629.44     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9411        3.3899        .15223E-04   -.27465E-01
   2  Index         2.3468        .43084        .12015E-01   -.40049E-03
   3  Normalizat    .90928        .98524E-01    .25749E-03    .29246E-03
   4  Prefactor     1.0499        .90634E-01    .22464E-03    .34961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94112
  Index      = 2.34682
  Normalizat = 0.909276
  Prefactor  = 1.0499
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) = 26629.4362695
delta logL = 0.279995627661

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.941e+00  3.393e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.347e+00  4.318e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.050e+00  9.072e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.093e-01  9.865e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 249.525 57.358
Photon Index (Free Index): 2.35 +/- 0.43
Photon Flux (Free Index): 2.80e-08 +/- 1.84e-08
Energy Flux (Free Index): 9.89e-06 +/- 5.18e-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/26874216/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='9.89e-06', photon_flux_error='1.68e-08', dlogl='2.80e-01', energy_flux='8.89e-06', photon_flux2='2.80e-08', job_status='DONE', time_completed='2026-05-19 13:05:12.120496', photon_index_error2='0.43', photon_index2='2.35', ts='8.82', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.18e-06', EG='0.90', time_epoch_completed='1779221112.12', return_code='0', job_id='26874216', GAL2='1.05', EG2='0.91', return_code2='0', energy_flux_error='4.11e-06', photon_flux_error2='1.84e-08', ts2='9.32', photon_index='2.68' WHERE bin_id='928' AND source_name='4FGL J1638.1+5721' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:05:12 PDT 2026

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

 FCN=   26629.44     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9411        3.3933        .60890E-06   -1.5655    
   2  Index         2.3468        .43104        .48059E-03   -.55935    
   3  Normalizat    .90928        .98631E-01    .10300E-04   -.96135    
   4  Prefactor     1.0499        .90711E-01    .89855E-05   -.91084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.197e-09
Minuit parameter uncertainties:
  1  3.39332
  2  0.431786
  3  0.0986502
  4  0.0907239
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.44     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9411        3.3933        .60890E-06   -1.5655    
   2  Index         2.3468        .43104        .48059E-03   -.55935    
   3  Normalizat    .90928        .98631E-01    .10300E-04   -.96135    
   4  Prefactor     1.0499        .90711E-01    .89855E-05   -.91084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.197e-09
Minuit parameter uncertainties:
  1  3.39332
  2  0.431786
  3  0.0986502
  4  0.0907239
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) = 26629.4362695
delta logL = 0.279995627661

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.941e+00  3.393e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.347e+00  4.318e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.050e+00  9.072e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.093e-01  9.865e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 249.525 57.358
Photon Index (Free Index): 2.35 +/- 0.43
Photon Flux (Free Index): 2.80e-08 +/- 1.84e-08
Energy Flux (Free Index): 9.89e-06 +/- 5.18e-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/26874218/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='9.89e-06', photon_flux_error='1.68e-08', dlogl='2.80e-01', energy_flux='8.89e-06', photon_flux2='2.80e-08', job_status='DONE', time_completed='2026-05-19 13:05:17.492422', photon_index_error2='0.43', photon_index2='2.35', ts='8.82', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.18e-06', EG='0.90', time_epoch_completed='1779221117.49', return_code='0', job_id='26874218', GAL2='1.05', EG2='0.91', return_code2='0', energy_flux_error='4.11e-06', photon_flux_error2='1.84e-08', ts2='9.32', photon_index='2.68' WHERE bin_id='928' AND source_name='4FGL J1638.1+5721' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:05:17 PDT 2026

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

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26629.4362695
delta logL = 0.279995627661

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.941e+00  3.393e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.347e+00  4.318e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.050e+00  9.072e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.093e-01  9.865e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 249.525 57.358
Photon Index (Free Index): 2.35 +/- 0.43
Photon Flux (Free Index): 2.80e-08 +/- 1.84e-08
Energy Flux (Free Index): 9.89e-06 +/- 5.18e-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/26874228/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='9.89e-06', photon_flux_error='1.68e-08', dlogl='2.80e-01', energy_flux='8.89e-06', photon_flux2='2.80e-08', job_status='DONE', time_completed='2026-05-19 13:05:18.871090', photon_index_error2='0.43', photon_index2='2.35', ts='8.82', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.18e-06', EG='0.90', time_epoch_completed='1779221118.87', return_code='0', job_id='26874228', GAL2='1.05', EG2='0.91', return_code2='0', energy_flux_error='4.11e-06', photon_flux_error2='1.84e-08', ts2='9.32', photon_index='2.68' WHERE bin_id='928' AND source_name='4FGL J1638.1+5721' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:05:19 PDT 2026

  .0000       .10000E+07
    28 'Prefactor '    24.278       1.0000          .0000       .10000E+07
    29 'Prefactor '    56.676       1.0000          .0000       .10000E+07
    30 'Normalizat'    .89614       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26629.72     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2967 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0766        .53813E-06** at limit **
   2  norm          4.1458        1.3602       -.24387E-07    .34434E-03
   3  Prefactor     13.258        19.401        .19036E-05   -.49791E-02
   4  Prefactor      .0000        1.4970       -.20581E-07** at limit **
   5  norm          .20539E-08    2.7499        .67846E-06** at limit **
   6  Prefactor     18.986        13.131        .45388E-06   -.15104E-02
   7  Prefactor     .54956E-08    19.738       -.10274E-06** at limit **
   8  Prefactor     2.4050        1.9944        .42678E-08   -.50641E-02
   9  Prefactor     .13323E-08    3.6630       -.17222E-06** at limit **
  10  Prefactor     1.1864        2.8137       -.47761E-07   -.14357E-02
  11  norm          4.6018        5.8808        .85695E-06    .40001E-01
  12  Prefactor     .11102E-09    .64659        .13708E-07** at limit **
  13  Prefactor     6.3564        2.9399       -.43402E-07   -.55895E-02
  14  Prefactor     4.0701        4.8435       -.10060E-05    .29478E-01
  15  norm          .83267E-08    2.1451       -.99828E-06** at limit **
  16  Prefactor     4.0041        1.5464        .11922E-07    .51264E-02
  17  Prefactor     19.955        5.7883       -.17277E-07   -.36168E-02
  18  Prefactor     1.8295        5.6170        .19434E-05    .30481E-01
  19  norm          .55068        .35670        .17727E-08    .47459E-02
  20  norm          .17098        .20225        .31250E-08** at limit **
  21  Prefactor     5.4394        3.2486        .34951E-07   -.24961E-03
  22  Prefactor     .16653E-08    2.4010        .85824E-07** at limit **
  23  Prefactor     1.1187        2.2787       -.10752E-07    .98797E-03
  24  Prefactor     2.0139        1.4171        .33260E-07    .11152E-01
  25  Prefactor     50.798        13.242       -.53819E-06    .72647E-01
  26  norm          .16653E-09    1.1069       -.41392E-07** at limit **
  27  Prefactor     2.3667        1.5738        .20293E-07   -.12212E-02
  28  Prefactor     24.211        7.3169       -.31741E-06   -.75463E-01
  29  Prefactor     57.332        33.959        .85181E-06   -.27178E-01
  30  Normalizat    .89647        .10163       -.16429E-05    .57003E-03
  31  Prefactor     1.0577        .91637E-01   -.50560E-06    .80056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.14581
  Prefactor  = 13.2578
  Prefactor  = 0
  norm       = 2.05391e-09
  Prefactor  = 18.986
  Prefactor  = 5.4956e-09
  Prefactor  = 2.40501
  Prefactor  = 1.33227e-09
  Prefactor  = 1.18644
  norm       = 4.60179
  Prefactor  = 1.11022e-10
  Prefactor  = 6.35641
  Prefactor  = 4.07012
  norm       = 8.32667e-09
  Prefactor  = 4.00411
  Prefactor  = 19.9552
  Prefactor  = 1.8295
  norm       = 0.550684
  norm       = 0.170981
  Prefactor  = 5.43938
  Prefactor  = 1.66533e-09
  Prefactor  = 1.1187
  Prefactor  = 2.01388
  Prefactor  = 50.7976
  norm       = 1.66533e-10
  Prefactor  = 2.36672
  Prefactor  = 24.211
  Prefactor  = 57.3318
  Normalizat = 0.896466
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.72     FROM HESSE     STATUS=OK           694 CALLS     3661 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1458        1.3634        .49502E-03   -1.5667    
   3  Prefactor     13.258        24.049        .27086E-03   -1.5635    
   4  Prefactor      .0000        1.4947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20539E-08    3.1472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.986        13.291        .22832E-03   -1.5621    
   7  Prefactor     .54956E-08    19.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4050        2.0028        .66003E-03   -1.5677    
   9  Prefactor     .13323E-08    3.7026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1864        2.8346        .10464E-02   -1.5686    
  11  norm          4.6018        6.7021        .46905E-03   -1.5665    
  12  Prefactor     .11102E-09    .64466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3564        2.9418        .39721E-03   -1.5658    
  14  Prefactor     4.0701        9.8944        .49964E-03   -1.5668    
  15  norm          .83267E-08    3.2247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0041        1.5576        .50384E-03   -1.5668    
  17  Prefactor     19.955        5.7968        .22392E-03   -1.5619    
  18  Prefactor     1.8295        6.9093        .77151E-03   -1.5681    
  19  norm          .55068        .36208        .73726E-03   -1.5693    
  20  norm          .17098        .24943        .21442E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4394        3.3306        .43042E-03   -1.5661    
  22  Prefactor     .16653E-08    2.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1187        2.3409        .11077E-02   -1.5687    
  24  Prefactor     2.0139        1.4263        .72904E-03   -1.5680    
  25  Prefactor     50.798        29.281        .14047E-03   -1.5565    
  26  norm          .16653E-09    1.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3667        1.5898        .66595E-03   -1.5677    
  28  Prefactor     24.211        17.625        .20300E-03   -1.5610    
  29  Prefactor     57.332        35.310        .13284E-03   -1.5557    
  30  Normalizat    .89647        .89184E-01    .44852E-01   -.96584    
  31  Prefactor     1.0577        .79664E-01    .39466E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42227e-07
Minuit parameter uncertainties:
  1  1.70417e-05
  2  1.36336
  3  24.0494
  4  8.6222e-06
  5  0.000161528
  6  13.2915
  7  0.000660578
  8  2.00284
  9  0.000141638
  10  2.83465
  11  6.70215
  12  1.60895e-05
  13  2.94176
  14  9.89445
  15  0.000327568
  16  1.55762
  17  5.7968
  18  6.90931
  19  0.362083
  20  0.249431
  21  3.33062
  22  0.000126822
  23  2.34092
  24  1.42635
  25  29.2809
  26  2.58404e-05
  27  1.58977
  28  17.6255
  29  35.3104
  30  0.0891983
  31  0.0796728
Done.

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

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.356e+00  2.942e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.058e+00  7.967e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  8.965e-01  8.920e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 249.525 57.358
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 4.11e-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) = 26629.4458398
delta logL = 0.270425332361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26629.4362697
delta logL = 0.279995496821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9409       1.0000          .0000       .10000E+07
     2 'Index     '    2.3466       1.0000          .0000       10.000    
     3 'Normalizat'    .90928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   26629.44     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9411        3.3899        .15223E-04   -.27465E-01
   2  Index         2.3468        .43084        .12015E-01   -.40049E-03
   3  Normalizat    .90928        .98524E-01    .25749E-03    .29246E-03
   4  Prefactor     1.0499        .90634E-01    .22464E-03    .34961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94112
  Index      = 2.34682
  Normalizat = 0.909276
  Prefactor  = 1.0499
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.44     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9411        3.3933        .60890E-06   -1.5655    
   2  Index         2.3468        .43104        .48059E-03   -.55935    
   3  Normalizat    .90928        .98631E-01    .10300E-04   -.96135    
   4  Prefactor     1.0499        .90711E-01    .89855E-05   -.91084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.197e-09
Minuit parameter uncertainties:
  1  3.39332
  2  0.431786
  3  0.0986502
  4  0.0907239
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) = 26629.4362695
delta logL = 0.279995627661

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.941e+00  3.393e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.347e+00  4.318e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.050e+00  9.072e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.093e-01  9.865e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 249.525 57.358
Photon Index (Free Index): 2.35 +/- 0.43
Photon Flux (Free Index): 2.80e-08 +/- 1.84e-08
Energy Flux (Free Index): 9.89e-06 +/- 5.18e-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/26874234/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='9.89e-06', photon_flux_error='1.68e-08', dlogl='2.80e-01', energy_flux='8.89e-06', photon_flux2='2.80e-08', job_status='DONE', time_completed='2026-05-19 13:05:58.334461', photon_index_error2='0.43', photon_index2='2.35', ts='8.82', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.18e-06', EG='0.90', time_epoch_completed='1779221158.33', return_code='0', job_id='26874234', GAL2='1.05', EG2='0.91', return_code2='0', energy_flux_error='4.11e-06', photon_flux_error2='1.84e-08', ts2='9.32', photon_index='2.68' WHERE bin_id='928' AND source_name='4FGL J1638.1+5721' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:05:58 PDT 2026

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

 FCN=   26629.72     FROM HESSE     STATUS=OK           694 CALLS     3661 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1458        1.3634        .49502E-03   -1.5667    
   3  Prefactor     13.258        24.049        .27086E-03   -1.5635    
   4  Prefactor      .0000        1.4947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20539E-08    3.1472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.986        13.291        .22832E-03   -1.5621    
   7  Prefactor     .54956E-08    19.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4050        2.0028        .66003E-03   -1.5677    
   9  Prefactor     .13323E-08    3.7026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1864        2.8346        .10464E-02   -1.5686    
  11  norm          4.6018        6.7021        .46905E-03   -1.5665    
  12  Prefactor     .11102E-09    .64466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3564        2.9418        .39721E-03   -1.5658    
  14  Prefactor     4.0701        9.8944        .49964E-03   -1.5668    
  15  norm          .83267E-08    3.2247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0041        1.5576        .50384E-03   -1.5668    
  17  Prefactor     19.955        5.7968        .22392E-03   -1.5619    
  18  Prefactor     1.8295        6.9093        .77151E-03   -1.5681    
  19  norm          .55068        .36208        .73726E-03   -1.5693    
  20  norm          .17098        .24943        .21442E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4394        3.3306        .43042E-03   -1.5661    
  22  Prefactor     .16653E-08    2.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1187        2.3409        .11077E-02   -1.5687    
  24  Prefactor     2.0139        1.4263        .72904E-03   -1.5680    
  25  Prefactor     50.798        29.281        .14047E-03   -1.5565    
  26  norm          .16653E-09    1.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3667        1.5898        .66595E-03   -1.5677    
  28  Prefactor     24.211        17.625        .20300E-03   -1.5610    
  29  Prefactor     57.332        35.310        .13284E-03   -1.5557    
  30  Normalizat    .89647        .89184E-01    .44852E-01   -.96584    
  31  Prefactor     1.0577        .79664E-01    .39466E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42227e-07
Minuit parameter uncertainties:
  1  1.70417e-05
  2  1.36336
  3  24.0494
  4  8.6222e-06
  5  0.000161528
  6  13.2915
  7  0.000660578
  8  2.00284
  9  0.000141638
  10  2.83465
  11  6.70215
  12  1.60895e-05
  13  2.94176
  14  9.89445
  15  0.000327568
  16  1.55762
  17  5.7968
  18  6.90931
  19  0.362083
  20  0.249431
  21  3.33062
  22  0.000126822
  23  2.34092
  24  1.42635
  25  29.2809
  26  2.58404e-05
  27  1.58977
  28  17.6255
  29  35.3104
  30  0.0891983
  31  0.0796728
Done.

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

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.356e+00  2.942e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.058e+00  7.967e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  8.965e-01  8.920e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 249.525 57.358
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 4.11e-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) = 26629.4458398
delta logL = 0.270425332361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26629.4362697
delta logL = 0.279995496821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9409       1.0000          .0000       .10000E+07
     2 'Index     '    2.3466       1.0000          .0000       10.000    
     3 'Normalizat'    .90928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   26629.44     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9411        3.3899        .15223E-04   -.27465E-01
   2  Index         2.3468        .43084        .12015E-01   -.40049E-03
   3  Normalizat    .90928        .98524E-01    .25749E-03    .29246E-03
   4  Prefactor     1.0499        .90634E-01    .22464E-03    .34961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94112
  Index      = 2.34682
  Normalizat = 0.909276
  Prefactor  = 1.0499
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.44     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9411        3.3933        .60890E-06   -1.5655    
   2  Index         2.3468        .43104        .48059E-03   -.55935    
   3  Normalizat    .90928        .98631E-01    .10300E-04   -.96135    
   4  Prefactor     1.0499        .90711E-01    .89855E-05   -.91084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.197e-09
Minuit parameter uncertainties:
  1  3.39332
  2  0.431786
  3  0.0986502
  4  0.0907239
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) = 26629.4362695
delta logL = 0.279995627661

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.941e+00  3.393e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.347e+00  4.318e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.050e+00  9.072e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.093e-01  9.865e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 249.525 57.358
Photon Index (Free Index): 2.35 +/- 0.43
Photon Flux (Free Index): 2.80e-08 +/- 1.84e-08
Energy Flux (Free Index): 9.89e-06 +/- 5.18e-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/26874470/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='9.89e-06', photon_flux_error='1.68e-08', dlogl='2.80e-01', energy_flux='8.89e-06', photon_flux2='2.80e-08', job_status='DONE', time_completed='2026-05-19 13:06:38.551894', photon_index_error2='0.43', photon_index2='2.35', ts='8.82', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.18e-06', EG='0.90', time_epoch_completed='1779221198.55', return_code='0', job_id='26874470', GAL2='1.05', EG2='0.91', return_code2='0', energy_flux_error='4.11e-06', photon_flux_error2='1.84e-08', ts2='9.32', photon_index='2.68' WHERE bin_id='928' AND source_name='4FGL J1638.1+5721' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:06:38 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.356e+00  2.942e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.058e+00  7.967e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  8.965e-01  8.920e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 249.525 57.358
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 4.11e-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) = 26629.4458398
delta logL = 0.270425332361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26629.4362697
delta logL = 0.279995496821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9409       1.0000          .0000       .10000E+07
     2 'Index     '    2.3466       1.0000          .0000       10.000    
     3 'Normalizat'    .90928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   26629.44     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9411        3.3899        .15223E-04   -.27465E-01
   2  Index         2.3468        .43084        .12015E-01   -.40049E-03
   3  Normalizat    .90928        .98524E-01    .25749E-03    .29246E-03
   4  Prefactor     1.0499        .90634E-01    .22464E-03    .34961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94112
  Index      = 2.34682
  Normalizat = 0.909276
  Prefactor  = 1.0499
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.44     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9411        3.3933        .60890E-06   -1.5655    
   2  Index         2.3468        .43104        .48059E-03   -.55935    
   3  Normalizat    .90928        .98631E-01    .10300E-04   -.96135    
   4  Prefactor     1.0499        .90711E-01    .89855E-05   -.91084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.197e-09
Minuit parameter uncertainties:
  1  3.39332
  2  0.431786
  3  0.0986502
  4  0.0907239
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) = 26629.4362695
delta logL = 0.279995627661

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.941e+00  3.393e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.347e+00  4.318e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.050e+00  9.072e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.093e-01  9.865e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 249.525 57.358
Photon Index (Free Index): 2.35 +/- 0.43
Photon Flux (Free Index): 2.80e-08 +/- 1.84e-08
Energy Flux (Free Index): 9.89e-06 +/- 5.18e-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/26874473/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='9.89e-06', photon_flux_error='1.68e-08', dlogl='2.80e-01', energy_flux='8.89e-06', photon_flux2='2.80e-08', job_status='DONE', time_completed='2026-05-19 13:07:01.647468', photon_index_error2='0.43', photon_index2='2.35', ts='8.82', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.18e-06', EG='0.90', time_epoch_completed='1779221221.65', return_code='0', job_id='26874473', GAL2='1.05', EG2='0.91', return_code2='0', energy_flux_error='4.11e-06', photon_flux_error2='1.84e-08', ts2='9.32', photon_index='2.68' WHERE bin_id='928' AND source_name='4FGL J1638.1+5721' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:07:01 PDT 2026

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

 FCN=   26629.72     FROM HESSE     STATUS=OK           694 CALLS     3661 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1458        1.3634        .49502E-03   -1.5667    
   3  Prefactor     13.258        24.049        .27086E-03   -1.5635    
   4  Prefactor      .0000        1.4947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20539E-08    3.1472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.986        13.291        .22832E-03   -1.5621    
   7  Prefactor     .54956E-08    19.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4050        2.0028        .66003E-03   -1.5677    
   9  Prefactor     .13323E-08    3.7026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1864        2.8346        .10464E-02   -1.5686    
  11  norm          4.6018        6.7021        .46905E-03   -1.5665    
  12  Prefactor     .11102E-09    .64466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3564        2.9418        .39721E-03   -1.5658    
  14  Prefactor     4.0701        9.8944        .49964E-03   -1.5668    
  15  norm          .83267E-08    3.2247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0041        1.5576        .50384E-03   -1.5668    
  17  Prefactor     19.955        5.7968        .22392E-03   -1.5619    
  18  Prefactor     1.8295        6.9093        .77151E-03   -1.5681    
  19  norm          .55068        .36208        .73726E-03   -1.5693    
  20  norm          .17098        .24943        .21442E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4394        3.3306        .43042E-03   -1.5661    
  22  Prefactor     .16653E-08    2.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1187        2.3409        .11077E-02   -1.5687    
  24  Prefactor     2.0139        1.4263        .72904E-03   -1.5680    
  25  Prefactor     50.798        29.281        .14047E-03   -1.5565    
  26  norm          .16653E-09    1.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3667        1.5898        .66595E-03   -1.5677    
  28  Prefactor     24.211        17.625        .20300E-03   -1.5610    
  29  Prefactor     57.332        35.310        .13284E-03   -1.5557    
  30  Normalizat    .89647        .89184E-01    .44852E-01   -.96584    
  31  Prefactor     1.0577        .79664E-01    .39466E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42227e-07
Minuit parameter uncertainties:
  1  1.70417e-05
  2  1.36336
  3  24.0494
  4  8.6222e-06
  5  0.000161528
  6  13.2915
  7  0.000660578
  8  2.00284
  9  0.000141638
  10  2.83465
  11  6.70215
  12  1.60895e-05
  13  2.94176
  14  9.89445
  15  0.000327568
  16  1.55762
  17  5.7968
  18  6.90931
  19  0.362083
  20  0.249431
  21  3.33062
  22  0.000126822
  23  2.34092
  24  1.42635
  25  29.2809
  26  2.58404e-05
  27  1.58977
  28  17.6255
  29  35.3104
  30  0.0891983
  31  0.0796728
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.72     FROM HESSE     STATUS=OK           694 CALLS     3661 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1458        1.3634        .49502E-03   -1.5667    
   3  Prefactor     13.258        24.049        .27086E-03   -1.5635    
   4  Prefactor      .0000        1.4947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20539E-08    3.1472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.986        13.291        .22832E-03   -1.5621    
   7  Prefactor     .54956E-08    19.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4050        2.0028        .66003E-03   -1.5677    
   9  Prefactor     .13323E-08    3.7026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1864        2.8346        .10464E-02   -1.5686    
  11  norm          4.6018        6.7021        .46905E-03   -1.5665    
  12  Prefactor     .11102E-09    .64466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3564        2.9418        .39721E-03   -1.5658    
  14  Prefactor     4.0701        9.8944        .49964E-03   -1.5668    
  15  norm          .83267E-08    3.2247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0041        1.5576        .50384E-03   -1.5668    
  17  Prefactor     19.955        5.7968        .22392E-03   -1.5619    
  18  Prefactor     1.8295        6.9093        .77151E-03   -1.5681    
  19  norm          .55068        .36208        .73726E-03   -1.5693    
  20  norm          .17098        .24943        .21442E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4394        3.3306        .43042E-03   -1.5661    
  22  Prefactor     .16653E-08    2.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1187        2.3409        .11077E-02   -1.5687    
  24  Prefactor     2.0139        1.4263        .72904E-03   -1.5680    
  25  Prefactor     50.798        29.281        .14047E-03   -1.5565    
  26  norm          .16653E-09    1.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3667        1.5898        .66595E-03   -1.5677    
  28  Prefactor     24.211        17.625        .20300E-03   -1.5610    
  29  Prefactor     57.332        35.310        .13284E-03   -1.5557    
  30  Normalizat    .89647        .89184E-01    .44852E-01   -.96584    
  31  Prefactor     1.0577        .79664E-01    .39466E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42227e-07
Minuit parameter uncertainties:
  1  1.70417e-05
  2  1.36336
  3  24.0494
  4  8.6222e-06
  5  0.000161528
  6  13.2915
  7  0.000660578
  8  2.00284
  9  0.000141638
  10  2.83465
  11  6.70215
  12  1.60895e-05
  13  2.94176
  14  9.89445
  15  0.000327568
  16  1.55762
  17  5.7968
  18  6.90931
  19  0.362083
  20  0.249431
  21  3.33062
  22  0.000126822
  23  2.34092
  24  1.42635
  25  29.2809
  26  2.58404e-05
  27  1.58977
  28  17.6255
  29  35.3104
  30  0.0891983
  31  0.0796728
Done.

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

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.356e+00  2.942e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.058e+00  7.967e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  8.965e-01  8.920e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 249.525 57.358
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 4.11e-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) = 26629.4458398
delta logL = 0.270425332361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26629.4362697
delta logL = 0.279995496821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9409       1.0000          .0000       .10000E+07
     2 'Index     '    2.3466       1.0000          .0000       10.000    
     3 'Normalizat'    .90928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   26629.44     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9411        3.3899        .15223E-04   -.27465E-01
   2  Index         2.3468        .43084        .12015E-01   -.40049E-03
   3  Normalizat    .90928        .98524E-01    .25749E-03    .29246E-03
   4  Prefactor     1.0499        .90634E-01    .22464E-03    .34961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94112
  Index      = 2.34682
  Normalizat = 0.909276
  Prefactor  = 1.0499
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.44     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9411        3.3933        .60890E-06   -1.5655    
   2  Index         2.3468        .43104        .48059E-03   -.55935    
   3  Normalizat    .90928        .98631E-01    .10300E-04   -.96135    
   4  Prefactor     1.0499        .90711E-01    .89855E-05   -.91084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.197e-09
Minuit parameter uncertainties:
  1  3.39332
  2  0.431786
  3  0.0986502
  4  0.0907239
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) = 26629.4362695
delta logL = 0.279995627661

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.941e+00  3.393e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.347e+00  4.318e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.050e+00  9.072e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.093e-01  9.865e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 249.525 57.358
Photon Index (Free Index): 2.35 +/- 0.43
Photon Flux (Free Index): 2.80e-08 +/- 1.84e-08
Energy Flux (Free Index): 9.89e-06 +/- 5.18e-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/26874527/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='9.89e-06', photon_flux_error='1.68e-08', dlogl='2.80e-01', energy_flux='8.89e-06', photon_flux2='2.80e-08', job_status='DONE', time_completed='2026-05-19 13:07:59.200302', photon_index_error2='0.43', photon_index2='2.35', ts='8.82', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.18e-06', EG='0.90', time_epoch_completed='1779221279.2', return_code='0', job_id='26874527', GAL2='1.05', EG2='0.91', return_code2='0', energy_flux_error='4.11e-06', photon_flux_error2='1.84e-08', ts2='9.32', photon_index='2.68' WHERE bin_id='928' AND source_name='4FGL J1638.1+5721' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:07:59 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.356e+00  2.942e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.681e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.058e+00  7.967e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  8.965e-01  8.920e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 249.525 57.358
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 4.11e-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) = 26629.4458398
delta logL = 0.270425332361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26629.4362697
delta logL = 0.279995496821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9409       1.0000          .0000       .10000E+07
     2 'Index     '    2.3466       1.0000          .0000       10.000    
     3 'Normalizat'    .90928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   26629.44     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9411        3.3899        .15223E-04   -.27465E-01
   2  Index         2.3468        .43084        .12015E-01   -.40049E-03
   3  Normalizat    .90928        .98524E-01    .25749E-03    .29246E-03
   4  Prefactor     1.0499        .90634E-01    .22464E-03    .34961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94112
  Index      = 2.34682
  Normalizat = 0.909276
  Prefactor  = 1.0499
 **********
 **   18 **HESSE 
 **********

 FCN=   26629.44     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9411        3.3933        .60890E-06   -1.5655    
   2  Index         2.3468        .43104        .48059E-03   -.55935    
   3  Normalizat    .90928        .98631E-01    .10300E-04   -.96135    
   4  Prefactor     1.0499        .90711E-01    .89855E-05   -.91084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.197e-09
Minuit parameter uncertainties:
  1  3.39332
  2  0.431786
  3  0.0986502
  4  0.0907239
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) = 26629.4362695
delta logL = 0.279995627661

Extracting fit parameters...

4FGL J1638.1+5721
   Spectrum: PowerLaw
349    Prefactor:  6.941e+00  3.393e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.347e+00  4.318e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  5.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.050e+00  9.072e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.093e-01  9.865e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 249.525 57.358
Photon Index (Free Index): 2.35 +/- 0.43
Photon Flux (Free Index): 2.80e-08 +/- 1.84e-08
Energy Flux (Free Index): 9.89e-06 +/- 5.18e-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/26874629/cmap_HighResolution_800236801_800841601_4FGL_J1638.1+5721_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='9.89e-06', photon_flux_error='1.68e-08', dlogl='2.80e-01', energy_flux='8.89e-06', photon_flux2='2.80e-08', job_status='DONE', time_completed='2026-05-19 13:08:33.391792', photon_index_error2='0.43', photon_index2='2.35', ts='8.82', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.18e-06', EG='0.90', time_epoch_completed='1779221313.39', return_code='0', job_id='26874629', GAL2='1.05', EG2='0.91', return_code2='0', energy_flux_error='4.11e-06', photon_flux_error2='1.84e-08', ts2='9.32', photon_index='2.68' WHERE bin_id='928' AND source_name='4FGL J1638.1+5721' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:08:33 PDT 2026

