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


Performing analysis on: 4FGL_J1231.7+2847_weekly_bin931
RA = 187.935, Dec = 28.7917
tmin = 802051201, tmax = 802656001
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='28160129', job_status='RUN', time_executed='2026-06-09 10:03:41.342898', time_epoch_executed='1781024621.34' WHERE source_name='4FGL J1231.7+2847' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28160129

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28160129/ft1_4FGL_J1231.7+2847_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28160129/ft2_4FGL_J1231.7+2847_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28160129/ft1_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160129/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits ra=187.935 dec=28.7917 rad=12.0 tmin=802051201.0 tmax=802656001.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.37
user 4.46
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28160129/ft2_4FGL_J1231.7+2847_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28160129/ft2_4FGL_J1231.7+2847_weekly_bin931.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/28160129/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28160129/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1527

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28160129/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28160129/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA"/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa
/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
number of points = 17382
number of fields = 31
RA_SUN column already exists. File will not be modified.

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).


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_J1231.7+2847_weekly_bin931
RA = 187.935, Dec = 28.7917
tmin = 802051201, tmax = 802656001
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='28160156', job_status='RUN', time_executed='2026-06-09 10:03:41.895643', time_epoch_executed='1781024621.9' WHERE source_name='4FGL J1231.7+2847' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28160156

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28160156/ft1_4FGL_J1231.7+2847_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28160156/ft2_4FGL_J1231.7+2847_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28160156/ft1_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160156/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits ra=187.935 dec=28.7917 rad=12.0 tmin=802051201.0 tmax=802656001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.80
user 4.71
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28160156/ft2_4FGL_J1231.7+2847_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28160156/ft2_4FGL_J1231.7+2847_weekly_bin931.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/28160156/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28160156/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.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.75
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 1527

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28160156/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28160156/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" /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)
/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).


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

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


Performing analysis on: 4FGL_J1231.7+2847_weekly_bin931
RA = 187.935, Dec = 28.7917
tmin = 802051201, tmax = 802656001
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='28160198', job_status='RUN', time_executed='2026-06-09 10:04:41.426033', time_epoch_executed='1781024681.43' WHERE source_name='4FGL J1231.7+2847' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28160198

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28160198/ft1_4FGL_J1231.7+2847_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28160198/ft2_4FGL_J1231.7+2847_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28160198/ft1_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160198/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits ra=187.935 dec=28.7917 rad=12.0 tmin=802051201.0 tmax=802656001.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.32
user 4.48
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28160198/ft2_4FGL_J1231.7+2847_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28160198/ft2_4FGL_J1231.7+2847_weekly_bin931.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/28160198/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28160198/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1527

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28160198/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28160198/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA"number of points = 17382
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1231.7+2847_weekly_bin931
RA = 187.935, Dec = 28.7917
tmin = 802051201, tmax = 802656001
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='28160269', job_status='RUN', time_executed='2026-06-09 10:04:41.571179', time_epoch_executed='1781024681.57' WHERE source_name='4FGL J1231.7+2847' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28160269

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28160269/ft1_4FGL_J1231.7+2847_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28160269/ft2_4FGL_J1231.7+2847_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28160269/ft1_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160269/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits ra=187.935 dec=28.7917 rad=12.0 tmin=802051201.0 tmax=802656001.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.21
user 4.37
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28160269/ft2_4FGL_J1231.7+2847_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28160269/ft2_4FGL_J1231.7+2847_weekly_bin931.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/28160269/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28160269/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1527

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28160269/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28160269/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA"number of points = 17382
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1231.7+2847_weekly_bin931
RA = 187.935, Dec = 28.7917
tmin = 802051201, tmax = 802656001
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='28160421', job_status='RUN', time_executed='2026-06-09 10:04:57.262951', time_epoch_executed='1781024697.26' WHERE source_name='4FGL J1231.7+2847' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28160421

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28160421/ft1_4FGL_J1231.7+2847_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28160421/ft2_4FGL_J1231.7+2847_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28160421/ft1_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160421/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits ra=187.935 dec=28.7917 rad=12.0 tmin=802051201.0 tmax=802656001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.26
user 4.43
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28160421/ft2_4FGL_J1231.7+2847_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28160421/ft2_4FGL_J1231.7+2847_weekly_bin931.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/28160421/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28160421/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1527

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28160421/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28160421/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28160129/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160129/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 17.65
user 16.80
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28160129/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160129/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28160129/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160129/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160129/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 67.19
user 62.40
sys 3.90

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28160129/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160129/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160129/cmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 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.00
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28160129/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160129/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160129/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.02
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28160129/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160129/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28160129/Model_4FGL_J1231.7+2847_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcoutfile=/lscratch/kocevski/28160156/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160156/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 18.12
user 17.28
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28160156/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160156/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28160156/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160156/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160156/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 66.52
user 61.62
sys 4.07

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28160156/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160156/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160156/cmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 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.93
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28160156/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160156/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160156/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.91
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28160156/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160156/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28160156/Model_4FGL_J1231.7+2847_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J1231.7+2847_weekly_bin931
RA = 187.935, Dec = 28.7917
tmin = 802051201, tmax = 802656001
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='28160462', job_status='RUN', time_executed='2026-06-09 10:05:41.905952', time_epoch_executed='1781024741.91' WHERE source_name='4FGL J1231.7+2847' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28160462

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28160462/ft1_4FGL_J1231.7+2847_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28160462/ft2_4FGL_J1231.7+2847_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28160462/ft1_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160462/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits ra=187.935 dec=28.7917 rad=12.0 tmin=802051201.0 tmax=802656001.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.18
user 4.45
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28160462/ft2_4FGL_J1231.7+2847_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28160462/ft2_4FGL_J1231.7+2847_weekly_bin931.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/28160462/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28160462/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.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: 1527

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28160462/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28160462/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28160198/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160198/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 17.56
user 16.69
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28160198/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160198/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28160198/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160198/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160198/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 66.31
user 61.25
sys 3.97

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28160198/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160198/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160198/cmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.96
user 0.23
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28160198/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160198/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160198/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.81
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28160198/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160198/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28160198/Model_4FGL_J1231.7+2847_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc outfile=/lscratch/kocevski/28160269/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160269/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 17.68
user 16.88
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28160269/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160269/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28160269/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160269/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160269/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 65.83
user 61.04
sys 3.78

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28160269/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160269/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160269/cmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.83
user 0.24
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28160269/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160269/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160269/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 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.00
user 0.26
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28160269/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160269/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28160269/Model_4FGL_J1231.7+2847_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J1231.7+2847_weekly_bin931
RA = 187.935, Dec = 28.7917
tmin = 802051201, tmax = 802656001
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='28160698', job_status='RUN', time_executed='2026-06-09 10:06:44.934098', time_epoch_executed='1781024804.93' WHERE source_name='4FGL J1231.7+2847' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28160698

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28160698/ft1_4FGL_J1231.7+2847_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28160698/ft2_4FGL_J1231.7+2847_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28160698/ft1_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160698/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits ra=187.935 dec=28.7917 rad=12.0 tmin=802051201.0 tmax=802656001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.58
user 4.41
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28160698/ft2_4FGL_J1231.7+2847_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28160698/ft2_4FGL_J1231.7+2847_weekly_bin931.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/28160698/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28160698/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.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.43
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 1527

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28160698/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28160698/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA"number of points = 17382
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1231.7+2847_weekly_bin931
RA = 187.935, Dec = 28.7917
tmin = 802051201, tmax = 802656001
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='28160770', job_status='RUN', time_executed='2026-06-09 10:06:44.948021', time_epoch_executed='1781024804.95' WHERE source_name='4FGL J1231.7+2847' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28160770

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28160770/ft1_4FGL_J1231.7+2847_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28160770/ft2_4FGL_J1231.7+2847_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28160770/ft1_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160770/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits ra=187.935 dec=28.7917 rad=12.0 tmin=802051201.0 tmax=802656001.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.15
user 4.45
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28160770/ft2_4FGL_J1231.7+2847_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28160770/ft2_4FGL_J1231.7+2847_weekly_bin931.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/28160770/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28160770/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.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.16
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1527

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28160770/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28160770/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28160421/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160421/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 18.51
user 17.74
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28160421/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160421/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28160421/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160421/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160421/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 66.85
user 62.10
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 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28160421/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160421/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160421/cmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.92
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28160421/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160421/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160421/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.96
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28160421/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160421/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28160421/Model_4FGL_J1231.7+2847_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J1231.7+2847_weekly_bin931
RA = 187.935, Dec = 28.7917
tmin = 802051201, tmax = 802656001
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='28161094', job_status='RUN', time_executed='2026-06-09 10:07:45.465954', time_epoch_executed='1781024865.47' WHERE source_name='4FGL J1231.7+2847' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28161094

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28161094/ft1_4FGL_J1231.7+2847_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28161094/ft2_4FGL_J1231.7+2847_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28161094/ft1_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28161094/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits ra=187.935 dec=28.7917 rad=12.0 tmin=802051201.0 tmax=802656001.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.33
user 4.52
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28161094/ft2_4FGL_J1231.7+2847_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28161094/ft2_4FGL_J1231.7+2847_weekly_bin931.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/28161094/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28161094/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.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.75
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 1527

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28161094/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28161094/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA"number of points = 17382
number of fields = 31
RA_SUN column already exists. File will not be modified.
 outfile=/lscratch/kocevski/28160462/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160462/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 18.01
user 17.07
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28160462/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160462/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28160462/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160462/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160462/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 65.59
user 60.84
sys 3.78

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28160462/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160462/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160462/cmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 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.16
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28160462/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160462/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160462/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 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.86
user 0.24
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28160462/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160462/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28160462/Model_4FGL_J1231.7+2847_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcDone.


Performing analysis on: 4FGL_J1231.7+2847_weekly_bin931
RA = 187.935, Dec = 28.7917
tmin = 802051201, tmax = 802656001
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='28161084', job_status='RUN', time_executed='2026-06-09 10:07:45.070317', time_epoch_executed='1781024865.07' WHERE source_name='4FGL J1231.7+2847' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28161084

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28161084/ft1_4FGL_J1231.7+2847_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28161084/ft2_4FGL_J1231.7+2847_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28161084/ft1_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28161084/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits ra=187.935 dec=28.7917 rad=12.0 tmin=802051201.0 tmax=802656001.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.32
user 4.52
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28161084/ft2_4FGL_J1231.7+2847_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28161084/ft2_4FGL_J1231.7+2847_weekly_bin931.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/28161084/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28161084/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1527

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28161084/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28161084/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA"e GAL_V02
Working on...
/lscratch/kocevski/28160129/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits.....................!
real 46.24
user 44.28
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28160129/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits', '/lscratch/kocevski/28160129/ft2_4FGL_J1231.7+2847_weekly_bin931.fits', expMap='/lscratch/kocevski/28160129/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', expCube='/lscratch/kocevski/28160129/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28160129/Model_4FGL_J1231.7+2847_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28160129/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28160129/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28160129/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28160129/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28160129/Model_4FGL_J1231.7+2847_weekly_bin931.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) = 15785.1506958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48162E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0327       1.0000          .0000       .10000E+07
     3 'norm      '    26.980       1.0000          .0000       .10000E+07
     4 'Prefactor '    .51228       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36004E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6496       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44206E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12185E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4691       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1718       1.0000          .0000       .10000E+07
    11 'norm      '    .11569E-06   1.0000          .0000       .10000E+07
    12 'norm      '    5.7000       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.9787       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17730E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .51888E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19607E-06   1.0000          .0000       .10000E+07
    17 'norm      '    3.5007       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16371E-05   1.0000          .0000       .10000E+07
    19 'norm      '    14.620       1.0000          .0000       .10000E+07
    20 'Prefactor '    .37287E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .24321E-04   1.0000          .0000       .10000E+07
    22 'norm      '    13.603       1.0000          .0000       .10000E+07
    23 'norm      '    .56256E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .11416E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.2709       1.0000          .0000       .10000E+07
    26 'Prefactor '    .37855E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .79453       1.0000         GAL_V02
Working on...
/lscratch/kocevski/28160156/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits.....................!
real 47.03
user 45.07
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28160156/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits', '/lscratch/kocevski/28160156/ft2_4FGL_J1231.7+2847_weekly_bin931.fits', expMap='/lscratch/kocevski/28160156/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', expCube='/lscratch/kocevski/28160156/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28160156/Model_4FGL_J1231.7+2847_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28160156/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28160156/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28160156/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28160156/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28160156/Model_4FGL_J1231.7+2847_weekly_bin931.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) = 15785.1506958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48162E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0327       1.0000          .0000       .10000E+07
     3 'norm      '    26.980       1.0000          .0000       .10000E+07
     4 'Prefactor '    .51228       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36004E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6496       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44206E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12185E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4691       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1718       1.0000          .0000       .10000E+07
    11 'norm      '    .11569E-06   1.0000          .0000       .10000E+07
    12 'norm      '    5.7000       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.9787       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17730E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .51888E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19607E-06   1.0000          .0000       .10000E+07
    17 'norm      '    3.5007       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16371E-05   1.0000          .0000       .10000E+07
    19 'norm      '    14.620       1.0000          .0000       .10000E+07
    20 'Prefactor '    .37287E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .24321E-04   1.0000          .0000       .10000E+07
    22 'norm      '    13.603       1.0000          .0000       .10000E+07
    23 'norm      '    .56256E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .11416E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.2709       1.0000          .0000       .10000E+07
    26 'Prefactor '    .37855E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .79453       1.0000          outfile=/lscratch/kocevski/28160698/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160698/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 17.65
