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


Performing analysis on: 4FGL_J1704.1+7647_weekly_bin944
RA = 256.037, Dec = 76.7923
tmin = 809913601, tmax = 810518401
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='37384731', job_status='RUN', time_executed='2026-09-08 13:41:04.396283', time_epoch_executed='1788900064.4' WHERE source_name='4FGL J1704.1+7647' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37384731

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37384731/ft1_4FGL_J1704.1+7647_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37384731/ft2_4FGL_J1704.1+7647_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37384731/ft1_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384731/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits ra=256.037 dec=76.7923 rad=12.0 tmin=809913601.0 tmax=810518401.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.24
user 4.40
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37384731/ft2_4FGL_J1704.1+7647_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37384731/ft2_4FGL_J1704.1+7647_weekly_bin944.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/37384731/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37384731/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.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.88
user 0.23
sys 0.14

Number of photons that the gtmktime cut: 2216

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

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

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

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

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

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

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


Performing analysis on: 4FGL_J1704.1+7647_weekly_bin944
RA = 256.037, Dec = 76.7923
tmin = 809913601, tmax = 810518401
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='37384761', job_status='RUN', time_executed='2026-09-08 13:42:13.326683', time_epoch_executed='1788900133.33' WHERE source_name='4FGL J1704.1+7647' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37384761

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37384761/ft1_4FGL_J1704.1+7647_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37384761/ft2_4FGL_J1704.1+7647_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37384761/ft1_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384761/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits ra=256.037 dec=76.7923 rad=12.0 tmin=809913601.0 tmax=810518401.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.26
user 4.36
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37384761/ft2_4FGL_J1704.1+7647_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37384761/ft2_4FGL_J1704.1+7647_weekly_bin944.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/37384761/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37384761/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.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.03
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 2216

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37384761/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37384761/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA"number of points = 17404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1704.1+7647_weekly_bin944
RA = 256.037, Dec = 76.7923
tmin = 809913601, tmax = 810518401
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='37384783', job_status='RUN', time_executed='2026-09-08 13:42:38.796621', time_epoch_executed='1788900158.8' WHERE source_name='4FGL J1704.1+7647' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37384783

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37384783/ft1_4FGL_J1704.1+7647_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37384783/ft2_4FGL_J1704.1+7647_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37384783/ft1_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384783/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits ra=256.037 dec=76.7923 rad=12.0 tmin=809913601.0 tmax=810518401.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.88
user 4.17
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37384783/ft2_4FGL_J1704.1+7647_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37384783/ft2_4FGL_J1704.1+7647_weekly_bin944.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/37384783/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37384783/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.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.96
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 2216

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37384783/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37384783/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" number of points = 17404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1704.1+7647_weekly_bin944
RA = 256.037, Dec = 76.7923
tmin = 809913601, tmax = 810518401
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='37384845', job_status='RUN', time_executed='2026-09-08 13:43:45.308925', time_epoch_executed='1788900225.31' WHERE source_name='4FGL J1704.1+7647' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37384845

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37384845/ft1_4FGL_J1704.1+7647_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37384845/ft2_4FGL_J1704.1+7647_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37384845/ft1_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384845/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits ra=256.037 dec=76.7923 rad=12.0 tmin=809913601.0 tmax=810518401.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.31
user 4.43
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37384845/ft2_4FGL_J1704.1+7647_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37384845/ft2_4FGL_J1704.1+7647_weekly_bin944.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/37384845/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37384845/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.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.22
sys 0.12

Number of photons that the gtmktime cut: 2216

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37384845/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37384845/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" outfile=/lscratch/kocevski/37384702/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384702/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 18.00
user 17.22
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37384702/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384702/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37384702/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384702/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384702/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 66.10
user 61.52
sys 3.72

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37384702/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384702/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384702/cmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.89
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37384702/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384702/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384702/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37384702/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384702/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37384702/Model_4FGL_J1704.1+7647_weekly_bin944.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 = 17404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1704.1+7647_weekly_bin944
RA = 256.037, Dec = 76.7923
tmin = 809913601, tmax = 810518401
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='37384881', job_status='RUN', time_executed='2026-09-08 13:44:29.755936', time_epoch_executed='1788900269.76' WHERE source_name='4FGL J1704.1+7647' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37384881

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37384881/ft1_4FGL_J1704.1+7647_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37384881/ft2_4FGL_J1704.1+7647_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37384881/ft1_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384881/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits ra=256.037 dec=76.7923 rad=12.0 tmin=809913601.0 tmax=810518401.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.45
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37384881/ft2_4FGL_J1704.1+7647_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37384881/ft2_4FGL_J1704.1+7647_weekly_bin944.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/37384881/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37384881/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.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.12
user 0.22
sys 0.12

Number of photons that the gtmktime cut: 2216

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37384881/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37384881/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA"number of points = 17404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1704.1+7647_weekly_bin944
RA = 256.037, Dec = 76.7923
tmin = 809913601, tmax = 810518401
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='37384882', job_status='RUN', time_executed='2026-09-08 13:44:31.307285', time_epoch_executed='1788900271.31' WHERE source_name='4FGL J1704.1+7647' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37384882

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37384882/ft1_4FGL_J1704.1+7647_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37384882/ft2_4FGL_J1704.1+7647_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37384882/ft1_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384882/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits ra=256.037 dec=76.7923 rad=12.0 tmin=809913601.0 tmax=810518401.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.11
user 4.46
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37384882/ft2_4FGL_J1704.1+7647_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37384882/ft2_4FGL_J1704.1+7647_weekly_bin944.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/37384882/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37384882/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.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.86
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 2216

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37384882/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37384882/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA"outfile=/lscratch/kocevski/37384731/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384731/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 18.87
user 17.98
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37384731/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384731/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37384731/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384731/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384731/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 70.68
user 65.55
sys 3.99

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37384731/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384731/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384731/cmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.02
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37384731/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384731/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384731/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.99
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37384731/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384731/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37384731/Model_4FGL_J1704.1+7647_weekly_bin944.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/37384761/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384761/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 18.81
user 17.98
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37384761/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384761/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37384761/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384761/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384761/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 71.05
user 65.81
sys 4.20

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37384761/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384761/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384761/cmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.95
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37384761/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384761/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384761/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37384761/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384761/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37384761/Model_4FGL_J1704.1+7647_weekly_bin944.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/37384783/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384783/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 19.12
user 18.20
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37384783/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384783/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37384783/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384783/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384783/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 69.60
user 64.88
sys 3.85

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37384783/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384783/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384783/cmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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/37384783/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384783/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384783/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37384783/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384783/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37384783/Model_4FGL_J1704.1+7647_weekly_bin944.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 = 17404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1704.1+7647_weekly_bin944
RA = 256.037, Dec = 76.7923
tmin = 809913601, tmax = 810518401
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='37384988', job_status='RUN', time_executed='2026-09-08 13:46:12.021128', time_epoch_executed='1788900372.02' WHERE source_name='4FGL J1704.1+7647' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37384988

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37384988/ft1_4FGL_J1704.1+7647_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37384988/ft2_4FGL_J1704.1+7647_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37384988/ft1_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384988/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits ra=256.037 dec=76.7923 rad=12.0 tmin=809913601.0 tmax=810518401.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.78
user 4.08
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37384988/ft2_4FGL_J1704.1+7647_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37384988/ft2_4FGL_J1704.1+7647_weekly_bin944.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/37384988/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37384988/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2216

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37384988/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37384988/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA"number of points = 17404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1704.1+7647_weekly_bin944
RA = 256.037, Dec = 76.7923
tmin = 809913601, tmax = 810518401
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='37384985', job_status='RUN', time_executed='2026-09-08 13:46:12.330972', time_epoch_executed='1788900372.33' WHERE source_name='4FGL J1704.1+7647' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37384985

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37384985/ft1_4FGL_J1704.1+7647_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37384985/ft2_4FGL_J1704.1+7647_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37384985/ft1_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384985/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits ra=256.037 dec=76.7923 rad=12.0 tmin=809913601.0 tmax=810518401.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.10
user 4.12
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37384985/ft2_4FGL_J1704.1+7647_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37384985/ft2_4FGL_J1704.1+7647_weekly_bin944.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/37384985/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37384985/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.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.91
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 2216

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37384985/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37384985/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA"number of points = 17404
number of fields = 31
RA_SUN column already exists. File will not be modified.
number of points = 17404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1704.1+7647_weekly_bin944
RA = 256.037, Dec = 76.7923
tmin = 809913601, tmax = 810518401
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='37384975', job_status='RUN', time_executed='2026-09-08 13:46:03.950768', time_epoch_executed='1788900363.95' WHERE source_name='4FGL J1704.1+7647' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37384975

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37384975/ft1_4FGL_J1704.1+7647_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37384975/ft2_4FGL_J1704.1+7647_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37384975/ft1_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384975/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits ra=256.037 dec=76.7923 rad=12.0 tmin=809913601.0 tmax=810518401.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.52
user 3.74
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37384975/ft2_4FGL_J1704.1+7647_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37384975/ft2_4FGL_J1704.1+7647_weekly_bin944.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/37384975/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37384975/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.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.19
sys 0.13

Number of photons that the gtmktime cut: 2216

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37384975/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37384975/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA"Done.


Performing analysis on: 4FGL_J1704.1+7647_weekly_bin944
RA = 256.037, Dec = 76.7923
tmin = 809913601, tmax = 810518401
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='37384974', job_status='RUN', time_executed='2026-09-08 13:46:03.950347', time_epoch_executed='1788900363.95' WHERE source_name='4FGL J1704.1+7647' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37384974

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37384974/ft1_4FGL_J1704.1+7647_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37384974/ft2_4FGL_J1704.1+7647_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37384974/ft1_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384974/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits ra=256.037 dec=76.7923 rad=12.0 tmin=809913601.0 tmax=810518401.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.53
user 3.75
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37384974/ft2_4FGL_J1704.1+7647_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37384974/ft2_4FGL_J1704.1+7647_weekly_bin944.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/37384974/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37384974/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.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.19
sys 0.14

Number of photons that the gtmktime cut: 2216

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37384974/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37384974/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA"number of points = 17404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1704.1+7647_weekly_bin944
RA = 256.037, Dec = 76.7923
tmin = 809913601, tmax = 810518401
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='37385040', job_status='RUN', time_executed='2026-09-08 13:46:59.820809', time_epoch_executed='1788900419.82' WHERE source_name='4FGL J1704.1+7647' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37385040

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37385040/ft1_4FGL_J1704.1+7647_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37385040/ft2_4FGL_J1704.1+7647_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37385040/ft1_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37385040/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits ra=256.037 dec=76.7923 rad=12.0 tmin=809913601.0 tmax=810518401.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.49
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37385040/ft2_4FGL_J1704.1+7647_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37385040/ft2_4FGL_J1704.1+7647_weekly_bin944.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/37385040/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37385040/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.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.89
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 2216

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37385040/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37385040/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" outfile=/lscratch/kocevski/37384845/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384845/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 18.67
user 17.78
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37384845/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384845/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37384845/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384845/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384845/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 71.50
user 66.35
sys 3.96

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37384845/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384845/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384845/cmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.96
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37384845/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384845/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384845/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.94
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37384845/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384845/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37384845/Model_4FGL_J1704.1+7647_weekly_bin944.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 = 17404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1704.1+7647_weekly_bin944
RA = 256.037, Dec = 76.7923
tmin = 809913601, tmax = 810518401
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='37385072', job_status='RUN', time_executed='2026-09-08 13:47:31.342488', time_epoch_executed='1788900451.34' WHERE source_name='4FGL J1704.1+7647' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37385072

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37385072/ft1_4FGL_J1704.1+7647_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37385072/ft2_4FGL_J1704.1+7647_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37385072/ft1_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37385072/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits ra=256.037 dec=76.7923 rad=12.0 tmin=809913601.0 tmax=810518401.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.82
user 4.14
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37385072/ft2_4FGL_J1704.1+7647_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37385072/ft2_4FGL_J1704.1+7647_weekly_bin944.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/37385072/ft1_filteredMKT_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37385072/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.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.74
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 2216

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37385072/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37385072/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" outfile=/lscratch/kocevski/37384881/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384881/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 19.17
user 18.29
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37384881/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384881/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37384881/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384881/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384881/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 71.97
user 66.80
sys 4.13

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37384881/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384881/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384881/cmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.95
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37384881/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384881/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384881/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.96
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37384881/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384881/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37384881/Model_4FGL_J1704.1+7647_weekly_bin944.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/37384882/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384882/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 19.07
user 18.23
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37384882/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384882/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37384882/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384882/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384882/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 71.54
user 66.35
sys 4.20

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37384882/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384882/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384882/cmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.73
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37384882/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384882/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384882/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.94
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37384882/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384882/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37384882/Model_4FGL_J1704.1+7647_weekly_bin944.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/37384988/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384988/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 17.69
user 16.91
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37384988/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384988/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37384988/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384988/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384988/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 65.36
user 60.72
sys 3.77

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37384988/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384988/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384988/cmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.97
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37384988/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384988/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384988/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.89
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37384988/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384988/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37384988/Model_4FGL_J1704.1+7647_weekly_bin944.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/37384702/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits.....................!
real 94.10
user 92.25
sys 0.82

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37384702/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits', '/lscratch/kocevski/37384702/ft2_4FGL_J1704.1+7647_weekly_bin944.fits', expMap='/lscratch/kocevski/37384702/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', expCube='/lscratch/kocevski/37384702/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37384702/Model_4FGL_J1704.1+7647_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37384702/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37384702/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37384702/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37384702/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37384702/Model_4FGL_J1704.1+7647_weekly_bin944.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) = 23033.0543974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34555E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6305       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33657E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.718       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43736E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58738E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .16732       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90017       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25635E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17297E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54576E-03   1.0000          .0000       .10000E+07
    17 'norm      '    4.7646       1.0000          .0000       .10000E+07
    18 'norm      '    7.9698       1.0000          .0000       .10000E+07
    19 'norm      '    11.774       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22239E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23297E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27117E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1923       1.0000          .0000       .10000E+07
    24 'norm      '    3.3907       1.0000          .0000       .10000E+07
    25 'Prefactor '    36.887       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96947       1.0000         outfile=/lscratch/kocevski/37384985/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384985/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 17.40
