/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

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

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


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin928
RA = 36.9544, Dec = 22.7775
tmin = 800236801, tmax = 800841601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='26844139', job_status='RUN', time_executed='2026-05-19 01:58:53.783007', time_epoch_executed='1779181133.78' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26844139

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26844139/ft1_4FGL_J0227.8+2246_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26844139/ft2_4FGL_J0227.8+2246_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26844139/ft1_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844139/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.48
user 4.70
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26844139/ft2_4FGL_J0227.8+2246_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26844139/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/26844139/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26844139/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 981

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


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin928
RA = 36.9544, Dec = 22.7775
tmin = 800236801, tmax = 800841601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='26844156', job_status='RUN', time_executed='2026-05-19 01:59:18.910356', time_epoch_executed='1779181158.91' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26844156

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26844156/ft1_4FGL_J0227.8+2246_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26844156/ft2_4FGL_J0227.8+2246_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26844156/ft1_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844156/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.71
user 3.94
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26844156/ft2_4FGL_J0227.8+2246_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26844156/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/26844156/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26844156/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 981

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


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin928
RA = 36.9544, Dec = 22.7775
tmin = 800236801, tmax = 800841601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='26844173', job_status='RUN', time_executed='2026-05-19 01:59:52.629961', time_epoch_executed='1779181192.63' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26844173

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26844173/ft1_4FGL_J0227.8+2246_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26844173/ft2_4FGL_J0227.8+2246_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26844173/ft1_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844173/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.63
user 4.84
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26844173/ft2_4FGL_J0227.8+2246_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26844173/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/26844173/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26844173/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 981

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


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin928
RA = 36.9544, Dec = 22.7775
tmin = 800236801, tmax = 800841601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='26844172', job_status='RUN', time_executed='2026-05-19 01:59:52.631669', time_epoch_executed='1779181192.63' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26844172

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26844172/ft1_4FGL_J0227.8+2246_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26844172/ft2_4FGL_J0227.8+2246_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26844172/ft1_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844172/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.59
user 4.85
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26844172/ft2_4FGL_J0227.8+2246_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26844172/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/26844172/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26844172/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 981

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


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin928
RA = 36.9544, Dec = 22.7775
tmin = 800236801, tmax = 800841601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='26844170', job_status='RUN', time_executed='2026-05-19 01:59:53.151887', time_epoch_executed='1779181193.15' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26844170

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26844170/ft1_4FGL_J0227.8+2246_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26844170/ft2_4FGL_J0227.8+2246_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26844170/ft1_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844170/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.84
user 4.08
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26844170/ft2_4FGL_J0227.8+2246_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26844170/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/26844170/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26844170/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 981

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


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin928
RA = 36.9544, Dec = 22.7775
tmin = 800236801, tmax = 800841601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='26844193', job_status='RUN', time_executed='2026-05-19 02:00:20.240108', time_epoch_executed='1779181220.24' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26844193

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26844193/ft1_4FGL_J0227.8+2246_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26844193/ft2_4FGL_J0227.8+2246_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26844193/ft1_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844193/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.69
user 4.87
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26844193/ft2_4FGL_J0227.8+2246_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26844193/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/26844193/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26844193/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 981

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


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin928
RA = 36.9544, Dec = 22.7775
tmin = 800236801, tmax = 800841601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='26844202', job_status='RUN', time_executed='2026-05-19 02:00:52.793409', time_epoch_executed='1779181252.79' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26844202

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26844202/ft1_4FGL_J0227.8+2246_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26844202/ft2_4FGL_J0227.8+2246_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26844202/ft1_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844202/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.45
user 4.71
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26844202/ft2_4FGL_J0227.8+2246_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26844202/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/26844202/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26844202/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 981

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26844202/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26844202/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26844139/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/26844139/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 19.44
user 18.74
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26844139/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844139/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26844139/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844139/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/26844139/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 70.99
user 66.28
sys 4.01

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26844139/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844139/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844139/cmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.84
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26844139/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844139/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844139/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.9544 yref=22.7775 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/26844139/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844139/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26844139/Model_4FGL_J0227.8+2246_weekly_bin928.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin928
RA = 36.9544, Dec = 22.7775
tmin = 800236801, tmax = 800841601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='26844217', job_status='RUN', time_executed='2026-05-19 02:00:54.618996', time_epoch_executed='1779181254.62' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26844217

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26844217/ft1_4FGL_J0227.8+2246_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26844217/ft2_4FGL_J0227.8+2246_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26844217/ft1_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844217/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.24
user 4.47
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26844217/ft2_4FGL_J0227.8+2246_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26844217/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/26844217/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26844217/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 981

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26844217/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26844217/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" Done.


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin928
RA = 36.9544, Dec = 22.7775
tmin = 800236801, tmax = 800841601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='26844203', job_status='RUN', time_executed='2026-05-19 02:00:52.339124', time_epoch_executed='1779181252.34' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26844203

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26844203/ft1_4FGL_J0227.8+2246_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26844203/ft2_4FGL_J0227.8+2246_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26844203/ft1_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844203/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.24
user 4.54
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26844203/ft2_4FGL_J0227.8+2246_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26844203/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/26844203/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26844203/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 981

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26844203/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26844203/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26844156/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/26844156/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 17.70
user 16.96
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26844156/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844156/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26844156/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844156/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/26844156/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 59.68
user 55.43
sys 3.59

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26844156/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844156/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844156/cmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.68
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26844156/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844156/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844156/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.9544 yref=22.7775 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.74
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26844156/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844156/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26844156/Model_4FGL_J0227.8+2246_weekly_bin928.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourceoutfile=/lscratch/kocevski/26844170/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/26844170/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 17.20
user 16.36
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26844170/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844170/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26844170/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844170/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/26844170/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 60.83
user 56.64
sys 3.67

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26844170/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844170/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844170/cmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.9544 yref=22.7775 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.87
user 0.22
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26844170/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844170/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844170/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.83
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26844170/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844170/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26844170/Model_4FGL_J0227.8+2246_weekly_bin928.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourceoutfile=/lscratch/kocevski/26844173/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/26844173/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 19.74
user 18.89
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26844173/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844173/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26844173/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844173/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/26844173/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 72.58
user 67.58
sys 4.21

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26844173/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844173/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844173/cmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.9544 yref=22.7775 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.98
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26844173/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844173/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844173/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.88
user 0.24
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26844173/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844173/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26844173/Model_4FGL_J0227.8+2246_weekly_bin928.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourceoutfile=/lscratch/kocevski/26844172/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/26844172/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 19.62
user 18.89
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26844172/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844172/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26844172/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844172/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/26844172/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 72.50
user 67.40
sys 4.23

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26844172/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844172/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844172/cmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.9544 yref=22.7775 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26844172/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844172/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844172/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.9544 yref=22.7775 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/26844172/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844172/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26844172/Model_4FGL_J0227.8+2246_weekly_bin928.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin928
RA = 36.9544, Dec = 22.7775
tmin = 800236801, tmax = 800841601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='26844250', job_status='RUN', time_executed='2026-05-19 02:02:53.765164', time_epoch_executed='1779181373.77' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26844250

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26844250/ft1_4FGL_J0227.8+2246_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26844250/ft2_4FGL_J0227.8+2246_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26844250/ft1_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844250/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.26
user 4.61
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26844250/ft2_4FGL_J0227.8+2246_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26844250/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/26844250/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26844250/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 981

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26844250/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26844250/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA"  GAL_V02
Working on...
/lscratch/kocevski/26844139/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits.....................!
real 57.55
user 55.95
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26844139/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits', '/lscratch/kocevski/26844139/ft2_4FGL_J0227.8+2246_weekly_bin928.fits', expMap='/lscratch/kocevski/26844139/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', expCube='/lscratch/kocevski/26844139/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26844139/Model_4FGL_J0227.8+2246_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26844139/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26844139/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26844139/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26844139/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26844139/Model_4FGL_J0227.8+2246_weekly_bin928.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33402E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0890       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1709       1.0000          .0000       .10000E+07
     4 'norm      '    .11648E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14690E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7655       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3101       1.0000          .0000       .10000E+07
     8 'norm      '    .81130E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24811E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    96.402       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30864E-07   1.0000          .0000       .10000E+07
    12 'norm      '    3.6172       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10678E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23570       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39750E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.653       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.047       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6573       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38316E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16179E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .48450E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.788       1.0000          .0000       .10000E+07
    23 'Normalizat'    .95546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10534.44     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1592 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82878E-07    11.991       -.20794E-06** at limit **
   2  norm          1.0902        .55983       -.40066E-08   -.17431E-02
   3  Prefactor     7.2376        8.4172        .41617E-07    .59306E-02
   4  norm           .0000        .88168        .51264E-07** at limit **
   5  Prefactor     .10103E-07    5.7811       -.34347E-06** at limit **
   6  Prefactor     7.8293        7.3907       -.21150E-06   -.12451E-02
   7  Prefactor     2.3061        4.1457        .38563E-07    .49236E-03
   8  norm          .14289E-04    59.024        .60597E-06** at limit **
   9  Prefactor     .27756E-09    27.014        .37455E-06** at limit **
  10  Prefactor     100.07        55.116        .19492E-06   -.13456E-01
  11  Prefactor     .32085E-07    4.2213       -.24553E-06** at limit **
  12  norm          3.6203        1.7484       -.13766E-08   -.56935E-03
  13  Prefactor     .11102E-09    3.0533        .87883E-07** at limit **
  14  norm          .23391        .24183       -.19545E-07** at limit **
  15  Prefactor     .25091E-07    25.345       -.57786E-06** at limit **
  16  Prefactor     30.648        14.546       -.97895E-07    .13597    
  17  Prefactor     10.699        7.3169       -.13111E-06   -.12396    
  18  Prefactor     1.6749        11.688        .48427E-07   -.58976E-04
  19  Prefactor     .14988E-08    6.2619        .24190E-06** at limit **
  20  Prefactor     .55511E-10    22.505        .19454E-06** at limit **
  21  norm          .75107E-07    2.0452       -.19983E-06** at limit **
  22  Prefactor     13.784        3.3422       -.26973E-07    .46402E-01
  23  Normalizat    .95293        .22601       -.57949E-06   -.83139E-04
  24  Prefactor     1.1797        .10051       -.20876E-06   -.17039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28781e-08
  norm       = 1.09024
  Prefactor  = 7.23758
  norm       = 0
  Prefactor  = 1.0103e-08
  Prefactor  = 7.82931
  Prefactor  = 2.30611
  norm       = 1.42895e-05
  Prefactor  = 2.77556e-10
  Prefactor  = 100.069
  Prefactor  = 3.20854e-08
  norm       = 3.62032
  Prefactor  = 1.11022e-10
  norm       = 0.233911
  Prefactor  = 2.5091e-08
  Prefactor  = 30.6479
  Prefactor  = 10.6986
  Prefactor  = 1.67491
  Prefactor  = 1.4988e-09
  Prefactor  = 5.55112e-11
  norm       = 7.51066e-08
  Prefactor  = 13.7843
  Normalizat = 0.952925
  Prefactor  = 1.17974
 GAL_V02