user 16.64
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28160698/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160698/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28160698/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160698/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160698/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 66.64
user 61.62
sys 4.00

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28160698/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160698/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160698/cmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 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.90
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28160698/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160698/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160698/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.83
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28160698/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160698/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28160698/Model_4FGL_J1231.7+2847_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc outfile=/lscratch/kocevski/28160770/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160770/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 17.65
user 16.81
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28160770/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160770/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28160770/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160770/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28160770/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 66.46
user 61.37
sys 4.02

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28160770/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160770/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160770/cmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 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.86
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28160770/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28160770/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28160770/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 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.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28160770/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28160770/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28160770/Model_4FGL_J1231.7+2847_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc .10000E-01   10.000    
    28 'Prefactor '    1.1497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15785.04     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2008 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17153E-07    26.119        .35747E-05** at limit **
   2  Prefactor     1.0329        .80031        .37695E-07    .19737E-02
   3  norm          26.982        1.8299        .74657E-07    .23494E-01
   4  Prefactor     .51082        1.8287        .99246E-06    .23840E-02
   5  Prefactor     .75828E-06    .82196       -.99141E-06** at limit **
   6  norm          1.6499        1.0450       -.68502E-07   -.40470E-02
   7  Prefactor      .0000        1.8796        .21776E-05** at limit **
   8  Prefactor      .0000        .23241       -.21885E-06** at limit **
   9  Prefactor     1.4689        1.0864        .21218E-07   -.63045E-03
  10  Prefactor     1.1722        2.0555       -.10126E-06    .25076E-02
  11  norm           .0000        .13026       -.79295E-08** at limit **
  12  norm          5.7019        2.8296        .74079E-07    .88503E-03
  13  Prefactor     8.9824        5.2516       -.11515E-06   -.14501E-02
  14  Prefactor     .19873E-07    2.2716       -.15280E-05** at limit **
  15  Prefactor     .11102E-08    1.3238       -.40758E-07** at limit **
  16  Prefactor     .14433E-08    1.2474       -.43303E-06** at limit **
  17  norm          3.5161        2.2231       -.85565E-08    .13893E-02
  18  Prefactor     .36082E-08    5.1136       -.39801E-06** at limit **
  19  norm          14.616        3.3431        .18700E-06    .64024E-02
  20  Prefactor      .0000        2.5853        .18671E-05** at limit **
  21  norm          .10603E-07    1.8705       -.17243E-05** at limit **
  22  norm          13.606        2.9988        .16127E-06   -.13426E-01
  23  norm          .31641E-07    6.4792       -.19311E-05** at limit **
  24  norm          .25202E-07    38.071       -.26443E-05** at limit **
  25  Prefactor     3.2686        1.9692       -.36291E-07    .45977E-02
  26  Prefactor     .31641E-07    3.2067       -.65507E-06** at limit **
  27  Normalizat    .79443        .13102       -.87529E-05   -.72300E-04
  28  Prefactor     1.1498        .15349        .10701E-04    .28328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71529e-08
  Prefactor  = 1.03293
  norm       = 26.982
  Prefactor  = 0.510817
  Prefactor  = 7.58282e-07
  norm       = 1.64993
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.46887
  Prefactor  = 1.17222
  norm       = 0
  norm       = 5.70194
  Prefactor  = 8.9824
  Prefactor  = 1.9873e-08
  Prefactor  = 1.11022e-09
  Prefactor  = 1.44329e-09
  norm       = 3.51607
  Prefactor  = 3.60822e-09
  norm       = 14.6157
  Prefactor  = 0
  norm       = 1.06026e-08
  norm       = 13.6064
  norm       = 3.16414e-08
  norm       = 2.52021e-08
  Prefactor  = 3.26863
  Prefactor  = 3.16414e-08
  Normalizat = 0.794426
  Prefactor  = 1.14976
.10000E-01   10.000    
    28 'Prefactor '    1.1497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15785.04     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2008 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17153E-07    26.119        .35747E-05** at limit **
   2  Prefactor     1.0329        .80031        .37695E-07    .19737E-02
   3  norm          26.982        1.8299        .74657E-07    .23494E-01
   4  Prefactor     .51082        1.8287        .99246E-06    .23840E-02
   5  Prefactor     .75828E-06    .82196       -.99141E-06** at limit **
   6  norm          1.6499        1.0450       -.68502E-07   -.40470E-02
   7  Prefactor      .0000        1.8796        .21776E-05** at limit **
   8  Prefactor      .0000        .23241       -.21885E-06** at limit **
   9  Prefactor     1.4689        1.0864        .21218E-07   -.63045E-03
  10  Prefactor     1.1722        2.0555       -.10126E-06    .25076E-02
  11  norm           .0000        .13026       -.79295E-08** at limit **
  12  norm          5.7019        2.8296        .74079E-07    .88503E-03
  13  Prefactor     8.9824        5.2516       -.11515E-06   -.14501E-02
  14  Prefactor     .19873E-07    2.2716       -.15280E-05** at limit **
  15  Prefactor     .11102E-08    1.3238       -.40758E-07** at limit **
  16  Prefactor     .14433E-08    1.2474       -.43303E-06** at limit **
  17  norm          3.5161        2.2231       -.85565E-08    .13893E-02
  18  Prefactor     .36082E-08    5.1136       -.39801E-06** at limit **
  19  norm          14.616        3.3431        .18700E-06    .64024E-02
  20  Prefactor      .0000        2.5853        .18671E-05** at limit **
  21  norm          .10603E-07    1.8705       -.17243E-05** at limit **
  22  norm          13.606        2.9988        .16127E-06   -.13426E-01
  23  norm          .31641E-07    6.4792       -.19311E-05** at limit **
  24  norm          .25202E-07    38.071       -.26443E-05** at limit **
  25  Prefactor     3.2686        1.9692       -.36291E-07    .45977E-02
  26  Prefactor     .31641E-07    3.2067       -.65507E-06** at limit **
  27  Normalizat    .79443        .13102       -.87529E-05   -.72300E-04
  28  Prefactor     1.1498        .15349        .10701E-04    .28328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71529e-08
  Prefactor  = 1.03293
  norm       = 26.982
  Prefactor  = 0.510817
  Prefactor  = 7.58282e-07
  norm       = 1.64993
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.46887
  Prefactor  = 1.17222
  norm       = 0
  norm       = 5.70194
  Prefactor  = 8.9824
  Prefactor  = 1.9873e-08
  Prefactor  = 1.11022e-09
  Prefactor  = 1.44329e-09
  norm       = 3.51607
  Prefactor  = 3.60822e-09
  norm       = 14.6157
  Prefactor  = 0
  norm       = 1.06026e-08
  norm       = 13.6064
  norm       = 3.16414e-08
  norm       = 2.52021e-08
  Prefactor  = 3.26863
  Prefactor  = 3.16414e-08
  Normalizat = 0.794426
  Prefactor  = 1.14976
e GAL_V02
Working on...
/lscratch/kocevski/28160198/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits.....................!
real 46.22
user 44.48
sys 0.84

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28160198/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits', '/lscratch/kocevski/28160198/ft2_4FGL_J1231.7+2847_weekly_bin931.fits', expMap='/lscratch/kocevski/28160198/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', expCube='/lscratch/kocevski/28160198/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28160198/Model_4FGL_J1231.7+2847_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28160198/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28160198/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28160198/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28160198/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28160198/Model_4FGL_J1231.7+2847_weekly_bin931.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) = 15785.1506958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48162E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0327       1.0000          .0000       .10000E+07
     3 'norm      '    26.980       1.0000          .0000       .10000E+07
     4 'Prefactor '    .51228       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36004E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6496       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44206E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12185E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4691       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1718       1.0000          .0000       .10000E+07
    11 'norm      '    .11569E-06   1.0000          .0000       .10000E+07
    12 'norm      '    5.7000       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.9787       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17730E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .51888E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19607E-06   1.0000          .0000       .10000E+07
    17 'norm      '    3.5007       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16371E-05   1.0000          .0000       .10000E+07
    19 'norm      '    14.620       1.0000          .0000       .10000E+07
    20 'Prefactor '    .37287E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .24321E-04   1.0000          .0000       .10000E+07
    22 'norm      '    13.603       1.0000          .0000       .10000E+07
    23 'norm      '    .56256E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .11416E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.2709       1.0000          .0000       .10000E+07
    26 'Prefactor '    .37855E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .79453       1.0000        e GAL_V02
Working on...
/lscratch/kocevski/28160269/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits.....................!
real 46.47
user 44.23
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28160269/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits', '/lscratch/kocevski/28160269/ft2_4FGL_J1231.7+2847_weekly_bin931.fits', expMap='/lscratch/kocevski/28160269/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', expCube='/lscratch/kocevski/28160269/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28160269/Model_4FGL_J1231.7+2847_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28160269/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28160269/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28160269/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28160269/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28160269/Model_4FGL_J1231.7+2847_weekly_bin931.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) = 15785.1506958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48162E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0327       1.0000          .0000       .10000E+07
     3 'norm      '    26.980       1.0000          .0000       .10000E+07
     4 'Prefactor '    .51228       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36004E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6496       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44206E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12185E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4691       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1718       1.0000          .0000       .10000E+07
    11 'norm      '    .11569E-06   1.0000          .0000       .10000E+07
    12 'norm      '    5.7000       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.9787       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17730E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .51888E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19607E-06   1.0000          .0000       .10000E+07
    17 'norm      '    3.5007       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16371E-05   1.0000          .0000       .10000E+07
    19 'norm      '    14.620       1.0000          .0000       .10000E+07
    20 'Prefactor '    .37287E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .24321E-04   1.0000          .0000       .10000E+07
    22 'norm      '    13.603       1.0000          .0000       .10000E+07
    23 'norm      '    .56256E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .11416E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.2709       1.0000          .0000       .10000E+07
    26 'Prefactor '    .37855E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .79453       1.0000         **********
 **   18 **HESSE 
 **********

 FCN=   15785.04     FROM HESSE     STATUS=OK           583 CALLS     2591 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17153E-07    26.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0329        .78474        .12449E-02   -1.5688    
   3  norm          26.982        1.8324        .19256E-03   -1.5604    
   4  Prefactor     .51082        1.8255        .77484E-03   -1.5694    
   5  Prefactor     .75828E-06    .71354        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6499        1.0483        .82178E-04   -1.5682    
   7  Prefactor      .0000        1.8783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .23270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4689        1.0890        .88642E-04   -1.5684    
  10  Prefactor     1.1722        2.5083        .53203E-02   -1.5686    
  11  norm           .0000        .48212E-01    .93312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7019        2.9070        .42049E-03   -1.5660    
  13  Prefactor     8.9824        5.2537        .33425E-03   -1.5648    
  14  Prefactor     .19873E-07    2.3712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-08    1.3314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14433E-08    1.2478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5161        2.2326        .54013E-03   -1.5670    
  18  Prefactor     .36082E-08    5.1337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.616        3.3438        .26169E-03   -1.5632    
  20  Prefactor      .0000        2.5929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10603E-07    1.9128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.606        3.0139        .27132E-03   -1.5634    
  23  norm          .31641E-07    6.5904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .25202E-07    37.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2686        1.9818        .55967E-03   -1.5672    
  26  Prefactor     .31641E-07    3.3616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .79443        .11025        .63228E-01   -1.0028    
  28  Prefactor     1.1498        .12856        .63704E-01   -.87892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72709e-08
Minuit parameter uncertainties:
  1  0.00133781
  2  0.784736
  3  1.83244
  4  1.82551
  5  0.00147113
  6  1.04831
  7  8.81013e-06
  8  4.53914e-06
  9  1.08902
  10  2.50826
  11  2.0153e-06
  12  2.90698
  13  5.25368
  14  0.000434154
  15  7.77264e-05
  16  8.45702e-05
  17  2.23257
  18  0.000272911
  19  3.34379
  20  1.48274e-05
  21  0.000285001
  22  3.01386
  23  0.000913411
  24  0.00194209
  25  1.98185
  26  0.000652358
  27  0.110279
  28  0.128595
 outfile=/lscratch/kocevski/28161094/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28161094/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 18.81