user 16.62
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37384985/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384985/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37384985/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384985/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384985/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 65.37
user 60.94
sys 3.63

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37384985/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384985/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384985/cmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.89
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37384985/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384985/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384985/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37384985/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384985/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37384985/Model_4FGL_J1704.1+7647_weekly_bin944.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/37384975/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384975/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 16.00
user 15.17
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37384975/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384975/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37384975/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384975/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384975/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 59.70
user 55.43
sys 3.43

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37384975/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384975/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384975/cmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.91
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37384975/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384975/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384975/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.89
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37384975/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384975/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37384975/Model_4FGL_J1704.1+7647_weekly_bin944.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/37384974/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384974/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 15.90
user 15.09
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37384974/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384974/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37384974/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384974/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37384974/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 59.34
user 55.32
sys 3.25

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37384974/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384974/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384974/cmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.91
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37384974/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37384974/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37384974/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.81
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37384974/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37384974/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37384974/Model_4FGL_J1704.1+7647_weekly_bin944.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  .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23032.91     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1885 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67724E-08    4.5920        .27282E-06** at limit **
   2  Prefactor     2.5893        5.6618        .11052E-07    .30144E-04
   3  Prefactor     1.6189        13.308       -.12361E-06   -.78372E-03
   4  Prefactor     .23426E-07    3.6929        .11424E-06** at limit **
   5  Prefactor     19.646        1.6049       -.43059E-08    .14472E-02
   6  Prefactor     .43354E-07    4.1790        .60426E-07** at limit **
   7  Prefactor     .26812E-07    12.634        .17152E-06** at limit **
   8  norm          17.388        1.1001        .12031E-08   -.16346E-02
   9  Prefactor      .0000        22.626        .17985E-06** at limit **
  10  Prefactor     .39968E-08    5.1176        .14613E-06** at limit **
  11  norm          .16743        .27262       -.48115E-07** at limit **
  12  Prefactor      .0000        2.2642        .14044E-06** at limit **
  13  Prefactor     .90029        .98465        .40050E-07   -.45322E-03
  14  Prefactor     .11380E-07    1.8802        .56452E-07** at limit **
  15  Prefactor     .15543E-08    3.2655        .20491E-06** at limit **
  16  Prefactor     .63893E-07    9.5835       -.10794E-06** at limit **
  17  norm          4.7659        1.7389       -.71129E-07   -.10440E-02
  18  norm          7.9697        .77408       -.25226E-07   -.39335E-02
  19  norm          11.769        3.2287       -.95069E-08   -.66458E-03
  20  Prefactor     .55511E-10    43.115       -.28155E-06** at limit **
  21  Prefactor     .98810E-08    3.5406        .88492E-07** at limit **
  22  Prefactor     .51459E-07    2.7790       -.42593E-08** at limit **
  23  Prefactor     3.2103        3.3403       -.16370E-06    .30936E-04
  24  norm          3.3901        2.0094       -.34151E-07    .54626E-04
  25  Prefactor     36.897        1.0625        .91125E-09    .38691E-02
  26  Normalizat    .96255        .11750        .52872E-07    .10552E-04
  27  Prefactor     .96932        .73510E-01    .98777E-06    .40738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77236e-09
  Prefactor  = 2.58932
  Prefactor  = 1.61894
  Prefactor  = 2.34257e-08
  Prefactor  = 19.6456
  Prefactor  = 4.33542e-08
  Prefactor  = 2.68119e-08
  norm       = 17.3877
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  norm       = 0.167429
  Prefactor  = 0
  Prefactor  = 0.900288
  Prefactor  = 1.13798e-08
  Prefactor  = 1.55431e-09
  Prefactor  = 6.38933e-08
  norm       = 4.7659
  norm       = 7.96975
  norm       = 11.769
  Prefactor  = 5.55112e-11
  Prefactor  = 9.88098e-09
  Prefactor  = 5.14588e-08
  Prefactor  = 3.21032
  norm       = 3.39011
  Prefactor  = 36.8967
  Normalizat = 0.962551
  Prefactor  = 0.969318
 GAL_V02
Working on...
/lscratch/kocevski/37384731/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits.....................!
real 100.02
user 97.86
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37384731/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits', '/lscratch/kocevski/37384731/ft2_4FGL_J1704.1+7647_weekly_bin944.fits', expMap='/lscratch/kocevski/37384731/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', expCube='/lscratch/kocevski/37384731/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37384731/Model_4FGL_J1704.1+7647_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37384731/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37384731/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37384731/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37384731/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37384731/Model_4FGL_J1704.1+7647_weekly_bin944.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) = 23033.0543974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34555E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6305       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33657E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.718       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43736E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58738E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .16732       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90017       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25635E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17297E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54576E-03   1.0000          .0000       .10000E+07
    17 'norm      '    4.7646       1.0000          .0000       .10000E+07
    18 'norm      '    7.9698       1.0000          .0000       .10000E+07
    19 'norm      '    11.774       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22239E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23297E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27117E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1923       1.0000          .0000       .10000E+07
    24 'norm      '    3.3907       1.0000          .0000       .10000E+07
    25 'Prefactor '    36.887       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96947       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23032.91     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1885 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67724E-08    4.5920        .27282E-06** at limit **
   2  Prefactor     2.5893        5.6618        .11052E-07    .30144E-04
   3  Prefactor     1.6189        13.308       -.12361E-06   -.78372E-03
   4  Prefactor     .23426E-07    3.6929        .11424E-06** at limit **
   5  Prefactor     19.646        1.6049       -.43059E-08    .14472E-02
   6  Prefactor     .43354E-07    4.1790        .60426E-07** at limit **
   7  Prefactor     .26812E-07    12.634        .17152E-06** at limit **
   8  norm          17.388        1.1001        .12031E-08   -.16346E-02
   9  Prefactor      .0000        22.626        .17985E-06** at limit **
  10  Prefactor     .39968E-08    5.1176        .14613E-06** at limit **
  11  norm          .16743        .27262       -.48115E-07** at limit **
  12  Prefactor      .0000        2.2642        .14044E-06** at limit **
  13  Prefactor     .90029        .98465        .40050E-07   -.45322E-03
  14  Prefactor     .11380E-07    1.8802        .56452E-07** at limit **
  15  Prefactor     .15543E-08    3.2655        .20491E-06** at limit **
  16  Prefactor     .63893E-07    9.5835       -.10794E-06** at limit **
  17  norm          4.7659        1.7389       -.71129E-07   -.10440E-02
  18  norm          7.9697        .77408       -.25226E-07   -.39335E-02
  19  norm          11.769        3.2287       -.95069E-08   -.66458E-03
  20  Prefactor     .55511E-10    43.115       -.28155E-06** at limit **
  21  Prefactor     .98810E-08    3.5406        .88492E-07** at limit **
  22  Prefactor     .51459E-07    2.7790       -.42593E-08** at limit **
  23  Prefactor     3.2103        3.3403       -.16370E-06    .30936E-04
  24  norm          3.3901        2.0094       -.34151E-07    .54626E-04
  25  Prefactor     36.897        1.0625        .91125E-09    .38691E-02
  26  Normalizat    .96255        .11750        .52872E-07    .10552E-04
  27  Prefactor     .96932        .73510E-01    .98777E-06    .40738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77236e-09
  Prefactor  = 2.58932
  Prefactor  = 1.61894
  Prefactor  = 2.34257e-08
  Prefactor  = 19.6456
  Prefactor  = 4.33542e-08
  Prefactor  = 2.68119e-08
  norm       = 17.3877
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  norm       = 0.167429
  Prefactor  = 0
  Prefactor  = 0.900288
  Prefactor  = 1.13798e-08
  Prefactor  = 1.55431e-09
  Prefactor  = 6.38933e-08
  norm       = 4.7659
  norm       = 7.96975
  norm       = 11.769
  Prefactor  = 5.55112e-11
  Prefactor  = 9.88098e-09
  Prefactor  = 5.14588e-08
  Prefactor  = 3.21032
  norm       = 3.39011
  Prefactor  = 36.8967
  Normalizat = 0.962551
  Prefactor  = 0.969318
e GAL_V02
Working on...
/lscratch/kocevski/37384761/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits.....................!
real 99.23
user 97.01
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37384761/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits', '/lscratch/kocevski/37384761/ft2_4FGL_J1704.1+7647_weekly_bin944.fits', expMap='/lscratch/kocevski/37384761/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', expCube='/lscratch/kocevski/37384761/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37384761/Model_4FGL_J1704.1+7647_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37384761/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37384761/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37384761/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37384761/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37384761/Model_4FGL_J1704.1+7647_weekly_bin944.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) = 23033.0543974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34555E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6305       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33657E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.718       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43736E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58738E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .16732       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90017       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25635E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17297E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54576E-03   1.0000          .0000       .10000E+07
    17 'norm      '    4.7646       1.0000          .0000       .10000E+07
    18 'norm      '    7.9698       1.0000          .0000       .10000E+07
    19 'norm      '    11.774       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22239E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23297E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27117E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1923       1.0000          .0000       .10000E+07
    24 'norm      '    3.3907       1.0000          .0000       .10000E+07
    25 'Prefactor '    36.887       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96947       1.0000         outfile=/lscratch/kocevski/37385040/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37385040/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 20.03
user 19.06
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37385040/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37385040/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37385040/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37385040/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37385040/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 73.81
user 69.03
sys 3.80

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37385040/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37385040/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37385040/cmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.94
user 0.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37385040/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37385040/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37385040/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.96
user 0.26
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37385040/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37385040/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37385040/Model_4FGL_J1704.1+7647_weekly_bin944.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 GAL_V02
Working on...
/lscratch/kocevski/37384783/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits.....................!
real 94.64
user 92.84
sys 0.67

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37384783/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits', '/lscratch/kocevski/37384783/ft2_4FGL_J1704.1+7647_weekly_bin944.fits', expMap='/lscratch/kocevski/37384783/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', expCube='/lscratch/kocevski/37384783/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37384783/Model_4FGL_J1704.1+7647_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37384783/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37384783/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37384783/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37384783/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37384783/Model_4FGL_J1704.1+7647_weekly_bin944.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) = 23033.0543974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34555E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6305       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33657E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.718       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43736E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58738E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .16732       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90017       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25635E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17297E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54576E-03   1.0000          .0000       .10000E+07
    17 'norm      '    4.7646       1.0000          .0000       .10000E+07
    18 'norm      '    7.9698       1.0000          .0000       .10000E+07
    19 'norm      '    11.774       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22239E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23297E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27117E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1923       1.0000          .0000       .10000E+07
    24 'norm      '    3.3907       1.0000          .0000       .10000E+07
    25 'Prefactor '    36.887       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96947       1.0000          outfile=/lscratch/kocevski/37385072/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37385072/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 17.98
user 17.15
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37385072/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37385072/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37385072/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37385072/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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/37385072/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
.....................!
real 66.82
user 61.93
sys 3.69

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37385072/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37385072/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37385072/cmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37385072/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits scfile=/lscratch/kocevski/37385072/ft2_4FGL_J1704.1+7647_weekly_bin944.fits outfile=/lscratch/kocevski/37385072/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.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=256.037 yref=76.7923 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.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37385072/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37385072/ft2_4FGL_J1704.1+7647_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37385072/Model_4FGL_J1704.1+7647_weekly_bin944.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  .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23032.91     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1885 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67724E-08    4.5920        .27282E-06** at limit **
   2  Prefactor     2.5893        5.6618        .11052E-07    .30144E-04
   3  Prefactor     1.6189        13.308       -.12361E-06   -.78372E-03
   4  Prefactor     .23426E-07    3.6929        .11424E-06** at limit **
   5  Prefactor     19.646        1.6049       -.43059E-08    .14472E-02
   6  Prefactor     .43354E-07    4.1790        .60426E-07** at limit **
   7  Prefactor     .26812E-07    12.634        .17152E-06** at limit **
   8  norm          17.388        1.1001        .12031E-08   -.16346E-02
   9  Prefactor      .0000        22.626        .17985E-06** at limit **
  10  Prefactor     .39968E-08    5.1176        .14613E-06** at limit **
  11  norm          .16743        .27262       -.48115E-07** at limit **
  12  Prefactor      .0000        2.2642        .14044E-06** at limit **
  13  Prefactor     .90029        .98465        .40050E-07   -.45322E-03
  14  Prefactor     .11380E-07    1.8802        .56452E-07** at limit **
  15  Prefactor     .15543E-08    3.2655        .20491E-06** at limit **
  16  Prefactor     .63893E-07    9.5835       -.10794E-06** at limit **
  17  norm          4.7659        1.7389       -.71129E-07   -.10440E-02
  18  norm          7.9697        .77408       -.25226E-07   -.39335E-02
  19  norm          11.769        3.2287       -.95069E-08   -.66458E-03
  20  Prefactor     .55511E-10    43.115       -.28155E-06** at limit **
  21  Prefactor     .98810E-08    3.5406        .88492E-07** at limit **
  22  Prefactor     .51459E-07    2.7790       -.42593E-08** at limit **
  23  Prefactor     3.2103        3.3403       -.16370E-06    .30936E-04
  24  norm          3.3901        2.0094       -.34151E-07    .54626E-04
  25  Prefactor     36.897        1.0625        .91125E-09    .38691E-02
  26  Normalizat    .96255        .11750        .52872E-07    .10552E-04
  27  Prefactor     .96932        .73510E-01    .98777E-06    .40738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77236e-09
  Prefactor  = 2.58932
  Prefactor  = 1.61894
  Prefactor  = 2.34257e-08
  Prefactor  = 19.6456
  Prefactor  = 4.33542e-08
  Prefactor  = 2.68119e-08
  norm       = 17.3877
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  norm       = 0.167429
  Prefactor  = 0
  Prefactor  = 0.900288
  Prefactor  = 1.13798e-08
  Prefactor  = 1.55431e-09
  Prefactor  = 6.38933e-08
  norm       = 4.7659
  norm       = 7.96975
  norm       = 11.769
  Prefactor  = 5.55112e-11
  Prefactor  = 9.88098e-09
  Prefactor  = 5.14588e-08
  Prefactor  = 3.21032
  norm       = 3.39011
  Prefactor  = 36.8967
  Normalizat = 0.962551
  Prefactor  = 0.969318
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.91     FROM HESSE     STATUS=OK           542 CALLS     2427 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67724E-08    9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5893        5.6867        .63783E-03   -1.5676    
   3  Prefactor     1.6189        13.166        .82783E-03   -1.5683    
   4  Prefactor     .23426E-07    10.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.646        16.603        .22527E-03   -1.5619    
   6  Prefactor     .43354E-07    6.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26812E-07    13.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.388        10.970        .23997E-03   -1.5625    
   9  Prefactor      .0000        22.628        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39968E-08    5.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16743        .26195        .23511E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90029        .99018        .45748E-03   -1.5689    
  14  Prefactor     .11380E-07    4.7419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    9.7471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    12.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7659        1.7429        .46070E-03   -1.5664    
  18  norm          7.9697        .77498        .35493E-03   -1.5652    
  19  norm          11.769        3.2421        .29170E-03   -1.5639    
  20  Prefactor     .55511E-10    43.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98810E-08    5.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51459E-07    6.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2103        3.3454        .56687E-03   -1.5672    
  24  norm          3.3901        2.0422        .54921E-03   -1.5671    
  25  Prefactor     36.897        10.588        .16467E-03   -1.5586    
  26  Normalizat    .96255        .10613        .70657E-01   -.94296    
  27  Prefactor     .96932        .65021E-01    .45884E-01   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23802e-07