Working on...
/lscratch/kocevski/26844156/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits.....................!
real 47.43
user 45.86
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26844156/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits', '/lscratch/kocevski/26844156/ft2_4FGL_J0227.8+2246_weekly_bin928.fits', expMap='/lscratch/kocevski/26844156/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', expCube='/lscratch/kocevski/26844156/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26844156/Model_4FGL_J0227.8+2246_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26844156/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26844156/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26844156/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26844156/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26844156/Model_4FGL_J0227.8+2246_weekly_bin928.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33402E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0890       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1709       1.0000          .0000       .10000E+07
     4 'norm      '    .11648E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14690E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7655       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3101       1.0000          .0000       .10000E+07
     8 'norm      '    .81130E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24811E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    96.402       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30864E-07   1.0000          .0000       .10000E+07
    12 'norm      '    3.6172       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10678E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23570       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39750E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.653       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.047       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6573       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38316E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16179E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .48450E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.788       1.0000          .0000       .10000E+07
    23 'Normalizat'    .95546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10534.44     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1592 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82878E-07    11.991       -.20794E-06** at limit **
   2  norm          1.0902        .55983       -.40066E-08   -.17431E-02
   3  Prefactor     7.2376        8.4172        .41617E-07    .59306E-02
   4  norm           .0000        .88168        .51264E-07** at limit **
   5  Prefactor     .10103E-07    5.7811       -.34347E-06** at limit **
   6  Prefactor     7.8293        7.3907       -.21150E-06   -.12451E-02
   7  Prefactor     2.3061        4.1457        .38563E-07    .49236E-03
   8  norm          .14289E-04    59.024        .60597E-06** at limit **
   9  Prefactor     .27756E-09    27.014        .37455E-06** at limit **
  10  Prefactor     100.07        55.116        .19492E-06   -.13456E-01
  11  Prefactor     .32085E-07    4.2213       -.24553E-06** at limit **
  12  norm          3.6203        1.7484       -.13766E-08   -.56935E-03
  13  Prefactor     .11102E-09    3.0533        .87883E-07** at limit **
  14  norm          .23391        .24183       -.19545E-07** at limit **
  15  Prefactor     .25091E-07    25.345       -.57786E-06** at limit **
  16  Prefactor     30.648        14.546       -.97895E-07    .13597    
  17  Prefactor     10.699        7.3169       -.13111E-06   -.12396    
  18  Prefactor     1.6749        11.688        .48427E-07   -.58976E-04
  19  Prefactor     .14988E-08    6.2619        .24190E-06** at limit **
  20  Prefactor     .55511E-10    22.505        .19454E-06** at limit **
  21  norm          .75107E-07    2.0452       -.19983E-06** at limit **
  22  Prefactor     13.784        3.3422       -.26973E-07    .46402E-01
  23  Normalizat    .95293        .22601       -.57949E-06   -.83139E-04
  24  Prefactor     1.1797        .10051       -.20876E-06   -.17039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28781e-08
  norm       = 1.09024
  Prefactor  = 7.23758
  norm       = 0
  Prefactor  = 1.0103e-08
  Prefactor  = 7.82931
  Prefactor  = 2.30611
  norm       = 1.42895e-05
  Prefactor  = 2.77556e-10
  Prefactor  = 100.069
  Prefactor  = 3.20854e-08
  norm       = 3.62032
  Prefactor  = 1.11022e-10
  norm       = 0.233911
  Prefactor  = 2.5091e-08
  Prefactor  = 30.6479
  Prefactor  = 10.6986
  Prefactor  = 1.67491
  Prefactor  = 1.4988e-09
  Prefactor  = 5.55112e-11
  norm       = 7.51066e-08
  Prefactor  = 13.7843
  Normalizat = 0.952925
  Prefactor  = 1.17974
outfile=/lscratch/kocevski/26844193/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/26844193/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 19.68
user 18.83
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26844193/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844193/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26844193/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844193/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/26844193/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 72.51
user 67.63
sys 4.21

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26844193/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844193/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844193/cmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.9544 yref=22.7775 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.87
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26844193/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844193/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844193/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.88
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26844193/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844193/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26844193/Model_4FGL_J0227.8+2246_weekly_bin928.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin928
RA = 36.9544, Dec = 22.7775
tmin = 800236801, tmax = 800841601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='26844261', job_status='RUN', time_executed='2026-05-19 02:03:19.764394', time_epoch_executed='1779181399.76' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26844261

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26844261/ft1_4FGL_J0227.8+2246_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26844261/ft2_4FGL_J0227.8+2246_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26844261/ft1_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844261/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.29
user 4.55
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26844261/ft2_4FGL_J0227.8+2246_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26844261/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/26844261/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26844261/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 981

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26844261/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26844261/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26844202/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/26844202/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 21.06
user 20.31
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26844202/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844202/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26844202/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844202/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/26844202/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 68.27
user 63.61
sys 3.93

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26844202/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844202/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844202/cmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.84
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26844202/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844202/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844202/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.65
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26844202/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844202/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26844202/Model_4FGL_J0227.8+2246_weekly_bin928.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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

 FCN=   10534.44     FROM HESSE     STATUS=OK           451 CALLS     2043 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82878E-07    12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0902        .56486        .11470E-02   -1.5687    
   3  Prefactor     7.2376        8.4353        .37435E-03   -1.5654    
   4  norm           .0000        .88194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10103E-07    1.4105        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8293        7.3985        .35960E-03   -1.5652    
   7  Prefactor     2.3061        4.1745        .67478E-03   -1.5678    
   8  norm          .14289E-04    218.99        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    26.656        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.07        55.232        .10186E-03   -1.5508    
  11  Prefactor     .32085E-07    5.7118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6203        1.7516        .53099E-03   -1.5670    
  13  Prefactor     .11102E-09    3.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23391        .28006        .11172E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25091E-07    25.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.648        17.731        .18367E-03   -1.5597    
  17  Prefactor     10.699        39.264        .30119E-03   -1.5643    
  18  Prefactor     1.6749        11.717        .81939E-03   -1.5682    
  19  Prefactor     .14988E-08    6.6097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    22.465        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .75107E-07    5.3355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.784        11.283        .26949E-03   -1.5634    
  23  Normalizat    .95293        .20989        .92900E-01   -.94625    
  24  Prefactor     1.1797        .91715E-01    .35125E-01   -.86957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08924e-06
Minuit parameter uncertainties:
  1  0.00200322
  2  0.564858
  3  8.43535
  4  7.92298e-07
  5  0.000238773
  6  7.39846
  7  4.1745
  8  0.111882
  9  0.000167728
  10  55.232
  11  0.000855896
  12  1.75156
  13  3.90463e-05
  14  0.280062
  15  0.00159845
  16  17.7314
  17  39.2647
  18  8.85986
  19  0.000198372
  20  8.5849e-05
  21  0.00126631
  22  11.2829
  23  0.21007
  24  0.0917278
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.44     FROM HESSE     STATUS=OK           451 CALLS     2043 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82878E-07    12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0902        .56486        .11470E-02   -1.5687    
   3  Prefactor     7.2376        8.4353        .37435E-03   -1.5654    
   4  norm           .0000        .88194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10103E-07    1.4105        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8293        7.3985        .35960E-03   -1.5652    
   7  Prefactor     2.3061        4.1745        .67478E-03   -1.5678    
   8  norm          .14289E-04    218.99        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    26.656        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.07        55.232        .10186E-03   -1.5508    
  11  Prefactor     .32085E-07    5.7118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6203        1.7516        .53099E-03   -1.5670    
  13  Prefactor     .11102E-09    3.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23391        .28006        .11172E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25091E-07    25.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.648        17.731        .18367E-03   -1.5597    
  17  Prefactor     10.699        39.264        .30119E-03   -1.5643    
  18  Prefactor     1.6749        11.717        .81939E-03   -1.5682    
  19  Prefactor     .14988E-08    6.6097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    22.465        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .75107E-07    5.3355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.784        11.283        .26949E-03   -1.5634    
  23  Normalizat    .95293        .20989        .92900E-01   -.94625    
  24  Prefactor     1.1797        .91715E-01    .35125E-01   -.86957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08924e-06
Minuit parameter uncertainties:
  1  0.00200322
  2  0.564858
  3  8.43535
  4  7.92298e-07
  5  0.000238773
  6  7.39846
  7  4.1745
  8  0.111882
  9  0.000167728
  10  55.232
  11  0.000855896
  12  1.75156
  13  3.90463e-05
  14  0.280062
  15  0.00159845
  16  17.7314
  17  39.2647
  18  8.85986
  19  0.000198372
  20  8.5849e-05
  21  0.00126631
  22  11.2829
  23  0.21007
  24  0.0917278
number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin928
RA = 36.9544, Dec = 22.7775
tmin = 800236801, tmax = 800841601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='26844271', job_status='RUN', time_executed='2026-05-19 02:03:18.472619', time_epoch_executed='1779181398.47' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26844271

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26844271/ft1_4FGL_J0227.8+2246_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26844271/ft2_4FGL_J0227.8+2246_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26844271/ft1_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844271/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.82
user 4.14
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26844271/ft2_4FGL_J0227.8+2246_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26844271/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/26844271/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26844271/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 981

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26844271/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26844271/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26844217/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/26844217/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 18.85
user 17.98
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26844217/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844217/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26844217/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844217/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/26844217/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 67.81
user 62.89
sys 4.09

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26844217/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844217/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844217/cmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.79
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26844217/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844217/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844217/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.9544 yref=22.7775 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.87
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26844217/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844217/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26844217/Model_4FGL_J0227.8+2246_weekly_bin928.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourceoutfile=/lscratch/kocevski/26844203/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/26844203/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 18.59
user 17.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26844203/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844203/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26844203/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844203/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/26844203/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 68.91
user 63.76
sys 4.18

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26844203/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844203/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844203/cmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.88
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26844203/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844203/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844203/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.76
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26844203/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844203/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26844203/Model_4FGL_J0227.8+2246_weekly_bin928.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourceDone.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e+02  5.523e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.180e+00  9.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.529e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 36.954 22.777
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.98e-05

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) = 10534.431257
delta logL = 0.00584781464931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223514
delta logL = 0.0147533721811

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10534.42     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      282 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.40        96.961        .37900E-05    .26397E-03
   2  Index         2.0610        .51784        .65295E-02    .54034E-04
   3  Normalizat    .95792        .21697        .41054E-03   -.60036E-04
   4  Prefactor     1.1787        .10010        .17315E-03   -.18825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.399
  Index      = 2.06105
  Normalizat = 0.957916
  Prefactor  = 1.17867
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e+02  5.523e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.180e+00  9.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.529e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 36.954 22.777
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.98e-05

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) = 10534.431257
delta logL = 0.00584781464931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223514
delta logL = 0.0147533721811

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10534.42     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      282 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.40        96.961        .37900E-05    .26397E-03
   2  Index         2.0610        .51784        .65295E-02    .54034E-04
   3  Normalizat    .95792        .21697        .41054E-03   -.60036E-04
   4  Prefactor     1.1787        .10010        .17315E-03   -.18825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.399
  Index      = 2.06105
  Normalizat = 0.957916
  Prefactor  = 1.17867
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.42     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.40        89.005        .75800E-06   -1.5497    
   2  Index         2.0610        .47521        .26118E-03   -.62832    
   3  Normalizat    .95792        .21664        .16422E-04   -.94454    
   4  Prefactor     1.1787        .10008        .34630E-04   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53364e-11
Minuit parameter uncertainties:
  1  89.0057
  2  0.476308
  3  0.21684
  4  0.100098
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.42     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.40        89.005        .75800E-06   -1.5497    
   2  Index         2.0610        .47521        .26118E-03   -.62832    
   3  Normalizat    .95792        .21664        .16422E-04   -.94454    
   4  Prefactor     1.1787        .10008        .34630E-04   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53364e-11
Minuit parameter uncertainties:
  1  89.0057
  2  0.476308
  3  0.21684
  4  0.100098
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) = 10534.4223497
delta logL = 0.0147551021728

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.114e+02  8.901e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.061e+00  4.763e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.179e+00  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.579e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 36.954 22.777
Photon Index (Free Index): 2.06 +/- 0.48
Photon Flux (Free Index): 6.63e-08 +/- 4.84e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26844156/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.96e-05', photon_flux_error='3.95e-08', dlogl='1.48e-02', energy_flux='3.58e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2026-05-19 02:09:06.318827', photon_index_error2='0.48', photon_index2='2.06', ts='7.46', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.95', time_epoch_completed='1779181746.32', return_code='0', job_id='26844156', GAL2='1.18', EG2='0.96', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.84e-08', ts2='7.48', photon_index='2.14' WHERE bin_id='928' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 02:09:06 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) = 10534.4223497
delta logL = 0.0147551021728

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.114e+02  8.901e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.061e+00  4.763e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.179e+00  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.579e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 36.954 22.777
Photon Index (Free Index): 2.06 +/- 0.48
Photon Flux (Free Index): 6.63e-08 +/- 4.84e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26844139/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.96e-05', photon_flux_error='3.95e-08', dlogl='1.48e-02', energy_flux='3.58e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2026-05-19 02:09:07.160601', photon_index_error2='0.48', photon_index2='2.06', ts='7.46', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.95', time_epoch_completed='1779181747.16', return_code='0', job_id='26844139', GAL2='1.18', EG2='0.96', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.84e-08', ts2='7.48', photon_index='2.14' WHERE bin_id='928' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 02:09:07 PDT 2026

 GAL_V02