user 17.93
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28161094/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28161094/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28161094/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28161094/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28161094/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 66.24
user 61.48
sys 3.69

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28161094/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28161094/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28161094/cmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 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.15
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28161094/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28161094/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28161094/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.84
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28161094/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28161094/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28161094/Model_4FGL_J1231.7+2847_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc outfile=/lscratch/kocevski/28161084/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28161084/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 18.13
user 17.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28161084/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28161084/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28161084/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28161084/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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/28161084/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
.....................!
real 69.84
user 64.33
sys 4.29

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28161084/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28161084/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28161084/cmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 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.01
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28161084/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits scfile=/lscratch/kocevski/28161084/ft2_4FGL_J1231.7+2847_weekly_bin931.fits outfile=/lscratch/kocevski/28161084/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.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=187.935 yref=28.7917 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.85
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28161084/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28161084/ft2_4FGL_J1231.7+2847_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28161084/Model_4FGL_J1231.7+2847_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc **********
 **   18 **HESSE 
 **********

 FCN=   15785.04     FROM HESSE     STATUS=OK           583 CALLS     2591 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17153E-07    26.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0329        .78474        .12449E-02   -1.5688    
   3  norm          26.982        1.8324        .19256E-03   -1.5604    
   4  Prefactor     .51082        1.8255        .77484E-03   -1.5694    
   5  Prefactor     .75828E-06    .71354        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6499        1.0483        .82178E-04   -1.5682    
   7  Prefactor      .0000        1.8783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .23270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4689        1.0890        .88642E-04   -1.5684    
  10  Prefactor     1.1722        2.5083        .53203E-02   -1.5686    
  11  norm           .0000        .48212E-01    .93312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7019        2.9070        .42049E-03   -1.5660    
  13  Prefactor     8.9824        5.2537        .33425E-03   -1.5648    
  14  Prefactor     .19873E-07    2.3712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-08    1.3314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14433E-08    1.2478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5161        2.2326        .54013E-03   -1.5670    
  18  Prefactor     .36082E-08    5.1337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.616        3.3438        .26169E-03   -1.5632    
  20  Prefactor      .0000        2.5929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10603E-07    1.9128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.606        3.0139        .27132E-03   -1.5634    
  23  norm          .31641E-07    6.5904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .25202E-07    37.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2686        1.9818        .55967E-03   -1.5672    
  26  Prefactor     .31641E-07    3.3616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .79443        .11025        .63228E-01   -1.0028    
  28  Prefactor     1.1498        .12856        .63704E-01   -.87892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72709e-08
Minuit parameter uncertainties:
  1  0.00133781
  2  0.784736
  3  1.83244
  4  1.82551
  5  0.00147113
  6  1.04831
  7  8.81013e-06
  8  4.53914e-06
  9  1.08902
  10  2.50826
  11  2.0153e-06
  12  2.90698
  13  5.25368
  14  0.000434154
  15  7.77264e-05
  16  8.45702e-05
  17  2.23257
  18  0.000272911
  19  3.34379
  20  1.48274e-05
  21  0.000285001
  22  3.01386
  23  0.000913411
  24  0.00194209
  25  1.98185
  26  0.000652358
  27  0.110279
  28  0.128595
 .10000E-01   10.000    
    28 'Prefactor '    1.1497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15785.04     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2008 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17153E-07    26.119        .35747E-05** at limit **
   2  Prefactor     1.0329        .80031        .37695E-07    .19737E-02
   3  norm          26.982        1.8299        .74657E-07    .23494E-01
   4  Prefactor     .51082        1.8287        .99246E-06    .23840E-02
   5  Prefactor     .75828E-06    .82196       -.99141E-06** at limit **
   6  norm          1.6499        1.0450       -.68502E-07   -.40470E-02
   7  Prefactor      .0000        1.8796        .21776E-05** at limit **
   8  Prefactor      .0000        .23241       -.21885E-06** at limit **
   9  Prefactor     1.4689        1.0864        .21218E-07   -.63045E-03
  10  Prefactor     1.1722        2.0555       -.10126E-06    .25076E-02
  11  norm           .0000        .13026       -.79295E-08** at limit **
  12  norm          5.7019        2.8296        .74079E-07    .88503E-03
  13  Prefactor     8.9824        5.2516       -.11515E-06   -.14501E-02
  14  Prefactor     .19873E-07    2.2716       -.15280E-05** at limit **
  15  Prefactor     .11102E-08    1.3238       -.40758E-07** at limit **
  16  Prefactor     .14433E-08    1.2474       -.43303E-06** at limit **
  17  norm          3.5161        2.2231       -.85565E-08    .13893E-02
  18  Prefactor     .36082E-08    5.1136       -.39801E-06** at limit **
  19  norm          14.616        3.3431        .18700E-06    .64024E-02
  20  Prefactor      .0000        2.5853        .18671E-05** at limit **
  21  norm          .10603E-07    1.8705       -.17243E-05** at limit **
  22  norm          13.606        2.9988        .16127E-06   -.13426E-01
  23  norm          .31641E-07    6.4792       -.19311E-05** at limit **
  24  norm          .25202E-07    38.071       -.26443E-05** at limit **
  25  Prefactor     3.2686        1.9692       -.36291E-07    .45977E-02
  26  Prefactor     .31641E-07    3.2067       -.65507E-06** at limit **
  27  Normalizat    .79443        .13102       -.87529E-05   -.72300E-04
  28  Prefactor     1.1498        .15349        .10701E-04    .28328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71529e-08
  Prefactor  = 1.03293
  norm       = 26.982
  Prefactor  = 0.510817
  Prefactor  = 7.58282e-07
  norm       = 1.64993
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.46887
  Prefactor  = 1.17222
  norm       = 0
  norm       = 5.70194
  Prefactor  = 8.9824
  Prefactor  = 1.9873e-08
  Prefactor  = 1.11022e-09
  Prefactor  = 1.44329e-09
  norm       = 3.51607
  Prefactor  = 3.60822e-09
  norm       = 14.6157
  Prefactor  = 0
  norm       = 1.06026e-08
  norm       = 13.6064
  norm       = 3.16414e-08
  norm       = 2.52021e-08
  Prefactor  = 3.26863
  Prefactor  = 3.16414e-08
  Normalizat = 0.794426
  Prefactor  = 1.14976
 .10000E-01   10.000    
    28 'Prefactor '    1.1497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15785.04     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2008 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17153E-07    26.119        .35747E-05** at limit **
   2  Prefactor     1.0329        .80031        .37695E-07    .19737E-02
   3  norm          26.982        1.8299        .74657E-07    .23494E-01
   4  Prefactor     .51082        1.8287        .99246E-06    .23840E-02
   5  Prefactor     .75828E-06    .82196       -.99141E-06** at limit **
   6  norm          1.6499        1.0450       -.68502E-07   -.40470E-02
   7  Prefactor      .0000        1.8796        .21776E-05** at limit **
   8  Prefactor      .0000        .23241       -.21885E-06** at limit **
   9  Prefactor     1.4689        1.0864        .21218E-07   -.63045E-03
  10  Prefactor     1.1722        2.0555       -.10126E-06    .25076E-02
  11  norm           .0000        .13026       -.79295E-08** at limit **
  12  norm          5.7019        2.8296        .74079E-07    .88503E-03
  13  Prefactor     8.9824        5.2516       -.11515E-06   -.14501E-02
  14  Prefactor     .19873E-07    2.2716       -.15280E-05** at limit **
  15  Prefactor     .11102E-08    1.3238       -.40758E-07** at limit **
  16  Prefactor     .14433E-08    1.2474       -.43303E-06** at limit **
  17  norm          3.5161        2.2231       -.85565E-08    .13893E-02
  18  Prefactor     .36082E-08    5.1136       -.39801E-06** at limit **
  19  norm          14.616        3.3431        .18700E-06    .64024E-02
  20  Prefactor      .0000        2.5853        .18671E-05** at limit **
  21  norm          .10603E-07    1.8705       -.17243E-05** at limit **
  22  norm          13.606        2.9988        .16127E-06   -.13426E-01
  23  norm          .31641E-07    6.4792       -.19311E-05** at limit **
  24  norm          .25202E-07    38.071       -.26443E-05** at limit **
  25  Prefactor     3.2686        1.9692       -.36291E-07    .45977E-02
  26  Prefactor     .31641E-07    3.2067       -.65507E-06** at limit **
  27  Normalizat    .79443        .13102       -.87529E-05   -.72300E-04
  28  Prefactor     1.1498        .15349        .10701E-04    .28328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71529e-08
  Prefactor  = 1.03293
  norm       = 26.982
  Prefactor  = 0.510817
  Prefactor  = 7.58282e-07
  norm       = 1.64993
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.46887
  Prefactor  = 1.17222
  norm       = 0
  norm       = 5.70194
  Prefactor  = 8.9824
  Prefactor  = 1.9873e-08
  Prefactor  = 1.11022e-09
  Prefactor  = 1.44329e-09
  norm       = 3.51607
  Prefactor  = 3.60822e-09
  norm       = 14.6157
  Prefactor  = 0
  norm       = 1.06026e-08
  norm       = 13.6064
  norm       = 3.16414e-08
  norm       = 2.52021e-08
  Prefactor  = 3.26863
  Prefactor  = 3.16414e-08
  Normalizat = 0.794426
  Prefactor  = 1.14976
e GAL_V02
Working on...
/lscratch/kocevski/28160421/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits.....................!
real 47.51
user 45.71
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28160421/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits', '/lscratch/kocevski/28160421/ft2_4FGL_J1231.7+2847_weekly_bin931.fits', expMap='/lscratch/kocevski/28160421/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', expCube='/lscratch/kocevski/28160421/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28160421/Model_4FGL_J1231.7+2847_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28160421/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28160421/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28160421/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28160421/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28160421/Model_4FGL_J1231.7+2847_weekly_bin931.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) = 15785.1506958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48162E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0327       1.0000          .0000       .10000E+07
     3 'norm      '    26.980       1.0000          .0000       .10000E+07
     4 'Prefactor '    .51228       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36004E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6496       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44206E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12185E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4691       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1718       1.0000          .0000       .10000E+07
    11 'norm      '    .11569E-06   1.0000          .0000       .10000E+07
    12 'norm      '    5.7000       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.9787       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17730E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .51888E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19607E-06   1.0000          .0000       .10000E+07
    17 'norm      '    3.5007       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16371E-05   1.0000          .0000       .10000E+07
    19 'norm      '    14.620       1.0000          .0000       .10000E+07
    20 'Prefactor '    .37287E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .24321E-04   1.0000          .0000       .10000E+07
    22 'norm      '    13.603       1.0000          .0000       .10000E+07
    23 'norm      '    .56256E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .11416E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.2709       1.0000          .0000       .10000E+07
    26 'Prefactor '    .37855E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .79453       1.0000        Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.982e+00  5.254e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.150e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.944e-01  1.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 9.27e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9371713
delta logL = 0.100793481317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9288663
delta logL = 0.10909843851

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15784.93     FROM MIGRAD    STATUS=FAILED       108 CALLS      330 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.8435        .74469E-04   -.41433E-03
   2  Index         2.2504        .64532        .82020E-02    .94106E-03
   3  Normalizat    .78556        .13040        .28112E-03    .40684E-04
   4  Prefactor     1.1559        .15382        .28109E-03    .70779E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15784.93     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      404 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        6.8435        .11365E-04   -1.5654    
   2  Index         2.2504        .64532        .60035E-03   -.58227    
   3  Normalizat    .78556        .13040        .18188E-03   -1.0061    
   4  Prefactor     1.1559        .15382        .13914E-03   -.87700    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15784.93     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      436 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.0631        .29788E-05    .76331E-05
   2  Index         2.2504        .57179        .16404E-02    .37186E-04
   3  Normalizat    .78556        .13004        .11245E-04     .0000    
   4  Prefactor     1.1559        .15370        .11244E-04     .0000    
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24642
  Index      = 2.25039
  Normalizat = 0.785561
  Prefactor  = 1.15587
 **********
 **   18 **HESSE 
 **********

 FCN=   15784.93     FROM HESSE     STATUS=OK            25 CALLS      461 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        5.9719        .11915E-06   -1.5654    
   2  Index         2.2504        .56300        .32808E-03   -.58227    
   3  Normalizat    .78556        .12998        .11245E-04   -1.0061    
   4  Prefactor     1.1559        .15366        .11244E-04   -.87700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03907e-14
Minuit parameter uncertainties:
  1  5.97191
  2  0.564722
  3  0.130029
  4  0.153716
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) = 15784.928865
delta logL = 0.109099806414

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.246e+00  5.972e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  2.250e+00  5.647e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.156e+00  1.537e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.856e-01  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.08
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.25 +/- 0.56
Photon Flux (Free Index): 2.96e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.76e-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/28160129/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='1.22e-05', photon_flux_error='1.33e-08', dlogl='1.09e-01', energy_flux='1.59e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2026-06-09 10:15:09.974138', photon_index_error2='0.56', photon_index2='2.25', ts='6.88', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='8.76e-06', EG='0.79', time_epoch_completed='1781025309.97', return_code='0', job_id='28160129', GAL2='1.16', EG2='0.79', return_code2='0', energy_flux_error='9.27e-06', photon_flux_error2='2.23e-08', ts2='7.08', photon_index='2.00' WHERE bin_id='931' AND source_name='4FGL J1231.7+2847' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 10:15:10 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.982e+00  5.254e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.150e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.944e-01  1.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 9.27e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9371713
delta logL = 0.100793481317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9288663
delta logL = 0.10909843851

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15784.93     FROM MIGRAD    STATUS=FAILED       108 CALLS      330 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.8435        .74469E-04   -.41433E-03
   2  Index         2.2504        .64532        .82020E-02    .94106E-03
   3  Normalizat    .78556        .13040        .28112E-03    .40684E-04
   4  Prefactor     1.1559        .15382        .28109E-03    .70779E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15784.93     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      404 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        6.8435        .11365E-04   -1.5654    
   2  Index         2.2504        .64532        .60035E-03   -.58227    
   3  Normalizat    .78556        .13040        .18188E-03   -1.0061    
   4  Prefactor     1.1559        .15382        .13914E-03   -.87700    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15784.93     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      436 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.0631        .29788E-05    .76331E-05
   2  Index         2.2504        .57179        .16404E-02    .37186E-04
   3  Normalizat    .78556        .13004        .11245E-04     .0000    
   4  Prefactor     1.1559        .15370        .11244E-04     .0000    
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24642
  Index      = 2.25039
  Normalizat = 0.785561
  Prefactor  = 1.15587
 **********
 **   18 **HESSE 
 **********

 FCN=   15784.93     FROM HESSE     STATUS=OK            25 CALLS      461 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        5.9719        .11915E-06   -1.5654    
   2  Index         2.2504        .56300        .32808E-03   -.58227    
   3  Normalizat    .78556        .12998        .11245E-04   -1.0061    
   4  Prefactor     1.1559        .15366        .11244E-04   -.87700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03907e-14