Minuit parameter uncertainties:
  1  0.000507692
  2  5.68669
  3  9.23381
  4  0.000968324
  5  16.6034
  6  0.00105031
  7  0.00121127
  8  10.9703
  9  4.91807e-06
  10  0.000292488
  11  0.261949
  12  1.2326e-05
  13  0.990178
  14  0.000464465
  15  0.000244759
  16  0.00177748
  17  1.7429
  18  0.774979
  19  3.24215
  20  0.000114256
  21  0.000452916
  22  0.00113093
  23  3.34538
  24  2.04219
  25  10.5881
  26  0.106154
  27  0.0650263
 .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23032.91     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1885 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67724E-08    4.5920        .27282E-06** at limit **
   2  Prefactor     2.5893        5.6618        .11052E-07    .30144E-04
   3  Prefactor     1.6189        13.308       -.12361E-06   -.78372E-03
   4  Prefactor     .23426E-07    3.6929        .11424E-06** at limit **
   5  Prefactor     19.646        1.6049       -.43059E-08    .14472E-02
   6  Prefactor     .43354E-07    4.1790        .60426E-07** at limit **
   7  Prefactor     .26812E-07    12.634        .17152E-06** at limit **
   8  norm          17.388        1.1001        .12031E-08   -.16346E-02
   9  Prefactor      .0000        22.626        .17985E-06** at limit **
  10  Prefactor     .39968E-08    5.1176        .14613E-06** at limit **
  11  norm          .16743        .27262       -.48115E-07** at limit **
  12  Prefactor      .0000        2.2642        .14044E-06** at limit **
  13  Prefactor     .90029        .98465        .40050E-07   -.45322E-03
  14  Prefactor     .11380E-07    1.8802        .56452E-07** at limit **
  15  Prefactor     .15543E-08    3.2655        .20491E-06** at limit **
  16  Prefactor     .63893E-07    9.5835       -.10794E-06** at limit **
  17  norm          4.7659        1.7389       -.71129E-07   -.10440E-02
  18  norm          7.9697        .77408       -.25226E-07   -.39335E-02
  19  norm          11.769        3.2287       -.95069E-08   -.66458E-03
  20  Prefactor     .55511E-10    43.115       -.28155E-06** at limit **
  21  Prefactor     .98810E-08    3.5406        .88492E-07** at limit **
  22  Prefactor     .51459E-07    2.7790       -.42593E-08** at limit **
  23  Prefactor     3.2103        3.3403       -.16370E-06    .30936E-04
  24  norm          3.3901        2.0094       -.34151E-07    .54626E-04
  25  Prefactor     36.897        1.0625        .91125E-09    .38691E-02
  26  Normalizat    .96255        .11750        .52872E-07    .10552E-04
  27  Prefactor     .96932        .73510E-01    .98777E-06    .40738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77236e-09
  Prefactor  = 2.58932
  Prefactor  = 1.61894
  Prefactor  = 2.34257e-08
  Prefactor  = 19.6456
  Prefactor  = 4.33542e-08
  Prefactor  = 2.68119e-08
  norm       = 17.3877
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  norm       = 0.167429
  Prefactor  = 0
  Prefactor  = 0.900288
  Prefactor  = 1.13798e-08
  Prefactor  = 1.55431e-09
  Prefactor  = 6.38933e-08
  norm       = 4.7659
  norm       = 7.96975
  norm       = 11.769
  Prefactor  = 5.55112e-11
  Prefactor  = 9.88098e-09
  Prefactor  = 5.14588e-08
  Prefactor  = 3.21032
  norm       = 3.39011
  Prefactor  = 36.8967
  Normalizat = 0.962551
  Prefactor  = 0.969318
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.91     FROM HESSE     STATUS=OK           542 CALLS     2427 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67724E-08    9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5893        5.6867        .63783E-03   -1.5676    
   3  Prefactor     1.6189        13.166        .82783E-03   -1.5683    
   4  Prefactor     .23426E-07    10.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.646        16.603        .22527E-03   -1.5619    
   6  Prefactor     .43354E-07    6.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26812E-07    13.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.388        10.970        .23997E-03   -1.5625    
   9  Prefactor      .0000        22.628        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39968E-08    5.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16743        .26195        .23511E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90029        .99018        .45748E-03   -1.5689    
  14  Prefactor     .11380E-07    4.7419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    9.7471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    12.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7659        1.7429        .46070E-03   -1.5664    
  18  norm          7.9697        .77498        .35493E-03   -1.5652    
  19  norm          11.769        3.2421        .29170E-03   -1.5639    
  20  Prefactor     .55511E-10    43.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98810E-08    5.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51459E-07    6.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2103        3.3454        .56687E-03   -1.5672    
  24  norm          3.3901        2.0422        .54921E-03   -1.5671    
  25  Prefactor     36.897        10.588        .16467E-03   -1.5586    
  26  Normalizat    .96255        .10613        .70657E-01   -.94296    
  27  Prefactor     .96932        .65021E-01    .45884E-01   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23802e-07
Minuit parameter uncertainties:
  1  0.000507692
  2  5.68669
  3  9.23381
  4  0.000968324
  5  16.6034
  6  0.00105031
  7  0.00121127
  8  10.9703
  9  4.91807e-06
  10  0.000292488
  11  0.261949
  12  1.2326e-05
  13  0.990178
  14  0.000464465
  15  0.000244759
  16  0.00177748
  17  1.7429
  18  0.774979
  19  3.24215
  20  0.000114256
  21  0.000452916
  22  0.00113093
  23  3.34538
  24  2.04219
  25  10.5881
  26  0.106154
  27  0.0650263
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.91     FROM HESSE     STATUS=OK           542 CALLS     2427 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67724E-08    9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5893        5.6867        .63783E-03   -1.5676    
   3  Prefactor     1.6189        13.166        .82783E-03   -1.5683    
   4  Prefactor     .23426E-07    10.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.646        16.603        .22527E-03   -1.5619    
   6  Prefactor     .43354E-07    6.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26812E-07    13.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.388        10.970        .23997E-03   -1.5625    
   9  Prefactor      .0000        22.628        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39968E-08    5.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16743        .26195        .23511E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90029        .99018        .45748E-03   -1.5689    
  14  Prefactor     .11380E-07    4.7419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    9.7471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    12.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7659        1.7429        .46070E-03   -1.5664    
  18  norm          7.9697        .77498        .35493E-03   -1.5652    
  19  norm          11.769        3.2421        .29170E-03   -1.5639    
  20  Prefactor     .55511E-10    43.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98810E-08    5.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51459E-07    6.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2103        3.3454        .56687E-03   -1.5672    
  24  norm          3.3901        2.0422        .54921E-03   -1.5671    
  25  Prefactor     36.897        10.588        .16467E-03   -1.5586    
  26  Normalizat    .96255        .10613        .70657E-01   -.94296    
  27  Prefactor     .96932        .65021E-01    .45884E-01   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23802e-07
Minuit parameter uncertainties:
  1  0.000507692
  2  5.68669
  3  9.23381
  4  0.000968324
  5  16.6034
  6  0.00105031
  7  0.00121127
  8  10.9703
  9  4.91807e-06
  10  0.000292488
  11  0.261949
  12  1.2326e-05
  13  0.990178
  14  0.000464465
  15  0.000244759
  16  0.00177748
  17  1.7429
  18  0.774979
  19  3.24215
  20  0.000114256
  21  0.000452916
  22  0.00113093
  23  3.34538
  24  2.04219
  25  10.5881
  26  0.106154
  27  0.0650263
e GAL_V02
Working on...
/lscratch/kocevski/37384845/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits.....................!
real 99.11
user 96.84
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37384845/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits', '/lscratch/kocevski/37384845/ft2_4FGL_J1704.1+7647_weekly_bin944.fits', expMap='/lscratch/kocevski/37384845/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', expCube='/lscratch/kocevski/37384845/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37384845/Model_4FGL_J1704.1+7647_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37384845/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37384845/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37384845/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37384845/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37384845/Model_4FGL_J1704.1+7647_weekly_bin944.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) = 23033.0543974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34555E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6305       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33657E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.718       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43736E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58738E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .16732       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90017       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25635E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17297E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54576E-03   1.0000          .0000       .10000E+07
    17 'norm      '    4.7646       1.0000          .0000       .10000E+07
    18 'norm      '    7.9698       1.0000          .0000       .10000E+07
    19 'norm      '    11.774       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22239E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23297E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27117E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1923       1.0000          .0000       .10000E+07
    24 'norm      '    3.3907       1.0000          .0000       .10000E+07
    25 'Prefactor '    36.887       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96947       1.0000         **********
 **   18 **HESSE 
 **********

 FCN=   23032.91     FROM HESSE     STATUS=OK           542 CALLS     2427 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67724E-08    9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5893        5.6867        .63783E-03   -1.5676    
   3  Prefactor     1.6189        13.166        .82783E-03   -1.5683    
   4  Prefactor     .23426E-07    10.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.646        16.603        .22527E-03   -1.5619    
   6  Prefactor     .43354E-07    6.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26812E-07    13.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.388        10.970        .23997E-03   -1.5625    
   9  Prefactor      .0000        22.628        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39968E-08    5.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16743        .26195        .23511E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90029        .99018        .45748E-03   -1.5689    
  14  Prefactor     .11380E-07    4.7419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    9.7471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    12.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7659        1.7429        .46070E-03   -1.5664    
  18  norm          7.9697        .77498        .35493E-03   -1.5652    
  19  norm          11.769        3.2421        .29170E-03   -1.5639    
  20  Prefactor     .55511E-10    43.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98810E-08    5.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51459E-07    6.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2103        3.3454        .56687E-03   -1.5672    
  24  norm          3.3901        2.0422        .54921E-03   -1.5671    
  25  Prefactor     36.897        10.588        .16467E-03   -1.5586    
  26  Normalizat    .96255        .10613        .70657E-01   -.94296    
  27  Prefactor     .96932        .65021E-01    .45884E-01   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23802e-07
Minuit parameter uncertainties:
  1  0.000507692
  2  5.68669
  3  9.23381
  4  0.000968324
  5  16.6034
  6  0.00105031
  7  0.00121127
  8  10.9703
  9  4.91807e-06
  10  0.000292488
  11  0.261949
  12  1.2326e-05
  13  0.990178
  14  0.000464465
  15  0.000244759
  16  0.00177748
  17  1.7429
  18  0.774979
  19  3.24215
  20  0.000114256
  21  0.000452916
  22  0.00113093
  23  3.34538
  24  2.04219
  25  10.5881
  26  0.106154
  27  0.0650263
e GAL_V02
Working on...
/lscratch/kocevski/37384882/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits.....................!
real 100.05
user 98.15
sys 0.74

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37384882/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits', '/lscratch/kocevski/37384882/ft2_4FGL_J1704.1+7647_weekly_bin944.fits', expMap='/lscratch/kocevski/37384882/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', expCube='/lscratch/kocevski/37384882/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37384882/Model_4FGL_J1704.1+7647_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37384882/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37384882/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37384882/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37384882/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37384882/Model_4FGL_J1704.1+7647_weekly_bin944.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) = 23033.0543974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34555E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6305       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33657E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.718       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43736E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58738E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .16732       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90017       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25635E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17297E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54576E-03   1.0000          .0000       .10000E+07
    17 'norm      '    4.7646       1.0000          .0000       .10000E+07
    18 'norm      '    7.9698       1.0000          .0000       .10000E+07
    19 'norm      '    11.774       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22239E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23297E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27117E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1923       1.0000          .0000       .10000E+07
    24 'norm      '    3.3907       1.0000          .0000       .10000E+07
    25 'Prefactor '    36.887       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96947       1.0000       e GAL_V02