Working on...
/lscratch/kocevski/26844170/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits.....................!
real 48.89
user 47.16
sys 0.92

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26844170/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits', '/lscratch/kocevski/26844170/ft2_4FGL_J0227.8+2246_weekly_bin928.fits', expMap='/lscratch/kocevski/26844170/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', expCube='/lscratch/kocevski/26844170/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26844170/Model_4FGL_J0227.8+2246_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26844170/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26844170/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26844170/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26844170/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26844170/Model_4FGL_J0227.8+2246_weekly_bin928.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33402E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0890       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1709       1.0000          .0000       .10000E+07
     4 'norm      '    .11648E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14690E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7655       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3101       1.0000          .0000       .10000E+07
     8 'norm      '    .81130E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24811E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    96.402       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30864E-07   1.0000          .0000       .10000E+07
    12 'norm      '    3.6172       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10678E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23570       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39750E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.653       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.047       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6573       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38316E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16179E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .48450E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.788       1.0000          .0000       .10000E+07
    23 'Normalizat'    .95546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10534.44     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1592 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82878E-07    11.991       -.20794E-06** at limit **
   2  norm          1.0902        .55983       -.40066E-08   -.17431E-02
   3  Prefactor     7.2376        8.4172        .41617E-07    .59306E-02
   4  norm           .0000        .88168        .51264E-07** at limit **
   5  Prefactor     .10103E-07    5.7811       -.34347E-06** at limit **
   6  Prefactor     7.8293        7.3907       -.21150E-06   -.12451E-02
   7  Prefactor     2.3061        4.1457        .38563E-07    .49236E-03
   8  norm          .14289E-04    59.024        .60597E-06** at limit **
   9  Prefactor     .27756E-09    27.014        .37455E-06** at limit **
  10  Prefactor     100.07        55.116        .19492E-06   -.13456E-01
  11  Prefactor     .32085E-07    4.2213       -.24553E-06** at limit **
  12  norm          3.6203        1.7484       -.13766E-08   -.56935E-03
  13  Prefactor     .11102E-09    3.0533        .87883E-07** at limit **
  14  norm          .23391        .24183       -.19545E-07** at limit **
  15  Prefactor     .25091E-07    25.345       -.57786E-06** at limit **
  16  Prefactor     30.648        14.546       -.97895E-07    .13597    
  17  Prefactor     10.699        7.3169       -.13111E-06   -.12396    
  18  Prefactor     1.6749        11.688        .48427E-07   -.58976E-04
  19  Prefactor     .14988E-08    6.2619        .24190E-06** at limit **
  20  Prefactor     .55511E-10    22.505        .19454E-06** at limit **
  21  norm          .75107E-07    2.0452       -.19983E-06** at limit **
  22  Prefactor     13.784        3.3422       -.26973E-07    .46402E-01
  23  Normalizat    .95293        .22601       -.57949E-06   -.83139E-04
  24  Prefactor     1.1797        .10051       -.20876E-06   -.17039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28781e-08
  norm       = 1.09024
  Prefactor  = 7.23758
  norm       = 0
  Prefactor  = 1.0103e-08
  Prefactor  = 7.82931
  Prefactor  = 2.30611
  norm       = 1.42895e-05
  Prefactor  = 2.77556e-10
  Prefactor  = 100.069
  Prefactor  = 3.20854e-08
  norm       = 3.62032
  Prefactor  = 1.11022e-10
  norm       = 0.233911
  Prefactor  = 2.5091e-08
  Prefactor  = 30.6479
  Prefactor  = 10.6986
  Prefactor  = 1.67491
  Prefactor  = 1.4988e-09
  Prefactor  = 5.55112e-11
  norm       = 7.51066e-08
  Prefactor  = 13.7843
  Normalizat = 0.952925
  Prefactor  = 1.17974
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.44     FROM HESSE     STATUS=OK           451 CALLS     2043 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82878E-07    12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0902        .56486        .11470E-02   -1.5687    
   3  Prefactor     7.2376        8.4353        .37435E-03   -1.5654    
   4  norm           .0000        .88194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10103E-07    1.4105        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8293        7.3985        .35960E-03   -1.5652    
   7  Prefactor     2.3061        4.1745        .67478E-03   -1.5678    
   8  norm          .14289E-04    218.99        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    26.656        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.07        55.232        .10186E-03   -1.5508    
  11  Prefactor     .32085E-07    5.7118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6203        1.7516        .53099E-03   -1.5670    
  13  Prefactor     .11102E-09    3.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23391        .28006        .11172E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25091E-07    25.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.648        17.731        .18367E-03   -1.5597    
  17  Prefactor     10.699        39.264        .30119E-03   -1.5643    
  18  Prefactor     1.6749        11.717        .81939E-03   -1.5682    
  19  Prefactor     .14988E-08    6.6097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    22.465        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .75107E-07    5.3355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.784        11.283        .26949E-03   -1.5634    
  23  Normalizat    .95293        .20989        .92900E-01   -.94625    
  24  Prefactor     1.1797        .91715E-01    .35125E-01   -.86957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08924e-06
Minuit parameter uncertainties:
  1  0.00200322
  2  0.564858
  3  8.43535
  4  7.92298e-07
  5  0.000238773
  6  7.39846
  7  4.1745
  8  0.111882
  9  0.000167728
  10  55.232
  11  0.000855896
  12  1.75156
  13  3.90463e-05
  14  0.280062
  15  0.00159845
  16  17.7314
  17  39.2647
  18  8.85986
  19  0.000198372
  20  8.5849e-05
  21  0.00126631
  22  11.2829
  23  0.21007
  24  0.0917278
 GAL_V02
Working on...
/lscratch/kocevski/26844173/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits.....................!
real 57.01
user 55.55
sys 0.78

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26844173/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits', '/lscratch/kocevski/26844173/ft2_4FGL_J0227.8+2246_weekly_bin928.fits', expMap='/lscratch/kocevski/26844173/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', expCube='/lscratch/kocevski/26844173/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26844173/Model_4FGL_J0227.8+2246_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26844173/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26844173/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26844173/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26844173/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26844173/Model_4FGL_J0227.8+2246_weekly_bin928.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33402E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0890       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1709       1.0000          .0000       .10000E+07
     4 'norm      '    .11648E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14690E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7655       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3101       1.0000          .0000       .10000E+07
     8 'norm      '    .81130E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24811E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    96.402       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30864E-07   1.0000          .0000       .10000E+07
    12 'norm      '    3.6172       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10678E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23570       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39750E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.653       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.047       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6573       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38316E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16179E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .48450E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.788       1.0000          .0000       .10000E+07
    23 'Normalizat'    .95546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10534.44     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1592 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82878E-07    11.991       -.20794E-06** at limit **
   2  norm          1.0902        .55983       -.40066E-08   -.17431E-02
   3  Prefactor     7.2376        8.4172        .41617E-07    .59306E-02
   4  norm           .0000        .88168        .51264E-07** at limit **
   5  Prefactor     .10103E-07    5.7811       -.34347E-06** at limit **
   6  Prefactor     7.8293        7.3907       -.21150E-06   -.12451E-02
   7  Prefactor     2.3061        4.1457        .38563E-07    .49236E-03
   8  norm          .14289E-04    59.024        .60597E-06** at limit **
   9  Prefactor     .27756E-09    27.014        .37455E-06** at limit **
  10  Prefactor     100.07        55.116        .19492E-06   -.13456E-01
  11  Prefactor     .32085E-07    4.2213       -.24553E-06** at limit **
  12  norm          3.6203        1.7484       -.13766E-08   -.56935E-03
  13  Prefactor     .11102E-09    3.0533        .87883E-07** at limit **
  14  norm          .23391        .24183       -.19545E-07** at limit **
  15  Prefactor     .25091E-07    25.345       -.57786E-06** at limit **
  16  Prefactor     30.648        14.546       -.97895E-07    .13597    
  17  Prefactor     10.699        7.3169       -.13111E-06   -.12396    
  18  Prefactor     1.6749        11.688        .48427E-07   -.58976E-04
  19  Prefactor     .14988E-08    6.2619        .24190E-06** at limit **
  20  Prefactor     .55511E-10    22.505        .19454E-06** at limit **
  21  norm          .75107E-07    2.0452       -.19983E-06** at limit **
  22  Prefactor     13.784        3.3422       -.26973E-07    .46402E-01
  23  Normalizat    .95293        .22601       -.57949E-06   -.83139E-04
  24  Prefactor     1.1797        .10051       -.20876E-06   -.17039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28781e-08
  norm       = 1.09024
  Prefactor  = 7.23758
  norm       = 0
  Prefactor  = 1.0103e-08
  Prefactor  = 7.82931
  Prefactor  = 2.30611
  norm       = 1.42895e-05
  Prefactor  = 2.77556e-10
  Prefactor  = 100.069
  Prefactor  = 3.20854e-08
  norm       = 3.62032
  Prefactor  = 1.11022e-10
  norm       = 0.233911
  Prefactor  = 2.5091e-08
  Prefactor  = 30.6479
  Prefactor  = 10.6986
  Prefactor  = 1.67491
  Prefactor  = 1.4988e-09
  Prefactor  = 5.55112e-11
  norm       = 7.51066e-08
  Prefactor  = 13.7843
  Normalizat = 0.952925
  Prefactor  = 1.17974
 GAL_V02
Working on...
/lscratch/kocevski/26844172/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits.....................!
real 57.09
user 55.47
sys 0.81

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26844172/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits', '/lscratch/kocevski/26844172/ft2_4FGL_J0227.8+2246_weekly_bin928.fits', expMap='/lscratch/kocevski/26844172/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', expCube='/lscratch/kocevski/26844172/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26844172/Model_4FGL_J0227.8+2246_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26844172/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26844172/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26844172/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26844172/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26844172/Model_4FGL_J0227.8+2246_weekly_bin928.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33402E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0890       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1709       1.0000          .0000       .10000E+07
     4 'norm      '    .11648E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14690E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7655       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3101       1.0000          .0000       .10000E+07
     8 'norm      '    .81130E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24811E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    96.402       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30864E-07   1.0000          .0000       .10000E+07
    12 'norm      '    3.6172       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10678E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23570       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39750E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.653       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.047       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6573       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38316E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16179E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .48450E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.788       1.0000          .0000       .10000E+07
    23 'Normalizat'    .95546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10534.44     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1592 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82878E-07    11.991       -.20794E-06** at limit **
   2  norm          1.0902        .55983       -.40066E-08   -.17431E-02
   3  Prefactor     7.2376        8.4172        .41617E-07    .59306E-02
   4  norm           .0000        .88168        .51264E-07** at limit **
   5  Prefactor     .10103E-07    5.7811       -.34347E-06** at limit **
   6  Prefactor     7.8293        7.3907       -.21150E-06   -.12451E-02
   7  Prefactor     2.3061        4.1457        .38563E-07    .49236E-03
   8  norm          .14289E-04    59.024        .60597E-06** at limit **
   9  Prefactor     .27756E-09    27.014        .37455E-06** at limit **
  10  Prefactor     100.07        55.116        .19492E-06   -.13456E-01
  11  Prefactor     .32085E-07    4.2213       -.24553E-06** at limit **
  12  norm          3.6203        1.7484       -.13766E-08   -.56935E-03
  13  Prefactor     .11102E-09    3.0533        .87883E-07** at limit **
  14  norm          .23391        .24183       -.19545E-07** at limit **
  15  Prefactor     .25091E-07    25.345       -.57786E-06** at limit **
  16  Prefactor     30.648        14.546       -.97895E-07    .13597    
  17  Prefactor     10.699        7.3169       -.13111E-06   -.12396    
  18  Prefactor     1.6749        11.688        .48427E-07   -.58976E-04
  19  Prefactor     .14988E-08    6.2619        .24190E-06** at limit **
  20  Prefactor     .55511E-10    22.505        .19454E-06** at limit **
  21  norm          .75107E-07    2.0452       -.19983E-06** at limit **
  22  Prefactor     13.784        3.3422       -.26973E-07    .46402E-01
  23  Normalizat    .95293        .22601       -.57949E-06   -.83139E-04
  24  Prefactor     1.1797        .10051       -.20876E-06   -.17039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28781e-08
  norm       = 1.09024
  Prefactor  = 7.23758
  norm       = 0
  Prefactor  = 1.0103e-08
  Prefactor  = 7.82931
  Prefactor  = 2.30611
  norm       = 1.42895e-05
  Prefactor  = 2.77556e-10
  Prefactor  = 100.069
  Prefactor  = 3.20854e-08
  norm       = 3.62032
  Prefactor  = 1.11022e-10
  norm       = 0.233911
  Prefactor  = 2.5091e-08
  Prefactor  = 30.6479
  Prefactor  = 10.6986
  Prefactor  = 1.67491
  Prefactor  = 1.4988e-09
  Prefactor  = 5.55112e-11
  norm       = 7.51066e-08
  Prefactor  = 13.7843
  Normalizat = 0.952925
  Prefactor  = 1.17974
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e+02  5.523e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.180e+00  9.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.529e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 36.954 22.777
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.98e-05

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) = 10534.431257
delta logL = 0.00584781464931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223514
delta logL = 0.0147533721811

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10534.42     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      282 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.40        96.961        .37900E-05    .26397E-03
   2  Index         2.0610        .51784        .65295E-02    .54034E-04
   3  Normalizat    .95792        .21697        .41054E-03   -.60036E-04
   4  Prefactor     1.1787        .10010        .17315E-03   -.18825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.399
  Index      = 2.06105
  Normalizat = 0.957916
  Prefactor  = 1.17867
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.42     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.40        89.005        .75800E-06   -1.5497    
   2  Index         2.0610        .47521        .26118E-03   -.62832    
   3  Normalizat    .95792        .21664        .16422E-04   -.94454    
   4  Prefactor     1.1787        .10008        .34630E-04   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53364e-11