Minuit parameter uncertainties:
  1  5.97191
  2  0.564722
  3  0.130029
  4  0.153716
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) = 15784.928865
delta logL = 0.109099806414

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.246e+00  5.972e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  2.250e+00  5.647e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.156e+00  1.537e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.856e-01  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.08
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.25 +/- 0.56
Photon Flux (Free Index): 2.96e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.76e-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/28160156/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='1.22e-05', photon_flux_error='1.33e-08', dlogl='1.09e-01', energy_flux='1.59e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2026-06-09 10:15:25.805737', photon_index_error2='0.56', photon_index2='2.25', ts='6.88', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='8.76e-06', EG='0.79', time_epoch_completed='1781025325.81', return_code='0', job_id='28160156', GAL2='1.16', EG2='0.79', return_code2='0', energy_flux_error='9.27e-06', photon_flux_error2='2.23e-08', ts2='7.08', photon_index='2.00' WHERE bin_id='931' AND source_name='4FGL J1231.7+2847' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 10:15:26 PDT 2026

 .10000E-01   10.000    
    28 'Prefactor '    1.1497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15785.04     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2008 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17153E-07    26.119        .35747E-05** at limit **
   2  Prefactor     1.0329        .80031        .37695E-07    .19737E-02
   3  norm          26.982        1.8299        .74657E-07    .23494E-01
   4  Prefactor     .51082        1.8287        .99246E-06    .23840E-02
   5  Prefactor     .75828E-06    .82196       -.99141E-06** at limit **
   6  norm          1.6499        1.0450       -.68502E-07   -.40470E-02
   7  Prefactor      .0000        1.8796        .21776E-05** at limit **
   8  Prefactor      .0000        .23241       -.21885E-06** at limit **
   9  Prefactor     1.4689        1.0864        .21218E-07   -.63045E-03
  10  Prefactor     1.1722        2.0555       -.10126E-06    .25076E-02
  11  norm           .0000        .13026       -.79295E-08** at limit **
  12  norm          5.7019        2.8296        .74079E-07    .88503E-03
  13  Prefactor     8.9824        5.2516       -.11515E-06   -.14501E-02
  14  Prefactor     .19873E-07    2.2716       -.15280E-05** at limit **
  15  Prefactor     .11102E-08    1.3238       -.40758E-07** at limit **
  16  Prefactor     .14433E-08    1.2474       -.43303E-06** at limit **
  17  norm          3.5161        2.2231       -.85565E-08    .13893E-02
  18  Prefactor     .36082E-08    5.1136       -.39801E-06** at limit **
  19  norm          14.616        3.3431        .18700E-06    .64024E-02
  20  Prefactor      .0000        2.5853        .18671E-05** at limit **
  21  norm          .10603E-07    1.8705       -.17243E-05** at limit **
  22  norm          13.606        2.9988        .16127E-06   -.13426E-01
  23  norm          .31641E-07    6.4792       -.19311E-05** at limit **
  24  norm          .25202E-07    38.071       -.26443E-05** at limit **
  25  Prefactor     3.2686        1.9692       -.36291E-07    .45977E-02
  26  Prefactor     .31641E-07    3.2067       -.65507E-06** at limit **
  27  Normalizat    .79443        .13102       -.87529E-05   -.72300E-04
  28  Prefactor     1.1498        .15349        .10701E-04    .28328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71529e-08
  Prefactor  = 1.03293
  norm       = 26.982
  Prefactor  = 0.510817
  Prefactor  = 7.58282e-07
  norm       = 1.64993
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.46887
  Prefactor  = 1.17222
  norm       = 0
  norm       = 5.70194
  Prefactor  = 8.9824
  Prefactor  = 1.9873e-08
  Prefactor  = 1.11022e-09
  Prefactor  = 1.44329e-09
  norm       = 3.51607
  Prefactor  = 3.60822e-09
  norm       = 14.6157
  Prefactor  = 0
  norm       = 1.06026e-08
  norm       = 13.6064
  norm       = 3.16414e-08
  norm       = 2.52021e-08
  Prefactor  = 3.26863
  Prefactor  = 3.16414e-08
  Normalizat = 0.794426
  Prefactor  = 1.14976
 **********
 **   18 **HESSE 
 **********

 FCN=   15785.04     FROM HESSE     STATUS=OK           583 CALLS     2591 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17153E-07    26.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0329        .78474        .12449E-02   -1.5688    
   3  norm          26.982        1.8324        .19256E-03   -1.5604    
   4  Prefactor     .51082        1.8255        .77484E-03   -1.5694    
   5  Prefactor     .75828E-06    .71354        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6499        1.0483        .82178E-04   -1.5682    
   7  Prefactor      .0000        1.8783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .23270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4689        1.0890        .88642E-04   -1.5684    
  10  Prefactor     1.1722        2.5083        .53203E-02   -1.5686    
  11  norm           .0000        .48212E-01    .93312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7019        2.9070        .42049E-03   -1.5660    
  13  Prefactor     8.9824        5.2537        .33425E-03   -1.5648    
  14  Prefactor     .19873E-07    2.3712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-08    1.3314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14433E-08    1.2478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5161        2.2326        .54013E-03   -1.5670    
  18  Prefactor     .36082E-08    5.1337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.616        3.3438        .26169E-03   -1.5632    
  20  Prefactor      .0000        2.5929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10603E-07    1.9128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.606        3.0139        .27132E-03   -1.5634    
  23  norm          .31641E-07    6.5904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .25202E-07    37.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2686        1.9818        .55967E-03   -1.5672    
  26  Prefactor     .31641E-07    3.3616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .79443        .11025        .63228E-01   -1.0028    
  28  Prefactor     1.1498        .12856        .63704E-01   -.87892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72709e-08
Minuit parameter uncertainties:
  1  0.00133781
  2  0.784736
  3  1.83244
  4  1.82551
  5  0.00147113
  6  1.04831
  7  8.81013e-06
  8  4.53914e-06
  9  1.08902
  10  2.50826
  11  2.0153e-06
  12  2.90698
  13  5.25368
  14  0.000434154
  15  7.77264e-05
  16  8.45702e-05
  17  2.23257
  18  0.000272911
  19  3.34379
  20  1.48274e-05
  21  0.000285001
  22  3.01386
  23  0.000913411
  24  0.00194209
  25  1.98185
  26  0.000652358
  27  0.110279
  28  0.128595
e GAL_V02
Working on...
/lscratch/kocevski/28160462/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits.....................!
real 46.65
user 44.35
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28160462/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits', '/lscratch/kocevski/28160462/ft2_4FGL_J1231.7+2847_weekly_bin931.fits', expMap='/lscratch/kocevski/28160462/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', expCube='/lscratch/kocevski/28160462/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28160462/Model_4FGL_J1231.7+2847_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28160462/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28160462/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28160462/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28160462/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28160462/Model_4FGL_J1231.7+2847_weekly_bin931.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) = 15785.1506958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48162E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0327       1.0000          .0000       .10000E+07
     3 'norm      '    26.980       1.0000          .0000       .10000E+07
     4 'Prefactor '    .51228       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36004E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6496       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44206E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12185E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4691       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1718       1.0000          .0000       .10000E+07
    11 'norm      '    .11569E-06   1.0000          .0000       .10000E+07
    12 'norm      '    5.7000       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.9787       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17730E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .51888E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19607E-06   1.0000          .0000       .10000E+07
    17 'norm      '    3.5007       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16371E-05   1.0000          .0000       .10000E+07
    19 'norm      '    14.620       1.0000          .0000       .10000E+07
    20 'Prefactor '    .37287E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .24321E-04   1.0000          .0000       .10000E+07
    22 'norm      '    13.603       1.0000          .0000       .10000E+07
    23 'norm      '    .56256E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .11416E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.2709       1.0000          .0000       .10000E+07
    26 'Prefactor '    .37855E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .79453       1.0000         **********
 **   18 **HESSE 
 **********

 FCN=   15785.04     FROM HESSE     STATUS=OK           583 CALLS     2591 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17153E-07    26.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0329        .78474        .12449E-02   -1.5688    
   3  norm          26.982        1.8324        .19256E-03   -1.5604    
   4  Prefactor     .51082        1.8255        .77484E-03   -1.5694    
   5  Prefactor     .75828E-06    .71354        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6499        1.0483        .82178E-04   -1.5682    
   7  Prefactor      .0000        1.8783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .23270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4689        1.0890        .88642E-04   -1.5684    
  10  Prefactor     1.1722        2.5083        .53203E-02   -1.5686    
  11  norm           .0000        .48212E-01    .93312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7019        2.9070        .42049E-03   -1.5660    
  13  Prefactor     8.9824        5.2537        .33425E-03   -1.5648    
  14  Prefactor     .19873E-07    2.3712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-08    1.3314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14433E-08    1.2478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5161        2.2326        .54013E-03   -1.5670    
  18  Prefactor     .36082E-08    5.1337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.616        3.3438        .26169E-03   -1.5632    
  20  Prefactor      .0000        2.5929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10603E-07    1.9128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.606        3.0139        .27132E-03   -1.5634    
  23  norm          .31641E-07    6.5904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .25202E-07    37.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2686        1.9818        .55967E-03   -1.5672    
  26  Prefactor     .31641E-07    3.3616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .79443        .11025        .63228E-01   -1.0028    
  28  Prefactor     1.1498        .12856        .63704E-01   -.87892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72709e-08