Working on...
/lscratch/kocevski/37384881/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits.....................!
real 100.19
user 98.25
sys 0.68

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37384881/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits', '/lscratch/kocevski/37384881/ft2_4FGL_J1704.1+7647_weekly_bin944.fits', expMap='/lscratch/kocevski/37384881/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', expCube='/lscratch/kocevski/37384881/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37384881/Model_4FGL_J1704.1+7647_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37384881/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37384881/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37384881/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37384881/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37384881/Model_4FGL_J1704.1+7647_weekly_bin944.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) = 23033.0543974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34555E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6305       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33657E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.718       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43736E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58738E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .16732       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90017       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25635E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17297E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54576E-03   1.0000          .0000       .10000E+07
    17 'norm      '    4.7646       1.0000          .0000       .10000E+07
    18 'norm      '    7.9698       1.0000          .0000       .10000E+07
    19 'norm      '    11.774       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22239E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23297E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27117E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1923       1.0000          .0000       .10000E+07
    24 'norm      '    3.3907       1.0000          .0000       .10000E+07
    25 'Prefactor '    36.887       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96947       1.0000         .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23032.91     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1885 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67724E-08    4.5920        .27282E-06** at limit **
   2  Prefactor     2.5893        5.6618        .11052E-07    .30144E-04
   3  Prefactor     1.6189        13.308       -.12361E-06   -.78372E-03
   4  Prefactor     .23426E-07    3.6929        .11424E-06** at limit **
   5  Prefactor     19.646        1.6049       -.43059E-08    .14472E-02
   6  Prefactor     .43354E-07    4.1790        .60426E-07** at limit **
   7  Prefactor     .26812E-07    12.634        .17152E-06** at limit **
   8  norm          17.388        1.1001        .12031E-08   -.16346E-02
   9  Prefactor      .0000        22.626        .17985E-06** at limit **
  10  Prefactor     .39968E-08    5.1176        .14613E-06** at limit **
  11  norm          .16743        .27262       -.48115E-07** at limit **
  12  Prefactor      .0000        2.2642        .14044E-06** at limit **
  13  Prefactor     .90029        .98465        .40050E-07   -.45322E-03
  14  Prefactor     .11380E-07    1.8802        .56452E-07** at limit **
  15  Prefactor     .15543E-08    3.2655        .20491E-06** at limit **
  16  Prefactor     .63893E-07    9.5835       -.10794E-06** at limit **
  17  norm          4.7659        1.7389       -.71129E-07   -.10440E-02
  18  norm          7.9697        .77408       -.25226E-07   -.39335E-02
  19  norm          11.769        3.2287       -.95069E-08   -.66458E-03
  20  Prefactor     .55511E-10    43.115       -.28155E-06** at limit **
  21  Prefactor     .98810E-08    3.5406        .88492E-07** at limit **
  22  Prefactor     .51459E-07    2.7790       -.42593E-08** at limit **
  23  Prefactor     3.2103        3.3403       -.16370E-06    .30936E-04
  24  norm          3.3901        2.0094       -.34151E-07    .54626E-04
  25  Prefactor     36.897        1.0625        .91125E-09    .38691E-02
  26  Normalizat    .96255        .11750        .52872E-07    .10552E-04
  27  Prefactor     .96932        .73510E-01    .98777E-06    .40738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77236e-09
  Prefactor  = 2.58932
  Prefactor  = 1.61894
  Prefactor  = 2.34257e-08
  Prefactor  = 19.6456
  Prefactor  = 4.33542e-08
  Prefactor  = 2.68119e-08
  norm       = 17.3877
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  norm       = 0.167429
  Prefactor  = 0
  Prefactor  = 0.900288
  Prefactor  = 1.13798e-08
  Prefactor  = 1.55431e-09
  Prefactor  = 6.38933e-08
  norm       = 4.7659
  norm       = 7.96975
  norm       = 11.769
  Prefactor  = 5.55112e-11
  Prefactor  = 9.88098e-09
  Prefactor  = 5.14588e-08
  Prefactor  = 3.21032
  norm       = 3.39011
  Prefactor  = 36.8967
  Normalizat = 0.962551
  Prefactor  = 0.969318
   .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23032.91     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1885 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67724E-08    4.5920        .27282E-06** at limit **
   2  Prefactor     2.5893        5.6618        .11052E-07    .30144E-04
   3  Prefactor     1.6189        13.308       -.12361E-06   -.78372E-03
   4  Prefactor     .23426E-07    3.6929        .11424E-06** at limit **
   5  Prefactor     19.646        1.6049       -.43059E-08    .14472E-02
   6  Prefactor     .43354E-07    4.1790        .60426E-07** at limit **
   7  Prefactor     .26812E-07    12.634        .17152E-06** at limit **
   8  norm          17.388        1.1001        .12031E-08   -.16346E-02
   9  Prefactor      .0000        22.626        .17985E-06** at limit **
  10  Prefactor     .39968E-08    5.1176        .14613E-06** at limit **
  11  norm          .16743        .27262       -.48115E-07** at limit **
  12  Prefactor      .0000        2.2642        .14044E-06** at limit **
  13  Prefactor     .90029        .98465        .40050E-07   -.45322E-03
  14  Prefactor     .11380E-07    1.8802        .56452E-07** at limit **
  15  Prefactor     .15543E-08    3.2655        .20491E-06** at limit **
  16  Prefactor     .63893E-07    9.5835       -.10794E-06** at limit **
  17  norm          4.7659        1.7389       -.71129E-07   -.10440E-02
  18  norm          7.9697        .77408       -.25226E-07   -.39335E-02
  19  norm          11.769        3.2287       -.95069E-08   -.66458E-03
  20  Prefactor     .55511E-10    43.115       -.28155E-06** at limit **
  21  Prefactor     .98810E-08    3.5406        .88492E-07** at limit **
  22  Prefactor     .51459E-07    2.7790       -.42593E-08** at limit **
  23  Prefactor     3.2103        3.3403       -.16370E-06    .30936E-04
  24  norm          3.3901        2.0094       -.34151E-07    .54626E-04
  25  Prefactor     36.897        1.0625        .91125E-09    .38691E-02
  26  Normalizat    .96255        .11750        .52872E-07    .10552E-04
  27  Prefactor     .96932        .73510E-01    .98777E-06    .40738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77236e-09
  Prefactor  = 2.58932
  Prefactor  = 1.61894
  Prefactor  = 2.34257e-08
  Prefactor  = 19.6456
  Prefactor  = 4.33542e-08
  Prefactor  = 2.68119e-08
  norm       = 17.3877
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  norm       = 0.167429
  Prefactor  = 0
  Prefactor  = 0.900288
  Prefactor  = 1.13798e-08
  Prefactor  = 1.55431e-09
  Prefactor  = 6.38933e-08
  norm       = 4.7659
  norm       = 7.96975
  norm       = 11.769
  Prefactor  = 5.55112e-11
  Prefactor  = 9.88098e-09
  Prefactor  = 5.14588e-08
  Prefactor  = 3.21032
  norm       = 3.39011
  Prefactor  = 36.8967
  Normalizat = 0.962551
  Prefactor  = 0.969318
Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  9.003e-01  9.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.693e-01  6.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.626e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.08e-06 +/- 3.39e-06

TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 4.5220094414e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00352769792899 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37384702/likelihoodResults_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5554345
delta logL = 0.353344723513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5411043
delta logL = 0.367674863566

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23032.54     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71229        .80102        .59739E-03   -.11195E-01
   2  Index         1.6836        .50379        .34882       -.16230E-03
   3  Normalizat    .97068        .10013        .70409E-01    .61257E-04
   4  Prefactor     .96684        .63276E-01    .45851E-01    .14658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712292
  Index      = 1.6836
  Normalizat = 0.970679
  Prefactor  = 0.966841
e GAL_V02
Working on...
/lscratch/kocevski/37384974/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits.....................!
real 83.23
user 81.26
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37384974/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits', '/lscratch/kocevski/37384974/ft2_4FGL_J1704.1+7647_weekly_bin944.fits', expMap='/lscratch/kocevski/37384974/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', expCube='/lscratch/kocevski/37384974/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37384974/Model_4FGL_J1704.1+7647_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37384974/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37384974/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37384974/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37384974/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37384974/Model_4FGL_J1704.1+7647_weekly_bin944.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) = 23033.0543974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34555E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6305       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33657E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.718       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43736E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58738E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .16732       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90017       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25635E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17297E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54576E-03   1.0000          .0000       .10000E+07
    17 'norm      '    4.7646       1.0000          .0000       .10000E+07
    18 'norm      '    7.9698       1.0000          .0000       .10000E+07
    19 'norm      '    11.774       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22239E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23297E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27117E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1923       1.0000          .0000       .10000E+07
    24 'norm      '    3.3907       1.0000          .0000       .10000E+07
    25 'Prefactor '    36.887       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96947       1.0000           .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23032.91     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1885 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67724E-08    4.5920        .27282E-06** at limit **
   2  Prefactor     2.5893        5.6618        .11052E-07    .30144E-04
   3  Prefactor     1.6189        13.308       -.12361E-06   -.78372E-03
   4  Prefactor     .23426E-07    3.6929        .11424E-06** at limit **
   5  Prefactor     19.646        1.6049       -.43059E-08    .14472E-02
   6  Prefactor     .43354E-07    4.1790        .60426E-07** at limit **
   7  Prefactor     .26812E-07    12.634        .17152E-06** at limit **
   8  norm          17.388        1.1001        .12031E-08   -.16346E-02
   9  Prefactor      .0000        22.626        .17985E-06** at limit **
  10  Prefactor     .39968E-08    5.1176        .14613E-06** at limit **
  11  norm          .16743        .27262       -.48115E-07** at limit **
  12  Prefactor      .0000        2.2642        .14044E-06** at limit **
  13  Prefactor     .90029        .98465        .40050E-07   -.45322E-03
  14  Prefactor     .11380E-07    1.8802        .56452E-07** at limit **
  15  Prefactor     .15543E-08    3.2655        .20491E-06** at limit **
  16  Prefactor     .63893E-07    9.5835       -.10794E-06** at limit **
  17  norm          4.7659        1.7389       -.71129E-07   -.10440E-02
  18  norm          7.9697        .77408       -.25226E-07   -.39335E-02
  19  norm          11.769        3.2287       -.95069E-08   -.66458E-03
  20  Prefactor     .55511E-10    43.115       -.28155E-06** at limit **
  21  Prefactor     .98810E-08    3.5406        .88492E-07** at limit **
  22  Prefactor     .51459E-07    2.7790       -.42593E-08** at limit **
  23  Prefactor     3.2103        3.3403       -.16370E-06    .30936E-04
  24  norm          3.3901        2.0094       -.34151E-07    .54626E-04
  25  Prefactor     36.897        1.0625        .91125E-09    .38691E-02
  26  Normalizat    .96255        .11750        .52872E-07    .10552E-04
  27  Prefactor     .96932        .73510E-01    .98777E-06    .40738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77236e-09
  Prefactor  = 2.58932
  Prefactor  = 1.61894
  Prefactor  = 2.34257e-08
  Prefactor  = 19.6456
  Prefactor  = 4.33542e-08
  Prefactor  = 2.68119e-08
  norm       = 17.3877
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  norm       = 0.167429
  Prefactor  = 0
  Prefactor  = 0.900288
  Prefactor  = 1.13798e-08
  Prefactor  = 1.55431e-09
  Prefactor  = 6.38933e-08
  norm       = 4.7659
  norm       = 7.96975
  norm       = 11.769
  Prefactor  = 5.55112e-11
  Prefactor  = 9.88098e-09
  Prefactor  = 5.14588e-08
  Prefactor  = 3.21032
  norm       = 3.39011
  Prefactor  = 36.8967
  Normalizat = 0.962551
  Prefactor  = 0.969318
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.54     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71229        .92662        .13773E-04   -1.5691    
   2  Index         1.6836        .80996        .19560E-01   -.72519    
   3  Normalizat    .97068        .11346        .31150E-03   -.94019    
   4  Prefactor     .96684        .71852E-01    .19645E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-08
Minuit parameter uncertainties:
  1  0.926621
  2  0.816424
  3  0.113487
  4  0.0718593
e GAL_V02
Working on...
/lscratch/kocevski/37384975/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits.....................!
real 83.67
user 81.85
sys 0.80

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37384975/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits', '/lscratch/kocevski/37384975/ft2_4FGL_J1704.1+7647_weekly_bin944.fits', expMap='/lscratch/kocevski/37384975/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', expCube='/lscratch/kocevski/37384975/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37384975/Model_4FGL_J1704.1+7647_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37384975/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37384975/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37384975/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37384975/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37384975/Model_4FGL_J1704.1+7647_weekly_bin944.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) = 23033.0543974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34555E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6305       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33657E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.718       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43736E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58738E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .16732       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90017       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25635E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17297E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54576E-03   1.0000          .0000       .10000E+07
    17 'norm      '    4.7646       1.0000          .0000       .10000E+07
    18 'norm      '    7.9698       1.0000          .0000       .10000E+07
    19 'norm      '    11.774       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22239E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23297E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27117E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1923       1.0000          .0000       .10000E+07
    24 'norm      '    3.3907       1.0000          .0000       .10000E+07
    25 'Prefactor '    36.887       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96947       1.0000        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) = 23032.5411042
delta logL = 0.367674939152

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  7.123e-01  9.266e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  1.684e+00  8.164e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.668e-01  7.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.707e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 256.037 76.792
Photon Index (Free Index): 1.68 +/- 0.82
Photon Flux (Free Index): 3.33e-09 +/- 5.50e-09
Energy Flux (Free Index): 5.74e-06 +/- 1.02e-05

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/37384702/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='5.74e-06', photon_flux_error='1.23e-08', dlogl='3.68e-01', energy_flux='3.08e-06', photon_flux2='3.33e-09', job_status='DONE', time_completed='2026-09-08 13:59:03.250210', photon_index_error2='0.82', photon_index2='1.68', ts='2.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1788901143.25', return_code='0', job_id='37384702', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='3.39e-06', photon_flux_error2='5.50e-09', ts2='2.75', photon_index='2.55' WHERE bin_id='944' AND source_name='4FGL J1704.1+7647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 13:59:03 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  9.003e-01  9.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.693e-01  6.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.626e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.08e-06 +/- 3.39e-06

TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 4.5220094414e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00352769792899 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37384731/likelihoodResults_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5554345
delta logL = 0.353344723513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5411043
delta logL = 0.367674863566

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23032.54     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71229        .80102        .59739E-03   -.11195E-01
   2  Index         1.6836        .50379        .34882       -.16230E-03
   3  Normalizat    .97068        .10013        .70409E-01    .61257E-04
   4  Prefactor     .96684        .63276E-01    .45851E-01    .14658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712292
  Index      = 1.6836
  Normalizat = 0.970679
  Prefactor  = 0.966841
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.54     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71229        .92662        .13773E-04   -1.5691    
   2  Index         1.6836        .80996        .19560E-01   -.72519    
   3  Normalizat    .97068        .11346        .31150E-03   -.94019    
   4  Prefactor     .96684        .71852E-01    .19645E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-08
