number of points = 17485
number of fields = 31
RA_SUN column already exists. File will not be modified.
/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).

Done.


Performing analysis on: 4FGL_J1616.6+4630_weekly_bin932
RA = 244.16, Dec = 46.5099
tmin = 802656001, tmax = 803260801
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='31173797', job_status='RUN', time_executed='2026-07-09 20:48:15.911013', time_epoch_executed='1783655295.91' WHERE source_name='4FGL J1616.6+4630' and cadence='weekly' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31173797

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31173797/ft1_4FGL_J1616.6+4630_weekly_bin932.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31173797/ft2_4FGL_J1616.6+4630_weekly_bin932.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31173797/ft1_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173797/ft1_filteredMKT_4FGL_J1616.6+4630_weekly_bin932.fits ra=244.16 dec=46.5099 rad=12.0 tmin=802656001.0 tmax=803260801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.90
user 3.46
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31173797/ft2_4FGL_J1616.6+4630_weekly_bin932.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31173797/ft2_4FGL_J1616.6+4630_weekly_bin932.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/31173797/ft1_filteredMKT_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" outfile="/lscratch/kocevski/31173797/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.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.87
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 2572

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31173797/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31173797/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" o/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 = 17485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1616.6+4630_weekly_bin932
RA = 244.16, Dec = 46.5099
tmin = 802656001, tmax = 803260801
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='31173812', job_status='RUN', time_executed='2026-07-09 20:49:17.365164', time_epoch_executed='1783655357.37' WHERE source_name='4FGL J1616.6+4630' and cadence='weekly' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31173812

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31173812/ft1_4FGL_J1616.6+4630_weekly_bin932.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31173812/ft2_4FGL_J1616.6+4630_weekly_bin932.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31173812/ft1_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173812/ft1_filteredMKT_4FGL_J1616.6+4630_weekly_bin932.fits ra=244.16 dec=46.5099 rad=12.0 tmin=802656001.0 tmax=803260801.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.85
user 4.05
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31173812/ft2_4FGL_J1616.6+4630_weekly_bin932.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31173812/ft2_4FGL_J1616.6+4630_weekly_bin932.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/31173812/ft1_filteredMKT_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" outfile="/lscratch/kocevski/31173812/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.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.12

Number of photons that the gtmktime cut: 2572

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31173812/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31173812/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" onumber of points = 17485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1616.6+4630_weekly_bin932
RA = 244.16, Dec = 46.5099
tmin = 802656001, tmax = 803260801
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='31173864', job_status='RUN', time_executed='2026-07-09 20:49:19.949778', time_epoch_executed='1783655359.95' WHERE source_name='4FGL J1616.6+4630' and cadence='weekly' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31173864

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31173864/ft1_4FGL_J1616.6+4630_weekly_bin932.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31173864/ft2_4FGL_J1616.6+4630_weekly_bin932.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31173864/ft1_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173864/ft1_filteredMKT_4FGL_J1616.6+4630_weekly_bin932.fits ra=244.16 dec=46.5099 rad=12.0 tmin=802656001.0 tmax=803260801.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.12
user 4.13
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31173864/ft2_4FGL_J1616.6+4630_weekly_bin932.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31173864/ft2_4FGL_J1616.6+4630_weekly_bin932.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/31173864/ft1_filteredMKT_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" outfile="/lscratch/kocevski/31173864/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.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.13

Number of photons that the gtmktime cut: 2572

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31173864/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31173864/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31173797/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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/31173797/ft2_4FGL_J1616.6+4630_weekly_bin932.fits
.....................!
real 19.30
user 18.44
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31173797/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/31173797/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31173797/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173797/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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/31173797/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
.....................!
real 59.73
user 55.34
sys 3.42

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

Setting source of interest to:
4FGL J1616.6+4630 @ 244.16 46.5099

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31173797/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits scfile=/lscratch/kocevski/31173797/ft2_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173797/cmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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=244.16 yref=46.5099 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.77
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31173797/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits scfile=/lscratch/kocevski/31173797/ft2_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173797/cmap_HighResolution_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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=244.16 yref=46.5099 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.18
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31173797/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/31173797/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31173797/Model_4FGL_J1616.6+4630_weekly_bin932.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GALutfile=/lscratch/kocevski/31173812/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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/31173812/ft2_4FGL_J1616.6+4630_weekly_bin932.fits
.....................!
real 19.25
user 18.47
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31173812/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/31173812/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31173812/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173812/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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/31173812/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
.....................!
real 68.41
user 63.46
sys 3.94

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

Setting source of interest to:
4FGL J1616.6+4630 @ 244.16 46.5099

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31173812/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits scfile=/lscratch/kocevski/31173812/ft2_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173812/cmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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=244.16 yref=46.5099 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.78
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31173812/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits scfile=/lscratch/kocevski/31173812/ft2_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173812/cmap_HighResolution_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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=244.16 yref=46.5099 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.79
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31173812/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/31173812/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31173812/Model_4FGL_J1616.6+4630_weekly_bin932.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GALnumber of points = 17485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1616.6+4630_weekly_bin932
RA = 244.16, Dec = 46.5099
tmin = 802656001, tmax = 803260801
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='31173975', job_status='RUN', time_executed='2026-07-09 20:52:19.291950', time_epoch_executed='1783655539.29' WHERE source_name='4FGL J1616.6+4630' and cadence='weekly' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31173975

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31173975/ft1_4FGL_J1616.6+4630_weekly_bin932.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31173975/ft2_4FGL_J1616.6+4630_weekly_bin932.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31173975/ft1_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173975/ft1_filteredMKT_4FGL_J1616.6+4630_weekly_bin932.fits ra=244.16 dec=46.5099 rad=12.0 tmin=802656001.0 tmax=803260801.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.97
user 4.22
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31173975/ft2_4FGL_J1616.6+4630_weekly_bin932.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31173975/ft2_4FGL_J1616.6+4630_weekly_bin932.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/31173975/ft1_filteredMKT_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" outfile="/lscratch/kocevski/31173975/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.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.23
sys 0.13

Number of photons that the gtmktime cut: 2572

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31173975/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31173975/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" onumber of points = 17485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1616.6+4630_weekly_bin932
RA = 244.16, Dec = 46.5099
tmin = 802656001, tmax = 803260801
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='31173998', job_status='RUN', time_executed='2026-07-09 20:53:21.606012', time_epoch_executed='1783655601.61' WHERE source_name='4FGL J1616.6+4630' and cadence='weekly' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31173998

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31173998/ft1_4FGL_J1616.6+4630_weekly_bin932.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31173998/ft2_4FGL_J1616.6+4630_weekly_bin932.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31173998/ft1_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173998/ft1_filteredMKT_4FGL_J1616.6+4630_weekly_bin932.fits ra=244.16 dec=46.5099 rad=12.0 tmin=802656001.0 tmax=803260801.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.02
user 4.26
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31173998/ft2_4FGL_J1616.6+4630_weekly_bin932.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31173998/ft2_4FGL_J1616.6+4630_weekly_bin932.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/31173998/ft1_filteredMKT_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" outfile="/lscratch/kocevski/31173998/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.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.87
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 2572

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31173998/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31173998/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31173864/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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/31173864/ft2_4FGL_J1616.6+4630_weekly_bin932.fits
.....................!
real 22.72
user 21.33
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31173864/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/31173864/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31173864/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173864/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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/31173864/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
.....................!
real 75.87
user 70.47
sys 4.36

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

Setting source of interest to:
4FGL J1616.6+4630 @ 244.16 46.5099

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31173864/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits scfile=/lscratch/kocevski/31173864/ft2_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173864/cmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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=244.16 yref=46.5099 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.07
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31173864/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits scfile=/lscratch/kocevski/31173864/ft2_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173864/cmap_HighResolution_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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=244.16 yref=46.5099 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.04
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31173864/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/31173864/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31173864/Model_4FGL_J1616.6+4630_weekly_bin932.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GALutfile=/lscratch/kocevski/31173975/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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/31173975/ft2_4FGL_J1616.6+4630_weekly_bin932.fits
.....................!
real 19.60
user 18.90
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31173975/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/31173975/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31173975/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173975/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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/31173975/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
.....................!
real 72.10
user 67.10
sys 4.24

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