Minuit parameter uncertainties:
  1  89.0057
  2  0.476308
  3  0.21684
  4  0.100098
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) = 10534.4223497
delta logL = 0.0147551021728

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.114e+02  8.901e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.061e+00  4.763e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.179e+00  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.579e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 36.954 22.777
Photon Index (Free Index): 2.06 +/- 0.48
Photon Flux (Free Index): 6.63e-08 +/- 4.84e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26844170/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.96e-05', photon_flux_error='3.95e-08', dlogl='1.48e-02', energy_flux='3.58e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2026-05-19 02:10:16.936131', photon_index_error2='0.48', photon_index2='2.06', ts='7.46', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.95', time_epoch_completed='1779181816.94', return_code='0', job_id='26844170', GAL2='1.18', EG2='0.96', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.84e-08', ts2='7.48', photon_index='2.14' WHERE bin_id='928' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 02:10:17 PDT 2026

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

 FCN=   10534.44     FROM HESSE     STATUS=OK           451 CALLS     2043 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82878E-07    12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0902        .56486        .11470E-02   -1.5687    
   3  Prefactor     7.2376        8.4353        .37435E-03   -1.5654    
   4  norm           .0000        .88194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10103E-07    1.4105        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8293        7.3985        .35960E-03   -1.5652    
   7  Prefactor     2.3061        4.1745        .67478E-03   -1.5678    
   8  norm          .14289E-04    218.99        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    26.656        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.07        55.232        .10186E-03   -1.5508    
  11  Prefactor     .32085E-07    5.7118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6203        1.7516        .53099E-03   -1.5670    
  13  Prefactor     .11102E-09    3.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23391        .28006        .11172E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25091E-07    25.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.648        17.731        .18367E-03   -1.5597    
  17  Prefactor     10.699        39.264        .30119E-03   -1.5643    
  18  Prefactor     1.6749        11.717        .81939E-03   -1.5682    
  19  Prefactor     .14988E-08    6.6097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    22.465        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .75107E-07    5.3355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.784        11.283        .26949E-03   -1.5634    
  23  Normalizat    .95293        .20989        .92900E-01   -.94625    
  24  Prefactor     1.1797        .91715E-01    .35125E-01   -.86957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08924e-06
Minuit parameter uncertainties:
  1  0.00200322
  2  0.564858
  3  8.43535
  4  7.92298e-07
  5  0.000238773
  6  7.39846
  7  4.1745
  8  0.111882
  9  0.000167728
  10  55.232
  11  0.000855896
  12  1.75156
  13  3.90463e-05
  14  0.280062
  15  0.00159845
  16  17.7314
  17  39.2647
  18  8.85986
  19  0.000198372
  20  8.5849e-05
  21  0.00126631
  22  11.2829
  23  0.21007
  24  0.0917278
 GAL_V02
Working on...
/lscratch/kocevski/26844193/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits.....................!
real 57.73
user 56.19
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26844193/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits', '/lscratch/kocevski/26844193/ft2_4FGL_J0227.8+2246_weekly_bin928.fits', expMap='/lscratch/kocevski/26844193/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', expCube='/lscratch/kocevski/26844193/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26844193/Model_4FGL_J0227.8+2246_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26844193/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26844193/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26844193/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26844193/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26844193/Model_4FGL_J0227.8+2246_weekly_bin928.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33402E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0890       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1709       1.0000          .0000       .10000E+07
     4 'norm      '    .11648E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14690E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7655       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3101       1.0000          .0000       .10000E+07
     8 'norm      '    .81130E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24811E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    96.402       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30864E-07   1.0000          .0000       .10000E+07
    12 'norm      '    3.6172       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10678E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23570       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39750E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.653       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.047       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6573       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38316E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16179E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .48450E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.788       1.0000          .0000       .10000E+07
    23 'Normalizat'    .95546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10534.44     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1592 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82878E-07    11.991       -.20794E-06** at limit **
   2  norm          1.0902        .55983       -.40066E-08   -.17431E-02
   3  Prefactor     7.2376        8.4172        .41617E-07    .59306E-02
   4  norm           .0000        .88168        .51264E-07** at limit **
   5  Prefactor     .10103E-07    5.7811       -.34347E-06** at limit **
   6  Prefactor     7.8293        7.3907       -.21150E-06   -.12451E-02
   7  Prefactor     2.3061        4.1457        .38563E-07    .49236E-03
   8  norm          .14289E-04    59.024        .60597E-06** at limit **
   9  Prefactor     .27756E-09    27.014        .37455E-06** at limit **
  10  Prefactor     100.07        55.116        .19492E-06   -.13456E-01
  11  Prefactor     .32085E-07    4.2213       -.24553E-06** at limit **
  12  norm          3.6203        1.7484       -.13766E-08   -.56935E-03
  13  Prefactor     .11102E-09    3.0533        .87883E-07** at limit **
  14  norm          .23391        .24183       -.19545E-07** at limit **
  15  Prefactor     .25091E-07    25.345       -.57786E-06** at limit **
  16  Prefactor     30.648        14.546       -.97895E-07    .13597    
  17  Prefactor     10.699        7.3169       -.13111E-06   -.12396    
  18  Prefactor     1.6749        11.688        .48427E-07   -.58976E-04
  19  Prefactor     .14988E-08    6.2619        .24190E-06** at limit **
  20  Prefactor     .55511E-10    22.505        .19454E-06** at limit **
  21  norm          .75107E-07    2.0452       -.19983E-06** at limit **
  22  Prefactor     13.784        3.3422       -.26973E-07    .46402E-01
  23  Normalizat    .95293        .22601       -.57949E-06   -.83139E-04
  24  Prefactor     1.1797        .10051       -.20876E-06   -.17039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28781e-08
  norm       = 1.09024
  Prefactor  = 7.23758
  norm       = 0
  Prefactor  = 1.0103e-08
  Prefactor  = 7.82931
  Prefactor  = 2.30611
  norm       = 1.42895e-05
  Prefactor  = 2.77556e-10
  Prefactor  = 100.069
  Prefactor  = 3.20854e-08
  norm       = 3.62032
  Prefactor  = 1.11022e-10
  norm       = 0.233911
  Prefactor  = 2.5091e-08
  Prefactor  = 30.6479
  Prefactor  = 10.6986
  Prefactor  = 1.67491
  Prefactor  = 1.4988e-09
  Prefactor  = 5.55112e-11
  norm       = 7.51066e-08
  Prefactor  = 13.7843
  Normalizat = 0.952925
  Prefactor  = 1.17974
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.44     FROM HESSE     STATUS=OK           451 CALLS     2043 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82878E-07    12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0902        .56486        .11470E-02   -1.5687    
   3  Prefactor     7.2376        8.4353        .37435E-03   -1.5654    
   4  norm           .0000        .88194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10103E-07    1.4105        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8293        7.3985        .35960E-03   -1.5652    
   7  Prefactor     2.3061        4.1745        .67478E-03   -1.5678    
   8  norm          .14289E-04    218.99        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    26.656        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.07        55.232        .10186E-03   -1.5508    
  11  Prefactor     .32085E-07    5.7118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6203        1.7516        .53099E-03   -1.5670    
  13  Prefactor     .11102E-09    3.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23391        .28006        .11172E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25091E-07    25.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.648        17.731        .18367E-03   -1.5597    
  17  Prefactor     10.699        39.264        .30119E-03   -1.5643    
  18  Prefactor     1.6749        11.717        .81939E-03   -1.5682    
  19  Prefactor     .14988E-08    6.6097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    22.465        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .75107E-07    5.3355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.784        11.283        .26949E-03   -1.5634    
  23  Normalizat    .95293        .20989        .92900E-01   -.94625    
  24  Prefactor     1.1797        .91715E-01    .35125E-01   -.86957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08924e-06
Minuit parameter uncertainties:
  1  0.00200322
  2  0.564858
  3  8.43535
  4  7.92298e-07
  5  0.000238773
  6  7.39846
  7  4.1745
  8  0.111882
  9  0.000167728
  10  55.232
  11  0.000855896
  12  1.75156
  13  3.90463e-05
  14  0.280062
  15  0.00159845
  16  17.7314
  17  39.2647
  18  8.85986
  19  0.000198372
  20  8.5849e-05
  21  0.00126631
  22  11.2829
  23  0.21007
  24  0.0917278
 GAL_V02
Working on...
/lscratch/kocevski/26844202/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits.....................!
real 54.62
user 52.91
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26844202/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits', '/lscratch/kocevski/26844202/ft2_4FGL_J0227.8+2246_weekly_bin928.fits', expMap='/lscratch/kocevski/26844202/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', expCube='/lscratch/kocevski/26844202/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26844202/Model_4FGL_J0227.8+2246_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26844202/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26844202/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26844202/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26844202/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26844202/Model_4FGL_J0227.8+2246_weekly_bin928.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33402E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0890       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1709       1.0000          .0000       .10000E+07
     4 'norm      '    .11648E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14690E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7655       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3101       1.0000          .0000       .10000E+07
     8 'norm      '    .81130E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24811E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    96.402       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30864E-07   1.0000          .0000       .10000E+07
    12 'norm      '    3.6172       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10678E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23570       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39750E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.653       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.047       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6573       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38316E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16179E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .48450E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.788       1.0000          .0000       .10000E+07
    23 'Normalizat'    .95546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10534.44     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1592 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82878E-07    11.991       -.20794E-06** at limit **
   2  norm          1.0902        .55983       -.40066E-08   -.17431E-02
   3  Prefactor     7.2376        8.4172        .41617E-07    .59306E-02
   4  norm           .0000        .88168        .51264E-07** at limit **
   5  Prefactor     .10103E-07    5.7811       -.34347E-06** at limit **
   6  Prefactor     7.8293        7.3907       -.21150E-06   -.12451E-02
   7  Prefactor     2.3061        4.1457        .38563E-07    .49236E-03
   8  norm          .14289E-04    59.024        .60597E-06** at limit **
   9  Prefactor     .27756E-09    27.014        .37455E-06** at limit **
  10  Prefactor     100.07        55.116        .19492E-06   -.13456E-01
  11  Prefactor     .32085E-07    4.2213       -.24553E-06** at limit **
  12  norm          3.6203        1.7484       -.13766E-08   -.56935E-03
  13  Prefactor     .11102E-09    3.0533        .87883E-07** at limit **
  14  norm          .23391        .24183       -.19545E-07** at limit **
  15  Prefactor     .25091E-07    25.345       -.57786E-06** at limit **
  16  Prefactor     30.648        14.546       -.97895E-07    .13597    
  17  Prefactor     10.699        7.3169       -.13111E-06   -.12396    
  18  Prefactor     1.6749        11.688        .48427E-07   -.58976E-04
  19  Prefactor     .14988E-08    6.2619        .24190E-06** at limit **
  20  Prefactor     .55511E-10    22.505        .19454E-06** at limit **
  21  norm          .75107E-07    2.0452       -.19983E-06** at limit **
  22  Prefactor     13.784        3.3422       -.26973E-07    .46402E-01
  23  Normalizat    .95293        .22601       -.57949E-06   -.83139E-04
  24  Prefactor     1.1797        .10051       -.20876E-06   -.17039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28781e-08
  norm       = 1.09024
  Prefactor  = 7.23758
  norm       = 0
  Prefactor  = 1.0103e-08
  Prefactor  = 7.82931
  Prefactor  = 2.30611
  norm       = 1.42895e-05
  Prefactor  = 2.77556e-10
  Prefactor  = 100.069
  Prefactor  = 3.20854e-08
  norm       = 3.62032
  Prefactor  = 1.11022e-10
  norm       = 0.233911
  Prefactor  = 2.5091e-08
  Prefactor  = 30.6479
  Prefactor  = 10.6986
  Prefactor  = 1.67491
  Prefactor  = 1.4988e-09
  Prefactor  = 5.55112e-11
  norm       = 7.51066e-08
  Prefactor  = 13.7843
  Normalizat = 0.952925
  Prefactor  = 1.17974
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e+02  5.523e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.180e+00  9.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.529e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 36.954 22.777
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.98e-05

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) = 10534.431257
delta logL = 0.00584781464931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223514
delta logL = 0.0147533721811

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10534.42     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      282 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.40        96.961        .37900E-05    .26397E-03
   2  Index         2.0610        .51784        .65295E-02    .54034E-04
   3  Normalizat    .95792        .21697        .41054E-03   -.60036E-04
   4  Prefactor     1.1787        .10010        .17315E-03   -.18825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.399
  Index      = 2.06105
  Normalizat = 0.957916
  Prefactor  = 1.17867
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.42     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.40        89.005        .75800E-06   -1.5497    
   2  Index         2.0610        .47521        .26118E-03   -.62832    
   3  Normalizat    .95792        .21664        .16422E-04   -.94454    
   4  Prefactor     1.1787        .10008        .34630E-04   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53364e-11