Minuit parameter uncertainties:
  1  0.926621
  2  0.816424
  3  0.113487
  4  0.0718593
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) = 23032.5411042
delta logL = 0.367674939152

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  7.123e-01  9.266e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  1.684e+00  8.164e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.668e-01  7.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.707e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 256.037 76.792
Photon Index (Free Index): 1.68 +/- 0.82
Photon Flux (Free Index): 3.33e-09 +/- 5.50e-09
Energy Flux (Free Index): 5.74e-06 +/- 1.02e-05

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/37384731/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='5.74e-06', photon_flux_error='1.23e-08', dlogl='3.68e-01', energy_flux='3.08e-06', photon_flux2='3.33e-09', job_status='DONE', time_completed='2026-09-08 13:59:13.845229', photon_index_error2='0.82', photon_index2='1.68', ts='2.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1788901153.85', return_code='0', job_id='37384731', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='3.39e-06', photon_flux_error2='5.50e-09', ts2='2.75', photon_index='2.55' WHERE bin_id='944' AND source_name='4FGL J1704.1+7647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 13:59:14 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/37384988/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits.....................!
real 92.97
user 91.04
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37384988/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits', '/lscratch/kocevski/37384988/ft2_4FGL_J1704.1+7647_weekly_bin944.fits', expMap='/lscratch/kocevski/37384988/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', expCube='/lscratch/kocevski/37384988/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37384988/Model_4FGL_J1704.1+7647_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37384988/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37384988/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37384988/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37384988/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37384988/Model_4FGL_J1704.1+7647_weekly_bin944.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) = 23033.0543974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34555E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6305       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33657E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.718       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43736E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58738E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .16732       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90017       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25635E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17297E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54576E-03   1.0000          .0000       .10000E+07
    17 'norm      '    4.7646       1.0000          .0000       .10000E+07
    18 'norm      '    7.9698       1.0000          .0000       .10000E+07
    19 'norm      '    11.774       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22239E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23297E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27117E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1923       1.0000          .0000       .10000E+07
    24 'norm      '    3.3907       1.0000          .0000       .10000E+07
    25 'Prefactor '    36.887       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96947       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23032.91     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1885 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67724E-08    4.5920        .27282E-06** at limit **
   2  Prefactor     2.5893        5.6618        .11052E-07    .30144E-04
   3  Prefactor     1.6189        13.308       -.12361E-06   -.78372E-03
   4  Prefactor     .23426E-07    3.6929        .11424E-06** at limit **
   5  Prefactor     19.646        1.6049       -.43059E-08    .14472E-02
   6  Prefactor     .43354E-07    4.1790        .60426E-07** at limit **
   7  Prefactor     .26812E-07    12.634        .17152E-06** at limit **
   8  norm          17.388        1.1001        .12031E-08   -.16346E-02
   9  Prefactor      .0000        22.626        .17985E-06** at limit **
  10  Prefactor     .39968E-08    5.1176        .14613E-06** at limit **
  11  norm          .16743        .27262       -.48115E-07** at limit **
  12  Prefactor      .0000        2.2642        .14044E-06** at limit **
  13  Prefactor     .90029        .98465        .40050E-07   -.45322E-03
  14  Prefactor     .11380E-07    1.8802        .56452E-07** at limit **
  15  Prefactor     .15543E-08    3.2655        .20491E-06** at limit **
  16  Prefactor     .63893E-07    9.5835       -.10794E-06** at limit **
  17  norm          4.7659        1.7389       -.71129E-07   -.10440E-02
  18  norm          7.9697        .77408       -.25226E-07   -.39335E-02
  19  norm          11.769        3.2287       -.95069E-08   -.66458E-03
  20  Prefactor     .55511E-10    43.115       -.28155E-06** at limit **
  21  Prefactor     .98810E-08    3.5406        .88492E-07** at limit **
  22  Prefactor     .51459E-07    2.7790       -.42593E-08** at limit **
  23  Prefactor     3.2103        3.3403       -.16370E-06    .30936E-04
  24  norm          3.3901        2.0094       -.34151E-07    .54626E-04
  25  Prefactor     36.897        1.0625        .91125E-09    .38691E-02
  26  Normalizat    .96255        .11750        .52872E-07    .10552E-04
  27  Prefactor     .96932        .73510E-01    .98777E-06    .40738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77236e-09
  Prefactor  = 2.58932
  Prefactor  = 1.61894
  Prefactor  = 2.34257e-08
  Prefactor  = 19.6456
  Prefactor  = 4.33542e-08
  Prefactor  = 2.68119e-08
  norm       = 17.3877
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  norm       = 0.167429
  Prefactor  = 0
  Prefactor  = 0.900288
  Prefactor  = 1.13798e-08
  Prefactor  = 1.55431e-09
  Prefactor  = 6.38933e-08
  norm       = 4.7659
  norm       = 7.96975
  norm       = 11.769
  Prefactor  = 5.55112e-11
  Prefactor  = 9.88098e-09
  Prefactor  = 5.14588e-08
  Prefactor  = 3.21032
  norm       = 3.39011
  Prefactor  = 36.8967
  Normalizat = 0.962551
  Prefactor  = 0.969318
  .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23032.91     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1885 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67724E-08    4.5920        .27282E-06** at limit **
   2  Prefactor     2.5893        5.6618        .11052E-07    .30144E-04
   3  Prefactor     1.6189        13.308       -.12361E-06   -.78372E-03
   4  Prefactor     .23426E-07    3.6929        .11424E-06** at limit **
   5  Prefactor     19.646        1.6049       -.43059E-08    .14472E-02
   6  Prefactor     .43354E-07    4.1790        .60426E-07** at limit **
   7  Prefactor     .26812E-07    12.634        .17152E-06** at limit **
   8  norm          17.388        1.1001        .12031E-08   -.16346E-02
   9  Prefactor      .0000        22.626        .17985E-06** at limit **
  10  Prefactor     .39968E-08    5.1176        .14613E-06** at limit **
  11  norm          .16743        .27262       -.48115E-07** at limit **
  12  Prefactor      .0000        2.2642        .14044E-06** at limit **
  13  Prefactor     .90029        .98465        .40050E-07   -.45322E-03
  14  Prefactor     .11380E-07    1.8802        .56452E-07** at limit **
  15  Prefactor     .15543E-08    3.2655        .20491E-06** at limit **
  16  Prefactor     .63893E-07    9.5835       -.10794E-06** at limit **
  17  norm          4.7659        1.7389       -.71129E-07   -.10440E-02
  18  norm          7.9697        .77408       -.25226E-07   -.39335E-02
  19  norm          11.769        3.2287       -.95069E-08   -.66458E-03
  20  Prefactor     .55511E-10    43.115       -.28155E-06** at limit **
  21  Prefactor     .98810E-08    3.5406        .88492E-07** at limit **
  22  Prefactor     .51459E-07    2.7790       -.42593E-08** at limit **
  23  Prefactor     3.2103        3.3403       -.16370E-06    .30936E-04
  24  norm          3.3901        2.0094       -.34151E-07    .54626E-04
  25  Prefactor     36.897        1.0625        .91125E-09    .38691E-02
  26  Normalizat    .96255        .11750        .52872E-07    .10552E-04
  27  Prefactor     .96932        .73510E-01    .98777E-06    .40738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77236e-09
  Prefactor  = 2.58932
  Prefactor  = 1.61894
  Prefactor  = 2.34257e-08
  Prefactor  = 19.6456
  Prefactor  = 4.33542e-08
  Prefactor  = 2.68119e-08
  norm       = 17.3877
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  norm       = 0.167429
  Prefactor  = 0
  Prefactor  = 0.900288
  Prefactor  = 1.13798e-08
  Prefactor  = 1.55431e-09
  Prefactor  = 6.38933e-08
  norm       = 4.7659
  norm       = 7.96975
  norm       = 11.769
  Prefactor  = 5.55112e-11
  Prefactor  = 9.88098e-09
  Prefactor  = 5.14588e-08
  Prefactor  = 3.21032
  norm       = 3.39011
  Prefactor  = 36.8967
  Normalizat = 0.962551
  Prefactor  = 0.969318
e GAL_V02
Working on...
/lscratch/kocevski/37384985/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits.....................!
real 92.93
user 91.19
sys 0.69

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37384985/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits', '/lscratch/kocevski/37384985/ft2_4FGL_J1704.1+7647_weekly_bin944.fits', expMap='/lscratch/kocevski/37384985/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', expCube='/lscratch/kocevski/37384985/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37384985/Model_4FGL_J1704.1+7647_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37384985/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37384985/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37384985/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37384985/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37384985/Model_4FGL_J1704.1+7647_weekly_bin944.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) = 23033.0543974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34555E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6305       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33657E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.718       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43736E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58738E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .16732       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90017       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25635E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17297E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54576E-03   1.0000          .0000       .10000E+07
    17 'norm      '    4.7646       1.0000          .0000       .10000E+07
    18 'norm      '    7.9698       1.0000          .0000       .10000E+07
    19 'norm      '    11.774       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22239E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23297E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27117E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1923       1.0000          .0000       .10000E+07
    24 'norm      '    3.3907       1.0000          .0000       .10000E+07
    25 'Prefactor '    36.887       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96947       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23032.91     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1885 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67724E-08    4.5920        .27282E-06** at limit **
   2  Prefactor     2.5893        5.6618        .11052E-07    .30144E-04
   3  Prefactor     1.6189        13.308       -.12361E-06   -.78372E-03
   4  Prefactor     .23426E-07    3.6929        .11424E-06** at limit **
   5  Prefactor     19.646        1.6049       -.43059E-08    .14472E-02
   6  Prefactor     .43354E-07    4.1790        .60426E-07** at limit **
   7  Prefactor     .26812E-07    12.634        .17152E-06** at limit **
   8  norm          17.388        1.1001        .12031E-08   -.16346E-02
   9  Prefactor      .0000        22.626        .17985E-06** at limit **
  10  Prefactor     .39968E-08    5.1176        .14613E-06** at limit **
  11  norm          .16743        .27262       -.48115E-07** at limit **
  12  Prefactor      .0000        2.2642        .14044E-06** at limit **
  13  Prefactor     .90029        .98465        .40050E-07   -.45322E-03
  14  Prefactor     .11380E-07    1.8802        .56452E-07** at limit **
  15  Prefactor     .15543E-08    3.2655        .20491E-06** at limit **
  16  Prefactor     .63893E-07    9.5835       -.10794E-06** at limit **
  17  norm          4.7659        1.7389       -.71129E-07   -.10440E-02
  18  norm          7.9697        .77408       -.25226E-07   -.39335E-02
  19  norm          11.769        3.2287       -.95069E-08   -.66458E-03
  20  Prefactor     .55511E-10    43.115       -.28155E-06** at limit **
  21  Prefactor     .98810E-08    3.5406        .88492E-07** at limit **
  22  Prefactor     .51459E-07    2.7790       -.42593E-08** at limit **
  23  Prefactor     3.2103        3.3403       -.16370E-06    .30936E-04
  24  norm          3.3901        2.0094       -.34151E-07    .54626E-04
  25  Prefactor     36.897        1.0625        .91125E-09    .38691E-02
  26  Normalizat    .96255        .11750        .52872E-07    .10552E-04
  27  Prefactor     .96932        .73510E-01    .98777E-06    .40738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77236e-09
  Prefactor  = 2.58932
  Prefactor  = 1.61894
  Prefactor  = 2.34257e-08
  Prefactor  = 19.6456
  Prefactor  = 4.33542e-08
  Prefactor  = 2.68119e-08
  norm       = 17.3877
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  norm       = 0.167429
  Prefactor  = 0
  Prefactor  = 0.900288
  Prefactor  = 1.13798e-08
  Prefactor  = 1.55431e-09
  Prefactor  = 6.38933e-08
  norm       = 4.7659
  norm       = 7.96975
  norm       = 11.769
  Prefactor  = 5.55112e-11
  Prefactor  = 9.88098e-09
  Prefactor  = 5.14588e-08
  Prefactor  = 3.21032
  norm       = 3.39011
  Prefactor  = 36.8967
  Normalizat = 0.962551
  Prefactor  = 0.969318
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.91     FROM HESSE     STATUS=OK           542 CALLS     2427 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67724E-08    9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5893        5.6867        .63783E-03   -1.5676    
   3  Prefactor     1.6189        13.166        .82783E-03   -1.5683    
   4  Prefactor     .23426E-07    10.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.646        16.603        .22527E-03   -1.5619    
   6  Prefactor     .43354E-07    6.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26812E-07    13.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.388        10.970        .23997E-03   -1.5625    
   9  Prefactor      .0000        22.628        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39968E-08    5.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16743        .26195        .23511E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90029        .99018        .45748E-03   -1.5689    
  14  Prefactor     .11380E-07    4.7419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    9.7471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    12.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7659        1.7429        .46070E-03   -1.5664    
  18  norm          7.9697        .77498        .35493E-03   -1.5652    
  19  norm          11.769        3.2421        .29170E-03   -1.5639    
  20  Prefactor     .55511E-10    43.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98810E-08    5.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51459E-07    6.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2103        3.3454        .56687E-03   -1.5672    
  24  norm          3.3901        2.0422        .54921E-03   -1.5671    
  25  Prefactor     36.897        10.588        .16467E-03   -1.5586    
  26  Normalizat    .96255        .10613        .70657E-01   -.94296    
  27  Prefactor     .96932        .65021E-01    .45884E-01   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23802e-07
Minuit parameter uncertainties:
  1  0.000507692
  2  5.68669
  3  9.23381
  4  0.000968324
  5  16.6034
  6  0.00105031
  7  0.00121127
  8  10.9703
  9  4.91807e-06
  10  0.000292488
  11  0.261949
  12  1.2326e-05
  13  0.990178
  14  0.000464465
  15  0.000244759
  16  0.00177748
  17  1.7429
  18  0.774979
  19  3.24215
  20  0.000114256
  21  0.000452916
  22  0.00113093
  23  3.34538
  24  2.04219
  25  10.5881
  26  0.106154
  27  0.0650263
Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  9.003e-01  9.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.693e-01  6.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.626e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.08e-06 +/- 3.39e-06

TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 4.5220094414e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00352769792899 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37384761/likelihoodResults_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5554345
delta logL = 0.353344723513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5411043
delta logL = 0.367674863566

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23032.54     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71229        .80102        .59739E-03   -.11195E-01
   2  Index         1.6836        .50379        .34882       -.16230E-03
   3  Normalizat    .97068        .10013        .70409E-01    .61257E-04
   4  Prefactor     .96684        .63276E-01    .45851E-01    .14658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712292
  Index      = 1.6836
  Normalizat = 0.970679
  Prefactor  = 0.966841
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.54     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71229        .92662        .13773E-04   -1.5691    
   2  Index         1.6836        .80996        .19560E-01   -.72519    
   3  Normalizat    .97068        .11346        .31150E-03   -.94019    
   4  Prefactor     .96684        .71852E-01    .19645E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-08
Minuit parameter uncertainties:
  1  0.926621
  2  0.816424
  3  0.113487
  4  0.0718593
  .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23032.91     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1885 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67724E-08    4.5920        .27282E-06** at limit **
   2  Prefactor     2.5893        5.6618        .11052E-07    .30144E-04
   3  Prefactor     1.6189        13.308       -.12361E-06   -.78372E-03
   4  Prefactor     .23426E-07    3.6929        .11424E-06** at limit **
   5  Prefactor     19.646        1.6049       -.43059E-08    .14472E-02
   6  Prefactor     .43354E-07    4.1790        .60426E-07** at limit **
   7  Prefactor     .26812E-07    12.634        .17152E-06** at limit **
   8  norm          17.388        1.1001        .12031E-08   -.16346E-02
   9  Prefactor      .0000        22.626        .17985E-06** at limit **
  10  Prefactor     .39968E-08    5.1176        .14613E-06** at limit **
  11  norm          .16743        .27262       -.48115E-07** at limit **
  12  Prefactor      .0000        2.2642        .14044E-06** at limit **
  13  Prefactor     .90029        .98465        .40050E-07   -.45322E-03
  14  Prefactor     .11380E-07    1.8802        .56452E-07** at limit **
  15  Prefactor     .15543E-08    3.2655        .20491E-06** at limit **
  16  Prefactor     .63893E-07    9.5835       -.10794E-06** at limit **
  17  norm          4.7659        1.7389       -.71129E-07   -.10440E-02
  18  norm          7.9697        .77408       -.25226E-07   -.39335E-02
  19  norm          11.769        3.2287       -.95069E-08   -.66458E-03
  20  Prefactor     .55511E-10    43.115       -.28155E-06** at limit **
  21  Prefactor     .98810E-08    3.5406        .88492E-07** at limit **
  22  Prefactor     .51459E-07    2.7790       -.42593E-08** at limit **
  23  Prefactor     3.2103        3.3403       -.16370E-06    .30936E-04
  24  norm          3.3901        2.0094       -.34151E-07    .54626E-04
  25  Prefactor     36.897        1.0625        .91125E-09    .38691E-02
  26  Normalizat    .96255        .11750        .52872E-07    .10552E-04
  27  Prefactor     .96932        .73510E-01    .98777E-06    .40738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77236e-09
  Prefactor  = 2.58932
  Prefactor  = 1.61894
  Prefactor  = 2.34257e-08
  Prefactor  = 19.6456
  Prefactor  = 4.33542e-08
  Prefactor  = 2.68119e-08
  norm       = 17.3877
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  norm       = 0.167429
  Prefactor  = 0
  Prefactor  = 0.900288
  Prefactor  = 1.13798e-08
  Prefactor  = 1.55431e-09
  Prefactor  = 6.38933e-08
  norm       = 4.7659
  norm       = 7.96975
  norm       = 11.769
  Prefactor  = 5.55112e-11
  Prefactor  = 9.88098e-09
  Prefactor  = 5.14588e-08
  Prefactor  = 3.21032
  norm       = 3.39011
  Prefactor  = 36.8967
  Normalizat = 0.962551
  Prefactor  = 0.969318
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) = 23032.5411042
delta logL = 0.367674939152

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  7.123e-01  9.266e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  1.684e+00  8.164e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.668e-01  7.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.707e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 256.037 76.792
Photon Index (Free Index): 1.68 +/- 0.82
Photon Flux (Free Index): 3.33e-09 +/- 5.50e-09
Energy Flux (Free Index): 5.74e-06 +/- 1.02e-05

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/37384761/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='5.74e-06', photon_flux_error='1.23e-08', dlogl='3.68e-01', energy_flux='3.08e-06', photon_flux2='3.33e-09', job_status='DONE', time_completed='2026-09-08 13:59:58.041126', photon_index_error2='0.82', photon_index2='1.68', ts='2.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1788901198.04', return_code='0', job_id='37384761', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='3.39e-06', photon_flux_error2='5.50e-09', ts2='2.75', photon_index='2.55' WHERE bin_id='944' AND source_name='4FGL J1704.1+7647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 13:59:58 PDT 2026

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

 FCN=   23032.91     FROM HESSE     STATUS=OK           542 CALLS     2427 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67724E-08    9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5893        5.6867        .63783E-03   -1.5676    
   3  Prefactor     1.6189        13.166        .82783E-03   -1.5683    
   4  Prefactor     .23426E-07    10.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.646        16.603        .22527E-03   -1.5619    
   6  Prefactor     .43354E-07    6.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26812E-07    13.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.388        10.970        .23997E-03   -1.5625    
   9  Prefactor      .0000        22.628        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39968E-08    5.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16743        .26195        .23511E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90029        .99018        .45748E-03   -1.5689    
  14  Prefactor     .11380E-07    4.7419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    9.7471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    12.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7659        1.7429        .46070E-03   -1.5664    
  18  norm          7.9697        .77498        .35493E-03   -1.5652    
  19  norm          11.769        3.2421        .29170E-03   -1.5639    
  20  Prefactor     .55511E-10    43.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98810E-08    5.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51459E-07    6.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2103        3.3454        .56687E-03   -1.5672    
  24  norm          3.3901        2.0422        .54921E-03   -1.5671    
  25  Prefactor     36.897        10.588        .16467E-03   -1.5586    
  26  Normalizat    .96255        .10613        .70657E-01   -.94296    
  27  Prefactor     .96932        .65021E-01    .45884E-01   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23802e-07