Setting source of interest to:
4FGL J1616.6+4630 @ 244.16 46.5099

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31173975/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits scfile=/lscratch/kocevski/31173975/ft2_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173975/cmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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=244.16 yref=46.5099 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.69
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31173975/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits scfile=/lscratch/kocevski/31173975/ft2_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173975/cmap_HighResolution_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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=244.16 yref=46.5099 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.71
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31173975/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/31173975/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31173975/Model_4FGL_J1616.6+4630_weekly_bin932.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/31173797/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits.....................!
real 59.81
user 58.14
sys 0.64

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31173797/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits', '/lscratch/kocevski/31173797/ft2_4FGL_J1616.6+4630_weekly_bin932.fits', expMap='/lscratch/kocevski/31173797/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits', expCube='/lscratch/kocevski/31173797/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31173797/Model_4FGL_J1616.6+4630_weekly_bin932.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1616.6+4630'

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  3.213e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31173797/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits
Spacecraft file(s): /lscratch/kocevski/31173797/ft2_4FGL_J1616.6+4630_weekly_bin932.fits
Exposure map: /lscratch/kocevski/31173797/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
Exposure cube: /lscratch/kocevski/31173797/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31173797/Model_4FGL_J1616.6+4630_weekly_bin932.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) = 27562.7755279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12874       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.3787       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.3275       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5875       1.0000          .0000       .10000E+07
     5 'norm      '    7.1242       1.0000          .0000       .10000E+07
     6 'Prefactor '    .15294E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3921       1.0000          .0000       .10000E+07
     8 'norm      '    .11910E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.4635       1.0000          .0000       .10000E+07
    10 'Prefactor '    .86722       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.7579       1.0000          .0000       .10000E+07
    12 'Prefactor '    .57639       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.2889       1.0000          .0000       .10000E+07
    14 'norm      '    .33958E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .36867E-01   1.0000          .0000       .10000E+07
    16 'norm      '    5.5926       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0815       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.7296       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10819E-05   1.0000          .0000       .10000E+07
    20 'norm      '    11.247       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.4573       1.0000          .0000       .10000E+07
    22 'Prefactor '    2.7425       1.0000          .0000       .10000E+07
    23 'Prefactor '    3.8370       1.0000          .0000       .10000E+07
    24 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    25 'Prefactor '    25.677       1.0000          .0000       .10000E+07
    26 'norm      '    3.2960       1.0000          .0000       .10000E+07
    27 'norm      '    .13314       1.0000          .00utfile=/lscratch/kocevski/31173998/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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/31173998/ft2_4FGL_J1616.6+4630_weekly_bin932.fits
.....................!
real 19.80
user 18.91
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31173998/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/31173998/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31173998/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173998/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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/31173998/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
.....................!
real 72.51
user 67.05
sys 4.45

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

Setting source of interest to:
4FGL J1616.6+4630 @ 244.16 46.5099

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31173998/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits scfile=/lscratch/kocevski/31173998/ft2_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173998/cmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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=244.16 yref=46.5099 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.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31173998/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits scfile=/lscratch/kocevski/31173998/ft2_4FGL_J1616.6+4630_weekly_bin932.fits outfile=/lscratch/kocevski/31173998/cmap_HighResolution_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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=244.16 yref=46.5099 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.68
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31173998/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/31173998/ft2_4FGL_J1616.6+4630_weekly_bin932.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31173998/Model_4FGL_J1616.6+4630_weekly_bin932.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 GAL00       .10000E+07
    28 'Prefactor '    2.3287       1.0000          .0000       .10000E+07
    29 'norm      '    .19096E-07   1.0000          .0000       .10000E+07
    30 'Normalizat'    .94627       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98201       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27561.23     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1739 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13929        2.4281        .16745E-06** at limit **
   2  Prefactor     7.3633        1.9793        .43041E-07    .32972E-01
   3  Prefactor     4.3308        1.3033        .48764E-07    .15045E-02
   4  Prefactor     2.5665        2.0089        .63658E-07    .75624E-02
   5  norm          7.1280        2.3500       -.70214E-07   -.37237E-01
   6  Prefactor     .55511E-10    4.8504       -.37907E-06** at limit **
   7  Prefactor     2.3954        2.0598       -.23125E-06   -.21764E-02
   8  norm           .0000        1.1414        .23956E-08** at limit **
   9  Prefactor     9.6070        15.415        .53708E-06   -.87003E-01
  10  Prefactor     .86855        1.6056       -.55611E-07   -.13787E-01
  11  Prefactor     9.7438        3.8252       -.19956E-06    .77458E-02
  12  Prefactor     .56255        1.6389       -.90627E-07   -.13812E-01
  13  Prefactor     2.2901        1.4312       -.13303E-07    .11167E-02
  14  norm           .0000        1.8676       -.44213E-07** at limit **
  15  norm          .36845E-01    .42743E-01    .14560E-07** at limit **
  16  norm          5.5731        4.5201       -.34318E-06   -.36663E-01
  17  Prefactor     6.0932        6.2779       -.33148E-06   -.45041E-01
  18  Prefactor     2.7324        1.6409        .21352E-07    .32396E-03
  19  Prefactor     .55511E-10    1.3768        .14801E-06** at limit **
  20  norm          11.067        12.329       -.12568E-06   -.11447    
  21  Prefactor     1.4583        .87057       -.19894E-07    .52673E-03
  22  Prefactor     2.7428        .89445        .36899E-07    .46647E-02
  23  Prefactor     3.8370        1.5715       -.59187E-07   -.83300E-03
  24  Prefactor      .0000        .49167       -.21635E-06** at limit **
  25  Prefactor     25.651        1.4678       -.25131E-09   -.49563E-01
  26  norm          3.2957        .86800        .20673E-07    .30945E-03
  27  norm          .13311        .26504        .69678E-07** at limit **
  28  Prefactor     2.3273        2.7711        .19946E-07   -.61714E-03
  29  norm           .0000        .14350       -.57149E-07** at limit **
  30  Normalizat    .94629        .10434        .16931E-05    .14516E-03
  31  Prefactor     .98208        .10074       -.17977E-06    .14490E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.13929
  Prefactor  = 7.36334
  Prefactor  = 4.33082
  Prefactor  = 2.56652
  norm       = 7.12804
  Prefactor  = 5.55112e-11
  Prefactor  = 2.39542
  norm       = 0
  Prefactor  = 9.60701
  Prefactor  = 0.868546
  Prefactor  = 9.74377
  Prefactor  = 0.562549
  Prefactor  = 2.29009
  norm       = 0
  norm       = 0.0368446
  norm       = 5.57306
  Prefactor  = 6.09319
  Prefactor  = 2.73244
  Prefactor  = 5.55112e-11
  norm       = 11.0667
  Prefactor  = 1.45833
  Prefactor  = 2.74277
  Prefactor  = 3.83704
  Prefactor  = 0
  Prefactor  = 25.6513
  norm       = 3.29569
  norm       = 0.133114
  Prefactor  = 2.32732
  norm       = 0
  Normalizat = 0.946293
  Prefactor  = 0.982081