Minuit parameter uncertainties:
  1  0.00133781
  2  0.784736
  3  1.83244
  4  1.82551
  5  0.00147113
  6  1.04831
  7  8.81013e-06
  8  4.53914e-06
  9  1.08902
  10  2.50826
  11  2.0153e-06
  12  2.90698
  13  5.25368
  14  0.000434154
  15  7.77264e-05
  16  8.45702e-05
  17  2.23257
  18  0.000272911
  19  3.34379
  20  1.48274e-05
  21  0.000285001
  22  3.01386
  23  0.000913411
  24  0.00194209
  25  1.98185
  26  0.000652358
  27  0.110279
  28  0.128595
 .10000E-01   10.000    
    28 'Prefactor '    1.1497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15785.04     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2008 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17153E-07    26.119        .35747E-05** at limit **
   2  Prefactor     1.0329        .80031        .37695E-07    .19737E-02
   3  norm          26.982        1.8299        .74657E-07    .23494E-01
   4  Prefactor     .51082        1.8287        .99246E-06    .23840E-02
   5  Prefactor     .75828E-06    .82196       -.99141E-06** at limit **
   6  norm          1.6499        1.0450       -.68502E-07   -.40470E-02
   7  Prefactor      .0000        1.8796        .21776E-05** at limit **
   8  Prefactor      .0000        .23241       -.21885E-06** at limit **
   9  Prefactor     1.4689        1.0864        .21218E-07   -.63045E-03
  10  Prefactor     1.1722        2.0555       -.10126E-06    .25076E-02
  11  norm           .0000        .13026       -.79295E-08** at limit **
  12  norm          5.7019        2.8296        .74079E-07    .88503E-03
  13  Prefactor     8.9824        5.2516       -.11515E-06   -.14501E-02
  14  Prefactor     .19873E-07    2.2716       -.15280E-05** at limit **
  15  Prefactor     .11102E-08    1.3238       -.40758E-07** at limit **
  16  Prefactor     .14433E-08    1.2474       -.43303E-06** at limit **
  17  norm          3.5161        2.2231       -.85565E-08    .13893E-02
  18  Prefactor     .36082E-08    5.1136       -.39801E-06** at limit **
  19  norm          14.616        3.3431        .18700E-06    .64024E-02
  20  Prefactor      .0000        2.5853        .18671E-05** at limit **
  21  norm          .10603E-07    1.8705       -.17243E-05** at limit **
  22  norm          13.606        2.9988        .16127E-06   -.13426E-01
  23  norm          .31641E-07    6.4792       -.19311E-05** at limit **
  24  norm          .25202E-07    38.071       -.26443E-05** at limit **
  25  Prefactor     3.2686        1.9692       -.36291E-07    .45977E-02
  26  Prefactor     .31641E-07    3.2067       -.65507E-06** at limit **
  27  Normalizat    .79443        .13102       -.87529E-05   -.72300E-04
  28  Prefactor     1.1498        .15349        .10701E-04    .28328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71529e-08
  Prefactor  = 1.03293
  norm       = 26.982
  Prefactor  = 0.510817
  Prefactor  = 7.58282e-07
  norm       = 1.64993
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.46887
  Prefactor  = 1.17222
  norm       = 0
  norm       = 5.70194
  Prefactor  = 8.9824
  Prefactor  = 1.9873e-08
  Prefactor  = 1.11022e-09
  Prefactor  = 1.44329e-09
  norm       = 3.51607
  Prefactor  = 3.60822e-09
  norm       = 14.6157
  Prefactor  = 0
  norm       = 1.06026e-08
  norm       = 13.6064
  norm       = 3.16414e-08
  norm       = 2.52021e-08
  Prefactor  = 3.26863
  Prefactor  = 3.16414e-08
  Normalizat = 0.794426
  Prefactor  = 1.14976
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.982e+00  5.254e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.150e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.944e-01  1.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 9.27e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9371713
delta logL = 0.100793481317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9288663
delta logL = 0.10909843851

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15784.93     FROM MIGRAD    STATUS=FAILED       108 CALLS      330 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.8435        .74469E-04   -.41433E-03
   2  Index         2.2504        .64532        .82020E-02    .94106E-03
   3  Normalizat    .78556        .13040        .28112E-03    .40684E-04
   4  Prefactor     1.1559        .15382        .28109E-03    .70779E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15784.93     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      404 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        6.8435        .11365E-04   -1.5654    
   2  Index         2.2504        .64532        .60035E-03   -.58227    
   3  Normalizat    .78556        .13040        .18188E-03   -1.0061    
   4  Prefactor     1.1559        .15382        .13914E-03   -.87700    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15784.93     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      436 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.0631        .29788E-05    .76331E-05
   2  Index         2.2504        .57179        .16404E-02    .37186E-04
   3  Normalizat    .78556        .13004        .11245E-04     .0000    
   4  Prefactor     1.1559        .15370        .11244E-04     .0000    
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24642
  Index      = 2.25039
  Normalizat = 0.785561
  Prefactor  = 1.15587
 **********
 **   18 **HESSE 
 **********

 FCN=   15785.04     FROM HESSE     STATUS=OK           583 CALLS     2591 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17153E-07    26.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0329        .78474        .12449E-02   -1.5688    
   3  norm          26.982        1.8324        .19256E-03   -1.5604    
   4  Prefactor     .51082        1.8255        .77484E-03   -1.5694    
   5  Prefactor     .75828E-06    .71354        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6499        1.0483        .82178E-04   -1.5682    
   7  Prefactor      .0000        1.8783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .23270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4689        1.0890        .88642E-04   -1.5684    
  10  Prefactor     1.1722        2.5083        .53203E-02   -1.5686    
  11  norm           .0000        .48212E-01    .93312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7019        2.9070        .42049E-03   -1.5660    
  13  Prefactor     8.9824        5.2537        .33425E-03   -1.5648    
  14  Prefactor     .19873E-07    2.3712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-08    1.3314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14433E-08    1.2478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5161        2.2326        .54013E-03   -1.5670    
  18  Prefactor     .36082E-08    5.1337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.616        3.3438        .26169E-03   -1.5632    
  20  Prefactor      .0000        2.5929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10603E-07    1.9128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.606        3.0139        .27132E-03   -1.5634    
  23  norm          .31641E-07    6.5904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .25202E-07    37.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2686        1.9818        .55967E-03   -1.5672    
  26  Prefactor     .31641E-07    3.3616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .79443        .11025        .63228E-01   -1.0028    
  28  Prefactor     1.1498        .12856        .63704E-01   -.87892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72709e-08
Minuit parameter uncertainties:
  1  0.00133781
  2  0.784736
  3  1.83244
  4  1.82551
  5  0.00147113
  6  1.04831
  7  8.81013e-06
  8  4.53914e-06
  9  1.08902
  10  2.50826
  11  2.0153e-06
  12  2.90698
  13  5.25368
  14  0.000434154
  15  7.77264e-05
  16  8.45702e-05
  17  2.23257
  18  0.000272911
  19  3.34379
  20  1.48274e-05
  21  0.000285001
  22  3.01386
  23  0.000913411
  24  0.00194209
  25  1.98185
  26  0.000652358
  27  0.110279
  28  0.128595
 **********
 **   18 **HESSE 
 **********

 FCN=   15784.93     FROM HESSE     STATUS=OK            25 CALLS      461 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        5.9719        .11915E-06   -1.5654    
   2  Index         2.2504        .56300        .32808E-03   -.58227    
   3  Normalizat    .78556        .12998        .11245E-04   -1.0061    
   4  Prefactor     1.1559        .15366        .11244E-04   -.87700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03907e-14
Minuit parameter uncertainties:
  1  5.97191
  2  0.564722
  3  0.130029
  4  0.153716
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.982e+00  5.254e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.150e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.944e-01  1.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 9.27e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9371713
delta logL = 0.100793481317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9288663
delta logL = 0.10909843851

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15784.93     FROM MIGRAD    STATUS=FAILED       108 CALLS      330 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.8435        .74469E-04   -.41433E-03
   2  Index         2.2504        .64532        .82020E-02    .94106E-03
   3  Normalizat    .78556        .13040        .28112E-03    .40684E-04
   4  Prefactor     1.1559        .15382        .28109E-03    .70779E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15784.93     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      404 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        6.8435        .11365E-04   -1.5654    
   2  Index         2.2504        .64532        .60035E-03   -.58227    
   3  Normalizat    .78556        .13040        .18188E-03   -1.0061    
   4  Prefactor     1.1559        .15382        .13914E-03   -.87700    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15784.93     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      436 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.0631        .29788E-05    .76331E-05
   2  Index         2.2504        .57179        .16404E-02    .37186E-04
   3  Normalizat    .78556        .13004        .11245E-04     .0000    
   4  Prefactor     1.1559        .15370        .11244E-04     .0000    
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24642
  Index      = 2.25039
  Normalizat = 0.785561
  Prefactor  = 1.15587
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) = 15784.928865
delta logL = 0.109099806414

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.246e+00  5.972e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  2.250e+00  5.647e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.156e+00  1.537e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.856e-01  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.08
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.25 +/- 0.56
Photon Flux (Free Index): 2.96e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.76e-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/28160198/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='1.22e-05', photon_flux_error='1.33e-08', dlogl='1.09e-01', energy_flux='1.59e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2026-06-09 10:16:27.606464', photon_index_error2='0.56', photon_index2='2.25', ts='6.88', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='8.76e-06', EG='0.79', time_epoch_completed='1781025387.61', return_code='0', job_id='28160198', GAL2='1.16', EG2='0.79', return_code2='0', energy_flux_error='9.27e-06', photon_flux_error2='2.23e-08', ts2='7.08', photon_index='2.00' WHERE bin_id='931' AND source_name='4FGL J1231.7+2847' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 10:16:27 PDT 2026

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

 FCN=   15784.93     FROM HESSE     STATUS=OK            25 CALLS      461 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        5.9719        .11915E-06   -1.5654    
   2  Index         2.2504        .56300        .32808E-03   -.58227    
   3  Normalizat    .78556        .12998        .11245E-04   -1.0061    
   4  Prefactor     1.1559        .15366        .11244E-04   -.87700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03907e-14
Minuit parameter uncertainties:
  1  5.97191
  2  0.564722
  3  0.130029
  4  0.153716
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) = 15784.928865
delta logL = 0.109099806414

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.246e+00  5.972e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  2.250e+00  5.647e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.156e+00  1.537e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.856e-01  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.08
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.25 +/- 0.56
Photon Flux (Free Index): 2.96e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.76e-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/28160269/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='1.22e-05', photon_flux_error='1.33e-08', dlogl='1.09e-01', energy_flux='1.59e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2026-06-09 10:16:31.199183', photon_index_error2='0.56', photon_index2='2.25', ts='6.88', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='8.76e-06', EG='0.79', time_epoch_completed='1781025391.2', return_code='0', job_id='28160269', GAL2='1.16', EG2='0.79', return_code2='0', energy_flux_error='9.27e-06', photon_flux_error2='2.23e-08', ts2='7.08', photon_index='2.00' WHERE bin_id='931' AND source_name='4FGL J1231.7+2847' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 10:16:31 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/28160698/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits.....................!
real 47.13
user 44.95
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28160698/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits', '/lscratch/kocevski/28160698/ft2_4FGL_J1231.7+2847_weekly_bin931.fits', expMap='/lscratch/kocevski/28160698/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', expCube='/lscratch/kocevski/28160698/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28160698/Model_4FGL_J1231.7+2847_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28160698/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28160698/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28160698/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28160698/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28160698/Model_4FGL_J1231.7+2847_weekly_bin931.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) = 15785.1506958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48162E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0327       1.0000          .0000       .10000E+07
     3 'norm      '    26.980       1.0000          .0000       .10000E+07
     4 'Prefactor '    .51228       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36004E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6496       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44206E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12185E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4691       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1718       1.0000          .0000       .10000E+07
    11 'norm      '    .11569E-06   1.0000          .0000       .10000E+07
    12 'norm      '    5.7000       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.9787       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17730E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .51888E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19607E-06   1.0000          .0000       .10000E+07
    17 'norm      '    3.5007       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16371E-05   1.0000          .0000       .10000E+07
    19 'norm      '    14.620       1.0000          .0000       .10000E+07
    20 'Prefactor '    .37287E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .24321E-04   1.0000          .0000       .10000E+07
    22 'norm      '    13.603       1.0000          .0000       .10000E+07
    23 'norm      '    .56256E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .11416E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.2709       1.0000          .0000       .10000E+07
    26 'Prefactor '    .37855E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .79453       1.0000        e GAL_V02
Working on...
/lscratch/kocevski/28160770/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits.....................!
real 46.41
user 44.77
sys 0.69

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28160770/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits', '/lscratch/kocevski/28160770/ft2_4FGL_J1231.7+2847_weekly_bin931.fits', expMap='/lscratch/kocevski/28160770/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', expCube='/lscratch/kocevski/28160770/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28160770/Model_4FGL_J1231.7+2847_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28160770/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28160770/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28160770/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28160770/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28160770/Model_4FGL_J1231.7+2847_weekly_bin931.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) = 15785.1506958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48162E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0327       1.0000          .0000       .10000E+07
     3 'norm      '    26.980       1.0000          .0000       .10000E+07
     4 'Prefactor '    .51228       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36004E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6496       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44206E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12185E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4691       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1718       1.0000          .0000       .10000E+07
    11 'norm      '    .11569E-06   1.0000          .0000       .10000E+07
    12 'norm      '    5.7000       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.9787       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17730E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .51888E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19607E-06   1.0000          .0000       .10000E+07
    17 'norm      '    3.5007       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16371E-05   1.0000          .0000       .10000E+07
    19 'norm      '    14.620       1.0000          .0000       .10000E+07
    20 'Prefactor '    .37287E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .24321E-04   1.0000          .0000       .10000E+07
    22 'norm      '    13.603       1.0000          .0000       .10000E+07
    23 'norm      '    .56256E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .11416E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.2709       1.0000          .0000       .10000E+07
    26 'Prefactor '    .37855E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .79453       1.0000        Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.982e+00  5.254e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.150e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.944e-01  1.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 9.27e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9371713
delta logL = 0.100793481317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9288663
delta logL = 0.10909843851

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15784.93     FROM MIGRAD    STATUS=FAILED       108 CALLS      330 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.8435        .74469E-04   -.41433E-03
   2  Index         2.2504        .64532        .82020E-02    .94106E-03
   3  Normalizat    .78556        .13040        .28112E-03    .40684E-04
   4  Prefactor     1.1559        .15382        .28109E-03    .70779E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15784.93     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      404 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        6.8435        .11365E-04   -1.5654    
   2  Index         2.2504        .64532        .60035E-03   -.58227    
   3  Normalizat    .78556        .13040        .18188E-03   -1.0061    
   4  Prefactor     1.1559        .15382        .13914E-03   -.87700    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15784.93     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      436 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.0631        .29788E-05    .76331E-05
   2  Index         2.2504        .57179        .16404E-02    .37186E-04
   3  Normalizat    .78556        .13004        .11245E-04     .0000    
   4  Prefactor     1.1559        .15370        .11244E-04     .0000    
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24642
  Index      = 2.25039
  Normalizat = 0.785561
  Prefactor  = 1.15587
 **********
 **   18 **HESSE 
 **********

 FCN=   15784.93     FROM HESSE     STATUS=OK            25 CALLS      461 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        5.9719        .11915E-06   -1.5654    
   2  Index         2.2504        .56300        .32808E-03   -.58227    
   3  Normalizat    .78556        .12998        .11245E-04   -1.0061    
   4  Prefactor     1.1559        .15366        .11244E-04   -.87700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03907e-14