Minuit parameter uncertainties:
  1  89.0057
  2  0.476308
  3  0.21684
  4  0.100098
 GAL_V02
Working on...
/lscratch/kocevski/26844217/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits.....................!
real 51.98
user 50.68
sys 0.58

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26844217/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits', '/lscratch/kocevski/26844217/ft2_4FGL_J0227.8+2246_weekly_bin928.fits', expMap='/lscratch/kocevski/26844217/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', expCube='/lscratch/kocevski/26844217/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26844217/Model_4FGL_J0227.8+2246_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26844217/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26844217/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26844217/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26844217/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26844217/Model_4FGL_J0227.8+2246_weekly_bin928.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33402E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0890       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1709       1.0000          .0000       .10000E+07
     4 'norm      '    .11648E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14690E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7655       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3101       1.0000          .0000       .10000E+07
     8 'norm      '    .81130E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24811E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    96.402       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30864E-07   1.0000          .0000       .10000E+07
    12 'norm      '    3.6172       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10678E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23570       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39750E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.653       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.047       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6573       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38316E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16179E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .48450E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.788       1.0000          .0000       .10000E+07
    23 'Normalizat'    .95546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10534.44     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1592 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82878E-07    11.991       -.20794E-06** at limit **
   2  norm          1.0902        .55983       -.40066E-08   -.17431E-02
   3  Prefactor     7.2376        8.4172        .41617E-07    .59306E-02
   4  norm           .0000        .88168        .51264E-07** at limit **
   5  Prefactor     .10103E-07    5.7811       -.34347E-06** at limit **
   6  Prefactor     7.8293        7.3907       -.21150E-06   -.12451E-02
   7  Prefactor     2.3061        4.1457        .38563E-07    .49236E-03
   8  norm          .14289E-04    59.024        .60597E-06** at limit **
   9  Prefactor     .27756E-09    27.014        .37455E-06** at limit **
  10  Prefactor     100.07        55.116        .19492E-06   -.13456E-01
  11  Prefactor     .32085E-07    4.2213       -.24553E-06** at limit **
  12  norm          3.6203        1.7484       -.13766E-08   -.56935E-03
  13  Prefactor     .11102E-09    3.0533        .87883E-07** at limit **
  14  norm          .23391        .24183       -.19545E-07** at limit **
  15  Prefactor     .25091E-07    25.345       -.57786E-06** at limit **
  16  Prefactor     30.648        14.546       -.97895E-07    .13597    
  17  Prefactor     10.699        7.3169       -.13111E-06   -.12396    
  18  Prefactor     1.6749        11.688        .48427E-07   -.58976E-04
  19  Prefactor     .14988E-08    6.2619        .24190E-06** at limit **
  20  Prefactor     .55511E-10    22.505        .19454E-06** at limit **
  21  norm          .75107E-07    2.0452       -.19983E-06** at limit **
  22  Prefactor     13.784        3.3422       -.26973E-07    .46402E-01
  23  Normalizat    .95293        .22601       -.57949E-06   -.83139E-04
  24  Prefactor     1.1797        .10051       -.20876E-06   -.17039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28781e-08
  norm       = 1.09024
  Prefactor  = 7.23758
  norm       = 0
  Prefactor  = 1.0103e-08
  Prefactor  = 7.82931
  Prefactor  = 2.30611
  norm       = 1.42895e-05
  Prefactor  = 2.77556e-10
  Prefactor  = 100.069
  Prefactor  = 3.20854e-08
  norm       = 3.62032
  Prefactor  = 1.11022e-10
  norm       = 0.233911
  Prefactor  = 2.5091e-08
  Prefactor  = 30.6479
  Prefactor  = 10.6986
  Prefactor  = 1.67491
  Prefactor  = 1.4988e-09
  Prefactor  = 5.55112e-11
  norm       = 7.51066e-08
  Prefactor  = 13.7843
  Normalizat = 0.952925
  Prefactor  = 1.17974
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) = 10534.4223497
delta logL = 0.0147551021728

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.114e+02  8.901e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.061e+00  4.763e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.179e+00  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.579e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 36.954 22.777
Photon Index (Free Index): 2.06 +/- 0.48
Photon Flux (Free Index): 6.63e-08 +/- 4.84e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26844173/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.96e-05', photon_flux_error='3.95e-08', dlogl='1.48e-02', energy_flux='3.58e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2026-05-19 02:10:44.147456', photon_index_error2='0.48', photon_index2='2.06', ts='7.46', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.95', time_epoch_completed='1779181844.15', return_code='0', job_id='26844173', GAL2='1.18', EG2='0.96', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.84e-08', ts2='7.48', photon_index='2.14' WHERE bin_id='928' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 02:10:44 PDT 2026

 GAL_V02
Working on...
/lscratch/kocevski/26844203/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits.....................!
real 53.97
user 52.13
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26844203/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits', '/lscratch/kocevski/26844203/ft2_4FGL_J0227.8+2246_weekly_bin928.fits', expMap='/lscratch/kocevski/26844203/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', expCube='/lscratch/kocevski/26844203/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26844203/Model_4FGL_J0227.8+2246_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26844203/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26844203/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26844203/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26844203/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26844203/Model_4FGL_J0227.8+2246_weekly_bin928.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33402E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0890       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1709       1.0000          .0000       .10000E+07
     4 'norm      '    .11648E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14690E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7655       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3101       1.0000          .0000       .10000E+07
     8 'norm      '    .81130E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24811E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    96.402       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30864E-07   1.0000          .0000       .10000E+07
    12 'norm      '    3.6172       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10678E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23570       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39750E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.653       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.047       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6573       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38316E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16179E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .48450E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.788       1.0000          .0000       .10000E+07
    23 'Normalizat'    .95546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10534.44     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1592 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82878E-07    11.991       -.20794E-06** at limit **
   2  norm          1.0902        .55983       -.40066E-08   -.17431E-02
   3  Prefactor     7.2376        8.4172        .41617E-07    .59306E-02
   4  norm           .0000        .88168        .51264E-07** at limit **
   5  Prefactor     .10103E-07    5.7811       -.34347E-06** at limit **
   6  Prefactor     7.8293        7.3907       -.21150E-06   -.12451E-02
   7  Prefactor     2.3061        4.1457        .38563E-07    .49236E-03
   8  norm          .14289E-04    59.024        .60597E-06** at limit **
   9  Prefactor     .27756E-09    27.014        .37455E-06** at limit **
  10  Prefactor     100.07        55.116        .19492E-06   -.13456E-01
  11  Prefactor     .32085E-07    4.2213       -.24553E-06** at limit **
  12  norm          3.6203        1.7484       -.13766E-08   -.56935E-03
  13  Prefactor     .11102E-09    3.0533        .87883E-07** at limit **
  14  norm          .23391        .24183       -.19545E-07** at limit **
  15  Prefactor     .25091E-07    25.345       -.57786E-06** at limit **
  16  Prefactor     30.648        14.546       -.97895E-07    .13597    
  17  Prefactor     10.699        7.3169       -.13111E-06   -.12396    
  18  Prefactor     1.6749        11.688        .48427E-07   -.58976E-04
  19  Prefactor     .14988E-08    6.2619        .24190E-06** at limit **
  20  Prefactor     .55511E-10    22.505        .19454E-06** at limit **
  21  norm          .75107E-07    2.0452       -.19983E-06** at limit **
  22  Prefactor     13.784        3.3422       -.26973E-07    .46402E-01
  23  Normalizat    .95293        .22601       -.57949E-06   -.83139E-04
  24  Prefactor     1.1797        .10051       -.20876E-06   -.17039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28781e-08
  norm       = 1.09024
  Prefactor  = 7.23758
  norm       = 0
  Prefactor  = 1.0103e-08
  Prefactor  = 7.82931
  Prefactor  = 2.30611
  norm       = 1.42895e-05
  Prefactor  = 2.77556e-10
  Prefactor  = 100.069
  Prefactor  = 3.20854e-08
  norm       = 3.62032
  Prefactor  = 1.11022e-10
  norm       = 0.233911
  Prefactor  = 2.5091e-08
  Prefactor  = 30.6479
  Prefactor  = 10.6986
  Prefactor  = 1.67491
  Prefactor  = 1.4988e-09
  Prefactor  = 5.55112e-11
  norm       = 7.51066e-08
  Prefactor  = 13.7843
  Normalizat = 0.952925
  Prefactor  = 1.17974
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e+02  5.523e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.180e+00  9.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.529e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 36.954 22.777
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.98e-05

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) = 10534.431257
delta logL = 0.00584781464931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223514
delta logL = 0.0147533721811

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10534.42     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      282 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.40        96.961        .37900E-05    .26397E-03
   2  Index         2.0610        .51784        .65295E-02    .54034E-04
   3  Normalizat    .95792        .21697        .41054E-03   -.60036E-04
   4  Prefactor     1.1787        .10010        .17315E-03   -.18825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.399
  Index      = 2.06105
  Normalizat = 0.957916
  Prefactor  = 1.17867
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.42     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.40        89.005        .75800E-06   -1.5497    
   2  Index         2.0610        .47521        .26118E-03   -.62832    
   3  Normalizat    .95792        .21664        .16422E-04   -.94454    
   4  Prefactor     1.1787        .10008        .34630E-04   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53364e-11
Minuit parameter uncertainties:
  1  89.0057
  2  0.476308
  3  0.21684
  4  0.100098
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) = 10534.4223497
delta logL = 0.0147551021728

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.114e+02  8.901e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.061e+00  4.763e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.179e+00  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.579e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 36.954 22.777
Photon Index (Free Index): 2.06 +/- 0.48
Photon Flux (Free Index): 6.63e-08 +/- 4.84e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26844172/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.96e-05', photon_flux_error='3.95e-08', dlogl='1.48e-02', energy_flux='3.58e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2026-05-19 02:10:49.881482', photon_index_error2='0.48', photon_index2='2.06', ts='7.46', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.95', time_epoch_completed='1779181849.88', return_code='0', job_id='26844172', GAL2='1.18', EG2='0.96', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.84e-08', ts2='7.48', photon_index='2.14' WHERE bin_id='928' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 02:10:50 PDT 2026