_V02
Working on...
/lscratch/kocevski/31173812/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits.....................!
real 68.82
user 66.62
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31173812/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits', '/lscratch/kocevski/31173812/ft2_4FGL_J1616.6+4630_weekly_bin932.fits', expMap='/lscratch/kocevski/31173812/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits', expCube='/lscratch/kocevski/31173812/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31173812/Model_4FGL_J1616.6+4630_weekly_bin932.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1616.6+4630'

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  3.213e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31173812/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits
Spacecraft file(s): /lscratch/kocevski/31173812/ft2_4FGL_J1616.6+4630_weekly_bin932.fits
Exposure map: /lscratch/kocevski/31173812/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
Exposure cube: /lscratch/kocevski/31173812/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31173812/Model_4FGL_J1616.6+4630_weekly_bin932.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) = 27562.7755279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12874       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.3787       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.3275       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5875       1.0000          .0000       .10000E+07
     5 'norm      '    7.1242       1.0000          .0000       .10000E+07
     6 'Prefactor '    .15294E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3921       1.0000          .0000       .10000E+07
     8 'norm      '    .11910E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.4635       1.0000          .0000       .10000E+07
    10 'Prefactor '    .86722       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.7579       1.0000          .0000       .10000E+07
    12 'Prefactor '    .57639       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.2889       1.0000          .0000       .10000E+07
    14 'norm      '    .33958E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .36867E-01   1.0000          .0000       .10000E+07
    16 'norm      '    5.5926       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0815       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.7296       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10819E-05   1.0000          .0000       .10000E+07
    20 'norm      '    11.247       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.4573       1.0000          .0000       .10000E+07
    22 'Prefactor '    2.7425       1.0000          .0000       .10000E+07
    23 'Prefactor '    3.8370       1.0000          .0000       .10000E+07
    24 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    25 'Prefactor '    25.677       1.0000          .0000       .10000E+07
    26 'norm      '    3.2960       1.0000          .0000       .10000E+07
    27 'norm      '    .13314       1.0000          .00 **********
 **   18 **HESSE 
 **********

 FCN=   27561.23     FROM HESSE     STATUS=OK           706 CALLS     2445 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13929        .52245        .59637E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.3633        4.8923        .36899E-03   -1.5654    
   3  Prefactor     4.3308        5.3034        .48399E-03   -1.5666    
   4  Prefactor     2.5665        5.2833        .63411E-03   -1.5676    
   5  norm          7.1280        6.7584        .37559E-03   -1.5655    
   6  Prefactor     .55511E-10    4.8561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3954        2.0619        .66189E-03   -1.5677    
   8  norm           .0000        1.1482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.6070        22.710        .32553E-03   -1.5646    
  10  Prefactor     .86855        1.7988        .48053E-03   -1.5689    
  11  Prefactor     9.7438        8.3344        .32055E-03   -1.5646    
  12  Prefactor     .56255        2.0347        .71370E-03   -1.5693    
  13  Prefactor     2.2901        1.4430        .67824E-03   -1.5678    
  14  norm           .0000        1.8673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .36845E-01    .50290E-01    .78201E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5731        4.6582        .42457E-03   -1.5661    
  17  Prefactor     6.0932        8.0024        .40689E-03   -1.5659    
  18  Prefactor     2.7324        1.6548        .61607E-03   -1.5675    
  19  Prefactor     .55511E-10    1.3724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.067        16.465        .29848E-03   -1.5641    
  21  Prefactor     1.4583        .87154        .89133E-03   -1.5684    
  22  Prefactor     2.7428        .86192        .61452E-03   -1.5675    
  23  Prefactor     3.8370        1.6233        .51498E-03   -1.5669    
  24  Prefactor      .0000        .48396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     25.651        5.8014        .19738E-03   -1.5607    
  26  norm          3.2957        .87002        .55743E-03   -1.5672    
  27  norm          .13311        .27890        .13113E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.3273        2.8187        .67179E-03   -1.5677    
  29  norm           .0000        .13793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .94629        .88151E-01    .45490E-01   -.94852    
  31  Prefactor     .98208        .84519E-01    .46042E-01   -.93329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13983e-06
Minuit parameter uncertainties:
  1  0.522452
  2  4.89226
  3  5.30344
  4  5.28335
  5  6.75836
  6  2.62942e-05
  7  2.06186
  8  1.27688e-06
  9  22.7098
  10  1.79885
  11  8.33446
  12  2.03472
  13  1.443
  14  1.42218e-05
  15  0.0502897
  16  4.65821
  17  8.00243
00       .10000E+07
    28 'Prefactor '    2.3287       1.0000          .0000       .10000E+07
    29 'norm      '    .19096E-07   1.0000          .0000       .10000E+07
    30 'Normalizat'    .94627       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98201       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27561.23     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1739 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13929        2.4281        .16745E-06** at limit **
   2  Prefactor     7.3633        1.9793        .43041E-07    .32972E-01
   3  Prefactor     4.3308        1.3033        .48764E-07    .15045E-02
   4  Prefactor     2.5665        2.0089        .63658E-07    .75624E-02
   5  norm          7.1280        2.3500       -.70214E-07   -.37237E-01
   6  Prefactor     .55511E-10    4.8504       -.37907E-06** at limit **
   7  Prefactor     2.3954        2.0598       -.23125E-06   -.21764E-02
   8  norm           .0000        1.1414        .23956E-08** at limit **
   9  Prefactor     9.6070        15.415        .53708E-06   -.87003E-01
  10  Prefactor     .86855        1.6056       -.55611E-07   -.13787E-01
  11  Prefactor     9.7438        3.8252       -.19956E-06    .77458E-02
  12  Prefactor     .56255        1.6389       -.90627E-07   -.13812E-01
  13  Prefactor     2.2901        1.4312       -.13303E-07    .11167E-02
  14  norm           .0000        1.8676       -.44213E-07** at limit **
  15  norm          .36845E-01    .42743E-01    .14560E-07** at limit **
  16  norm          5.5731        4.5201       -.34318E-06   -.36663E-01
  17  Prefactor     6.0932        6.2779       -.33148E-06   -.45041E-01
  18  Prefactor     2.7324        1.6409        .21352E-07    .32396E-03
  19  Prefactor     .55511E-10    1.3768        .14801E-06** at limit **
  20  norm          11.067        12.329       -.12568E-06   -.11447    
  21  Prefactor     1.4583        .87057       -.19894E-07    .52673E-03
  22  Prefactor     2.7428        .89445        .36899E-07    .46647E-02
  23  Prefactor     3.8370        1.5715       -.59187E-07   -.83300E-03
  24  Prefactor      .0000        .49167       -.21635E-06** at limit **
  25  Prefactor     25.651        1.4678       -.25131E-09   -.49563E-01
  26  norm          3.2957        .86800        .20673E-07    .30945E-03
  27  norm          .13311        .26504        .69678E-07** at limit **
  28  Prefactor     2.3273        2.7711        .19946E-07   -.61714E-03
  29  norm           .0000        .14350       -.57149E-07** at limit **
  30  Normalizat    .94629        .10434        .16931E-05    .14516E-03
  31  Prefactor     .98208        .10074       -.17977E-06    .14490E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.13929
  20  16.4656
  Prefactor  = 7.36334
  Prefactor  = 4.33082
  Prefactor  = 2.56652
  norm       = 7.12804
  Prefactor  = 5.55112e-11
  Prefactor  = 2.39542
  norm       = 0
  28  2.81874
  29  5.88435e-07
0701
  30  0.0881647
.868546
  31  0.08453
 9.74377
  Prefactor  = 0.562549
  Prefactor  = 2.29009
  norm       = 0
  norm       = 0.0368446
  norm       = 5.57306
  Prefactor  = 6.09319
  Prefactor  = 2.73244
  Prefactor  = 5.55112e-11
  norm       = 11.0667
  Prefactor  = 1.45833
  Prefactor  = 2.74277
  Prefactor  = 3.83704
  Prefactor  = 0
  Prefactor  = 25.6513
  norm       = 3.29569
  norm       = 0.133114
  Prefactor  = 2.32732
  norm       = 0
  Normalizat = 0.946293
  Prefactor  = 0.982081