Minuit parameter uncertainties:
  1  5.97191
  2  0.564722
  3  0.130029
  4  0.153716
 **********
 **   18 **HESSE 
 **********

 FCN=   15785.04     FROM HESSE     STATUS=OK           583 CALLS     2591 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17153E-07    26.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0329        .78474        .12449E-02   -1.5688    
   3  norm          26.982        1.8324        .19256E-03   -1.5604    
   4  Prefactor     .51082        1.8255        .77484E-03   -1.5694    
   5  Prefactor     .75828E-06    .71354        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6499        1.0483        .82178E-04   -1.5682    
   7  Prefactor      .0000        1.8783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .23270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4689        1.0890        .88642E-04   -1.5684    
  10  Prefactor     1.1722        2.5083        .53203E-02   -1.5686    
  11  norm           .0000        .48212E-01    .93312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7019        2.9070        .42049E-03   -1.5660    
  13  Prefactor     8.9824        5.2537        .33425E-03   -1.5648    
  14  Prefactor     .19873E-07    2.3712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-08    1.3314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14433E-08    1.2478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5161        2.2326        .54013E-03   -1.5670    
  18  Prefactor     .36082E-08    5.1337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.616        3.3438        .26169E-03   -1.5632    
  20  Prefactor      .0000        2.5929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10603E-07    1.9128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.606        3.0139        .27132E-03   -1.5634    
  23  norm          .31641E-07    6.5904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .25202E-07    37.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2686        1.9818        .55967E-03   -1.5672    
  26  Prefactor     .31641E-07    3.3616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .79443        .11025        .63228E-01   -1.0028    
  28  Prefactor     1.1498        .12856        .63704E-01   -.87892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72709e-08
Minuit parameter uncertainties:
  1  0.00133781
  2  0.784736
  3  1.83244
  4  1.82551
  5  0.00147113
  6  1.04831
  7  8.81013e-06
  8  4.53914e-06
  9  1.08902
  10  2.50826
  11  2.0153e-06
  12  2.90698
  13  5.25368
  14  0.000434154
  15  7.77264e-05
  16  8.45702e-05
  17  2.23257
  18  0.000272911
  19  3.34379
  20  1.48274e-05
  21  0.000285001
  22  3.01386
  23  0.000913411
  24  0.00194209
  25  1.98185
  26  0.000652358
  27  0.110279
  28  0.128595
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) = 15784.928865
delta logL = 0.109099806414

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.246e+00  5.972e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  2.250e+00  5.647e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.156e+00  1.537e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.856e-01  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.08
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.25 +/- 0.56
Photon Flux (Free Index): 2.96e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.76e-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/28160421/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='1.22e-05', photon_flux_error='1.33e-08', dlogl='1.09e-01', energy_flux='1.59e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2026-06-09 10:17:07.846263', photon_index_error2='0.56', photon_index2='2.25', ts='6.88', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='8.76e-06', EG='0.79', time_epoch_completed='1781025427.85', return_code='0', job_id='28160421', GAL2='1.16', EG2='0.79', return_code2='0', energy_flux_error='9.27e-06', photon_flux_error2='2.23e-08', ts2='7.08', photon_index='2.00' WHERE bin_id='931' AND source_name='4FGL J1231.7+2847' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 10:17:08 PDT 2026

 .10000E-01   10.000    
    28 'Prefactor '    1.1497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15785.04     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2008 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17153E-07    26.119        .35747E-05** at limit **
   2  Prefactor     1.0329        .80031        .37695E-07    .19737E-02
   3  norm          26.982        1.8299        .74657E-07    .23494E-01
   4  Prefactor     .51082        1.8287        .99246E-06    .23840E-02
   5  Prefactor     .75828E-06    .82196       -.99141E-06** at limit **
   6  norm          1.6499        1.0450       -.68502E-07   -.40470E-02
   7  Prefactor      .0000        1.8796        .21776E-05** at limit **
   8  Prefactor      .0000        .23241       -.21885E-06** at limit **
   9  Prefactor     1.4689        1.0864        .21218E-07   -.63045E-03
  10  Prefactor     1.1722        2.0555       -.10126E-06    .25076E-02
  11  norm           .0000        .13026       -.79295E-08** at limit **
  12  norm          5.7019        2.8296        .74079E-07    .88503E-03
  13  Prefactor     8.9824        5.2516       -.11515E-06   -.14501E-02
  14  Prefactor     .19873E-07    2.2716       -.15280E-05** at limit **
  15  Prefactor     .11102E-08    1.3238       -.40758E-07** at limit **
  16  Prefactor     .14433E-08    1.2474       -.43303E-06** at limit **
  17  norm          3.5161        2.2231       -.85565E-08    .13893E-02
  18  Prefactor     .36082E-08    5.1136       -.39801E-06** at limit **
  19  norm          14.616        3.3431        .18700E-06    .64024E-02
  20  Prefactor      .0000        2.5853        .18671E-05** at limit **
  21  norm          .10603E-07    1.8705       -.17243E-05** at limit **
  22  norm          13.606        2.9988        .16127E-06   -.13426E-01
  23  norm          .31641E-07    6.4792       -.19311E-05** at limit **
  24  norm          .25202E-07    38.071       -.26443E-05** at limit **
  25  Prefactor     3.2686        1.9692       -.36291E-07    .45977E-02
  26  Prefactor     .31641E-07    3.2067       -.65507E-06** at limit **
  27  Normalizat    .79443        .13102       -.87529E-05   -.72300E-04
  28  Prefactor     1.1498        .15349        .10701E-04    .28328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71529e-08
  Prefactor  = 1.03293
  norm       = 26.982
  Prefactor  = 0.510817
  Prefactor  = 7.58282e-07
  norm       = 1.64993
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.46887
  Prefactor  = 1.17222
  norm       = 0
  norm       = 5.70194
  Prefactor  = 8.9824
  Prefactor  = 1.9873e-08
  Prefactor  = 1.11022e-09
  Prefactor  = 1.44329e-09
  norm       = 3.51607
  Prefactor  = 3.60822e-09
  norm       = 14.6157
  Prefactor  = 0
  norm       = 1.06026e-08
  norm       = 13.6064
  norm       = 3.16414e-08
  norm       = 2.52021e-08
  Prefactor  = 3.26863
  Prefactor  = 3.16414e-08
  Normalizat = 0.794426
  Prefactor  = 1.14976
 .10000E-01   10.000    
    28 'Prefactor '    1.1497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15785.04     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2008 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17153E-07    26.119        .35747E-05** at limit **
   2  Prefactor     1.0329        .80031        .37695E-07    .19737E-02
   3  norm          26.982        1.8299        .74657E-07    .23494E-01
   4  Prefactor     .51082        1.8287        .99246E-06    .23840E-02
   5  Prefactor     .75828E-06    .82196       -.99141E-06** at limit **
   6  norm          1.6499        1.0450       -.68502E-07   -.40470E-02
   7  Prefactor      .0000        1.8796        .21776E-05** at limit **
   8  Prefactor      .0000        .23241       -.21885E-06** at limit **
   9  Prefactor     1.4689        1.0864        .21218E-07   -.63045E-03
  10  Prefactor     1.1722        2.0555       -.10126E-06    .25076E-02
  11  norm           .0000        .13026       -.79295E-08** at limit **
  12  norm          5.7019        2.8296        .74079E-07    .88503E-03
  13  Prefactor     8.9824        5.2516       -.11515E-06   -.14501E-02
  14  Prefactor     .19873E-07    2.2716       -.15280E-05** at limit **
  15  Prefactor     .11102E-08    1.3238       -.40758E-07** at limit **
  16  Prefactor     .14433E-08    1.2474       -.43303E-06** at limit **
  17  norm          3.5161        2.2231       -.85565E-08    .13893E-02
  18  Prefactor     .36082E-08    5.1136       -.39801E-06** at limit **
  19  norm          14.616        3.3431        .18700E-06    .64024E-02
  20  Prefactor      .0000        2.5853        .18671E-05** at limit **
  21  norm          .10603E-07    1.8705       -.17243E-05** at limit **
  22  norm          13.606        2.9988        .16127E-06   -.13426E-01
  23  norm          .31641E-07    6.4792       -.19311E-05** at limit **
  24  norm          .25202E-07    38.071       -.26443E-05** at limit **
  25  Prefactor     3.2686        1.9692       -.36291E-07    .45977E-02
  26  Prefactor     .31641E-07    3.2067       -.65507E-06** at limit **
  27  Normalizat    .79443        .13102       -.87529E-05   -.72300E-04
  28  Prefactor     1.1498        .15349        .10701E-04    .28328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71529e-08
  Prefactor  = 1.03293
  norm       = 26.982
  Prefactor  = 0.510817
  Prefactor  = 7.58282e-07
  norm       = 1.64993
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.46887
  Prefactor  = 1.17222
  norm       = 0
  norm       = 5.70194
  Prefactor  = 8.9824
  Prefactor  = 1.9873e-08
  Prefactor  = 1.11022e-09
  Prefactor  = 1.44329e-09
  norm       = 3.51607
  Prefactor  = 3.60822e-09
  norm       = 14.6157
  Prefactor  = 0
  norm       = 1.06026e-08
  norm       = 13.6064
  norm       = 3.16414e-08
  norm       = 2.52021e-08
  Prefactor  = 3.26863
  Prefactor  = 3.16414e-08
  Normalizat = 0.794426
  Prefactor  = 1.14976
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.982e+00  5.254e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.150e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.944e-01  1.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 9.27e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9371713
delta logL = 0.100793481317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9288663
delta logL = 0.10909843851

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15784.93     FROM MIGRAD    STATUS=FAILED       108 CALLS      330 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.8435        .74469E-04   -.41433E-03
   2  Index         2.2504        .64532        .82020E-02    .94106E-03
   3  Normalizat    .78556        .13040        .28112E-03    .40684E-04
   4  Prefactor     1.1559        .15382        .28109E-03    .70779E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15784.93     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      404 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        6.8435        .11365E-04   -1.5654    
   2  Index         2.2504        .64532        .60035E-03   -.58227    
   3  Normalizat    .78556        .13040        .18188E-03   -1.0061    
   4  Prefactor     1.1559        .15382        .13914E-03   -.87700    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15784.93     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      436 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.0631        .29788E-05    .76331E-05
   2  Index         2.2504        .57179        .16404E-02    .37186E-04
   3  Normalizat    .78556        .13004        .11245E-04     .0000    
   4  Prefactor     1.1559        .15370        .11244E-04     .0000    
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24642
  Index      = 2.25039
  Normalizat = 0.785561
  Prefactor  = 1.15587
 **********
 **   18 **HESSE 
 **********

 FCN=   15784.93     FROM HESSE     STATUS=OK            25 CALLS      461 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        5.9719        .11915E-06   -1.5654    
   2  Index         2.2504        .56300        .32808E-03   -.58227    
   3  Normalizat    .78556        .12998        .11245E-04   -1.0061    
   4  Prefactor     1.1559        .15366        .11244E-04   -.87700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03907e-14
Minuit parameter uncertainties:
  1  5.97191
  2  0.564722
  3  0.130029
  4  0.153716
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) = 15784.928865
delta logL = 0.109099806414

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.246e+00  5.972e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  2.250e+00  5.647e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.156e+00  1.537e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.856e-01  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.08
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.25 +/- 0.56
Photon Flux (Free Index): 2.96e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.76e-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/28160462/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='1.22e-05', photon_flux_error='1.33e-08', dlogl='1.09e-01', energy_flux='1.59e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2026-06-09 10:17:45.961020', photon_index_error2='0.56', photon_index2='2.25', ts='6.88', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='8.76e-06', EG='0.79', time_epoch_completed='1781025465.96', return_code='0', job_id='28160462', GAL2='1.16', EG2='0.79', return_code2='0', energy_flux_error='9.27e-06', photon_flux_error2='2.23e-08', ts2='7.08', photon_index='2.00' WHERE bin_id='931' AND source_name='4FGL J1231.7+2847' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 10:17:46 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/28161094/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits.....................!
real 46.77
user 44.84
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28161094/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits', '/lscratch/kocevski/28161094/ft2_4FGL_J1231.7+2847_weekly_bin931.fits', expMap='/lscratch/kocevski/28161094/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', expCube='/lscratch/kocevski/28161094/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28161094/Model_4FGL_J1231.7+2847_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28161094/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28161094/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28161094/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28161094/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28161094/Model_4FGL_J1231.7+2847_weekly_bin931.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) = 15785.1506958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48162E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0327       1.0000          .0000       .10000E+07
     3 'norm      '    26.980       1.0000          .0000       .10000E+07
     4 'Prefactor '    .51228       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36004E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6496       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44206E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12185E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4691       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1718       1.0000          .0000       .10000E+07
    11 'norm      '    .11569E-06   1.0000          .0000       .10000E+07
    12 'norm      '    5.7000       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.9787       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17730E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .51888E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19607E-06   1.0000          .0000       .10000E+07
    17 'norm      '    3.5007       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16371E-05   1.0000          .0000       .10000E+07
    19 'norm      '    14.620       1.0000          .0000       .10000E+07
    20 'Prefactor '    .37287E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .24321E-04   1.0000          .0000       .10000E+07
    22 'norm      '    13.603       1.0000          .0000       .10000E+07
    23 'norm      '    .56256E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .11416E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.2709       1.0000          .0000       .10000E+07
    26 'Prefactor '    .37855E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .79453       1.0000         **********
 **   18 **HESSE 
 **********

 FCN=   15785.04     FROM HESSE     STATUS=OK           583 CALLS     2591 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17153E-07    26.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0329        .78474        .12449E-02   -1.5688    
   3  norm          26.982        1.8324        .19256E-03   -1.5604    
   4  Prefactor     .51082        1.8255        .77484E-03   -1.5694    
   5  Prefactor     .75828E-06    .71354        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6499        1.0483        .82178E-04   -1.5682    
   7  Prefactor      .0000        1.8783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .23270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4689        1.0890        .88642E-04   -1.5684    
  10  Prefactor     1.1722        2.5083        .53203E-02   -1.5686    
  11  norm           .0000        .48212E-01    .93312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7019        2.9070        .42049E-03   -1.5660    
  13  Prefactor     8.9824        5.2537        .33425E-03   -1.5648    
  14  Prefactor     .19873E-07    2.3712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-08    1.3314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14433E-08    1.2478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5161        2.2326        .54013E-03   -1.5670    
  18  Prefactor     .36082E-08    5.1337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.616        3.3438        .26169E-03   -1.5632    
  20  Prefactor      .0000        2.5929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10603E-07    1.9128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.606        3.0139        .27132E-03   -1.5634    
  23  norm          .31641E-07    6.5904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .25202E-07    37.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2686        1.9818        .55967E-03   -1.5672    
  26  Prefactor     .31641E-07    3.3616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .79443        .11025        .63228E-01   -1.0028    
  28  Prefactor     1.1498        .12856        .63704E-01   -.87892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72709e-08