outfile=/lscratch/kocevski/26844250/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/26844250/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 19.60
user 18.77
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26844250/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844250/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26844250/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844250/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/26844250/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 68.75
user 64.03
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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26844250/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844250/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844250/cmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.77
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26844250/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844250/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844250/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.66
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26844250/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844250/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26844250/Model_4FGL_J0227.8+2246_weekly_bin928.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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

 FCN=   10534.44     FROM HESSE     STATUS=OK           451 CALLS     2043 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82878E-07    12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0902        .56486        .11470E-02   -1.5687    
   3  Prefactor     7.2376        8.4353        .37435E-03   -1.5654    
   4  norm           .0000        .88194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10103E-07    1.4105        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8293        7.3985        .35960E-03   -1.5652    
   7  Prefactor     2.3061        4.1745        .67478E-03   -1.5678    
   8  norm          .14289E-04    218.99        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    26.656        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.07        55.232        .10186E-03   -1.5508    
  11  Prefactor     .32085E-07    5.7118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6203        1.7516        .53099E-03   -1.5670    
  13  Prefactor     .11102E-09    3.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23391        .28006        .11172E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25091E-07    25.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.648        17.731        .18367E-03   -1.5597    
  17  Prefactor     10.699        39.264        .30119E-03   -1.5643    
  18  Prefactor     1.6749        11.717        .81939E-03   -1.5682    
  19  Prefactor     .14988E-08    6.6097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    22.465        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .75107E-07    5.3355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.784        11.283        .26949E-03   -1.5634    
  23  Normalizat    .95293        .20989        .92900E-01   -.94625    
  24  Prefactor     1.1797        .91715E-01    .35125E-01   -.86957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08924e-06
Minuit parameter uncertainties:
  1  0.00200322
  2  0.564858
  3  8.43535
  4  7.92298e-07
  5  0.000238773
  6  7.39846
  7  4.1745
  8  0.111882
  9  0.000167728
  10  55.232
  11  0.000855896
  12  1.75156
  13  3.90463e-05
  14  0.280062
  15  0.00159845
  16  17.7314
  17  39.2647
  18  8.85986
  19  0.000198372
  20  8.5849e-05
  21  0.00126631
  22  11.2829
  23  0.21007
  24  0.0917278
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.44     FROM HESSE     STATUS=OK           451 CALLS     2043 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82878E-07    12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0902        .56486        .11470E-02   -1.5687    
   3  Prefactor     7.2376        8.4353        .37435E-03   -1.5654    
   4  norm           .0000        .88194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10103E-07    1.4105        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8293        7.3985        .35960E-03   -1.5652    
   7  Prefactor     2.3061        4.1745        .67478E-03   -1.5678    
   8  norm          .14289E-04    218.99        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    26.656        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.07        55.232        .10186E-03   -1.5508    
  11  Prefactor     .32085E-07    5.7118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6203        1.7516        .53099E-03   -1.5670    
  13  Prefactor     .11102E-09    3.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23391        .28006        .11172E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25091E-07    25.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.648        17.731        .18367E-03   -1.5597    
  17  Prefactor     10.699        39.264        .30119E-03   -1.5643    
  18  Prefactor     1.6749        11.717        .81939E-03   -1.5682    
  19  Prefactor     .14988E-08    6.6097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    22.465        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .75107E-07    5.3355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.784        11.283        .26949E-03   -1.5634    
  23  Normalizat    .95293        .20989        .92900E-01   -.94625    
  24  Prefactor     1.1797        .91715E-01    .35125E-01   -.86957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08924e-06
Minuit parameter uncertainties:
  1  0.00200322
  2  0.564858
  3  8.43535
  4  7.92298e-07
  5  0.000238773
  6  7.39846
  7  4.1745
  8  0.111882
  9  0.000167728
  10  55.232
  11  0.000855896
  12  1.75156
  13  3.90463e-05
  14  0.280062
  15  0.00159845
  16  17.7314
  17  39.2647
  18  8.85986
  19  0.000198372
  20  8.5849e-05
  21  0.00126631
  22  11.2829
  23  0.21007
  24  0.0917278
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.44     FROM HESSE     STATUS=OK           451 CALLS     2043 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82878E-07    12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0902        .56486        .11470E-02   -1.5687    
   3  Prefactor     7.2376        8.4353        .37435E-03   -1.5654    
   4  norm           .0000        .88194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10103E-07    1.4105        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8293        7.3985        .35960E-03   -1.5652    
   7  Prefactor     2.3061        4.1745        .67478E-03   -1.5678    
   8  norm          .14289E-04    218.99        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    26.656        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.07        55.232        .10186E-03   -1.5508    
  11  Prefactor     .32085E-07    5.7118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6203        1.7516        .53099E-03   -1.5670    
  13  Prefactor     .11102E-09    3.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23391        .28006        .11172E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25091E-07    25.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.648        17.731        .18367E-03   -1.5597    
  17  Prefactor     10.699        39.264        .30119E-03   -1.5643    
  18  Prefactor     1.6749        11.717        .81939E-03   -1.5682    
  19  Prefactor     .14988E-08    6.6097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    22.465        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .75107E-07    5.3355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.784        11.283        .26949E-03   -1.5634    
  23  Normalizat    .95293        .20989        .92900E-01   -.94625    
  24  Prefactor     1.1797        .91715E-01    .35125E-01   -.86957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08924e-06
Minuit parameter uncertainties:
  1  0.00200322
  2  0.564858
  3  8.43535
  4  7.92298e-07
  5  0.000238773
  6  7.39846
  7  4.1745
  8  0.111882
  9  0.000167728
  10  55.232
  11  0.000855896
  12  1.75156
  13  3.90463e-05
  14  0.280062
  15  0.00159845
  16  17.7314
  17  39.2647
  18  8.85986
  19  0.000198372
  20  8.5849e-05
  21  0.00126631
  22  11.2829
  23  0.21007
  24  0.0917278
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.44     FROM HESSE     STATUS=OK           451 CALLS     2043 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82878E-07    12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0902        .56486        .11470E-02   -1.5687    
   3  Prefactor     7.2376        8.4353        .37435E-03   -1.5654    
   4  norm           .0000        .88194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10103E-07    1.4105        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8293        7.3985        .35960E-03   -1.5652    
   7  Prefactor     2.3061        4.1745        .67478E-03   -1.5678    
   8  norm          .14289E-04    218.99        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    26.656        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.07        55.232        .10186E-03   -1.5508    
  11  Prefactor     .32085E-07    5.7118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6203        1.7516        .53099E-03   -1.5670    
  13  Prefactor     .11102E-09    3.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23391        .28006        .11172E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25091E-07    25.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.648        17.731        .18367E-03   -1.5597    
  17  Prefactor     10.699        39.264        .30119E-03   -1.5643    
  18  Prefactor     1.6749        11.717        .81939E-03   -1.5682    
  19  Prefactor     .14988E-08    6.6097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    22.465        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .75107E-07    5.3355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.784        11.283        .26949E-03   -1.5634    
  23  Normalizat    .95293        .20989        .92900E-01   -.94625    
  24  Prefactor     1.1797        .91715E-01    .35125E-01   -.86957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08924e-06
Minuit parameter uncertainties:
  1  0.00200322
  2  0.564858
  3  8.43535
  4  7.92298e-07
  5  0.000238773
  6  7.39846
  7  4.1745
  8  0.111882
  9  0.000167728
  10  55.232
  11  0.000855896
  12  1.75156
  13  3.90463e-05
  14  0.280062
  15  0.00159845
  16  17.7314
  17  39.2647
  18  8.85986
  19  0.000198372
  20  8.5849e-05
  21  0.00126631
  22  11.2829
  23  0.21007
  24  0.0917278
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e+02  5.523e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.180e+00  9.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.529e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 36.954 22.777
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.98e-05

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) = 10534.431257
delta logL = 0.00584781464931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223514
delta logL = 0.0147533721811

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10534.42     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      282 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.40        96.961        .37900E-05    .26397E-03
   2  Index         2.0610        .51784        .65295E-02    .54034E-04
   3  Normalizat    .95792        .21697        .41054E-03   -.60036E-04
   4  Prefactor     1.1787        .10010        .17315E-03   -.18825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.399
  Index      = 2.06105
  Normalizat = 0.957916
  Prefactor  = 1.17867
outfile=/lscratch/kocevski/26844271/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/26844271/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 16.64
user 15.99
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26844271/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844271/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26844271/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844271/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/26844271/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 62.46
user 57.61
sys 4.03

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26844271/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844271/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844271/cmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.71
user 0.23
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26844271/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844271/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844271/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.73
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26844271/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844271/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26844271/Model_4FGL_J0227.8+2246_weekly_bin928.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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

 FCN=   10534.42     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.40        89.005        .75800E-06   -1.5497    
   2  Index         2.0610        .47521        .26118E-03   -.62832    
   3  Normalizat    .95792        .21664        .16422E-04   -.94454    
   4  Prefactor     1.1787        .10008        .34630E-04   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53364e-11
Minuit parameter uncertainties:
  1  89.0057
  2  0.476308
  3  0.21684
  4  0.100098
outfile=/lscratch/kocevski/26844261/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/26844261/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 18.53
user 17.84
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26844261/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844261/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26844261/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844261/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/26844261/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
.....................!
real 68.33
user 63.77
sys 3.91

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26844261/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844261/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844261/cmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.68
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26844261/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits scfile=/lscratch/kocevski/26844261/ft2_4FGL_J0227.8+2246_weekly_bin928.fits outfile=/lscratch/kocevski/26844261/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.9544 yref=22.7775 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.74
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26844261/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26844261/ft2_4FGL_J0227.8+2246_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26844261/Model_4FGL_J0227.8+2246_weekly_bin928.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourceshell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e+02  5.523e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.180e+00  9.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.529e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 36.954 22.777
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.98e-05

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) = 10534.431257
delta logL = 0.00584781464931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223514
delta logL = 0.0147533721811

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10534.42     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      282 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.40        96.961        .37900E-05    .26397E-03
   2  Index         2.0610        .51784        .65295E-02    .54034E-04
   3  Normalizat    .95792        .21697        .41054E-03   -.60036E-04
   4  Prefactor     1.1787        .10010        .17315E-03   -.18825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.399
  Index      = 2.06105
  Normalizat = 0.957916
  Prefactor  = 1.17867
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223497
delta logL = 0.0147551021728

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.114e+02  8.901e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.061e+00  4.763e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.179e+00  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.579e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 36.954 22.777
Photon Index (Free Index): 2.06 +/- 0.48
Photon Flux (Free Index): 6.63e-08 +/- 4.84e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26844193/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.96e-05', photon_flux_error='3.95e-08', dlogl='1.48e-02', energy_flux='3.58e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2026-05-19 02:11:11.159589', photon_index_error2='0.48', photon_index2='2.06', ts='7.46', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.95', time_epoch_completed='1779181871.16', return_code='0', job_id='26844193', GAL2='1.18', EG2='0.96', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.84e-08', ts2='7.48', photon_index='2.14' WHERE bin_id='928' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 02:11:11 PDT 2026

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

 FCN=   10534.42     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.40        89.005        .75800E-06   -1.5497    
   2  Index         2.0610        .47521        .26118E-03   -.62832    
   3  Normalizat    .95792        .21664        .16422E-04   -.94454    
   4  Prefactor     1.1787        .10008        .34630E-04   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53364e-11
Minuit parameter uncertainties:
  1  89.0057
  2  0.476308
  3  0.21684
  4  0.100098
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) = 10534.4223497
delta logL = 0.0147551021728

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.114e+02  8.901e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.061e+00  4.763e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.179e+00  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.579e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 36.954 22.777
Photon Index (Free Index): 2.06 +/- 0.48
Photon Flux (Free Index): 6.63e-08 +/- 4.84e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26844202/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.96e-05', photon_flux_error='3.95e-08', dlogl='1.48e-02', energy_flux='3.58e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2026-05-19 02:11:14.965509', photon_index_error2='0.48', photon_index2='2.06', ts='7.46', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.95', time_epoch_completed='1779181874.97', return_code='0', job_id='26844202', GAL2='1.18', EG2='0.96', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.84e-08', ts2='7.48', photon_index='2.14' WHERE bin_id='928' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 02:11:15 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e+02  5.523e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.180e+00  9.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.529e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 36.954 22.777
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.98e-05

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) = 10534.431257
delta logL = 0.00584781464931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223514
delta logL = 0.0147533721811

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10534.42     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      282 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.40        96.961        .37900E-05    .26397E-03
   2  Index         2.0610        .51784        .65295E-02    .54034E-04
   3  Normalizat    .95792        .21697        .41054E-03   -.60036E-04
   4  Prefactor     1.1787        .10010        .17315E-03   -.18825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.399
  Index      = 2.06105
  Normalizat = 0.957916
  Prefactor  = 1.17867
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.42     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.40        89.005        .75800E-06   -1.5497    
   2  Index         2.0610        .47521        .26118E-03   -.62832    
   3  Normalizat    .95792        .21664        .16422E-04   -.94454    
   4  Prefactor     1.1787        .10008        .34630E-04   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53364e-11