Minuit parameter uncertainties:
  1  0.000507692
  2  5.68669
  3  9.23381
  4  0.000968324
  5  16.6034
  6  0.00105031
  7  0.00121127
  8  10.9703
  9  4.91807e-06
  10  0.000292488
  11  0.261949
  12  1.2326e-05
  13  0.990178
  14  0.000464465
  15  0.000244759
  16  0.00177748
  17  1.7429
  18  0.774979
  19  3.24215
  20  0.000114256
  21  0.000452916
  22  0.00113093
  23  3.34538
  24  2.04219
  25  10.5881
  26  0.106154
  27  0.0650263
Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  9.003e-01  9.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.693e-01  6.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.626e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.08e-06 +/- 3.39e-06

TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 4.5220094414e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00352769792899 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37384783/likelihoodResults_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5554345
delta logL = 0.353344723513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5411043
delta logL = 0.367674863566

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23032.54     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71229        .80102        .59739E-03   -.11195E-01
   2  Index         1.6836        .50379        .34882       -.16230E-03
   3  Normalizat    .97068        .10013        .70409E-01    .61257E-04
   4  Prefactor     .96684        .63276E-01    .45851E-01    .14658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712292
  Index      = 1.6836
  Normalizat = 0.970679
  Prefactor  = 0.966841
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.54     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71229        .92662        .13773E-04   -1.5691    
   2  Index         1.6836        .80996        .19560E-01   -.72519    
   3  Normalizat    .97068        .11346        .31150E-03   -.94019    
   4  Prefactor     .96684        .71852E-01    .19645E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-08
Minuit parameter uncertainties:
  1  0.926621
  2  0.816424
  3  0.113487
  4  0.0718593
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.91     FROM HESSE     STATUS=OK           542 CALLS     2427 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67724E-08    9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5893        5.6867        .63783E-03   -1.5676    
   3  Prefactor     1.6189        13.166        .82783E-03   -1.5683    
   4  Prefactor     .23426E-07    10.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.646        16.603        .22527E-03   -1.5619    
   6  Prefactor     .43354E-07    6.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26812E-07    13.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.388        10.970        .23997E-03   -1.5625    
   9  Prefactor      .0000        22.628        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39968E-08    5.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16743        .26195        .23511E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90029        .99018        .45748E-03   -1.5689    
  14  Prefactor     .11380E-07    4.7419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    9.7471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    12.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7659        1.7429        .46070E-03   -1.5664    
  18  norm          7.9697        .77498        .35493E-03   -1.5652    
  19  norm          11.769        3.2421        .29170E-03   -1.5639    
  20  Prefactor     .55511E-10    43.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98810E-08    5.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51459E-07    6.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2103        3.3454        .56687E-03   -1.5672    
  24  norm          3.3901        2.0422        .54921E-03   -1.5671    
  25  Prefactor     36.897        10.588        .16467E-03   -1.5586    
  26  Normalizat    .96255        .10613        .70657E-01   -.94296    
  27  Prefactor     .96932        .65021E-01    .45884E-01   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23802e-07
Minuit parameter uncertainties:
  1  0.000507692
  2  5.68669
  3  9.23381
  4  0.000968324
  5  16.6034
  6  0.00105031
  7  0.00121127
  8  10.9703
  9  4.91807e-06
  10  0.000292488
  11  0.261949
  12  1.2326e-05
  13  0.990178
  14  0.000464465
  15  0.000244759
  16  0.00177748
  17  1.7429
  18  0.774979
  19  3.24215
  20  0.000114256
  21  0.000452916
  22  0.00113093
  23  3.34538
  24  2.04219
  25  10.5881
  26  0.106154
  27  0.0650263
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) = 23032.5411042
delta logL = 0.367674939152

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  7.123e-01  9.266e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  1.684e+00  8.164e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.668e-01  7.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.707e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 256.037 76.792
Photon Index (Free Index): 1.68 +/- 0.82
Photon Flux (Free Index): 3.33e-09 +/- 5.50e-09
Energy Flux (Free Index): 5.74e-06 +/- 1.02e-05

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/37384783/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='5.74e-06', photon_flux_error='1.23e-08', dlogl='3.68e-01', energy_flux='3.08e-06', photon_flux2='3.33e-09', job_status='DONE', time_completed='2026-09-08 14:00:22.635583', photon_index_error2='0.82', photon_index2='1.68', ts='2.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1788901222.64', return_code='0', job_id='37384783', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='3.39e-06', photon_flux_error2='5.50e-09', ts2='2.75', photon_index='2.55' WHERE bin_id='944' AND source_name='4FGL J1704.1+7647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 14:00:23 PDT 2026

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

 FCN=   23032.91     FROM HESSE     STATUS=OK           542 CALLS     2427 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67724E-08    9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5893        5.6867        .63783E-03   -1.5676    
   3  Prefactor     1.6189        13.166        .82783E-03   -1.5683    
   4  Prefactor     .23426E-07    10.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.646        16.603        .22527E-03   -1.5619    
   6  Prefactor     .43354E-07    6.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26812E-07    13.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.388        10.970        .23997E-03   -1.5625    
   9  Prefactor      .0000        22.628        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39968E-08    5.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16743        .26195        .23511E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90029        .99018        .45748E-03   -1.5689    
  14  Prefactor     .11380E-07    4.7419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    9.7471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    12.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7659        1.7429        .46070E-03   -1.5664    
  18  norm          7.9697        .77498        .35493E-03   -1.5652    
  19  norm          11.769        3.2421        .29170E-03   -1.5639    
  20  Prefactor     .55511E-10    43.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98810E-08    5.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51459E-07    6.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2103        3.3454        .56687E-03   -1.5672    
  24  norm          3.3901        2.0422        .54921E-03   -1.5671    
  25  Prefactor     36.897        10.588        .16467E-03   -1.5586    
  26  Normalizat    .96255        .10613        .70657E-01   -.94296    
  27  Prefactor     .96932        .65021E-01    .45884E-01   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23802e-07
Minuit parameter uncertainties:
  1  0.000507692
  2  5.68669
  3  9.23381
  4  0.000968324
  5  16.6034
  6  0.00105031
  7  0.00121127
  8  10.9703
  9  4.91807e-06
  10  0.000292488
  11  0.261949
  12  1.2326e-05
  13  0.990178
  14  0.000464465
  15  0.000244759
  16  0.00177748
  17  1.7429
  18  0.774979
  19  3.24215
  20  0.000114256
  21  0.000452916
  22  0.00113093
  23  3.34538
  24  2.04219
  25  10.5881
  26  0.106154
  27  0.0650263
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.91     FROM HESSE     STATUS=OK           542 CALLS     2427 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67724E-08    9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5893        5.6867        .63783E-03   -1.5676    
   3  Prefactor     1.6189        13.166        .82783E-03   -1.5683    
   4  Prefactor     .23426E-07    10.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.646        16.603        .22527E-03   -1.5619    
   6  Prefactor     .43354E-07    6.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26812E-07    13.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.388        10.970        .23997E-03   -1.5625    
   9  Prefactor      .0000        22.628        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39968E-08    5.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16743        .26195        .23511E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90029        .99018        .45748E-03   -1.5689    
  14  Prefactor     .11380E-07    4.7419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    9.7471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    12.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7659        1.7429        .46070E-03   -1.5664    
  18  norm          7.9697        .77498        .35493E-03   -1.5652    
  19  norm          11.769        3.2421        .29170E-03   -1.5639    
  20  Prefactor     .55511E-10    43.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98810E-08    5.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51459E-07    6.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2103        3.3454        .56687E-03   -1.5672    
  24  norm          3.3901        2.0422        .54921E-03   -1.5671    
  25  Prefactor     36.897        10.588        .16467E-03   -1.5586    
  26  Normalizat    .96255        .10613        .70657E-01   -.94296    
  27  Prefactor     .96932        .65021E-01    .45884E-01   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23802e-07
Minuit parameter uncertainties:
  1  0.000507692
  2  5.68669
  3  9.23381
  4  0.000968324
  5  16.6034
  6  0.00105031
  7  0.00121127
  8  10.9703
  9  4.91807e-06
  10  0.000292488
  11  0.261949
  12  1.2326e-05
  13  0.990178
  14  0.000464465
  15  0.000244759
  16  0.00177748
  17  1.7429
  18  0.774979
  19  3.24215
  20  0.000114256
  21  0.000452916
  22  0.00113093
  23  3.34538
  24  2.04219
  25  10.5881
  26  0.106154
  27  0.0650263
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.91     FROM HESSE     STATUS=OK           542 CALLS     2427 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67724E-08    9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5893        5.6867        .63783E-03   -1.5676    
   3  Prefactor     1.6189        13.166        .82783E-03   -1.5683    
   4  Prefactor     .23426E-07    10.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.646        16.603        .22527E-03   -1.5619    
   6  Prefactor     .43354E-07    6.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26812E-07    13.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.388        10.970        .23997E-03   -1.5625    
   9  Prefactor      .0000        22.628        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39968E-08    5.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16743        .26195        .23511E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90029        .99018        .45748E-03   -1.5689    
  14  Prefactor     .11380E-07    4.7419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    9.7471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    12.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7659        1.7429        .46070E-03   -1.5664    
  18  norm          7.9697        .77498        .35493E-03   -1.5652    
  19  norm          11.769        3.2421        .29170E-03   -1.5639    
  20  Prefactor     .55511E-10    43.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98810E-08    5.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51459E-07    6.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2103        3.3454        .56687E-03   -1.5672    
  24  norm          3.3901        2.0422        .54921E-03   -1.5671    
  25  Prefactor     36.897        10.588        .16467E-03   -1.5586    
  26  Normalizat    .96255        .10613        .70657E-01   -.94296    
  27  Prefactor     .96932        .65021E-01    .45884E-01   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23802e-07
Minuit parameter uncertainties:
  1  0.000507692
  2  5.68669
  3  9.23381
  4  0.000968324
  5  16.6034
  6  0.00105031
  7  0.00121127
  8  10.9703
  9  4.91807e-06
  10  0.000292488
  11  0.261949
  12  1.2326e-05
  13  0.990178
  14  0.000464465
  15  0.000244759
  16  0.00177748
  17  1.7429
  18  0.774979
  19  3.24215
  20  0.000114256
  21  0.000452916
  22  0.00113093
  23  3.34538
  24  2.04219
  25  10.5881
  26  0.106154
  27  0.0650263
e GAL_V02
Working on...
/lscratch/kocevski/37385072/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits.....................!
real 96.15
user 94.33
sys 0.73

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37385072/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits', '/lscratch/kocevski/37385072/ft2_4FGL_J1704.1+7647_weekly_bin944.fits', expMap='/lscratch/kocevski/37385072/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', expCube='/lscratch/kocevski/37385072/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37385072/Model_4FGL_J1704.1+7647_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37385072/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37385072/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37385072/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37385072/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37385072/Model_4FGL_J1704.1+7647_weekly_bin944.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) = 23033.0543974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34555E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6305       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33657E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.718       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43736E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58738E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .16732       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90017       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25635E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17297E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54576E-03   1.0000          .0000       .10000E+07
    17 'norm      '    4.7646       1.0000          .0000       .10000E+07
    18 'norm      '    7.9698       1.0000          .0000       .10000E+07
    19 'norm      '    11.774       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22239E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23297E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27117E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1923       1.0000          .0000       .10000E+07
    24 'norm      '    3.3907       1.0000          .0000       .10000E+07
    25 'Prefactor '    36.887       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96947       1.0000         **********
 **   18 **HESSE 
 **********

 FCN=   23032.91     FROM HESSE     STATUS=OK           542 CALLS     2427 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67724E-08    9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5893        5.6867        .63783E-03   -1.5676    
   3  Prefactor     1.6189        13.166        .82783E-03   -1.5683    
   4  Prefactor     .23426E-07    10.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.646        16.603        .22527E-03   -1.5619    
   6  Prefactor     .43354E-07    6.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26812E-07    13.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.388        10.970        .23997E-03   -1.5625    
   9  Prefactor      .0000        22.628        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39968E-08    5.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16743        .26195        .23511E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90029        .99018        .45748E-03   -1.5689    
  14  Prefactor     .11380E-07    4.7419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    9.7471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    12.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7659        1.7429        .46070E-03   -1.5664    
  18  norm          7.9697        .77498        .35493E-03   -1.5652    
  19  norm          11.769        3.2421        .29170E-03   -1.5639    
  20  Prefactor     .55511E-10    43.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98810E-08    5.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51459E-07    6.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2103        3.3454        .56687E-03   -1.5672    
  24  norm          3.3901        2.0422        .54921E-03   -1.5671    
  25  Prefactor     36.897        10.588        .16467E-03   -1.5586    
  26  Normalizat    .96255        .10613        .70657E-01   -.94296    
  27  Prefactor     .96932        .65021E-01    .45884E-01   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23802e-07