Minuit parameter uncertainties:
  1  0.00133781
  2  0.784736
  3  1.83244
  4  1.82551
  5  0.00147113
  6  1.04831
  7  8.81013e-06
  8  4.53914e-06
  9  1.08902
  10  2.50826
  11  2.0153e-06
  12  2.90698
  13  5.25368
  14  0.000434154
  15  7.77264e-05
  16  8.45702e-05
  17  2.23257
  18  0.000272911
  19  3.34379
  20  1.48274e-05
  21  0.000285001
  22  3.01386
  23  0.000913411
  24  0.00194209
  25  1.98185
  26  0.000652358
  27  0.110279
  28  0.128595
 **********
 **   18 **HESSE 
 **********

 FCN=   15785.04     FROM HESSE     STATUS=OK           583 CALLS     2591 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17153E-07    26.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0329        .78474        .12449E-02   -1.5688    
   3  norm          26.982        1.8324        .19256E-03   -1.5604    
   4  Prefactor     .51082        1.8255        .77484E-03   -1.5694    
   5  Prefactor     .75828E-06    .71354        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6499        1.0483        .82178E-04   -1.5682    
   7  Prefactor      .0000        1.8783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .23270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4689        1.0890        .88642E-04   -1.5684    
  10  Prefactor     1.1722        2.5083        .53203E-02   -1.5686    
  11  norm           .0000        .48212E-01    .93312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7019        2.9070        .42049E-03   -1.5660    
  13  Prefactor     8.9824        5.2537        .33425E-03   -1.5648    
  14  Prefactor     .19873E-07    2.3712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-08    1.3314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14433E-08    1.2478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5161        2.2326        .54013E-03   -1.5670    
  18  Prefactor     .36082E-08    5.1337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.616        3.3438        .26169E-03   -1.5632    
  20  Prefactor      .0000        2.5929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10603E-07    1.9128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.606        3.0139        .27132E-03   -1.5634    
  23  norm          .31641E-07    6.5904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .25202E-07    37.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2686        1.9818        .55967E-03   -1.5672    
  26  Prefactor     .31641E-07    3.3616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .79443        .11025        .63228E-01   -1.0028    
  28  Prefactor     1.1498        .12856        .63704E-01   -.87892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72709e-08
Minuit parameter uncertainties:
  1  0.00133781
  2  0.784736
  3  1.83244
  4  1.82551
  5  0.00147113
  6  1.04831
  7  8.81013e-06
  8  4.53914e-06
  9  1.08902
  10  2.50826
  11  2.0153e-06
  12  2.90698
  13  5.25368
  14  0.000434154
  15  7.77264e-05
  16  8.45702e-05
  17  2.23257
  18  0.000272911
  19  3.34379
  20  1.48274e-05
  21  0.000285001
  22  3.01386
  23  0.000913411
  24  0.00194209
  25  1.98185
  26  0.000652358
  27  0.110279
  28  0.128595
e GAL_V02
Working on...
/lscratch/kocevski/28161084/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits.....................!
real 49.31
user 47.18
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28161084/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits', '/lscratch/kocevski/28161084/ft2_4FGL_J1231.7+2847_weekly_bin931.fits', expMap='/lscratch/kocevski/28161084/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', expCube='/lscratch/kocevski/28161084/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28161084/Model_4FGL_J1231.7+2847_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28161084/ft1_filtered_4FGL_J1231.7+2847_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28161084/ft2_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28161084/expmap_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28161084/ltcube_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28161084/Model_4FGL_J1231.7+2847_weekly_bin931.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) = 15785.1506958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48162E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0327       1.0000          .0000       .10000E+07
     3 'norm      '    26.980       1.0000          .0000       .10000E+07
     4 'Prefactor '    .51228       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36004E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6496       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44206E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12185E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4691       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1718       1.0000          .0000       .10000E+07
    11 'norm      '    .11569E-06   1.0000          .0000       .10000E+07
    12 'norm      '    5.7000       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.9787       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17730E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .51888E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19607E-06   1.0000          .0000       .10000E+07
    17 'norm      '    3.5007       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16371E-05   1.0000          .0000       .10000E+07
    19 'norm      '    14.620       1.0000          .0000       .10000E+07
    20 'Prefactor '    .37287E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .24321E-04   1.0000          .0000       .10000E+07
    22 'norm      '    13.603       1.0000          .0000       .10000E+07
    23 'norm      '    .56256E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .11416E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.2709       1.0000          .0000       .10000E+07
    26 'Prefactor '    .37855E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .79453       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15785.04     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2008 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17153E-07    26.119        .35747E-05** at limit **
   2  Prefactor     1.0329        .80031        .37695E-07    .19737E-02
   3  norm          26.982        1.8299        .74657E-07    .23494E-01
   4  Prefactor     .51082        1.8287        .99246E-06    .23840E-02
   5  Prefactor     .75828E-06    .82196       -.99141E-06** at limit **
   6  norm          1.6499        1.0450       -.68502E-07   -.40470E-02
   7  Prefactor      .0000        1.8796        .21776E-05** at limit **
   8  Prefactor      .0000        .23241       -.21885E-06** at limit **
   9  Prefactor     1.4689        1.0864        .21218E-07   -.63045E-03
  10  Prefactor     1.1722        2.0555       -.10126E-06    .25076E-02
  11  norm           .0000        .13026       -.79295E-08** at limit **
  12  norm          5.7019        2.8296        .74079E-07    .88503E-03
  13  Prefactor     8.9824        5.2516       -.11515E-06   -.14501E-02
  14  Prefactor     .19873E-07    2.2716       -.15280E-05** at limit **
  15  Prefactor     .11102E-08    1.3238       -.40758E-07** at limit **
  16  Prefactor     .14433E-08    1.2474       -.43303E-06** at limit **
  17  norm          3.5161        2.2231       -.85565E-08    .13893E-02
  18  Prefactor     .36082E-08    5.1136       -.39801E-06** at limit **
  19  norm          14.616        3.3431        .18700E-06    .64024E-02
  20  Prefactor      .0000        2.5853        .18671E-05** at limit **
  21  norm          .10603E-07    1.8705       -.17243E-05** at limit **
  22  norm          13.606        2.9988        .16127E-06   -.13426E-01
  23  norm          .31641E-07    6.4792       -.19311E-05** at limit **
  24  norm          .25202E-07    38.071       -.26443E-05** at limit **
  25  Prefactor     3.2686        1.9692       -.36291E-07    .45977E-02
  26  Prefactor     .31641E-07    3.2067       -.65507E-06** at limit **
  27  Normalizat    .79443        .13102       -.87529E-05   -.72300E-04
  28  Prefactor     1.1498        .15349        .10701E-04    .28328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71529e-08
  Prefactor  = 1.03293
  norm       = 26.982
  Prefactor  = 0.510817
  Prefactor  = 7.58282e-07
  norm       = 1.64993
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.46887
  Prefactor  = 1.17222
  norm       = 0
  norm       = 5.70194
  Prefactor  = 8.9824
  Prefactor  = 1.9873e-08
  Prefactor  = 1.11022e-09
  Prefactor  = 1.44329e-09
  norm       = 3.51607
  Prefactor  = 3.60822e-09
  norm       = 14.6157
  Prefactor  = 0
  norm       = 1.06026e-08
  norm       = 13.6064
  norm       = 3.16414e-08
  norm       = 2.52021e-08
  Prefactor  = 3.26863
  Prefactor  = 3.16414e-08
  Normalizat = 0.794426
  Prefactor  = 1.14976
 .10000E-01   10.000    
    28 'Prefactor '    1.1497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15785.04     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2008 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17153E-07    26.119        .35747E-05** at limit **
   2  Prefactor     1.0329        .80031        .37695E-07    .19737E-02
   3  norm          26.982        1.8299        .74657E-07    .23494E-01
   4  Prefactor     .51082        1.8287        .99246E-06    .23840E-02
   5  Prefactor     .75828E-06    .82196       -.99141E-06** at limit **
   6  norm          1.6499        1.0450       -.68502E-07   -.40470E-02
   7  Prefactor      .0000        1.8796        .21776E-05** at limit **
   8  Prefactor      .0000        .23241       -.21885E-06** at limit **
   9  Prefactor     1.4689        1.0864        .21218E-07   -.63045E-03
  10  Prefactor     1.1722        2.0555       -.10126E-06    .25076E-02
  11  norm           .0000        .13026       -.79295E-08** at limit **
  12  norm          5.7019        2.8296        .74079E-07    .88503E-03
  13  Prefactor     8.9824        5.2516       -.11515E-06   -.14501E-02
  14  Prefactor     .19873E-07    2.2716       -.15280E-05** at limit **
  15  Prefactor     .11102E-08    1.3238       -.40758E-07** at limit **
  16  Prefactor     .14433E-08    1.2474       -.43303E-06** at limit **
  17  norm          3.5161        2.2231       -.85565E-08    .13893E-02
  18  Prefactor     .36082E-08    5.1136       -.39801E-06** at limit **
  19  norm          14.616        3.3431        .18700E-06    .64024E-02
  20  Prefactor      .0000        2.5853        .18671E-05** at limit **
  21  norm          .10603E-07    1.8705       -.17243E-05** at limit **
  22  norm          13.606        2.9988        .16127E-06   -.13426E-01
  23  norm          .31641E-07    6.4792       -.19311E-05** at limit **
  24  norm          .25202E-07    38.071       -.26443E-05** at limit **
  25  Prefactor     3.2686        1.9692       -.36291E-07    .45977E-02
  26  Prefactor     .31641E-07    3.2067       -.65507E-06** at limit **
  27  Normalizat    .79443        .13102       -.87529E-05   -.72300E-04
  28  Prefactor     1.1498        .15349        .10701E-04    .28328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71529e-08
  Prefactor  = 1.03293
  norm       = 26.982
  Prefactor  = 0.510817
  Prefactor  = 7.58282e-07
  norm       = 1.64993
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.46887
  Prefactor  = 1.17222
  norm       = 0
  norm       = 5.70194
  Prefactor  = 8.9824
  Prefactor  = 1.9873e-08
  Prefactor  = 1.11022e-09
  Prefactor  = 1.44329e-09
  norm       = 3.51607
  Prefactor  = 3.60822e-09
  norm       = 14.6157
  Prefactor  = 0
  norm       = 1.06026e-08
  norm       = 13.6064
  norm       = 3.16414e-08
  norm       = 2.52021e-08
  Prefactor  = 3.26863
  Prefactor  = 3.16414e-08
  Normalizat = 0.794426
  Prefactor  = 1.14976
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.982e+00  5.254e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.150e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.944e-01  1.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 9.27e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9371713
delta logL = 0.100793481317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9288663
delta logL = 0.10909843851

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15784.93     FROM MIGRAD    STATUS=FAILED       108 CALLS      330 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.8435        .74469E-04   -.41433E-03
   2  Index         2.2504        .64532        .82020E-02    .94106E-03
   3  Normalizat    .78556        .13040        .28112E-03    .40684E-04
   4  Prefactor     1.1559        .15382        .28109E-03    .70779E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15784.93     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      404 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        6.8435        .11365E-04   -1.5654    
   2  Index         2.2504        .64532        .60035E-03   -.58227    
   3  Normalizat    .78556        .13040        .18188E-03   -1.0061    
   4  Prefactor     1.1559        .15382        .13914E-03   -.87700    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15784.93     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      436 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.0631        .29788E-05    .76331E-05
   2  Index         2.2504        .57179        .16404E-02    .37186E-04
   3  Normalizat    .78556        .13004        .11245E-04     .0000    
   4  Prefactor     1.1559        .15370        .11244E-04     .0000    
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24642
  Index      = 2.25039
  Normalizat = 0.785561
  Prefactor  = 1.15587
 **********
 **   18 **HESSE 
 **********

 FCN=   15784.93     FROM HESSE     STATUS=OK            25 CALLS      461 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        5.9719        .11915E-06   -1.5654    
   2  Index         2.2504        .56300        .32808E-03   -.58227    
   3  Normalizat    .78556        .12998        .11245E-04   -1.0061    
   4  Prefactor     1.1559        .15366        .11244E-04   -.87700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03907e-14