Minuit parameter uncertainties:
  1  89.0057
  2  0.476308
  3  0.21684
  4  0.100098
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e+02  5.523e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.180e+00  9.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.529e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 36.954 22.777
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.98e-05

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) = 10534.431257
delta logL = 0.00584781464931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223514
delta logL = 0.0147533721811

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10534.42     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      282 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.40        96.961        .37900E-05    .26397E-03
   2  Index         2.0610        .51784        .65295E-02    .54034E-04
   3  Normalizat    .95792        .21697        .41054E-03   -.60036E-04
   4  Prefactor     1.1787        .10010        .17315E-03   -.18825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.399
  Index      = 2.06105
  Normalizat = 0.957916
  Prefactor  = 1.17867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.42     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.40        89.005        .75800E-06   -1.5497    
   2  Index         2.0610        .47521        .26118E-03   -.62832    
   3  Normalizat    .95792        .21664        .16422E-04   -.94454    
   4  Prefactor     1.1787        .10008        .34630E-04   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53364e-11
Minuit parameter uncertainties:
  1  89.0057
  2  0.476308
  3  0.21684
  4  0.100098
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223497
delta logL = 0.0147551021728

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.114e+02  8.901e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.061e+00  4.763e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.179e+00  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.579e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 36.954 22.777
Photon Index (Free Index): 2.06 +/- 0.48
Photon Flux (Free Index): 6.63e-08 +/- 4.84e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26844217/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.96e-05', photon_flux_error='3.95e-08', dlogl='1.48e-02', energy_flux='3.58e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2026-05-19 02:11:20.276326', photon_index_error2='0.48', photon_index2='2.06', ts='7.46', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.95', time_epoch_completed='1779181880.28', return_code='0', job_id='26844217', GAL2='1.18', EG2='0.96', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.84e-08', ts2='7.48', photon_index='2.14' WHERE bin_id='928' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 02:11:20 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) = 10534.4223497
delta logL = 0.0147551021728

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.114e+02  8.901e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.061e+00  4.763e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.179e+00  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.579e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 36.954 22.777
Photon Index (Free Index): 2.06 +/- 0.48
Photon Flux (Free Index): 6.63e-08 +/- 4.84e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26844203/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.96e-05', photon_flux_error='3.95e-08', dlogl='1.48e-02', energy_flux='3.58e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2026-05-19 02:11:23.068644', photon_index_error2='0.48', photon_index2='2.06', ts='7.46', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.95', time_epoch_completed='1779181883.07', return_code='0', job_id='26844203', GAL2='1.18', EG2='0.96', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.84e-08', ts2='7.48', photon_index='2.14' WHERE bin_id='928' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 02:11:23 PDT 2026

 GAL_V02
Working on...
/lscratch/kocevski/26844271/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits.....................!
real 49.11
user 47.50
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26844271/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits', '/lscratch/kocevski/26844271/ft2_4FGL_J0227.8+2246_weekly_bin928.fits', expMap='/lscratch/kocevski/26844271/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', expCube='/lscratch/kocevski/26844271/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26844271/Model_4FGL_J0227.8+2246_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26844271/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26844271/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26844271/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26844271/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26844271/Model_4FGL_J0227.8+2246_weekly_bin928.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33402E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0890       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1709       1.0000          .0000       .10000E+07
     4 'norm      '    .11648E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14690E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7655       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3101       1.0000          .0000       .10000E+07
     8 'norm      '    .81130E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24811E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    96.402       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30864E-07   1.0000          .0000       .10000E+07
    12 'norm      '    3.6172       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10678E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23570       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39750E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.653       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.047       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6573       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38316E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16179E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .48450E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.788       1.0000          .0000       .10000E+07
    23 'Normalizat'    .95546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10534.44     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1592 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82878E-07    11.991       -.20794E-06** at limit **
   2  norm          1.0902        .55983       -.40066E-08   -.17431E-02
   3  Prefactor     7.2376        8.4172        .41617E-07    .59306E-02
   4  norm           .0000        .88168        .51264E-07** at limit **
   5  Prefactor     .10103E-07    5.7811       -.34347E-06** at limit **
   6  Prefactor     7.8293        7.3907       -.21150E-06   -.12451E-02
   7  Prefactor     2.3061        4.1457        .38563E-07    .49236E-03
   8  norm          .14289E-04    59.024        .60597E-06** at limit **
   9  Prefactor     .27756E-09    27.014        .37455E-06** at limit **
  10  Prefactor     100.07        55.116        .19492E-06   -.13456E-01
  11  Prefactor     .32085E-07    4.2213       -.24553E-06** at limit **
  12  norm          3.6203        1.7484       -.13766E-08   -.56935E-03
  13  Prefactor     .11102E-09    3.0533        .87883E-07** at limit **
  14  norm          .23391        .24183       -.19545E-07** at limit **
  15  Prefactor     .25091E-07    25.345       -.57786E-06** at limit **
  16  Prefactor     30.648        14.546       -.97895E-07    .13597    
  17  Prefactor     10.699        7.3169       -.13111E-06   -.12396    
  18  Prefactor     1.6749        11.688        .48427E-07   -.58976E-04
  19  Prefactor     .14988E-08    6.2619        .24190E-06** at limit **
  20  Prefactor     .55511E-10    22.505        .19454E-06** at limit **
  21  norm          .75107E-07    2.0452       -.19983E-06** at limit **
  22  Prefactor     13.784        3.3422       -.26973E-07    .46402E-01
  23  Normalizat    .95293        .22601       -.57949E-06   -.83139E-04
  24  Prefactor     1.1797        .10051       -.20876E-06   -.17039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28781e-08
  norm       = 1.09024
  Prefactor  = 7.23758
  norm       = 0
  Prefactor  = 1.0103e-08
  Prefactor  = 7.82931
  Prefactor  = 2.30611
  norm       = 1.42895e-05
  Prefactor  = 2.77556e-10
  Prefactor  = 100.069
  Prefactor  = 3.20854e-08
  norm       = 3.62032
  Prefactor  = 1.11022e-10
  norm       = 0.233911
  Prefactor  = 2.5091e-08
  Prefactor  = 30.6479
  Prefactor  = 10.6986
  Prefactor  = 1.67491
  Prefactor  = 1.4988e-09
  Prefactor  = 5.55112e-11
  norm       = 7.51066e-08
  Prefactor  = 13.7843
  Normalizat = 0.952925
  Prefactor  = 1.17974
 GAL_V02
Working on...
/lscratch/kocevski/26844250/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits.....................!
real 54.52
user 52.62
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26844250/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits', '/lscratch/kocevski/26844250/ft2_4FGL_J0227.8+2246_weekly_bin928.fits', expMap='/lscratch/kocevski/26844250/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', expCube='/lscratch/kocevski/26844250/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26844250/Model_4FGL_J0227.8+2246_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26844250/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26844250/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26844250/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26844250/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26844250/Model_4FGL_J0227.8+2246_weekly_bin928.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33402E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0890       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1709       1.0000          .0000       .10000E+07
     4 'norm      '    .11648E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14690E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7655       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3101       1.0000          .0000       .10000E+07
     8 'norm      '    .81130E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24811E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    96.402       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30864E-07   1.0000          .0000       .10000E+07
    12 'norm      '    3.6172       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10678E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23570       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39750E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.653       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.047       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6573       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38316E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16179E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .48450E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.788       1.0000          .0000       .10000E+07
    23 'Normalizat'    .95546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10534.44     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1592 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82878E-07    11.991       -.20794E-06** at limit **
   2  norm          1.0902        .55983       -.40066E-08   -.17431E-02
   3  Prefactor     7.2376        8.4172        .41617E-07    .59306E-02
   4  norm           .0000        .88168        .51264E-07** at limit **
   5  Prefactor     .10103E-07    5.7811       -.34347E-06** at limit **
   6  Prefactor     7.8293        7.3907       -.21150E-06   -.12451E-02
   7  Prefactor     2.3061        4.1457        .38563E-07    .49236E-03
   8  norm          .14289E-04    59.024        .60597E-06** at limit **
   9  Prefactor     .27756E-09    27.014        .37455E-06** at limit **
  10  Prefactor     100.07        55.116        .19492E-06   -.13456E-01
  11  Prefactor     .32085E-07    4.2213       -.24553E-06** at limit **
  12  norm          3.6203        1.7484       -.13766E-08   -.56935E-03
  13  Prefactor     .11102E-09    3.0533        .87883E-07** at limit **
  14  norm          .23391        .24183       -.19545E-07** at limit **
  15  Prefactor     .25091E-07    25.345       -.57786E-06** at limit **
  16  Prefactor     30.648        14.546       -.97895E-07    .13597    
  17  Prefactor     10.699        7.3169       -.13111E-06   -.12396    
  18  Prefactor     1.6749        11.688        .48427E-07   -.58976E-04
  19  Prefactor     .14988E-08    6.2619        .24190E-06** at limit **
  20  Prefactor     .55511E-10    22.505        .19454E-06** at limit **
  21  norm          .75107E-07    2.0452       -.19983E-06** at limit **
  22  Prefactor     13.784        3.3422       -.26973E-07    .46402E-01
  23  Normalizat    .95293        .22601       -.57949E-06   -.83139E-04
  24  Prefactor     1.1797        .10051       -.20876E-06   -.17039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28781e-08
  norm       = 1.09024
  Prefactor  = 7.23758
  norm       = 0
  Prefactor  = 1.0103e-08
  Prefactor  = 7.82931
  Prefactor  = 2.30611
  norm       = 1.42895e-05
  Prefactor  = 2.77556e-10
  Prefactor  = 100.069
  Prefactor  = 3.20854e-08
  norm       = 3.62032
  Prefactor  = 1.11022e-10
  norm       = 0.233911
  Prefactor  = 2.5091e-08
  Prefactor  = 30.6479
  Prefactor  = 10.6986
  Prefactor  = 1.67491
  Prefactor  = 1.4988e-09
  Prefactor  = 5.55112e-11
  norm       = 7.51066e-08
  Prefactor  = 13.7843
  Normalizat = 0.952925
  Prefactor  = 1.17974
 GAL_V02