_V02
Working on...
/lscratch/kocevski/31173864/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits.....................!
real 75.97
user 73.45
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31173864/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits', '/lscratch/kocevski/31173864/ft2_4FGL_J1616.6+4630_weekly_bin932.fits', expMap='/lscratch/kocevski/31173864/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits', expCube='/lscratch/kocevski/31173864/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31173864/Model_4FGL_J1616.6+4630_weekly_bin932.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1616.6+4630'

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  3.213e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31173864/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits
Spacecraft file(s): /lscratch/kocevski/31173864/ft2_4FGL_J1616.6+4630_weekly_bin932.fits
Exposure map: /lscratch/kocevski/31173864/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
Exposure cube: /lscratch/kocevski/31173864/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31173864/Model_4FGL_J1616.6+4630_weekly_bin932.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) = 27562.7755279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12874       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.3787       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.3275       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5875       1.0000          .0000       .10000E+07
     5 'norm      '    7.1242       1.0000          .0000       .10000E+07
     6 'Prefactor '    .15294E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3921       1.0000          .0000       .10000E+07
     8 'norm      '    .11910E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.4635       1.0000          .0000       .10000E+07
    10 'Prefactor '    .86722       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.7579       1.0000          .0000       .10000E+07
    12 'Prefactor '    .57639       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.2889       1.0000          .0000       .10000E+07
    14 'norm      '    .33958E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .36867E-01   1.0000          .0000       .10000E+07
    16 'norm      '    5.5926       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0815       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.7296       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10819E-05   1.0000          .0000       .10000E+07
    20 'norm      '    11.247       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.4573       1.0000          .0000       .10000E+07
    22 'Prefactor '    2.7425       1.0000          .0000       .10000E+07
    23 'Prefactor '    3.8370       1.0000          .0000       .10000E+07
    24 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    25 'Prefactor '    25.677       1.0000          .0000       .10000E+07
    26 'norm      '    3.2960       1.0000          .0000       .10000E+07
    27 'norm      '    .13314       1.0000          .00 **********
 **   18 **HESSE 
 **********

 FCN=   27561.23     FROM HESSE     STATUS=OK           706 CALLS     2445 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13929        .52245        .59637E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.3633        4.8923        .36899E-03   -1.5654    
   3  Prefactor     4.3308        5.3034        .48399E-03   -1.5666    
   4  Prefactor     2.5665        5.2833        .63411E-03   -1.5676    
   5  norm          7.1280        6.7584        .37559E-03   -1.5655    
   6  Prefactor     .55511E-10    4.8561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3954        2.0619        .66189E-03   -1.5677    
   8  norm           .0000        1.1482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.6070        22.710        .32553E-03   -1.5646    
  10  Prefactor     .86855        1.7988        .48053E-03   -1.5689    
  11  Prefactor     9.7438        8.3344        .32055E-03   -1.5646    
  12  Prefactor     .56255        2.0347        .71370E-03   -1.5693    
  13  Prefactor     2.2901        1.4430        .67824E-03   -1.5678    
  14  norm           .0000        1.8673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .36845E-01    .50290E-01    .78201E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5731        4.6582        .42457E-03   -1.5661    
  17  Prefactor     6.0932        8.0024        .40689E-03   -1.5659    
  18  Prefactor     2.7324        1.6548        .61607E-03   -1.5675    
  19  Prefactor     .55511E-10    1.3724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.067        16.465        .29848E-03   -1.5641    
  21  Prefactor     1.4583        .87154        .89133E-03   -1.5684    
  22  Prefactor     2.7428        .86192        .61452E-03   -1.5675    
  23  Prefactor     3.8370        1.6233        .51498E-03   -1.5669    
  24  Prefactor      .0000        .48396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     25.651        5.8014        .19738E-03   -1.5607    
  26  norm          3.2957        .87002        .55743E-03   -1.5672    
  27  norm          .13311        .27890        .13113E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.3273        2.8187        .67179E-03   -1.5677    
  29  norm           .0000        .13793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .94629        .88151E-01    .45490E-01   -.94852    
  31  Prefactor     .98208        .84519E-01    .46042E-01   -.93329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13983e-06
Minuit parameter uncertainties:
  1  0.522452
  2  4.89226
  3  5.30344
  4  5.28335
  5  6.75836
  6  2.62942e-05
  7  2.06186
  8  1.27688e-06
  9  22.7098
  10  1.79885
  11  8.33446
  12  2.03472
  13  1.443
  14  1.42218e-05
  15  0.0502897
  16  4.65821
  17  8.00243
  18  1.65476
  19  2.05978e-05
  20  16.4656
  21  0.871536
  22  0.861917
  23  1.62333
  24  4.24535e-06
  25  5.80135
  26  0.87002
  27  0.278896
  28  2.81874
  29  5.88435e-07
  30  0.0881647
  31  0.08453
00       .10000E+07
    28 'Prefactor '    2.3287       1.0000          .0000       .10000E+07
    29 'norm      '    .19096E-07   1.0000          .0000       .10000E+07
    30 'Normalizat'    .94627       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98201       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27561.23     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1739 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13929        2.4281        .16745E-06** at limit **
   2  Prefactor     7.3633        1.9793        .43041E-07    .32972E-01
   3  Prefactor     4.3308        1.3033        .48764E-07    .15045E-02
   4  Prefactor     2.5665        2.0089        .63658E-07    .75624E-02
   5  norm          7.1280        2.3500       -.70214E-07   -.37237E-01
   6  Prefactor     .55511E-10    4.8504       -.37907E-06** at limit **
   7  Prefactor     2.3954        2.0598       -.23125E-06   -.21764E-02
   8  norm           .0000        1.1414        .23956E-08** at limit **
   9  Prefactor     9.6070        15.415        .53708E-06   -.87003E-01
  10  Prefactor     .86855        1.6056       -.55611E-07   -.13787E-01
  11  Prefactor     9.7438        3.8252       -.19956E-06    .77458E-02
  12  Prefactor     .56255        1.6389       -.90627E-07   -.13812E-01
  13  Prefactor     2.2901        1.4312       -.13303E-07    .11167E-02
  14  norm           .0000        1.8676       -.44213E-07** at limit **
  15  norm          .36845E-01    .42743E-01    .14560E-07** at limit **
  16  norm          5.5731        4.5201       -.34318E-06   -.36663E-01
  17  Prefactor     6.0932        6.2779       -.33148E-06   -.45041E-01
  18  Prefactor     2.7324        1.6409        .21352E-07    .32396E-03
  19  Prefactor     .55511E-10    1.3768        .14801E-06** at limit **
  20  norm          11.067        12.329       -.12568E-06   -.11447    
  21  Prefactor     1.4583        .87057       -.19894E-07    .52673E-03
  22  Prefactor     2.7428        .89445        .36899E-07    .46647E-02
  23  Prefactor     3.8370        1.5715       -.59187E-07   -.83300E-03
  24  Prefactor      .0000        .49167       -.21635E-06** at limit **
  25  Prefactor     25.651        1.4678       -.25131E-09   -.49563E-01
  26  norm          3.2957        .86800        .20673E-07    .30945E-03
  27  norm          .13311        .26504        .69678E-07** at limit **
  28  Prefactor     2.3273        2.7711        .19946E-07   -.61714E-03
  29  norm           .0000        .14350       -.57149E-07** at limit **
  30  Normalizat    .94629        .10434        .16931E-05    .14516E-03
  31  Prefactor     .98208        .10074       -.17977E-06    .14490E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.13929
  Prefactor  = 7.36334
  Prefactor  = 4.33082
  Prefactor  = 2.56652
  norm       = 7.12804
  Prefactor  = 5.55112e-11
  Prefactor  = 2.39542
  norm       = 0
  Prefactor  = 9.60701
  Prefactor  = 0.868546
  Prefactor  = 9.74377
  Prefactor  = 0.562549
  Prefactor  = 2.29009
  norm       = 0
  norm       = 0.0368446
  norm       = 5.57306
  Prefactor  = 6.09319
  Prefactor  = 2.73244
  Prefactor  = 5.55112e-11
  norm       = 11.0667
  Prefactor  = 1.45833
  Prefactor  = 2.74277
  Prefactor  = 3.83704
  Prefactor  = 0
  Prefactor  = 25.6513
  norm       = 3.29569
  norm       = 0.133114
  Prefactor  = 2.32732
  norm       = 0
  Normalizat = 0.946293
  Prefactor  = 0.982081