Minuit parameter uncertainties:
  1  5.97191
  2  0.564722
  3  0.130029
  4  0.153716
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.982e+00  5.254e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.150e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.944e-01  1.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 9.27e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9371713
delta logL = 0.100793481317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9288663
delta logL = 0.10909843851

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15784.93     FROM MIGRAD    STATUS=FAILED       108 CALLS      330 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.8435        .74469E-04   -.41433E-03
   2  Index         2.2504        .64532        .82020E-02    .94106E-03
   3  Normalizat    .78556        .13040        .28112E-03    .40684E-04
   4  Prefactor     1.1559        .15382        .28109E-03    .70779E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15784.93     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      404 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        6.8435        .11365E-04   -1.5654    
   2  Index         2.2504        .64532        .60035E-03   -.58227    
   3  Normalizat    .78556        .13040        .18188E-03   -1.0061    
   4  Prefactor     1.1559        .15382        .13914E-03   -.87700    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15784.93     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      436 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.0631        .29788E-05    .76331E-05
   2  Index         2.2504        .57179        .16404E-02    .37186E-04
   3  Normalizat    .78556        .13004        .11245E-04     .0000    
   4  Prefactor     1.1559        .15370        .11244E-04     .0000    
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24642
  Index      = 2.25039
  Normalizat = 0.785561
  Prefactor  = 1.15587
 **********
 **   18 **HESSE 
 **********

 FCN=   15784.93     FROM HESSE     STATUS=OK            25 CALLS      461 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        5.9719        .11915E-06   -1.5654    
   2  Index         2.2504        .56300        .32808E-03   -.58227    
   3  Normalizat    .78556        .12998        .11245E-04   -1.0061    
   4  Prefactor     1.1559        .15366        .11244E-04   -.87700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03907e-14
Minuit parameter uncertainties:
  1  5.97191
  2  0.564722
  3  0.130029
  4  0.153716
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) = 15784.928865
delta logL = 0.109099806414

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.246e+00  5.972e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  2.250e+00  5.647e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.156e+00  1.537e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.856e-01  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.08
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.25 +/- 0.56
Photon Flux (Free Index): 2.96e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.76e-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/28160698/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='1.22e-05', photon_flux_error='1.33e-08', dlogl='1.09e-01', energy_flux='1.59e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2026-06-09 10:19:00.896107', photon_index_error2='0.56', photon_index2='2.25', ts='6.88', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='8.76e-06', EG='0.79', time_epoch_completed='1781025540.9', return_code='0', job_id='28160698', GAL2='1.16', EG2='0.79', return_code2='0', energy_flux_error='9.27e-06', photon_flux_error2='2.23e-08', ts2='7.08', photon_index='2.00' WHERE bin_id='931' AND source_name='4FGL J1231.7+2847' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 10:19:01 PDT 2026

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

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.928865
delta logL = 0.109099806414

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.246e+00  5.972e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  2.250e+00  5.647e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.156e+00  1.537e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.856e-01  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.08
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.25 +/- 0.56
Photon Flux (Free Index): 2.96e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.76e-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/28160770/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='1.22e-05', photon_flux_error='1.33e-08', dlogl='1.09e-01', energy_flux='1.59e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2026-06-09 10:19:03.155146', photon_index_error2='0.56', photon_index2='2.25', ts='6.88', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='8.76e-06', EG='0.79', time_epoch_completed='1781025543.16', return_code='0', job_id='28160770', GAL2='1.16', EG2='0.79', return_code2='0', energy_flux_error='9.27e-06', photon_flux_error2='2.23e-08', ts2='7.08', photon_index='2.00' WHERE bin_id='931' AND source_name='4FGL J1231.7+2847' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 10:19:03 PDT 2026

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

 FCN=   15785.04     FROM HESSE     STATUS=OK           583 CALLS     2591 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17153E-07    26.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0329        .78474        .12449E-02   -1.5688    
   3  norm          26.982        1.8324        .19256E-03   -1.5604    
   4  Prefactor     .51082        1.8255        .77484E-03   -1.5694    
   5  Prefactor     .75828E-06    .71354        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6499        1.0483        .82178E-04   -1.5682    
   7  Prefactor      .0000        1.8783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .23270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4689        1.0890        .88642E-04   -1.5684    
  10  Prefactor     1.1722        2.5083        .53203E-02   -1.5686    
  11  norm           .0000        .48212E-01    .93312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7019        2.9070        .42049E-03   -1.5660    
  13  Prefactor     8.9824        5.2537        .33425E-03   -1.5648    
  14  Prefactor     .19873E-07    2.3712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-08    1.3314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14433E-08    1.2478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5161        2.2326        .54013E-03   -1.5670    
  18  Prefactor     .36082E-08    5.1337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.616        3.3438        .26169E-03   -1.5632    
  20  Prefactor      .0000        2.5929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10603E-07    1.9128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.606        3.0139        .27132E-03   -1.5634    
  23  norm          .31641E-07    6.5904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .25202E-07    37.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2686        1.9818        .55967E-03   -1.5672    
  26  Prefactor     .31641E-07    3.3616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .79443        .11025        .63228E-01   -1.0028    
  28  Prefactor     1.1498        .12856        .63704E-01   -.87892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72709e-08
Minuit parameter uncertainties:
  1  0.00133781
  2  0.784736
  3  1.83244
  4  1.82551
  5  0.00147113
  6  1.04831
  7  8.81013e-06
  8  4.53914e-06
  9  1.08902
  10  2.50826
  11  2.0153e-06
  12  2.90698
  13  5.25368
  14  0.000434154
  15  7.77264e-05
  16  8.45702e-05
  17  2.23257
  18  0.000272911
  19  3.34379
  20  1.48274e-05
  21  0.000285001
  22  3.01386
  23  0.000913411
  24  0.00194209
  25  1.98185
  26  0.000652358
  27  0.110279
  28  0.128595
 **********
 **   18 **HESSE 
 **********

 FCN=   15785.04     FROM HESSE     STATUS=OK           583 CALLS     2591 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17153E-07    26.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0329        .78474        .12449E-02   -1.5688    
   3  norm          26.982        1.8324        .19256E-03   -1.5604    
   4  Prefactor     .51082        1.8255        .77484E-03   -1.5694    
   5  Prefactor     .75828E-06    .71354        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6499        1.0483        .82178E-04   -1.5682    
   7  Prefactor      .0000        1.8783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .23270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4689        1.0890        .88642E-04   -1.5684    
  10  Prefactor     1.1722        2.5083        .53203E-02   -1.5686    
  11  norm           .0000        .48212E-01    .93312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7019        2.9070        .42049E-03   -1.5660    
  13  Prefactor     8.9824        5.2537        .33425E-03   -1.5648    
  14  Prefactor     .19873E-07    2.3712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-08    1.3314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14433E-08    1.2478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5161        2.2326        .54013E-03   -1.5670    
  18  Prefactor     .36082E-08    5.1337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.616        3.3438        .26169E-03   -1.5632    
  20  Prefactor      .0000        2.5929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10603E-07    1.9128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.606        3.0139        .27132E-03   -1.5634    
  23  norm          .31641E-07    6.5904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .25202E-07    37.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2686        1.9818        .55967E-03   -1.5672    
  26  Prefactor     .31641E-07    3.3616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .79443        .11025        .63228E-01   -1.0028    
  28  Prefactor     1.1498        .12856        .63704E-01   -.87892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72709e-08
Minuit parameter uncertainties:
  1  0.00133781
  2  0.784736
  3  1.83244
  4  1.82551
  5  0.00147113
  6  1.04831
  7  8.81013e-06
  8  4.53914e-06
  9  1.08902
  10  2.50826
  11  2.0153e-06
  12  2.90698
  13  5.25368
  14  0.000434154
  15  7.77264e-05
  16  8.45702e-05
  17  2.23257
  18  0.000272911
  19  3.34379
  20  1.48274e-05
  21  0.000285001
  22  3.01386
  23  0.000913411
  24  0.00194209
  25  1.98185
  26  0.000652358
  27  0.110279
  28  0.128595
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.982e+00  5.254e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.150e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.944e-01  1.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 9.27e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9371713
delta logL = 0.100793481317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9288663
delta logL = 0.10909843851

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15784.93     FROM MIGRAD    STATUS=FAILED       108 CALLS      330 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.8435        .74469E-04   -.41433E-03
   2  Index         2.2504        .64532        .82020E-02    .94106E-03
   3  Normalizat    .78556        .13040        .28112E-03    .40684E-04
   4  Prefactor     1.1559        .15382        .28109E-03    .70779E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15784.93     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      404 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        6.8435        .11365E-04   -1.5654    
   2  Index         2.2504        .64532        .60035E-03   -.58227    
   3  Normalizat    .78556        .13040        .18188E-03   -1.0061    
   4  Prefactor     1.1559        .15382        .13914E-03   -.87700    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15784.93     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      436 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.0631        .29788E-05    .76331E-05
   2  Index         2.2504        .57179        .16404E-02    .37186E-04
   3  Normalizat    .78556        .13004        .11245E-04     .0000    
   4  Prefactor     1.1559        .15370        .11244E-04     .0000    
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24642
  Index      = 2.25039
  Normalizat = 0.785561
  Prefactor  = 1.15587
 **********
 **   18 **HESSE 
 **********

 FCN=   15784.93     FROM HESSE     STATUS=OK            25 CALLS      461 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        5.9719        .11915E-06   -1.5654    
   2  Index         2.2504        .56300        .32808E-03   -.58227    
   3  Normalizat    .78556        .12998        .11245E-04   -1.0061    
   4  Prefactor     1.1559        .15366        .11244E-04   -.87700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03907e-14
Minuit parameter uncertainties:
  1  5.97191
  2  0.564722
  3  0.130029
  4  0.153716
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) = 15784.928865
delta logL = 0.109099806414

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.246e+00  5.972e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  2.250e+00  5.647e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.156e+00  1.537e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.856e-01  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.08
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.25 +/- 0.56
Photon Flux (Free Index): 2.96e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.76e-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/28161094/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='1.22e-05', photon_flux_error='1.33e-08', dlogl='1.09e-01', energy_flux='1.59e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2026-06-09 10:20:11.890399', photon_index_error2='0.56', photon_index2='2.25', ts='6.88', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='8.76e-06', EG='0.79', time_epoch_completed='1781025611.89', return_code='0', job_id='28161094', GAL2='1.16', EG2='0.79', return_code2='0', energy_flux_error='9.27e-06', photon_flux_error2='2.23e-08', ts2='7.08', photon_index='2.00' WHERE bin_id='931' AND source_name='4FGL J1231.7+2847' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 10:20:12 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.982e+00  5.254e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.150e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.944e-01  1.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 9.27e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9371713
delta logL = 0.100793481317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15784.9288663
delta logL = 0.10909843851

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15784.93     FROM MIGRAD    STATUS=FAILED       108 CALLS      330 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.8435        .74469E-04   -.41433E-03
   2  Index         2.2504        .64532        .82020E-02    .94106E-03
   3  Normalizat    .78556        .13040        .28112E-03    .40684E-04
   4  Prefactor     1.1559        .15382        .28109E-03    .70779E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15784.93     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      404 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        6.8435        .11365E-04   -1.5654    
   2  Index         2.2504        .64532        .60035E-03   -.58227    
   3  Normalizat    .78556        .13040        .18188E-03   -1.0061    
   4  Prefactor     1.1559        .15382        .13914E-03   -.87700    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15784.93     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      436 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        6.0631        .29788E-05    .76331E-05
   2  Index         2.2504        .57179        .16404E-02    .37186E-04
   3  Normalizat    .78556        .13004        .11245E-04     .0000    
   4  Prefactor     1.1559        .15370        .11244E-04     .0000    
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24642
  Index      = 2.25039
  Normalizat = 0.785561
  Prefactor  = 1.15587
 **********
 **   18 **HESSE 
 **********

 FCN=   15784.93     FROM HESSE     STATUS=OK            25 CALLS      461 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        5.9719        .11915E-06   -1.5654    
   2  Index         2.2504        .56300        .32808E-03   -.58227    
   3  Normalizat    .78556        .12998        .11245E-04   -1.0061    
   4  Prefactor     1.1559        .15366        .11244E-04   -.87700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03907e-14
Minuit parameter uncertainties:
  1  5.97191
  2  0.564722
  3  0.130029
  4  0.153716
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) = 15784.928865
delta logL = 0.109099806414

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.246e+00  5.972e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  2.250e+00  5.647e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.156e+00  1.537e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  7.856e-01  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.08
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.25 +/- 0.56
Photon Flux (Free Index): 2.96e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.76e-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/28161084/cmap_HighResolution_802051201_802656001_4FGL_J1231.7+2847_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='1.22e-05', photon_flux_error='1.33e-08', dlogl='1.09e-01', energy_flux='1.59e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2026-06-09 10:20:33.323063', photon_index_error2='0.56', photon_index2='2.25', ts='6.88', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='8.76e-06', EG='0.79', time_epoch_completed='1781025633.32', return_code='0', job_id='28161084', GAL2='1.16', EG2='0.79', return_code2='0', energy_flux_error='9.27e-06', photon_flux_error2='2.23e-08', ts2='7.08', photon_index='2.00' WHERE bin_id='931' AND source_name='4FGL J1231.7+2847' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 10:20:33 PDT 2026