Working on...
/lscratch/kocevski/26844261/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits.....................!
real 54.64
user 52.77
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26844261/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits', '/lscratch/kocevski/26844261/ft2_4FGL_J0227.8+2246_weekly_bin928.fits', expMap='/lscratch/kocevski/26844261/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', expCube='/lscratch/kocevski/26844261/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26844261/Model_4FGL_J0227.8+2246_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26844261/ft1_filtered_4FGL_J0227.8+2246_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26844261/ft2_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26844261/expmap_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26844261/ltcube_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26844261/Model_4FGL_J0227.8+2246_weekly_bin928.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33402E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0890       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1709       1.0000          .0000       .10000E+07
     4 'norm      '    .11648E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14690E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7655       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3101       1.0000          .0000       .10000E+07
     8 'norm      '    .81130E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24811E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    96.402       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30864E-07   1.0000          .0000       .10000E+07
    12 'norm      '    3.6172       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10678E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23570       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39750E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.653       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.047       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6573       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38316E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16179E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .48450E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.788       1.0000          .0000       .10000E+07
    23 'Normalizat'    .95546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10534.44     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1592 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82878E-07    11.991       -.20794E-06** at limit **
   2  norm          1.0902        .55983       -.40066E-08   -.17431E-02
   3  Prefactor     7.2376        8.4172        .41617E-07    .59306E-02
   4  norm           .0000        .88168        .51264E-07** at limit **
   5  Prefactor     .10103E-07    5.7811       -.34347E-06** at limit **
   6  Prefactor     7.8293        7.3907       -.21150E-06   -.12451E-02
   7  Prefactor     2.3061        4.1457        .38563E-07    .49236E-03
   8  norm          .14289E-04    59.024        .60597E-06** at limit **
   9  Prefactor     .27756E-09    27.014        .37455E-06** at limit **
  10  Prefactor     100.07        55.116        .19492E-06   -.13456E-01
  11  Prefactor     .32085E-07    4.2213       -.24553E-06** at limit **
  12  norm          3.6203        1.7484       -.13766E-08   -.56935E-03
  13  Prefactor     .11102E-09    3.0533        .87883E-07** at limit **
  14  norm          .23391        .24183       -.19545E-07** at limit **
  15  Prefactor     .25091E-07    25.345       -.57786E-06** at limit **
  16  Prefactor     30.648        14.546       -.97895E-07    .13597    
  17  Prefactor     10.699        7.3169       -.13111E-06   -.12396    
  18  Prefactor     1.6749        11.688        .48427E-07   -.58976E-04
  19  Prefactor     .14988E-08    6.2619        .24190E-06** at limit **
  20  Prefactor     .55511E-10    22.505        .19454E-06** at limit **
  21  norm          .75107E-07    2.0452       -.19983E-06** at limit **
  22  Prefactor     13.784        3.3422       -.26973E-07    .46402E-01
  23  Normalizat    .95293        .22601       -.57949E-06   -.83139E-04
  24  Prefactor     1.1797        .10051       -.20876E-06   -.17039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28781e-08
  norm       = 1.09024
  Prefactor  = 7.23758
  norm       = 0
  Prefactor  = 1.0103e-08
  Prefactor  = 7.82931
  Prefactor  = 2.30611
  norm       = 1.42895e-05
  Prefactor  = 2.77556e-10
  Prefactor  = 100.069
  Prefactor  = 3.20854e-08
  norm       = 3.62032
  Prefactor  = 1.11022e-10
  norm       = 0.233911
  Prefactor  = 2.5091e-08
  Prefactor  = 30.6479
  Prefactor  = 10.6986
  Prefactor  = 1.67491
  Prefactor  = 1.4988e-09
  Prefactor  = 5.55112e-11
  norm       = 7.51066e-08
  Prefactor  = 13.7843
  Normalizat = 0.952925
  Prefactor  = 1.17974
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.44     FROM HESSE     STATUS=OK           451 CALLS     2043 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82878E-07    12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0902        .56486        .11470E-02   -1.5687    
   3  Prefactor     7.2376        8.4353        .37435E-03   -1.5654    
   4  norm           .0000        .88194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10103E-07    1.4105        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8293        7.3985        .35960E-03   -1.5652    
   7  Prefactor     2.3061        4.1745        .67478E-03   -1.5678    
   8  norm          .14289E-04    218.99        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    26.656        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.07        55.232        .10186E-03   -1.5508    
  11  Prefactor     .32085E-07    5.7118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6203        1.7516        .53099E-03   -1.5670    
  13  Prefactor     .11102E-09    3.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23391        .28006        .11172E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25091E-07    25.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.648        17.731        .18367E-03   -1.5597    
  17  Prefactor     10.699        39.264        .30119E-03   -1.5643    
  18  Prefactor     1.6749        11.717        .81939E-03   -1.5682    
  19  Prefactor     .14988E-08    6.6097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    22.465        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .75107E-07    5.3355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.784        11.283        .26949E-03   -1.5634    
  23  Normalizat    .95293        .20989        .92900E-01   -.94625    
  24  Prefactor     1.1797        .91715E-01    .35125E-01   -.86957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08924e-06
Minuit parameter uncertainties:
  1  0.00200322
  2  0.564858
  3  8.43535
  4  7.92298e-07
  5  0.000238773
  6  7.39846
  7  4.1745
  8  0.111882
  9  0.000167728
  10  55.232
  11  0.000855896
  12  1.75156
  13  3.90463e-05
  14  0.280062
  15  0.00159845
  16  17.7314
  17  39.2647
  18  8.85986
  19  0.000198372
  20  8.5849e-05
  21  0.00126631
  22  11.2829
  23  0.21007
  24  0.0917278
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.44     FROM HESSE     STATUS=OK           451 CALLS     2043 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82878E-07    12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0902        .56486        .11470E-02   -1.5687    
   3  Prefactor     7.2376        8.4353        .37435E-03   -1.5654    
   4  norm           .0000        .88194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10103E-07    1.4105        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8293        7.3985        .35960E-03   -1.5652    
   7  Prefactor     2.3061        4.1745        .67478E-03   -1.5678    
   8  norm          .14289E-04    218.99        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    26.656        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.07        55.232        .10186E-03   -1.5508    
  11  Prefactor     .32085E-07    5.7118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6203        1.7516        .53099E-03   -1.5670    
  13  Prefactor     .11102E-09    3.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23391        .28006        .11172E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25091E-07    25.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.648        17.731        .18367E-03   -1.5597    
  17  Prefactor     10.699        39.264        .30119E-03   -1.5643    
  18  Prefactor     1.6749        11.717        .81939E-03   -1.5682    
  19  Prefactor     .14988E-08    6.6097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    22.465        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .75107E-07    5.3355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.784        11.283        .26949E-03   -1.5634    
  23  Normalizat    .95293        .20989        .92900E-01   -.94625    
  24  Prefactor     1.1797        .91715E-01    .35125E-01   -.86957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08924e-06
Minuit parameter uncertainties:
  1  0.00200322
  2  0.564858
  3  8.43535
  4  7.92298e-07
  5  0.000238773
  6  7.39846
  7  4.1745
  8  0.111882
  9  0.000167728
  10  55.232
  11  0.000855896
  12  1.75156
  13  3.90463e-05
  14  0.280062
  15  0.00159845
  16  17.7314
  17  39.2647
  18  8.85986
  19  0.000198372
  20  8.5849e-05
  21  0.00126631
  22  11.2829
  23  0.21007
  24  0.0917278
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e+02  5.523e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.180e+00  9.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.529e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 36.954 22.777
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.98e-05

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) = 10534.431257
delta logL = 0.00584781464931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223514
delta logL = 0.0147533721811

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10534.42     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      282 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.40        96.961        .37900E-05    .26397E-03
   2  Index         2.0610        .51784        .65295E-02    .54034E-04
   3  Normalizat    .95792        .21697        .41054E-03   -.60036E-04
   4  Prefactor     1.1787        .10010        .17315E-03   -.18825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.399
  Index      = 2.06105
  Normalizat = 0.957916
  Prefactor  = 1.17867
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.42     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.40        89.005        .75800E-06   -1.5497    
   2  Index         2.0610        .47521        .26118E-03   -.62832    
   3  Normalizat    .95792        .21664        .16422E-04   -.94454    
   4  Prefactor     1.1787        .10008        .34630E-04   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53364e-11
Minuit parameter uncertainties:
  1  89.0057
  2  0.476308
  3  0.21684
  4  0.100098
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) = 10534.4223497
delta logL = 0.0147551021728

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.114e+02  8.901e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.061e+00  4.763e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.179e+00  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.579e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 36.954 22.777
Photon Index (Free Index): 2.06 +/- 0.48
Photon Flux (Free Index): 6.63e-08 +/- 4.84e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26844271/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.96e-05', photon_flux_error='3.95e-08', dlogl='1.48e-02', energy_flux='3.58e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2026-05-19 02:13:17.788964', photon_index_error2='0.48', photon_index2='2.06', ts='7.46', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.95', time_epoch_completed='1779181997.79', return_code='0', job_id='26844271', GAL2='1.18', EG2='0.96', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.84e-08', ts2='7.48', photon_index='2.14' WHERE bin_id='928' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 02:13:18 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e+02  5.523e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.180e+00  9.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.529e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 36.954 22.777
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.98e-05

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) = 10534.431257
delta logL = 0.00584781464931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223514
delta logL = 0.0147533721811

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10534.42     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      282 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.40        96.961        .37900E-05    .26397E-03
   2  Index         2.0610        .51784        .65295E-02    .54034E-04
   3  Normalizat    .95792        .21697        .41054E-03   -.60036E-04
   4  Prefactor     1.1787        .10010        .17315E-03   -.18825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.399
  Index      = 2.06105
  Normalizat = 0.957916
  Prefactor  = 1.17867
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.42     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.40        89.005        .75800E-06   -1.5497    
   2  Index         2.0610        .47521        .26118E-03   -.62832    
   3  Normalizat    .95792        .21664        .16422E-04   -.94454    
   4  Prefactor     1.1787        .10008        .34630E-04   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53364e-11
Minuit parameter uncertainties:
  1  89.0057
  2  0.476308
  3  0.21684
  4  0.100098
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.44     FROM HESSE     STATUS=OK           451 CALLS     2043 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82878E-07    12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0902        .56486        .11470E-02   -1.5687    
   3  Prefactor     7.2376        8.4353        .37435E-03   -1.5654    
   4  norm           .0000        .88194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10103E-07    1.4105        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8293        7.3985        .35960E-03   -1.5652    
   7  Prefactor     2.3061        4.1745        .67478E-03   -1.5678    
   8  norm          .14289E-04    218.99        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    26.656        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.07        55.232        .10186E-03   -1.5508    
  11  Prefactor     .32085E-07    5.7118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6203        1.7516        .53099E-03   -1.5670    
  13  Prefactor     .11102E-09    3.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23391        .28006        .11172E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25091E-07    25.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.648        17.731        .18367E-03   -1.5597    
  17  Prefactor     10.699        39.264        .30119E-03   -1.5643    
  18  Prefactor     1.6749        11.717        .81939E-03   -1.5682    
  19  Prefactor     .14988E-08    6.6097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    22.465        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .75107E-07    5.3355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.784        11.283        .26949E-03   -1.5634    
  23  Normalizat    .95293        .20989        .92900E-01   -.94625    
  24  Prefactor     1.1797        .91715E-01    .35125E-01   -.86957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08924e-06
Minuit parameter uncertainties:
  1  0.00200322
  2  0.564858
  3  8.43535
  4  7.92298e-07
  5  0.000238773
  6  7.39846
  7  4.1745
  8  0.111882
  9  0.000167728
  10  55.232
  11  0.000855896
  12  1.75156
  13  3.90463e-05
  14  0.280062
  15  0.00159845
  16  17.7314
  17  39.2647
  18  8.85986
  19  0.000198372
  20  8.5849e-05
  21  0.00126631
  22  11.2829
  23  0.21007
  24  0.0917278
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) = 10534.4223497
delta logL = 0.0147551021728

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.114e+02  8.901e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.061e+00  4.763e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.179e+00  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.579e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 36.954 22.777
Photon Index (Free Index): 2.06 +/- 0.48
Photon Flux (Free Index): 6.63e-08 +/- 4.84e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26844250/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.96e-05', photon_flux_error='3.95e-08', dlogl='1.48e-02', energy_flux='3.58e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2026-05-19 02:13:24.710582', photon_index_error2='0.48', photon_index2='2.06', ts='7.46', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.95', time_epoch_completed='1779182004.71', return_code='0', job_id='26844250', GAL2='1.18', EG2='0.96', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.84e-08', ts2='7.48', photon_index='2.14' WHERE bin_id='928' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 02:13:25 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.001e+02  5.523e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.180e+00  9.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.529e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 36.954 22.777
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.98e-05

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) = 10534.431257
delta logL = 0.00584781464931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10534.4223514
delta logL = 0.0147533721811

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10534.42     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      282 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.40        96.961        .37900E-05    .26397E-03
   2  Index         2.0610        .51784        .65295E-02    .54034E-04
   3  Normalizat    .95792        .21697        .41054E-03   -.60036E-04
   4  Prefactor     1.1787        .10010        .17315E-03   -.18825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.399
  Index      = 2.06105
  Normalizat = 0.957916
  Prefactor  = 1.17867
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.42     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.40        89.005        .75800E-06   -1.5497    
   2  Index         2.0610        .47521        .26118E-03   -.62832    
   3  Normalizat    .95792        .21664        .16422E-04   -.94454    
   4  Prefactor     1.1787        .10008        .34630E-04   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53364e-11
Minuit parameter uncertainties:
  1  89.0057
  2  0.476308
  3  0.21684
  4  0.100098
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) = 10534.4223497
delta logL = 0.0147551021728

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.114e+02  8.901e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.061e+00  4.763e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.179e+00  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.579e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 36.954 22.777
Photon Index (Free Index): 2.06 +/- 0.48
Photon Flux (Free Index): 6.63e-08 +/- 4.84e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26844261/cmap_HighResolution_800236801_800841601_4FGL_J0227.8+2246_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.96e-05', photon_flux_error='3.95e-08', dlogl='1.48e-02', energy_flux='3.58e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2026-05-19 02:13:40.907155', photon_index_error2='0.48', photon_index2='2.06', ts='7.46', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.95', time_epoch_completed='1779182020.91', return_code='0', job_id='26844261', GAL2='1.18', EG2='0.96', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.84e-08', ts2='7.48', photon_index='2.14' WHERE bin_id='928' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 02:13:41 PDT 2026