_V02
Working on...
/lscratch/kocevski/31173975/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits.....................!
real 73.30
user 71.73
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31173975/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits', '/lscratch/kocevski/31173975/ft2_4FGL_J1616.6+4630_weekly_bin932.fits', expMap='/lscratch/kocevski/31173975/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits', expCube='/lscratch/kocevski/31173975/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31173975/Model_4FGL_J1616.6+4630_weekly_bin932.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1616.6+4630'

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  3.213e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31173975/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits
Spacecraft file(s): /lscratch/kocevski/31173975/ft2_4FGL_J1616.6+4630_weekly_bin932.fits
Exposure map: /lscratch/kocevski/31173975/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
Exposure cube: /lscratch/kocevski/31173975/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31173975/Model_4FGL_J1616.6+4630_weekly_bin932.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) = 27562.7755279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12874       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.3787       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.3275       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5875       1.0000          .0000       .10000E+07
     5 'norm      '    7.1242       1.0000          .0000       .10000E+07
     6 'Prefactor '    .15294E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3921       1.0000          .0000       .10000E+07
     8 'norm      '    .11910E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.4635       1.0000          .0000       .10000E+07
    10 'Prefactor '    .86722       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.7579       1.0000          .0000       .10000E+07
    12 'Prefactor '    .57639       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.2889       1.0000          .0000       .10000E+07
    14 'norm      '    .33958E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .36867E-01   1.0000          .0000       .10000E+07
    16 'norm      '    5.5926       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0815       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.7296       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10819E-05   1.0000          .0000       .10000E+07
    20 'norm      '    11.247       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.4573       1.0000          .0000       .10000E+07
    22 'Prefactor '    2.7425       1.0000          .0000       .10000E+07
    23 'Prefactor '    3.8370       1.0000          .0000       .10000E+07
    24 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    25 'Prefactor '    25.677       1.0000          .0000       .10000E+07
    26 'norm      '    3.2960       1.0000          .0000       .10000E+07
    27 'norm      '    .13314       1.0000          .00Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  9.744e+00  8.334e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.821e-01  8.453e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.463e-01  8.816e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 244.160 46.510
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 1.58e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 4.15e-06 +/- 3.55e-06

TS (Fixed Index): 2.74
Ra Dec: 244.160 46.510
Photon Flux Upper Limit: 4.25998121576e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00333389834282 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31173797/likelihoodResults_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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) = 27560.8472843
delta logL = 0.38391380939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27560.8285338
delta logL = 0.402664331152

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   27560.83     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      288 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.756        10.727        .10791E-04    .13064E-03
   2  Index         2.1306        .49821        .14227E-01    .30655E-03
   3  Normalizat    .95335        .10025        .24820E-03   -.36277E-04
   4  Prefactor     .97703        .99851E-01    .24417E-03    .58667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7558
  Index      = 2.13056
  Normalizat = 0.95335
  Prefactor  = 0.97703
 **********
 **   18 **HESSE 
 **********

 FCN=   27560.83     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.756        10.671        .43165E-06   -1.5634    
   2  Index         2.1306        .49588        .28454E-02   -.61125    
   3  Normalizat    .95335        .10036        .99279E-05   -.94610    
   4  Prefactor     .97703        .99960E-01    .97667E-05   -.93499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00809e-11
Minuit parameter uncertainties:
  1  10.6711
  2  0.497099
  3  0.100383
  4  0.0999784
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) = 27560.8285337
delta logL = 0.40266444513

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.376e+01  1.067e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.131e+00  4.971e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.770e-01  9.998e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.534e-01  1.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 244.160 46.510
Photon Index (Free Index): 2.13 +/- 0.50
Photon Flux (Free Index): 1.16e-08 +/- 1.11e-08
Energy Flux (Free Index): 5.95e-06 +/- 5.35e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31173797/cmap_HighResolution_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-03', comment='SUCCESS', photon_flux='1.58e-08', energy_flux2='5.95e-06', photon_flux_error='1.35e-08', dlogl='4.03e-01', energy_flux='4.15e-06', photon_flux2='1.16e-08', job_status='DONE', time_completed='2026-07-09 21:06:07.387470', photon_index_error2='0.50', photon_index2='2.13', ts='2.74', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='4.26e-08', energy_flux_error2='5.35e-06', EG='0.95', time_epoch_completed='1783656367.39', return_code='0', job_id='31173797', GAL2='0.98', EG2='0.95', return_code2='0', energy_flux_error='3.55e-06', photon_flux_error2='1.11e-08', ts2='3.54', photon_index='2.60' WHERE bin_id='932' AND source_name='4FGL J1616.6+4630' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  9 21:06:07 PDT 2026

00       .10000E+07
    28 'Prefactor '    2.3287       1.0000          .0000       .10000E+07
    29 'norm      '    .19096E-07   1.0000          .0000       .10000E+07
    30 'Normalizat'    .94627       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98201       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27561.23     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1739 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13929        2.4281        .16745E-06** at limit **
   2  Prefactor     7.3633        1.9793        .43041E-07    .32972E-01
   3  Prefactor     4.3308        1.3033        .48764E-07    .15045E-02
   4  Prefactor     2.5665        2.0089        .63658E-07    .75624E-02
   5  norm          7.1280        2.3500       -.70214E-07   -.37237E-01
   6  Prefactor     .55511E-10    4.8504       -.37907E-06** at limit **
   7  Prefactor     2.3954        2.0598       -.23125E-06   -.21764E-02
   8  norm           .0000        1.1414        .23956E-08** at limit **
   9  Prefactor     9.6070        15.415        .53708E-06   -.87003E-01
  10  Prefactor     .86855        1.6056       -.55611E-07   -.13787E-01
  11  Prefactor     9.7438        3.8252       -.19956E-06    .77458E-02
  12  Prefactor     .56255        1.6389       -.90627E-07   -.13812E-01
  13  Prefactor     2.2901        1.4312       -.13303E-07    .11167E-02
  14  norm           .0000        1.8676       -.44213E-07** at limit **
  15  norm          .36845E-01    .42743E-01    .14560E-07** at limit **
  16  norm          5.5731        4.5201       -.34318E-06   -.36663E-01
  17  Prefactor     6.0932        6.2779       -.33148E-06   -.45041E-01
  18  Prefactor     2.7324        1.6409        .21352E-07    .32396E-03
  19  Prefactor     .55511E-10    1.3768        .14801E-06** at limit **
  20  norm          11.067        12.329       -.12568E-06   -.11447    
  21  Prefactor     1.4583        .87057       -.19894E-07    .52673E-03
  22  Prefactor     2.7428        .89445        .36899E-07    .46647E-02
  23  Prefactor     3.8370        1.5715       -.59187E-07   -.83300E-03
  24  Prefactor      .0000        .49167       -.21635E-06** at limit **
  25  Prefactor     25.651        1.4678       -.25131E-09   -.49563E-01
  26  norm          3.2957        .86800        .20673E-07    .30945E-03
  27  norm          .13311        .26504        .69678E-07** at limit **
  28  Prefactor     2.3273        2.7711        .19946E-07   -.61714E-03
  29  norm           .0000        .14350       -.57149E-07** at limit **
  30  Normalizat    .94629        .10434        .16931E-05    .14516E-03
  31  Prefactor     .98208        .10074       -.17977E-06    .14490E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.13929
  Prefactor  = 7.36334
  Prefactor  = 4.33082
  Prefactor  = 2.56652
  norm       = 7.12804
  Prefactor  = 5.55112e-11
  Prefactor  = 2.39542
  norm       = 0
  Prefactor  = 9.60701
  Prefactor  = 0.868546
  Prefactor  = 9.74377
  Prefactor  = 0.562549
  Prefactor  = 2.29009
  norm       = 0
  norm       = 0.0368446
  norm       = 5.57306
  Prefactor  = 6.09319
  Prefactor  = 2.73244
  Prefactor  = 5.55112e-11
  norm       = 11.0667
  Prefactor  = 1.45833
  Prefactor  = 2.74277
  Prefactor  = 3.83704
  Prefactor  = 0
  Prefactor  = 25.6513
  norm       = 3.29569
  norm       = 0.133114
  Prefactor  = 2.32732
  norm       = 0
  Normalizat = 0.946293
  Prefactor  = 0.982081