Minuit parameter uncertainties:
  1  0.000507692
  2  5.68669
  3  9.23381
  4  0.000968324
  5  16.6034
  6  0.00105031
  7  0.00121127
  8  10.9703
  9  4.91807e-06
  10  0.000292488
  11  0.261949
  12  1.2326e-05
  13  0.990178
  14  0.000464465
  15  0.000244759
  16  0.00177748
  17  1.7429
  18  0.774979
  19  3.24215
  20  0.000114256
  21  0.000452916
  22  0.00113093
  23  3.34538
  24  2.04219
  25  10.5881
  26  0.106154
  27  0.0650263
e GAL_V02
Working on...
/lscratch/kocevski/37385040/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits.....................!
real 103.95
user 101.93
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37385040/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits', '/lscratch/kocevski/37385040/ft2_4FGL_J1704.1+7647_weekly_bin944.fits', expMap='/lscratch/kocevski/37385040/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', expCube='/lscratch/kocevski/37385040/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37385040/Model_4FGL_J1704.1+7647_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37385040/ft1_filtered_4FGL_J1704.1+7647_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37385040/ft2_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37385040/expmap_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37385040/ltcube_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37385040/Model_4FGL_J1704.1+7647_weekly_bin944.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) = 23033.0543974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34555E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6305       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33657E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.718       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10377E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    17.380       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43736E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58738E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .16732       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90017       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25635E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17297E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .54576E-03   1.0000          .0000       .10000E+07
    17 'norm      '    4.7646       1.0000          .0000       .10000E+07
    18 'norm      '    7.9698       1.0000          .0000       .10000E+07
    19 'norm      '    11.774       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22239E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23297E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27117E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1923       1.0000          .0000       .10000E+07
    24 'norm      '    3.3907       1.0000          .0000       .10000E+07
    25 'Prefactor '    36.887       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96947       1.0000        .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23032.91     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1885 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67724E-08    4.5920        .27282E-06** at limit **
   2  Prefactor     2.5893        5.6618        .11052E-07    .30144E-04
   3  Prefactor     1.6189        13.308       -.12361E-06   -.78372E-03
   4  Prefactor     .23426E-07    3.6929        .11424E-06** at limit **
   5  Prefactor     19.646        1.6049       -.43059E-08    .14472E-02
   6  Prefactor     .43354E-07    4.1790        .60426E-07** at limit **
   7  Prefactor     .26812E-07    12.634        .17152E-06** at limit **
   8  norm          17.388        1.1001        .12031E-08   -.16346E-02
   9  Prefactor      .0000        22.626        .17985E-06** at limit **
  10  Prefactor     .39968E-08    5.1176        .14613E-06** at limit **
  11  norm          .16743        .27262       -.48115E-07** at limit **
  12  Prefactor      .0000        2.2642        .14044E-06** at limit **
  13  Prefactor     .90029        .98465        .40050E-07   -.45322E-03
  14  Prefactor     .11380E-07    1.8802        .56452E-07** at limit **
  15  Prefactor     .15543E-08    3.2655        .20491E-06** at limit **
  16  Prefactor     .63893E-07    9.5835       -.10794E-06** at limit **
  17  norm          4.7659        1.7389       -.71129E-07   -.10440E-02
  18  norm          7.9697        .77408       -.25226E-07   -.39335E-02
  19  norm          11.769        3.2287       -.95069E-08   -.66458E-03
  20  Prefactor     .55511E-10    43.115       -.28155E-06** at limit **
  21  Prefactor     .98810E-08    3.5406        .88492E-07** at limit **
  22  Prefactor     .51459E-07    2.7790       -.42593E-08** at limit **
  23  Prefactor     3.2103        3.3403       -.16370E-06    .30936E-04
  24  norm          3.3901        2.0094       -.34151E-07    .54626E-04
  25  Prefactor     36.897        1.0625        .91125E-09    .38691E-02
  26  Normalizat    .96255        .11750        .52872E-07    .10552E-04
  27  Prefactor     .96932        .73510E-01    .98777E-06    .40738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77236e-09
  Prefactor  = 2.58932
  Prefactor  = 1.61894
  Prefactor  = 2.34257e-08
  Prefactor  = 19.6456
  Prefactor  = 4.33542e-08
  Prefactor  = 2.68119e-08
  norm       = 17.3877
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  norm       = 0.167429
  Prefactor  = 0
  Prefactor  = 0.900288
  Prefactor  = 1.13798e-08
  Prefactor  = 1.55431e-09
  Prefactor  = 6.38933e-08
  norm       = 4.7659
  norm       = 7.96975
  norm       = 11.769
  Prefactor  = 5.55112e-11
  Prefactor  = 9.88098e-09
  Prefactor  = 5.14588e-08
  Prefactor  = 3.21032
  norm       = 3.39011
  Prefactor  = 36.8967
  Normalizat = 0.962551
  Prefactor  = 0.969318
    .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23032.91     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1885 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67724E-08    4.5920        .27282E-06** at limit **
   2  Prefactor     2.5893        5.6618        .11052E-07    .30144E-04
   3  Prefactor     1.6189        13.308       -.12361E-06   -.78372E-03
   4  Prefactor     .23426E-07    3.6929        .11424E-06** at limit **
   5  Prefactor     19.646        1.6049       -.43059E-08    .14472E-02
   6  Prefactor     .43354E-07    4.1790        .60426E-07** at limit **
   7  Prefactor     .26812E-07    12.634        .17152E-06** at limit **
   8  norm          17.388        1.1001        .12031E-08   -.16346E-02
   9  Prefactor      .0000        22.626        .17985E-06** at limit **
  10  Prefactor     .39968E-08    5.1176        .14613E-06** at limit **
  11  norm          .16743        .27262       -.48115E-07** at limit **
  12  Prefactor      .0000        2.2642        .14044E-06** at limit **
  13  Prefactor     .90029        .98465        .40050E-07   -.45322E-03
  14  Prefactor     .11380E-07    1.8802        .56452E-07** at limit **
  15  Prefactor     .15543E-08    3.2655        .20491E-06** at limit **
  16  Prefactor     .63893E-07    9.5835       -.10794E-06** at limit **
  17  norm          4.7659        1.7389       -.71129E-07   -.10440E-02
  18  norm          7.9697        .77408       -.25226E-07   -.39335E-02
  19  norm          11.769        3.2287       -.95069E-08   -.66458E-03
  20  Prefactor     .55511E-10    43.115       -.28155E-06** at limit **
  21  Prefactor     .98810E-08    3.5406        .88492E-07** at limit **
  22  Prefactor     .51459E-07    2.7790       -.42593E-08** at limit **
  23  Prefactor     3.2103        3.3403       -.16370E-06    .30936E-04
  24  norm          3.3901        2.0094       -.34151E-07    .54626E-04
  25  Prefactor     36.897        1.0625        .91125E-09    .38691E-02
  26  Normalizat    .96255        .11750        .52872E-07    .10552E-04
  27  Prefactor     .96932        .73510E-01    .98777E-06    .40738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77236e-09
  Prefactor  = 2.58932
  Prefactor  = 1.61894
  Prefactor  = 2.34257e-08
  Prefactor  = 19.6456
  Prefactor  = 4.33542e-08
  Prefactor  = 2.68119e-08
  norm       = 17.3877
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  norm       = 0.167429
  Prefactor  = 0
  Prefactor  = 0.900288
  Prefactor  = 1.13798e-08
  Prefactor  = 1.55431e-09
  Prefactor  = 6.38933e-08
  norm       = 4.7659
  norm       = 7.96975
  norm       = 11.769
  Prefactor  = 5.55112e-11
  Prefactor  = 9.88098e-09
  Prefactor  = 5.14588e-08
  Prefactor  = 3.21032
  norm       = 3.39011
  Prefactor  = 36.8967
  Normalizat = 0.962551
  Prefactor  = 0.969318
Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  9.003e-01  9.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.693e-01  6.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.626e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.08e-06 +/- 3.39e-06

TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 4.5220094414e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00352769792899 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37384845/likelihoodResults_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5554345
delta logL = 0.353344723513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5411043
delta logL = 0.367674863566

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23032.54     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71229        .80102        .59739E-03   -.11195E-01
   2  Index         1.6836        .50379        .34882       -.16230E-03
   3  Normalizat    .97068        .10013        .70409E-01    .61257E-04
   4  Prefactor     .96684        .63276E-01    .45851E-01    .14658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712292
  Index      = 1.6836
  Normalizat = 0.970679
  Prefactor  = 0.966841
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.54     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71229        .92662        .13773E-04   -1.5691    
   2  Index         1.6836        .80996        .19560E-01   -.72519    
   3  Normalizat    .97068        .11346        .31150E-03   -.94019    
   4  Prefactor     .96684        .71852E-01    .19645E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-08
Minuit parameter uncertainties:
  1  0.926621
  2  0.816424
  3  0.113487
  4  0.0718593
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) = 23032.5411042
delta logL = 0.367674939152

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  7.123e-01  9.266e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  1.684e+00  8.164e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.668e-01  7.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.707e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 256.037 76.792
Photon Index (Free Index): 1.68 +/- 0.82
Photon Flux (Free Index): 3.33e-09 +/- 5.50e-09
Energy Flux (Free Index): 5.74e-06 +/- 1.02e-05

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/37384845/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='5.74e-06', photon_flux_error='1.23e-08', dlogl='3.68e-01', energy_flux='3.08e-06', photon_flux2='3.33e-09', job_status='DONE', time_completed='2026-09-08 14:02:11.413803', photon_index_error2='0.82', photon_index2='1.68', ts='2.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1788901331.41', return_code='0', job_id='37384845', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='3.39e-06', photon_flux_error2='5.50e-09', ts2='2.75', photon_index='2.55' WHERE bin_id='944' AND source_name='4FGL J1704.1+7647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 14:02:11 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  9.003e-01  9.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.693e-01  6.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.626e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.08e-06 +/- 3.39e-06

TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 4.5220094414e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00352769792899 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37384974/likelihoodResults_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5554345
delta logL = 0.353344723513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5411043
delta logL = 0.367674863566

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23032.54     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71229        .80102        .59739E-03   -.11195E-01
   2  Index         1.6836        .50379        .34882       -.16230E-03
   3  Normalizat    .97068        .10013        .70409E-01    .61257E-04
   4  Prefactor     .96684        .63276E-01    .45851E-01    .14658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712292
  Index      = 1.6836
  Normalizat = 0.970679
  Prefactor  = 0.966841
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.54     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71229        .92662        .13773E-04   -1.5691    
   2  Index         1.6836        .80996        .19560E-01   -.72519    
   3  Normalizat    .97068        .11346        .31150E-03   -.94019    
   4  Prefactor     .96684        .71852E-01    .19645E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-08
Minuit parameter uncertainties:
  1  0.926621
  2  0.816424
  3  0.113487
  4  0.0718593
Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  9.003e-01  9.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.693e-01  6.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.626e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.08e-06 +/- 3.39e-06

TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 4.5220094414e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00352769792899 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37384975/likelihoodResults_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5554345
delta logL = 0.353344723513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5411043
delta logL = 0.367674863566

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23032.54     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71229        .80102        .59739E-03   -.11195E-01
   2  Index         1.6836        .50379        .34882       -.16230E-03
   3  Normalizat    .97068        .10013        .70409E-01    .61257E-04
   4  Prefactor     .96684        .63276E-01    .45851E-01    .14658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712292
  Index      = 1.6836
  Normalizat = 0.970679
  Prefactor  = 0.966841
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) = 23032.5411042
delta logL = 0.367674939152

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  7.123e-01  9.266e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  1.684e+00  8.164e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.668e-01  7.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.707e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 256.037 76.792
Photon Index (Free Index): 1.68 +/- 0.82
Photon Flux (Free Index): 3.33e-09 +/- 5.50e-09
Energy Flux (Free Index): 5.74e-06 +/- 1.02e-05

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/37384974/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='5.74e-06', photon_flux_error='1.23e-08', dlogl='3.68e-01', energy_flux='3.08e-06', photon_flux2='3.33e-09', job_status='DONE', time_completed='2026-09-08 14:02:24.755978', photon_index_error2='0.82', photon_index2='1.68', ts='2.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1788901344.76', return_code='0', job_id='37384974', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='3.39e-06', photon_flux_error2='5.50e-09', ts2='2.75', photon_index='2.55' WHERE bin_id='944' AND source_name='4FGL J1704.1+7647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 14:02:25 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  9.003e-01  9.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.693e-01  6.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.626e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.08e-06 +/- 3.39e-06

TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 4.5220094414e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00352769792899 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37384882/likelihoodResults_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5554345
delta logL = 0.353344723513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5411043
delta logL = 0.367674863566

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23032.54     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71229        .80102        .59739E-03   -.11195E-01
   2  Index         1.6836        .50379        .34882       -.16230E-03
   3  Normalizat    .97068        .10013        .70409E-01    .61257E-04
   4  Prefactor     .96684        .63276E-01    .45851E-01    .14658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712292
  Index      = 1.6836
  Normalizat = 0.970679
  Prefactor  = 0.966841
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.54     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71229        .92662        .13773E-04   -1.5691    
   2  Index         1.6836        .80996        .19560E-01   -.72519    
   3  Normalizat    .97068        .11346        .31150E-03   -.94019    
   4  Prefactor     .96684        .71852E-01    .19645E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-08
Minuit parameter uncertainties:
  1  0.926621
  2  0.816424
  3  0.113487
  4  0.0718593
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.54     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71229        .92662        .13773E-04   -1.5691    
   2  Index         1.6836        .80996        .19560E-01   -.72519    
   3  Normalizat    .97068        .11346        .31150E-03   -.94019    
   4  Prefactor     .96684        .71852E-01    .19645E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-08
Minuit parameter uncertainties:
  1  0.926621
  2  0.816424
  3  0.113487
  4  0.0718593
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) = 23032.5411042
delta logL = 0.367674939152

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  7.123e-01  9.266e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  1.684e+00  8.164e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.668e-01  7.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.707e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 256.037 76.792
Photon Index (Free Index): 1.68 +/- 0.82
Photon Flux (Free Index): 3.33e-09 +/- 5.50e-09
Energy Flux (Free Index): 5.74e-06 +/- 1.02e-05

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/37384975/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='5.74e-06', photon_flux_error='1.23e-08', dlogl='3.68e-01', energy_flux='3.08e-06', photon_flux2='3.33e-09', job_status='DONE', time_completed='2026-09-08 14:02:30.555027', photon_index_error2='0.82', photon_index2='1.68', ts='2.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1788901350.56', return_code='0', job_id='37384975', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='3.39e-06', photon_flux_error2='5.50e-09', ts2='2.75', photon_index='2.55' WHERE bin_id='944' AND source_name='4FGL J1704.1+7647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 14:02:31 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) = 23032.5411042
delta logL = 0.367674939152

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  7.123e-01  9.266e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  1.684e+00  8.164e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.668e-01  7.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.707e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 256.037 76.792
Photon Index (Free Index): 1.68 +/- 0.82
Photon Flux (Free Index): 3.33e-09 +/- 5.50e-09
Energy Flux (Free Index): 5.74e-06 +/- 1.02e-05

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/37384882/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='5.74e-06', photon_flux_error='1.23e-08', dlogl='3.68e-01', energy_flux='3.08e-06', photon_flux2='3.33e-09', job_status='DONE', time_completed='2026-09-08 14:02:33.608980', photon_index_error2='0.82', photon_index2='1.68', ts='2.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1788901353.61', return_code='0', job_id='37384882', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='3.39e-06', photon_flux_error2='5.50e-09', ts2='2.75', photon_index='2.55' WHERE bin_id='944' AND source_name='4FGL J1704.1+7647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 14:02:33 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  9.003e-01  9.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.693e-01  6.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.626e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.08e-06 +/- 3.39e-06

TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 4.5220094414e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00352769792899 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37384881/likelihoodResults_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5554345
delta logL = 0.353344723513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5411043
delta logL = 0.367674863566

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23032.54     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71229        .80102        .59739E-03   -.11195E-01
   2  Index         1.6836        .50379        .34882       -.16230E-03
   3  Normalizat    .97068        .10013        .70409E-01    .61257E-04
   4  Prefactor     .96684        .63276E-01    .45851E-01    .14658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712292
  Index      = 1.6836
  Normalizat = 0.970679
  Prefactor  = 0.966841
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.54     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71229        .92662        .13773E-04   -1.5691    
   2  Index         1.6836        .80996        .19560E-01   -.72519    
   3  Normalizat    .97068        .11346        .31150E-03   -.94019    
   4  Prefactor     .96684        .71852E-01    .19645E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-08
Minuit parameter uncertainties:
  1  0.926621
  2  0.816424
  3  0.113487
  4  0.0718593
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) = 23032.5411042
delta logL = 0.367674939152

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  7.123e-01  9.266e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  1.684e+00  8.164e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.668e-01  7.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.707e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 256.037 76.792
Photon Index (Free Index): 1.68 +/- 0.82
Photon Flux (Free Index): 3.33e-09 +/- 5.50e-09
Energy Flux (Free Index): 5.74e-06 +/- 1.02e-05

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/37384881/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='5.74e-06', photon_flux_error='1.23e-08', dlogl='3.68e-01', energy_flux='3.08e-06', photon_flux2='3.33e-09', job_status='DONE', time_completed='2026-09-08 14:02:43.929277', photon_index_error2='0.82', photon_index2='1.68', ts='2.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1788901363.93', return_code='0', job_id='37384881', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='3.39e-06', photon_flux_error2='5.50e-09', ts2='2.75', photon_index='2.55' WHERE bin_id='944' AND source_name='4FGL J1704.1+7647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 14:02:44 PDT 2026

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

 FCN=   23032.91     FROM HESSE     STATUS=OK           542 CALLS     2427 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67724E-08    9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5893        5.6867        .63783E-03   -1.5676    
   3  Prefactor     1.6189        13.166        .82783E-03   -1.5683    
   4  Prefactor     .23426E-07    10.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.646        16.603        .22527E-03   -1.5619    
   6  Prefactor     .43354E-07    6.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26812E-07    13.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.388        10.970        .23997E-03   -1.5625    
   9  Prefactor      .0000        22.628        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39968E-08    5.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16743        .26195        .23511E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90029        .99018        .45748E-03   -1.5689    
  14  Prefactor     .11380E-07    4.7419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    9.7471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    12.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7659        1.7429        .46070E-03   -1.5664    
  18  norm          7.9697        .77498        .35493E-03   -1.5652    
  19  norm          11.769        3.2421        .29170E-03   -1.5639    
  20  Prefactor     .55511E-10    43.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98810E-08    5.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51459E-07    6.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2103        3.3454        .56687E-03   -1.5672    
  24  norm          3.3901        2.0422        .54921E-03   -1.5671    
  25  Prefactor     36.897        10.588        .16467E-03   -1.5586    
  26  Normalizat    .96255        .10613        .70657E-01   -.94296    
  27  Prefactor     .96932        .65021E-01    .45884E-01   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23802e-07
Minuit parameter uncertainties:
  1  0.000507692
  2  5.68669
  3  9.23381
  4  0.000968324
  5  16.6034
  6  0.00105031
  7  0.00121127
  8  10.9703
  9  4.91807e-06
  10  0.000292488
  11  0.261949
  12  1.2326e-05
  13  0.990178
  14  0.000464465
  15  0.000244759
  16  0.00177748
  17  1.7429
  18  0.774979
  19  3.24215
  20  0.000114256
  21  0.000452916
  22  0.00113093
  23  3.34538
  24  2.04219
  25  10.5881
  26  0.106154
  27  0.0650263
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.91     FROM HESSE     STATUS=OK           542 CALLS     2427 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67724E-08    9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5893        5.6867        .63783E-03   -1.5676    
   3  Prefactor     1.6189        13.166        .82783E-03   -1.5683    
   4  Prefactor     .23426E-07    10.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.646        16.603        .22527E-03   -1.5619    
   6  Prefactor     .43354E-07    6.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26812E-07    13.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.388        10.970        .23997E-03   -1.5625    
   9  Prefactor      .0000        22.628        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39968E-08    5.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16743        .26195        .23511E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90029        .99018        .45748E-03   -1.5689    
  14  Prefactor     .11380E-07    4.7419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    9.7471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63893E-07    12.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7659        1.7429        .46070E-03   -1.5664    
  18  norm          7.9697        .77498        .35493E-03   -1.5652    
  19  norm          11.769        3.2421        .29170E-03   -1.5639    
  20  Prefactor     .55511E-10    43.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98810E-08    5.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51459E-07    6.2113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2103        3.3454        .56687E-03   -1.5672    
  24  norm          3.3901        2.0422        .54921E-03   -1.5671    
  25  Prefactor     36.897        10.588        .16467E-03   -1.5586    
  26  Normalizat    .96255        .10613        .70657E-01   -.94296    
  27  Prefactor     .96932        .65021E-01    .45884E-01   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23802e-07
Minuit parameter uncertainties:
  1  0.000507692
  2  5.68669
  3  9.23381
  4  0.000968324
  5  16.6034
  6  0.00105031
  7  0.00121127
  8  10.9703
  9  4.91807e-06
  10  0.000292488
  11  0.261949
  12  1.2326e-05
  13  0.990178
  14  0.000464465
  15  0.000244759
  16  0.00177748
  17  1.7429
  18  0.774979
  19  3.24215
  20  0.000114256
  21  0.000452916
  22  0.00113093
  23  3.34538
  24  2.04219
  25  10.5881
  26  0.106154
  27  0.0650263
Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  9.003e-01  9.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.693e-01  6.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.626e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.08e-06 +/- 3.39e-06

TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 4.5220094414e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00352769792899 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37384988/likelihoodResults_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5554345
delta logL = 0.353344723513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5411043
delta logL = 0.367674863566

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23032.54     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71229        .80102        .59739E-03   -.11195E-01
   2  Index         1.6836        .50379        .34882       -.16230E-03
   3  Normalizat    .97068        .10013        .70409E-01    .61257E-04
   4  Prefactor     .96684        .63276E-01    .45851E-01    .14658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712292
  Index      = 1.6836
  Normalizat = 0.970679
  Prefactor  = 0.966841
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.54     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71229        .92662        .13773E-04   -1.5691    
   2  Index         1.6836        .80996        .19560E-01   -.72519    
   3  Normalizat    .97068        .11346        .31150E-03   -.94019    
   4  Prefactor     .96684        .71852E-01    .19645E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-08
Minuit parameter uncertainties:
  1  0.926621
  2  0.816424
  3  0.113487
  4  0.0718593
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) = 23032.5411042
delta logL = 0.367674939152

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  7.123e-01  9.266e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  1.684e+00  8.164e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.668e-01  7.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.707e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 256.037 76.792
Photon Index (Free Index): 1.68 +/- 0.82
Photon Flux (Free Index): 3.33e-09 +/- 5.50e-09
Energy Flux (Free Index): 5.74e-06 +/- 1.02e-05

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/37384988/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='5.74e-06', photon_flux_error='1.23e-08', dlogl='3.68e-01', energy_flux='3.08e-06', photon_flux2='3.33e-09', job_status='DONE', time_completed='2026-09-08 14:03:11.736161', photon_index_error2='0.82', photon_index2='1.68', ts='2.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1788901391.74', return_code='0', job_id='37384988', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='3.39e-06', photon_flux_error2='5.50e-09', ts2='2.75', photon_index='2.55' WHERE bin_id='944' AND source_name='4FGL J1704.1+7647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 14:03:12 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  9.003e-01  9.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.693e-01  6.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.626e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.08e-06 +/- 3.39e-06

TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 4.5220094414e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00352769792899 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37384985/likelihoodResults_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5554345
delta logL = 0.353344723513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5411043
delta logL = 0.367674863566

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23032.54     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71229        .80102        .59739E-03   -.11195E-01
   2  Index         1.6836        .50379        .34882       -.16230E-03
   3  Normalizat    .97068        .10013        .70409E-01    .61257E-04
   4  Prefactor     .96684        .63276E-01    .45851E-01    .14658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712292
  Index      = 1.6836
  Normalizat = 0.970679
  Prefactor  = 0.966841
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.54     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71229        .92662        .13773E-04   -1.5691    
   2  Index         1.6836        .80996        .19560E-01   -.72519    
   3  Normalizat    .97068        .11346        .31150E-03   -.94019    
   4  Prefactor     .96684        .71852E-01    .19645E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-08
Minuit parameter uncertainties:
  1  0.926621
  2  0.816424
  3  0.113487
  4  0.0718593
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) = 23032.5411042
delta logL = 0.367674939152

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  7.123e-01  9.266e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  1.684e+00  8.164e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.668e-01  7.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.707e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 256.037 76.792
Photon Index (Free Index): 1.68 +/- 0.82
Photon Flux (Free Index): 3.33e-09 +/- 5.50e-09
Energy Flux (Free Index): 5.74e-06 +/- 1.02e-05

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/37384985/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='5.74e-06', photon_flux_error='1.23e-08', dlogl='3.68e-01', energy_flux='3.08e-06', photon_flux2='3.33e-09', job_status='DONE', time_completed='2026-09-08 14:03:20.959708', photon_index_error2='0.82', photon_index2='1.68', ts='2.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1788901400.96', return_code='0', job_id='37384985', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='3.39e-06', photon_flux_error2='5.50e-09', ts2='2.75', photon_index='2.55' WHERE bin_id='944' AND source_name='4FGL J1704.1+7647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 14:03:21 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  9.003e-01  9.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.693e-01  6.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.626e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.08e-06 +/- 3.39e-06

TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 4.5220094414e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00352769792899 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37385072/likelihoodResults_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5554345
delta logL = 0.353344723513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5411043
delta logL = 0.367674863566

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23032.54     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71229        .80102        .59739E-03   -.11195E-01
   2  Index         1.6836        .50379        .34882       -.16230E-03
   3  Normalizat    .97068        .10013        .70409E-01    .61257E-04
   4  Prefactor     .96684        .63276E-01    .45851E-01    .14658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712292
  Index      = 1.6836
  Normalizat = 0.970679
  Prefactor  = 0.966841
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.54     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71229        .92662        .13773E-04   -1.5691    
   2  Index         1.6836        .80996        .19560E-01   -.72519    
   3  Normalizat    .97068        .11346        .31150E-03   -.94019    
   4  Prefactor     .96684        .71852E-01    .19645E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-08
Minuit parameter uncertainties:
  1  0.926621
  2  0.816424
  3  0.113487
  4  0.0718593
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) = 23032.5411042
delta logL = 0.367674939152

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  7.123e-01  9.266e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  1.684e+00  8.164e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.668e-01  7.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.707e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 256.037 76.792
Photon Index (Free Index): 1.68 +/- 0.82
Photon Flux (Free Index): 3.33e-09 +/- 5.50e-09
Energy Flux (Free Index): 5.74e-06 +/- 1.02e-05

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/37385072/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='5.74e-06', photon_flux_error='1.23e-08', dlogl='3.68e-01', energy_flux='3.08e-06', photon_flux2='3.33e-09', job_status='DONE', time_completed='2026-09-08 14:04:52.324615', photon_index_error2='0.82', photon_index2='1.68', ts='2.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1788901492.32', return_code='0', job_id='37385072', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='3.39e-06', photon_flux_error2='5.50e-09', ts2='2.75', photon_index='2.55' WHERE bin_id='944' AND source_name='4FGL J1704.1+7647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 14:04:52 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  9.003e-01  9.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.693e-01  6.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.626e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 3.08e-06 +/- 3.39e-06

TS (Fixed Index): 2.02
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 4.5220094414e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00352769792899 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37385040/likelihoodResults_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5554345
delta logL = 0.353344723513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23032.5411043
delta logL = 0.367674863566

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23032.54     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71229        .80102        .59739E-03   -.11195E-01
   2  Index         1.6836        .50379        .34882       -.16230E-03
   3  Normalizat    .97068        .10013        .70409E-01    .61257E-04
   4  Prefactor     .96684        .63276E-01    .45851E-01    .14658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712292
  Index      = 1.6836
  Normalizat = 0.970679
  Prefactor  = 0.966841
 **********
 **   18 **HESSE 
 **********

 FCN=   23032.54     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71229        .92662        .13773E-04   -1.5691    
   2  Index         1.6836        .80996        .19560E-01   -.72519    
   3  Normalizat    .97068        .11346        .31150E-03   -.94019    
   4  Prefactor     .96684        .71852E-01    .19645E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-08
Minuit parameter uncertainties:
  1  0.926621
  2  0.816424
  3  0.113487
  4  0.0718593
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) = 23032.5411042
delta logL = 0.367674939152

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  7.123e-01  9.266e-01  0.000e+00  1.000e+06 ( 1.000e-12)
380        Index:  1.684e+00  8.164e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.668e-01  7.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.707e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 256.037 76.792
Photon Index (Free Index): 1.68 +/- 0.82
Photon Flux (Free Index): 3.33e-09 +/- 5.50e-09
Energy Flux (Free Index): 5.74e-06 +/- 1.02e-05

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/37385040/cmap_HighResolution_809913601_810518401_4FGL_J1704.1+7647_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='5.74e-06', photon_flux_error='1.23e-08', dlogl='3.68e-01', energy_flux='3.08e-06', photon_flux2='3.33e-09', job_status='DONE', time_completed='2026-09-08 14:05:16.027619', photon_index_error2='0.82', photon_index2='1.68', ts='2.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1788901516.03', return_code='0', job_id='37385040', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='3.39e-06', photon_flux_error2='5.50e-09', ts2='2.75', photon_index='2.55' WHERE bin_id='944' AND source_name='4FGL J1704.1+7647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 14:05:16 PDT 2026