_V02
Working on...
/lscratch/kocevski/31173998/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits.....................!
real 73.48
user 71.04
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31173998/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits', '/lscratch/kocevski/31173998/ft2_4FGL_J1616.6+4630_weekly_bin932.fits', expMap='/lscratch/kocevski/31173998/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits', expCube='/lscratch/kocevski/31173998/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31173998/Model_4FGL_J1616.6+4630_weekly_bin932.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1616.6+4630'

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  3.213e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31173998/ft1_filtered_4FGL_J1616.6+4630_weekly_bin932.fits
Spacecraft file(s): /lscratch/kocevski/31173998/ft2_4FGL_J1616.6+4630_weekly_bin932.fits
Exposure map: /lscratch/kocevski/31173998/expmap_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
Exposure cube: /lscratch/kocevski/31173998/ltcube_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31173998/Model_4FGL_J1616.6+4630_weekly_bin932.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) = 27562.7755279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12874       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.3787       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.3275       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5875       1.0000          .0000       .10000E+07
     5 'norm      '    7.1242       1.0000          .0000       .10000E+07
     6 'Prefactor '    .15294E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3921       1.0000          .0000       .10000E+07
     8 'norm      '    .11910E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.4635       1.0000          .0000       .10000E+07
    10 'Prefactor '    .86722       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.7579       1.0000          .0000       .10000E+07
    12 'Prefactor '    .57639       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.2889       1.0000          .0000       .10000E+07
    14 'norm      '    .33958E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .36867E-01   1.0000          .0000       .10000E+07
    16 'norm      '    5.5926       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0815       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.7296       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10819E-05   1.0000          .0000       .10000E+07
    20 'norm      '    11.247       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.4573       1.0000          .0000       .10000E+07
    22 'Prefactor '    2.7425       1.0000          .0000       .10000E+07
    23 'Prefactor '    3.8370       1.0000          .0000       .10000E+07
    24 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    25 'Prefactor '    25.677       1.0000          .0000       .10000E+07
    26 'norm      '    3.2960       1.0000          .0000       .10000E+07
    27 'norm      '    .13314       1.0000          .0000       .10000E+07
    28 'Prefactor '    2.3287       1.0000          .0000       .10000E+07
    29 'norm      '    .19096E-07   1.0000          .0000       .10000E+07
    30 'Normalizat'    .94627       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98201       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27561.23     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1739 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13929        2.4281        .16745E-06** at limit **
   2  Prefactor     7.3633        1.9793        .43041E-07    .32972E-01
   3  Prefactor     4.3308        1.3033        .48764E-07    .15045E-02
   4  Prefactor     2.5665        2.0089        .63658E-07    .75624E-02
   5  norm          7.1280        2.3500       -.70214E-07   -.37237E-01
   6  Prefactor     .55511E-10    4.8504       -.37907E-06** at limit **
   7  Prefactor     2.3954        2.0598       -.23125E-06   -.21764E-02
   8  norm           .0000        1.1414        .23956E-08** at limit **
   9  Prefactor     9.6070        15.415        .53708E-06   -.87003E-01
  10  Prefactor     .86855        1.6056       -.55611E-07   -.13787E-01
  11  Prefactor     9.7438        3.8252       -.19956E-06    .77458E-02
  12  Prefactor     .56255        1.6389       -.90627E-07   -.13812E-01
  13  Prefactor     2.2901        1.4312       -.13303E-07    .11167E-02
  14  norm           .0000        1.8676       -.44213E-07** at limit **
  15  norm          .36845E-01    .42743E-01    .14560E-07** at limit **
  16  norm          5.5731        4.5201       -.34318E-06   -.36663E-01
  17  Prefactor     6.0932        6.2779       -.33148E-06   -.45041E-01
  18  Prefactor     2.7324        1.6409        .21352E-07    .32396E-03
  19  Prefactor     .55511E-10    1.3768        .14801E-06** at limit **
  20  norm          11.067        12.329       -.12568E-06   -.11447    
  21  Prefactor     1.4583        .87057       -.19894E-07    .52673E-03
  22  Prefactor     2.7428        .89445        .36899E-07    .46647E-02
  23  Prefactor     3.8370        1.5715       -.59187E-07   -.83300E-03
  24  Prefactor      .0000        .49167       -.21635E-06** at limit **
  25  Prefactor     25.651        1.4678       -.25131E-09   -.49563E-01
  26  norm          3.2957        .86800        .20673E-07    .30945E-03
  27  norm          .13311        .26504        .69678E-07** at limit **
  28  Prefactor     2.3273        2.7711        .19946E-07   -.61714E-03
  29  norm           .0000        .14350       -.57149E-07** at limit **
  30  Normalizat    .94629        .10434        .16931E-05    .14516E-03
  31  Prefactor     .98208        .10074       -.17977E-06    .14490E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.13929
  Prefactor  = 7.36334
  Prefactor  = 4.33082
  Prefactor  = 2.56652
  norm       = 7.12804
  Prefactor  = 5.55112e-11
  Prefactor  = 2.39542
  norm       = 0
  Prefactor  = 9.60701
  Prefactor  = 0.868546
  Prefactor  = 9.74377
  Prefactor  = 0.562549
  Prefactor  = 2.29009
  norm       = 0
  norm       = 0.0368446
  norm       = 5.57306
  Prefactor  = 6.09319
  Prefactor  = 2.73244
  Prefactor  = 5.55112e-11
  norm       = 11.0667
  Prefactor  = 1.45833
  Prefactor  = 2.74277
  Prefactor  = 3.83704
  Prefactor  = 0
  Prefactor  = 25.6513
  norm       = 3.29569
  norm       = 0.133114
  Prefactor  = 2.32732
  norm       = 0
  Normalizat = 0.946293
  Prefactor  = 0.982081
 **********
 **   18 **HESSE 
 **********

 FCN=   27561.23     FROM HESSE     STATUS=OK           706 CALLS     2445 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13929        .52245        .59637E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.3633        4.8923        .36899E-03   -1.5654    
   3  Prefactor     4.3308        5.3034        .48399E-03   -1.5666    
   4  Prefactor     2.5665        5.2833        .63411E-03   -1.5676    
   5  norm          7.1280        6.7584        .37559E-03   -1.5655    
   6  Prefactor     .55511E-10    4.8561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3954        2.0619        .66189E-03   -1.5677    
   8  norm           .0000        1.1482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.6070        22.710        .32553E-03   -1.5646    
  10  Prefactor     .86855        1.7988        .48053E-03   -1.5689    
  11  Prefactor     9.7438        8.3344        .32055E-03   -1.5646    
  12  Prefactor     .56255        2.0347        .71370E-03   -1.5693    
  13  Prefactor     2.2901        1.4430        .67824E-03   -1.5678    
  14  norm           .0000        1.8673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .36845E-01    .50290E-01    .78201E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5731        4.6582        .42457E-03   -1.5661    
  17  Prefactor     6.0932        8.0024        .40689E-03   -1.5659    
  18  Prefactor     2.7324        1.6548        .61607E-03   -1.5675    
  19  Prefactor     .55511E-10    1.3724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.067        16.465        .29848E-03   -1.5641    
  21  Prefactor     1.4583        .87154        .89133E-03   -1.5684    
  22  Prefactor     2.7428        .86192        .61452E-03   -1.5675    
  23  Prefactor     3.8370        1.6233        .51498E-03   -1.5669    
  24  Prefactor      .0000        .48396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     25.651        5.8014        .19738E-03   -1.5607    
  26  norm          3.2957        .87002        .55743E-03   -1.5672    
  27  norm          .13311        .27890        .13113E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.3273        2.8187        .67179E-03   -1.5677    
  29  norm           .0000        .13793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .94629        .88151E-01    .45490E-01   -.94852    
  31  Prefactor     .98208        .84519E-01    .46042E-01   -.93329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13983e-06
Minuit parameter uncertainties:
  1  0.522452
  2  4.89226
  3  5.30344
  4  5.28335
  5  6.75836
  6  2.62942e-05
  7  2.06186
  8  1.27688e-06
  9  22.7098
  10  1.79885
  11  8.33446
  12  2.03472
  13  1.443
  14  1.42218e-05
  15  0.0502897
  16  4.65821
  17  8.00243
  18  1.65476
  19  2.05978e-05
  20  16.4656
  21  0.871536
  22  0.861917
  23  1.62333
  24  4.24535e-06
  25  5.80135
  26  0.87002
  27  0.278896
  28  2.81874
  29  5.88435e-07
  30  0.0881647
  31  0.08453
Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  9.744e+00  8.334e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.821e-01  8.453e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.463e-01  8.816e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 244.160 46.510
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 1.58e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 4.15e-06 +/- 3.55e-06

TS (Fixed Index): 2.74
Ra Dec: 244.160 46.510
Photon Flux Upper Limit: 4.25998121576e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00333389834282 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31173812/likelihoodResults_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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) = 27560.8472843
delta logL = 0.38391380939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27560.8285338
delta logL = 0.402664331152

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   27560.83     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      288 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.756        10.727        .10791E-04    .13064E-03
   2  Index         2.1306        .49821        .14227E-01    .30655E-03
   3  Normalizat    .95335        .10025        .24820E-03   -.36277E-04
   4  Prefactor     .97703        .99851E-01    .24417E-03    .58667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7558
  Index      = 2.13056
  Normalizat = 0.95335
  Prefactor  = 0.97703
 **********
 **   18 **HESSE 
 **********

 FCN=   27560.83     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.756        10.671        .43165E-06   -1.5634    
   2  Index         2.1306        .49588        .28454E-02   -.61125    
   3  Normalizat    .95335        .10036        .99279E-05   -.94610    
   4  Prefactor     .97703        .99960E-01    .97667E-05   -.93499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00809e-11
Minuit parameter uncertainties:
  1  10.6711
  2  0.497099
  3  0.100383
  4  0.0999784
 **********
 **   18 **HESSE 
 **********

 FCN=   27561.23     FROM HESSE     STATUS=OK           706 CALLS     2445 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13929        .52245        .59637E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.3633        4.8923        .36899E-03   -1.5654    
   3  Prefactor     4.3308        5.3034        .48399E-03   -1.5666    
   4  Prefactor     2.5665        5.2833        .63411E-03   -1.5676    
   5  norm          7.1280        6.7584        .37559E-03   -1.5655    
   6  Prefactor     .55511E-10    4.8561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3954        2.0619        .66189E-03   -1.5677    
   8  norm           .0000        1.1482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.6070        22.710        .32553E-03   -1.5646    
  10  Prefactor     .86855        1.7988        .48053E-03   -1.5689    
  11  Prefactor     9.7438        8.3344        .32055E-03   -1.5646    
  12  Prefactor     .56255        2.0347        .71370E-03   -1.5693    
  13  Prefactor     2.2901        1.4430        .67824E-03   -1.5678    
  14  norm           .0000        1.8673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .36845E-01    .50290E-01    .78201E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5731        4.6582        .42457E-03   -1.5661    
  17  Prefactor     6.0932        8.0024        .40689E-03   -1.5659    
  18  Prefactor     2.7324        1.6548        .61607E-03   -1.5675    
  19  Prefactor     .55511E-10    1.3724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.067        16.465        .29848E-03   -1.5641    
  21  Prefactor     1.4583        .87154        .89133E-03   -1.5684    
  22  Prefactor     2.7428        .86192        .61452E-03   -1.5675    
  23  Prefactor     3.8370        1.6233        .51498E-03   -1.5669    
  24  Prefactor      .0000        .48396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     25.651        5.8014        .19738E-03   -1.5607    
  26  norm          3.2957        .87002        .55743E-03   -1.5672    
  27  norm          .13311        .27890        .13113E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.3273        2.8187        .67179E-03   -1.5677    
  29  norm           .0000        .13793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .94629        .88151E-01    .45490E-01   -.94852    
  31  Prefactor     .98208        .84519E-01    .46042E-01   -.93329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13983e-06
Minuit parameter uncertainties:
  1  0.522452
  2  4.89226
  3  5.30344
  4  5.28335
  5  6.75836
  6  2.62942e-05
  7  2.06186
  8  1.27688e-06
  9  22.7098
  10  1.79885
  11  8.33446
  12  2.03472
  13  1.443
  14  1.42218e-05
  15  0.0502897
  16  4.65821
  17  8.00243
  18  1.65476
  19  2.05978e-05
  20  16.4656
  21  0.871536
  22  0.861917
  23  1.62333
  24  4.24535e-06
  25  5.80135
  26  0.87002
  27  0.278896
  28  2.81874
  29  5.88435e-07
  30  0.0881647
  31  0.08453
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) = 27560.8285337
delta logL = 0.40266444513

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.376e+01  1.067e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.131e+00  4.971e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.770e-01  9.998e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.534e-01  1.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 244.160 46.510
Photon Index (Free Index): 2.13 +/- 0.50
Photon Flux (Free Index): 1.16e-08 +/- 1.11e-08
Energy Flux (Free Index): 5.95e-06 +/- 5.35e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31173812/cmap_HighResolution_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-03', comment='SUCCESS', photon_flux='1.58e-08', energy_flux2='5.95e-06', photon_flux_error='1.35e-08', dlogl='4.03e-01', energy_flux='4.15e-06', photon_flux2='1.16e-08', job_status='DONE', time_completed='2026-07-09 21:08:59.570058', photon_index_error2='0.50', photon_index2='2.13', ts='2.74', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='4.26e-08', energy_flux_error2='5.35e-06', EG='0.95', time_epoch_completed='1783656539.57', return_code='0', job_id='31173812', GAL2='0.98', EG2='0.95', return_code2='0', energy_flux_error='3.55e-06', photon_flux_error2='1.11e-08', ts2='3.54', photon_index='2.60' WHERE bin_id='932' AND source_name='4FGL J1616.6+4630' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  9 21:08:59 PDT 2026

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

 FCN=   27561.23     FROM HESSE     STATUS=OK           706 CALLS     2445 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13929        .52245        .59637E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.3633        4.8923        .36899E-03   -1.5654    
   3  Prefactor     4.3308        5.3034        .48399E-03   -1.5666    
   4  Prefactor     2.5665        5.2833        .63411E-03   -1.5676    
   5  norm          7.1280        6.7584        .37559E-03   -1.5655    
   6  Prefactor     .55511E-10    4.8561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3954        2.0619        .66189E-03   -1.5677    
   8  norm           .0000        1.1482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.6070        22.710        .32553E-03   -1.5646    
  10  Prefactor     .86855        1.7988        .48053E-03   -1.5689    
  11  Prefactor     9.7438        8.3344        .32055E-03   -1.5646    
  12  Prefactor     .56255        2.0347        .71370E-03   -1.5693    
  13  Prefactor     2.2901        1.4430        .67824E-03   -1.5678    
  14  norm           .0000        1.8673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .36845E-01    .50290E-01    .78201E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5731        4.6582        .42457E-03   -1.5661    
  17  Prefactor     6.0932        8.0024        .40689E-03   -1.5659    
  18  Prefactor     2.7324        1.6548        .61607E-03   -1.5675    
  19  Prefactor     .55511E-10    1.3724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.067        16.465        .29848E-03   -1.5641    
  21  Prefactor     1.4583        .87154        .89133E-03   -1.5684    
  22  Prefactor     2.7428        .86192        .61452E-03   -1.5675    
  23  Prefactor     3.8370        1.6233        .51498E-03   -1.5669    
  24  Prefactor      .0000        .48396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     25.651        5.8014        .19738E-03   -1.5607    
  26  norm          3.2957        .87002        .55743E-03   -1.5672    
  27  norm          .13311        .27890        .13113E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.3273        2.8187        .67179E-03   -1.5677    
  29  norm           .0000        .13793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .94629        .88151E-01    .45490E-01   -.94852    
  31  Prefactor     .98208        .84519E-01    .46042E-01   -.93329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13983e-06
Minuit parameter uncertainties:
  1  0.522452
  2  4.89226
  3  5.30344
  4  5.28335
  5  6.75836
  6  2.62942e-05
  7  2.06186
  8  1.27688e-06
  9  22.7098
  10  1.79885
  11  8.33446
  12  2.03472
  13  1.443
  14  1.42218e-05
  15  0.0502897
  16  4.65821
  17  8.00243
  18  1.65476
  19  2.05978e-05
  20  16.4656
  21  0.871536
  22  0.861917
  23  1.62333
  24  4.24535e-06
  25  5.80135
  26  0.87002
  27  0.278896
  28  2.81874
  29  5.88435e-07
  30  0.0881647
  31  0.08453
Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  9.744e+00  8.334e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.821e-01  8.453e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.463e-01  8.816e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 244.160 46.510
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 1.58e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 4.15e-06 +/- 3.55e-06

TS (Fixed Index): 2.74
Ra Dec: 244.160 46.510
Photon Flux Upper Limit: 4.25998121576e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00333389834282 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31173864/likelihoodResults_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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) = 27560.8472843
delta logL = 0.38391380939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27560.8285338
delta logL = 0.402664331152

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   27560.83     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      288 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.756        10.727        .10791E-04    .13064E-03
   2  Index         2.1306        .49821        .14227E-01    .30655E-03
   3  Normalizat    .95335        .10025        .24820E-03   -.36277E-04
   4  Prefactor     .97703        .99851E-01    .24417E-03    .58667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7558
  Index      = 2.13056
  Normalizat = 0.95335
  Prefactor  = 0.97703
 **********
 **   18 **HESSE 
 **********

 FCN=   27560.83     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.756        10.671        .43165E-06   -1.5634    
   2  Index         2.1306        .49588        .28454E-02   -.61125    
   3  Normalizat    .95335        .10036        .99279E-05   -.94610    
   4  Prefactor     .97703        .99960E-01    .97667E-05   -.93499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00809e-11
Minuit parameter uncertainties:
  1  10.6711
  2  0.497099
  3  0.100383
  4  0.0999784
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) = 27560.8285337
delta logL = 0.40266444513

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.376e+01  1.067e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.131e+00  4.971e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.770e-01  9.998e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.534e-01  1.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 244.160 46.510
Photon Index (Free Index): 2.13 +/- 0.50
Photon Flux (Free Index): 1.16e-08 +/- 1.11e-08
Energy Flux (Free Index): 5.95e-06 +/- 5.35e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31173864/cmap_HighResolution_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-03', comment='SUCCESS', photon_flux='1.58e-08', energy_flux2='5.95e-06', photon_flux_error='1.35e-08', dlogl='4.03e-01', energy_flux='4.15e-06', photon_flux2='1.16e-08', job_status='DONE', time_completed='2026-07-09 21:11:41.787277', photon_index_error2='0.50', photon_index2='2.13', ts='2.74', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='4.26e-08', energy_flux_error2='5.35e-06', EG='0.95', time_epoch_completed='1783656701.79', return_code='0', job_id='31173864', GAL2='0.98', EG2='0.95', return_code2='0', energy_flux_error='3.55e-06', photon_flux_error2='1.11e-08', ts2='3.54', photon_index='2.60' WHERE bin_id='932' AND source_name='4FGL J1616.6+4630' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  9 21:11:41 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  9.744e+00  8.334e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.821e-01  8.453e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.463e-01  8.816e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 244.160 46.510
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 1.58e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 4.15e-06 +/- 3.55e-06

TS (Fixed Index): 2.74
Ra Dec: 244.160 46.510
Photon Flux Upper Limit: 4.25998121576e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00333389834282 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31173975/likelihoodResults_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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) = 27560.8472843
delta logL = 0.38391380939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27560.8285338
delta logL = 0.402664331152

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   27560.83     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      288 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.756        10.727        .10791E-04    .13064E-03
   2  Index         2.1306        .49821        .14227E-01    .30655E-03
   3  Normalizat    .95335        .10025        .24820E-03   -.36277E-04
   4  Prefactor     .97703        .99851E-01    .24417E-03    .58667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7558
  Index      = 2.13056
  Normalizat = 0.95335
  Prefactor  = 0.97703
 **********
 **   18 **HESSE 
 **********

 FCN=   27560.83     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.756        10.671        .43165E-06   -1.5634    
   2  Index         2.1306        .49588        .28454E-02   -.61125    
   3  Normalizat    .95335        .10036        .99279E-05   -.94610    
   4  Prefactor     .97703        .99960E-01    .97667E-05   -.93499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00809e-11
Minuit parameter uncertainties:
  1  10.6711
  2  0.497099
  3  0.100383
  4  0.0999784
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) = 27560.8285337
delta logL = 0.40266444513

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.376e+01  1.067e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.131e+00  4.971e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.770e-01  9.998e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.534e-01  1.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 244.160 46.510
Photon Index (Free Index): 2.13 +/- 0.50
Photon Flux (Free Index): 1.16e-08 +/- 1.11e-08
Energy Flux (Free Index): 5.95e-06 +/- 5.35e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31173975/cmap_HighResolution_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-03', comment='SUCCESS', photon_flux='1.58e-08', energy_flux2='5.95e-06', photon_flux_error='1.35e-08', dlogl='4.03e-01', energy_flux='4.15e-06', photon_flux2='1.16e-08', job_status='DONE', time_completed='2026-07-09 21:12:55.190999', photon_index_error2='0.50', photon_index2='2.13', ts='2.74', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='4.26e-08', energy_flux_error2='5.35e-06', EG='0.95', time_epoch_completed='1783656775.19', return_code='0', job_id='31173975', GAL2='0.98', EG2='0.95', return_code2='0', energy_flux_error='3.55e-06', photon_flux_error2='1.11e-08', ts2='3.54', photon_index='2.60' WHERE bin_id='932' AND source_name='4FGL J1616.6+4630' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  9 21:12:55 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  9.744e+00  8.334e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.821e-01  8.453e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.463e-01  8.816e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 244.160 46.510
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 1.58e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 4.15e-06 +/- 3.55e-06

TS (Fixed Index): 2.74
Ra Dec: 244.160 46.510
Photon Flux Upper Limit: 4.25998121576e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00333389834282 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31173998/likelihoodResults_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.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) = 27560.8472843
delta logL = 0.38391380939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27560.8285338
delta logL = 0.402664331152

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   27560.83     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      288 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.756        10.727        .10791E-04    .13064E-03
   2  Index         2.1306        .49821        .14227E-01    .30655E-03
   3  Normalizat    .95335        .10025        .24820E-03   -.36277E-04
   4  Prefactor     .97703        .99851E-01    .24417E-03    .58667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7558
  Index      = 2.13056
  Normalizat = 0.95335
  Prefactor  = 0.97703
 **********
 **   18 **HESSE 
 **********

 FCN=   27560.83     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.756        10.671        .43165E-06   -1.5634    
   2  Index         2.1306        .49588        .28454E-02   -.61125    
   3  Normalizat    .95335        .10036        .99279E-05   -.94610    
   4  Prefactor     .97703        .99960E-01    .97667E-05   -.93499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00809e-11
Minuit parameter uncertainties:
  1  10.6711
  2  0.497099
  3  0.100383
  4  0.0999784
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) = 27560.8285337
delta logL = 0.40266444513

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.376e+01  1.067e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.131e+00  4.971e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.770e-01  9.998e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.534e-01  1.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 244.160 46.510
Photon Index (Free Index): 2.13 +/- 0.50
Photon Flux (Free Index): 1.16e-08 +/- 1.11e-08
Energy Flux (Free Index): 5.95e-06 +/- 5.35e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31173998/cmap_HighResolution_802656001_803260801_4FGL_J1616.6+4630_weekly_bin932.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-03', comment='SUCCESS', photon_flux='1.58e-08', energy_flux2='5.95e-06', photon_flux_error='1.35e-08', dlogl='4.03e-01', energy_flux='4.15e-06', photon_flux2='1.16e-08', job_status='DONE', time_completed='2026-07-09 21:13:53.303664', photon_index_error2='0.50', photon_index2='2.13', ts='2.74', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='4.26e-08', energy_flux_error2='5.35e-06', EG='0.95', time_epoch_completed='1783656833.3', return_code='0', job_id='31173998', GAL2='0.98', EG2='0.95', return_code2='0', energy_flux_error='3.55e-06', photon_flux_error2='1.11e-08', ts2='3.54', photon_index='2.60' WHERE bin_id='932' AND source_name='4FGL J1616.6+4630' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  9 21:13:53 PDT 2026

