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


Performing analysis on: 4FGL_J1503.5+4759_weekly_bin942
RA = 225.895, Dec = 47.9959
tmin = 808704001, tmax = 809308801
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='35813427', job_status='RUN', time_executed='2026-08-25 11:39:37.806631', time_epoch_executed='1787683177.81' WHERE source_name='4FGL J1503.5+4759' and cadence='weekly' and bin_id='942'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35813427

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35813427/ft1_4FGL_J1503.5+4759_weekly_bin942.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35813427/ft2_4FGL_J1503.5+4759_weekly_bin942.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35813427/ft1_4FGL_J1503.5+4759_weekly_bin942.fits outfile=/lscratch/kocevski/35813427/ft1_filteredMKT_4FGL_J1503.5+4759_weekly_bin942.fits ra=225.895 dec=47.9959 rad=12.0 tmin=808704001.0 tmax=809308801.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.85
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35813427/ft2_4FGL_J1503.5+4759_weekly_bin942.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35813427/ft2_4FGL_J1503.5+4759_weekly_bin942.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/35813427/ft1_filteredMKT_4FGL_J1503.5+4759_weekly_bin942.fits evtable="EVENTS" outfile="/lscratch/kocevski/35813427/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1308

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

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

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

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

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

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

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


Performing analysis on: 4FGL_J1503.5+4759_weekly_bin942
RA = 225.895, Dec = 47.9959
tmin = 808704001, tmax = 809308801
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='35813568', job_status='RUN', time_executed='2026-08-25 11:41:39.420500', time_epoch_executed='1787683299.42' WHERE source_name='4FGL J1503.5+4759' and cadence='weekly' and bin_id='942'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35813568

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35813568/ft1_4FGL_J1503.5+4759_weekly_bin942.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35813568/ft2_4FGL_J1503.5+4759_weekly_bin942.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35813568/ft1_4FGL_J1503.5+4759_weekly_bin942.fits outfile=/lscratch/kocevski/35813568/ft1_filteredMKT_4FGL_J1503.5+4759_weekly_bin942.fits ra=225.895 dec=47.9959 rad=12.0 tmin=808704001.0 tmax=809308801.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.82
user 4.84
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35813568/ft2_4FGL_J1503.5+4759_weekly_bin942.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35813568/ft2_4FGL_J1503.5+4759_weekly_bin942.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/35813568/ft1_filteredMKT_4FGL_J1503.5+4759_weekly_bin942.fits evtable="EVENTS" outfile="/lscratch/kocevski/35813568/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1308

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35813568/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35813568/ft2_4FGL_J1503.5+4759_weekly_bin942.fits sctable="SC_DATA" outfile=/lscratch/kocevski/35813427/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.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/35813427/ft2_4FGL_J1503.5+4759_weekly_bin942.fits
.....................!
real 20.12
user 19.17
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35813427/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits evtable="EVENTS" scfile=/lscratch/kocevski/35813427/ft2_4FGL_J1503.5+4759_weekly_bin942.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35813427/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits outfile=/lscratch/kocevski/35813427/expmap_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.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/35813427/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits
.....................!
real 75.31
user 70.09
sys 4.38

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

Setting source of interest to:
4FGL J1503.5+4759 @ 225.895 47.9959

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/35813427/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits scfile=/lscratch/kocevski/35813427/ft2_4FGL_J1503.5+4759_weekly_bin942.fits outfile=/lscratch/kocevski/35813427/cmap_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.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=225.895 yref=47.9959 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.78
user 0.27
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35813427/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits scfile=/lscratch/kocevski/35813427/ft2_4FGL_J1503.5+4759_weekly_bin942.fits outfile=/lscratch/kocevski/35813427/cmap_HighResolution_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.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=225.895 yref=47.9959 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.27
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35813427/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits evtable="EVENTS" scfile=/lscratch/kocevski/35813427/ft2_4FGL_J1503.5+4759_weekly_bin942.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35813427/Model_4FGL_J1503.5+4759_weekly_bin942.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J1503.5+4759_weekly_bin942
RA = 225.895, Dec = 47.9959
tmin = 808704001, tmax = 809308801
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='35813614', job_status='RUN', time_executed='2026-08-25 11:42:12.498035', time_epoch_executed='1787683332.5' WHERE source_name='4FGL J1503.5+4759' and cadence='weekly' and bin_id='942'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35813614

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35813614/ft1_4FGL_J1503.5+4759_weekly_bin942.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35813614/ft2_4FGL_J1503.5+4759_weekly_bin942.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35813614/ft1_4FGL_J1503.5+4759_weekly_bin942.fits outfile=/lscratch/kocevski/35813614/ft1_filteredMKT_4FGL_J1503.5+4759_weekly_bin942.fits ra=225.895 dec=47.9959 rad=12.0 tmin=808704001.0 tmax=809308801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.13
user 5.30
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35813614/ft2_4FGL_J1503.5+4759_weekly_bin942.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35813614/ft2_4FGL_J1503.5+4759_weekly_bin942.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/35813614/ft1_filteredMKT_4FGL_J1503.5+4759_weekly_bin942.fits evtable="EVENTS" outfile="/lscratch/kocevski/35813614/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1308

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35813614/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35813614/ft2_4FGL_J1503.5+4759_weekly_bin942.fits sctable="SC_DATA"  outfile=/lscratch/kocevski/35813568/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.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/35813568/ft2_4FGL_J1503.5+4759_weekly_bin942.fits
.....................!
real 21.57
user 19.05
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35813568/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits evtable="EVENTS" scfile=/lscratch/kocevski/35813568/ft2_4FGL_J1503.5+4759_weekly_bin942.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35813568/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits outfile=/lscratch/kocevski/35813568/expmap_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.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/35813568/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits
.....................!
real 74.77
user 69.06
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 203 point sources and 0 extended sources

Setting source of interest to:
4FGL J1503.5+4759 @ 225.895 47.9959

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/35813568/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits scfile=/lscratch/kocevski/35813568/ft2_4FGL_J1503.5+4759_weekly_bin942.fits outfile=/lscratch/kocevski/35813568/cmap_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.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=225.895 yref=47.9959 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.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35813568/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits scfile=/lscratch/kocevski/35813568/ft2_4FGL_J1503.5+4759_weekly_bin942.fits outfile=/lscratch/kocevski/35813568/cmap_HighResolution_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.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=225.895 yref=47.9959 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.26
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35813568/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits evtable="EVENTS" scfile=/lscratch/kocevski/35813568/ft2_4FGL_J1503.5+4759_weekly_bin942.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35813568/Model_4FGL_J1503.5+4759_weekly_bin942.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcoutfile=/lscratch/kocevski/35813614/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.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/35813614/ft2_4FGL_J1503.5+4759_weekly_bin942.fits
.....................!
real 21.91
user 20.74
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35813614/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits evtable="EVENTS" scfile=/lscratch/kocevski/35813614/ft2_4FGL_J1503.5+4759_weekly_bin942.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35813614/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits outfile=/lscratch/kocevski/35813614/expmap_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.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/35813614/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits
.....................!
real 80.25
user 74.73
sys 4.57

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

Setting source of interest to:
4FGL J1503.5+4759 @ 225.895 47.9959

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/35813614/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits scfile=/lscratch/kocevski/35813614/ft2_4FGL_J1503.5+4759_weekly_bin942.fits outfile=/lscratch/kocevski/35813614/cmap_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.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=225.895 yref=47.9959 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.27
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35813614/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits scfile=/lscratch/kocevski/35813614/ft2_4FGL_J1503.5+4759_weekly_bin942.fits outfile=/lscratch/kocevski/35813614/cmap_HighResolution_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.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=225.895 yref=47.9959 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.01
user 0.27
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35813614/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits evtable="EVENTS" scfile=/lscratch/kocevski/35813614/ft2_4FGL_J1503.5+4759_weekly_bin942.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35813614/Model_4FGL_J1503.5+4759_weekly_bin942.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 sourcee GAL_V02
Working on...
/lscratch/kocevski/35813427/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits.....................!
real 45.10
user 42.80
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35813427/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits', '/lscratch/kocevski/35813427/ft2_4FGL_J1503.5+4759_weekly_bin942.fits', expMap='/lscratch/kocevski/35813427/expmap_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits', expCube='/lscratch/kocevski/35813427/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35813427/Model_4FGL_J1503.5+4759_weekly_bin942.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1503.5+4759'

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  2.127e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35813427/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits
Spacecraft file(s): /lscratch/kocevski/35813427/ft2_4FGL_J1503.5+4759_weekly_bin942.fits
Exposure map: /lscratch/kocevski/35813427/expmap_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits
Exposure cube: /lscratch/kocevski/35813427/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35813427/Model_4FGL_J1503.5+4759_weekly_bin942.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) = 14523.2738902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28470E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .57676E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.8490       1.0000          .0000       .10000E+07
     4 'Prefactor '    .54715E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.0136       1.0000          .0000       .10000E+07
     6 'Prefactor '    21.280       1.0000          .0000       .10000E+07
     7 'Prefactor '    26.515       1.0000          .0000       .10000E+07
     8 'Prefactor '    .23921E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    40.912       1.0000          .0000       .10000E+07
    10 'norm      '    7.1882       1.0000          .0000       .10000E+07
    11 'Prefactor '    12.081       1.0000          .0000       .10000E+07
    12 'norm      '    1.1901       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.8614       1.0000          .0000       .10000E+07
    14 'Prefactor '    .15288E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    7.2061       1.0000          .0000       .10000E+07
    16 'norm      '    .16219       1.0000          .0000       .10000E+07
    17 'Prefactor '    .45782E-02   1.0000          .0000       .10000E+07
    18 'norm      '    1.8473       1.0000          .0000       .10000E+07
    19 'Prefactor '    .22302E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    40.612       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.2627       1.0000          .0000       .10000E+07
    22 'Prefactor '    .10571E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .36414E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .76588E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .60636E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    .74363E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0963       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14523.27     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2566 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    31.410        .29474E-06** at limit **
   2  Prefactor     .58453E-07    19.631        .23849E-05** at limit **
   3  Prefactor     3.8494        3.0566       -.74423E-08    .81195E-04
   4  Prefactor     .20461E-06    7.2838       -.87864E-06** at limit **
   5  Prefactor     3.0132        1.7023        .12646E-06    .10689E-01
   6  Prefactor     21.291        1.4580       -.12204E-06   -.55122E-02
   7  Prefactor     26.537        1.0657       -.65036E-08    .63198E-02
   8  Prefactor     .50238E-07    15.378       -.41960E-05** at limit **
   9  Prefactor     40.904        1.1235        .65425E-07   -.11479E-01
  10  norm          7.2069        5.5322       -.40781E-07    .12062E-02
  11  Prefactor     12.070        6.3405        .98130E-06    .13022    
  12  norm          1.1901        .84684       -.13370E-06   -.75394E-02
  13  Prefactor     4.8492        4.3566        .17163E-06    .32292E-02
  14  Prefactor      .0000        1.6066        .10426E-06** at limit **
  15  Prefactor     7.2106        4.3333       -.53565E-07    .95354E-03
  16  norm          .16248        1.0482       -.21198E-06** at limit **
  17  Prefactor     .43588E-05    128.91        .30760E-05** at limit **
  18  norm          1.8477        1.8124        .14236E-08    .31782E-03
  19  Prefactor     .76883E-07    4.4999       -.80507E-06** at limit **
  20  Prefactor     40.866        22.363       -.52886E-06    .28627E-01
  21  Prefactor     3.2144        4.9943        .12403E-05   -.87256E-03
  22  Prefactor     .34839E-06    8.8266        .38008E-05** at limit **
  23  norm          .27589E-07    4.1666        .22010E-06** at limit **
  24  Prefactor     .12823E-07    5.3214        .38494E-06** at limit **
  25  Prefactor     .27756E-09    2.3890        .22765E-06** at limit **
  26  Prefactor     .28810E-07    6.4358       -.33394E-06** at limit **
  27  Normalizat    1.0963        .13047        .88113E-05    .68578E-03
  28  Prefactor     .88857        .14293       -.44694E-05    .39294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 5.84532e-08
  Prefactor  = 3.84942
  Prefactor  = 2.04614e-07
  Prefactor  = 3.0132
  Prefactor  = 21.2907
  Prefactor  = 26.5369
  Prefactor  = 5.02376e-08
  Prefactor  = 40.9045
  norm       = 7.20689
  Prefactor  = 12.0703
  norm       = 1.19006
  Prefactor  = 4.84917
  Prefactor  = 0
  Prefactor  = 7.21064
  norm       = 0.162482
  Prefactor  = 4.35885e-06
  norm       = 1.84772
  Prefactor  = 7.68829e-08
  Prefactor  = 40.8665
  Prefactor  = 3.21441
  Prefactor  = 3.48388e-07
  norm       = 2.7589e-08
  Prefactor  = 1.28231e-08
  Prefactor  = 2.77556e-10
  Prefactor  = 2.88103e-08
  Normalizat = 1.0963
  Prefactor  = 0.888574
 **********
 **   18 **HESSE 
 **********

 FCN=   14523.27     FROM HESSE     STATUS=OK           587 CALLS     3153 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    30.950        .16532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .58453E-07    19.844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8494        3.0649        .51415E-03   -1.5669    
   4  Prefactor     .20461E-06    9.1559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0132        1.8948        .58439E-03   -1.5673    
   6  Prefactor     21.291        13.999        .21684E-03   -1.5616    
   7  Prefactor     26.537        18.523        .19424E-03   -1.5605    
   8  Prefactor     .50238E-07    15.647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.904        22.562        .15636E-03   -1.5580    
  10  norm          7.2069        5.5613        .37390E-03   -1.5654    
  11  Prefactor     12.070        9.9200        .28795E-03   -1.5638    
  12  norm          1.1901        .84664        .10439E-02   -1.5686    
  13  Prefactor     4.8492        4.4444        .45599E-03   -1.5664    
  14  Prefactor      .0000        1.6091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2106        4.3459        .37343E-03   -1.5654    
  16  norm          .16248        .59815        .28235E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .43588E-05    1.6781        .56153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8477        1.8299        .76690E-03   -1.5681    
  19  Prefactor     .76883E-07    4.8166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.866        50.325        .15693E-03   -1.5580    
  21  Prefactor     3.2144        13.918        .56041E-03   -1.5672    
  22  Prefactor     .34839E-06    10.346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .27589E-07    4.3352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .12823E-07    5.4694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .27756E-09    2.3876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .28810E-07    6.6233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0963        .11482        .38155E-01   -.89871    
  28  Prefactor     .88857        .12318        .44860E-01   -.96542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43309e-07
Minuit parameter uncertainties:
  1  0.000146382
  2  0.00215397
  3  3.0649
  4  0.00273737
  5  1.89481
  6  13.9993
  7  18.5226
  8  0.00177327
  9  22.5624
  10  5.56133
  11  9.92002
  12  0.846644
  13  4.44444
  14  1.25988e-05
  15  4.34589
  16  0.598153
  17  0.00540903
  18  1.82987
  19  0.00121701
  20  50.3251
  21  13.3772
  22  0.00379704
  23  0.000691796
  24  0.000530041
  25  5.30244e-05
  26  0.000874016
  27  0.114846
  28  0.123219
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  7.211e+00  4.346e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.096e+00  1.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.90
Ra Dec: 225.895 47.996
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 8.82e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14523.1982096
delta logL = 0.0705860501912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14523.1898626
delta logL = 0.0789330286898

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14523.19     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      305 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9519        5.6143        .80962E-04   -.21931E-02
   2  Index         2.3841        .48048        .64846E-02    .50162E-04
   3  Normalizat    1.0902        .13003        .22569E-03    .60449E-06
   4  Prefactor     .89237        .14256        .27121E-03    .10061E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.95189
  Index      = 2.38415
  Normalizat = 1.09016
  Prefactor  = 0.892368
 **********
 **   18 **HESSE 
 **********

 FCN=   14523.19     FROM HESSE     STATUS=OK            27 CALLS      332 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9519        4.8937        .32385E-05   -1.5659    
   2  Index         2.3841        .41876        .25939E-03   -.55057    
   3  Normalizat    1.0902        .12992        .90274E-05   -.90068    
   4  Prefactor     .89237        .14250        .10848E-04   -.96408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39265e-11
Minuit parameter uncertainties:
  1  4.89374
  2  0.419437
  3  0.129955
  4  0.142557
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) = 14523.1898622
delta logL = 0.0789333766297

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  5.952e+00  4.894e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.384e+00  4.194e-01  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.090e+00  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 225.895 47.996
Photon Index (Free Index): 2.38 +/- 0.42
Photon Flux (Free Index): 3.93e-08 +/- 2.58e-08
Energy Flux (Free Index): 1.32e-05 +/- 8.33e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35813427/cmap_HighResolution_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='1.32e-05', photon_flux_error='2.04e-08', dlogl='7.89e-02', energy_flux='1.46e-05', photon_flux2='3.93e-08', job_status='DONE', time_completed='2026-08-25 11:50:09.473519', photon_index_error2='0.42', photon_index2='2.38', ts='4.90', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='8.33e-06', EG='1.10', time_epoch_completed='1787683809.47', return_code='0', job_id='35813427', GAL2='0.89', EG2='1.09', return_code2='0', energy_flux_error='8.82e-06', photon_flux_error2='2.58e-08', ts2='5.04', photon_index='2.22' WHERE bin_id='942' AND source_name='4FGL J1503.5+4759' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug 25 11:50:09 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/35813568/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits.....................!
real 43.99
user 41.98
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35813568/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits', '/lscratch/kocevski/35813568/ft2_4FGL_J1503.5+4759_weekly_bin942.fits', expMap='/lscratch/kocevski/35813568/expmap_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits', expCube='/lscratch/kocevski/35813568/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35813568/Model_4FGL_J1503.5+4759_weekly_bin942.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1503.5+4759'

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  2.127e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35813568/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits
Spacecraft file(s): /lscratch/kocevski/35813568/ft2_4FGL_J1503.5+4759_weekly_bin942.fits
Exposure map: /lscratch/kocevski/35813568/expmap_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits
Exposure cube: /lscratch/kocevski/35813568/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35813568/Model_4FGL_J1503.5+4759_weekly_bin942.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) = 14523.2738902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28470E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .57676E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.8490       1.0000          .0000       .10000E+07
     4 'Prefactor '    .54715E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.0136       1.0000          .0000       .10000E+07
     6 'Prefactor '    21.280       1.0000          .0000       .10000E+07
     7 'Prefactor '    26.515       1.0000          .0000       .10000E+07
     8 'Prefactor '    .23921E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    40.912       1.0000          .0000       .10000E+07
    10 'norm      '    7.1882       1.0000          .0000       .10000E+07
    11 'Prefactor '    12.081       1.0000          .0000       .10000E+07
    12 'norm      '    1.1901       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.8614       1.0000          .0000       .10000E+07
    14 'Prefactor '    .15288E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    7.2061       1.0000          .0000       .10000E+07
    16 'norm      '    .16219       1.0000          .0000       .10000E+07
    17 'Prefactor '    .45782E-02   1.0000          .0000       .10000E+07
    18 'norm      '    1.8473       1.0000          .0000       .10000E+07
    19 'Prefactor '    .22302E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    40.612       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.2627       1.0000          .0000       .10000E+07
    22 'Prefactor '    .10571E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .36414E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .76588E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .60636E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    .74363E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0963       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14523.27     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2566 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    31.410        .29474E-06** at limit **
   2  Prefactor     .58453E-07    19.631        .23849E-05** at limit **
   3  Prefactor     3.8494        3.0566       -.74423E-08    .81195E-04
   4  Prefactor     .20461E-06    7.2838       -.87864E-06** at limit **
   5  Prefactor     3.0132        1.7023        .12646E-06    .10689E-01
   6  Prefactor     21.291        1.4580       -.12204E-06   -.55122E-02
   7  Prefactor     26.537        1.0657       -.65036E-08    .63198E-02
   8  Prefactor     .50238E-07    15.378       -.41960E-05** at limit **
   9  Prefactor     40.904        1.1235        .65425E-07   -.11479E-01
  10  norm          7.2069        5.5322       -.40781E-07    .12062E-02
  11  Prefactor     12.070        6.3405        .98130E-06    .13022    
  12  norm          1.1901        .84684       -.13370E-06   -.75394E-02
  13  Prefactor     4.8492        4.3566        .17163E-06    .32292E-02
  14  Prefactor      .0000        1.6066        .10426E-06** at limit **
  15  Prefactor     7.2106        4.3333       -.53565E-07    .95354E-03
  16  norm          .16248        1.0482       -.21198E-06** at limit **
  17  Prefactor     .43588E-05    128.91        .30760E-05** at limit **
  18  norm          1.8477        1.8124        .14236E-08    .31782E-03
  19  Prefactor     .76883E-07    4.4999       -.80507E-06** at limit **
  20  Prefactor     40.866        22.363       -.52886E-06    .28627E-01
  21  Prefactor     3.2144        4.9943        .12403E-05   -.87256E-03
  22  Prefactor     .34839E-06    8.8266        .38008E-05** at limit **
  23  norm          .27589E-07    4.1666        .22010E-06** at limit **
  24  Prefactor     .12823E-07    5.3214        .38494E-06** at limit **
  25  Prefactor     .27756E-09    2.3890        .22765E-06** at limit **
  26  Prefactor     .28810E-07    6.4358       -.33394E-06** at limit **
  27  Normalizat    1.0963        .13047        .88113E-05    .68578E-03
  28  Prefactor     .88857        .14293       -.44694E-05    .39294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 5.84532e-08
  Prefactor  = 3.84942
  Prefactor  = 2.04614e-07
  Prefactor  = 3.0132
  Prefactor  = 21.2907
  Prefactor  = 26.5369
  Prefactor  = 5.02376e-08
  Prefactor  = 40.9045
  norm       = 7.20689
  Prefactor  = 12.0703
  norm       = 1.19006
  Prefactor  = 4.84917
  Prefactor  = 0
  Prefactor  = 7.21064
  norm       = 0.162482
  Prefactor  = 4.35885e-06
  norm       = 1.84772
  Prefactor  = 7.68829e-08
  Prefactor  = 40.8665
  Prefactor  = 3.21441
  Prefactor  = 3.48388e-07
  norm       = 2.7589e-08
  Prefactor  = 1.28231e-08
  Prefactor  = 2.77556e-10
  Prefactor  = 2.88103e-08
  Normalizat = 1.0963
  Prefactor  = 0.888574
 **********
 **   18 **HESSE 
 **********

 FCN=   14523.27     FROM HESSE     STATUS=OK           587 CALLS     3153 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    30.950        .16532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .58453E-07    19.844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8494        3.0649        .51415E-03   -1.5669    
   4  Prefactor     .20461E-06    9.1559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0132        1.8948        .58439E-03   -1.5673    
   6  Prefactor     21.291        13.999        .21684E-03   -1.5616    
   7  Prefactor     26.537        18.523        .19424E-03   -1.5605    
   8  Prefactor     .50238E-07    15.647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.904        22.562        .15636E-03   -1.5580    
  10  norm          7.2069        5.5613        .37390E-03   -1.5654    
  11  Prefactor     12.070        9.9200        .28795E-03   -1.5638    
  12  norm          1.1901        .84664        .10439E-02   -1.5686    
  13  Prefactor     4.8492        4.4444        .45599E-03   -1.5664    
  14  Prefactor      .0000        1.6091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2106        4.3459        .37343E-03   -1.5654    
  16  norm          .16248        .59815        .28235E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .43588E-05    1.6781        .56153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8477        1.8299        .76690E-03   -1.5681    
  19  Prefactor     .76883E-07    4.8166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.866        50.325        .15693E-03   -1.5580    
  21  Prefactor     3.2144        13.918        .56041E-03   -1.5672    
  22  Prefactor     .34839E-06    10.346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .27589E-07    4.3352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .12823E-07    5.4694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .27756E-09    2.3876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .28810E-07    6.6233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0963        .11482        .38155E-01   -.89871    
  28  Prefactor     .88857        .12318        .44860E-01   -.96542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43309e-07
Minuit parameter uncertainties:
  1  0.000146382
  2  0.00215397
  3  3.0649
  4  0.00273737
  5  1.89481
  6  13.9993
  7  18.5226
  8  0.00177327
  9  22.5624
  10  5.56133
  11  9.92002
  12  0.846644
  13  4.44444
  14  1.25988e-05
  15  4.34589
  16  0.598153
  17  0.00540903
  18  1.82987
  19  0.00121701
  20  50.3251
  21  13.3772
  22  0.00379704
  23  0.000691796
  24  0.000530041
  25  5.30244e-05
  26  0.000874016
  27  0.114846
  28  0.123219
 GAL_V02
Working on...
/lscratch/kocevski/35813614/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits.....................!
real 47.12
user 45.30
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35813614/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits', '/lscratch/kocevski/35813614/ft2_4FGL_J1503.5+4759_weekly_bin942.fits', expMap='/lscratch/kocevski/35813614/expmap_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits', expCube='/lscratch/kocevski/35813614/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35813614/Model_4FGL_J1503.5+4759_weekly_bin942.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1503.5+4759'

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  2.127e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35813614/ft1_filtered_4FGL_J1503.5+4759_weekly_bin942.fits
Spacecraft file(s): /lscratch/kocevski/35813614/ft2_4FGL_J1503.5+4759_weekly_bin942.fits
Exposure map: /lscratch/kocevski/35813614/expmap_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits
Exposure cube: /lscratch/kocevski/35813614/ltcube_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35813614/Model_4FGL_J1503.5+4759_weekly_bin942.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) = 14523.2738902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28470E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .57676E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.8490       1.0000          .0000       .10000E+07
     4 'Prefactor '    .54715E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.0136       1.0000          .0000       .10000E+07
     6 'Prefactor '    21.280       1.0000          .0000       .10000E+07
     7 'Prefactor '    26.515       1.0000          .0000       .10000E+07
     8 'Prefactor '    .23921E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    40.912       1.0000          .0000       .10000E+07
    10 'norm      '    7.1882       1.0000          .0000       .10000E+07
    11 'Prefactor '    12.081       1.0000          .0000       .10000E+07
    12 'norm      '    1.1901       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.8614       1.0000          .0000       .10000E+07
    14 'Prefactor '    .15288E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    7.2061       1.0000          .0000       .10000E+07
    16 'norm      '    .16219       1.0000          .0000       .10000E+07
    17 'Prefactor '    .45782E-02   1.0000          .0000       .10000E+07
    18 'norm      '    1.8473       1.0000          .0000       .10000E+07
    19 'Prefactor '    .22302E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    40.612       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.2627       1.0000          .0000       .10000E+07
    22 'Prefactor '    .10571E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .36414E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .76588E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .60636E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    .74363E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0963       1.0000         Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  7.211e+00  4.346e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.096e+00  1.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.90
Ra Dec: 225.895 47.996
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 8.82e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14523.1982096
delta logL = 0.0705860501912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14523.1898626
delta logL = 0.0789330286898

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14523.19     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      305 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9519        5.6143        .80962E-04   -.21931E-02
   2  Index         2.3841        .48048        .64846E-02    .50162E-04
   3  Normalizat    1.0902        .13003        .22569E-03    .60449E-06
   4  Prefactor     .89237        .14256        .27121E-03    .10061E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.95189
  Index      = 2.38415
  Normalizat = 1.09016
  Prefactor  = 0.892368
 **********
 **   18 **HESSE 
 **********

 FCN=   14523.19     FROM HESSE     STATUS=OK            27 CALLS      332 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9519        4.8937        .32385E-05   -1.5659    
   2  Index         2.3841        .41876        .25939E-03   -.55057    
   3  Normalizat    1.0902        .12992        .90274E-05   -.90068    
   4  Prefactor     .89237        .14250        .10848E-04   -.96408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39265e-11
Minuit parameter uncertainties:
  1  4.89374
  2  0.419437
  3  0.129955
  4  0.142557
.10000E-01   10.000    
    28 'Prefactor '    .88861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14523.27     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2566 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    31.410        .29474E-06** at limit **
   2  Prefactor     .58453E-07    19.631        .23849E-05** at limit **
   3  Prefactor     3.8494        3.0566       -.74423E-08    .81195E-04
   4  Prefactor     .20461E-06    7.2838       -.87864E-06** at limit **
   5  Prefactor     3.0132        1.7023        .12646E-06    .10689E-01
   6  Prefactor     21.291        1.4580       -.12204E-06   -.55122E-02
   7  Prefactor     26.537        1.0657       -.65036E-08    .63198E-02
   8  Prefactor     .50238E-07    15.378       -.41960E-05** at limit **
   9  Prefactor     40.904        1.1235        .65425E-07   -.11479E-01
  10  norm          7.2069        5.5322       -.40781E-07    .12062E-02
  11  Prefactor     12.070        6.3405        .98130E-06    .13022    
  12  norm          1.1901        .84684       -.13370E-06   -.75394E-02
  13  Prefactor     4.8492        4.3566        .17163E-06    .32292E-02
  14  Prefactor      .0000        1.6066        .10426E-06** at limit **
  15  Prefactor     7.2106        4.3333       -.53565E-07    .95354E-03
  16  norm          .16248        1.0482       -.21198E-06** at limit **
  17  Prefactor     .43588E-05    128.91        .30760E-05** at limit **
  18  norm          1.8477        1.8124        .14236E-08    .31782E-03
  19  Prefactor     .76883E-07    4.4999       -.80507E-06** at limit **
  20  Prefactor     40.866        22.363       -.52886E-06    .28627E-01
  21  Prefactor     3.2144        4.9943        .12403E-05   -.87256E-03
  22  Prefactor     .34839E-06    8.8266        .38008E-05** at limit **
  23  norm          .27589E-07    4.1666        .22010E-06** at limit **
  24  Prefactor     .12823E-07    5.3214        .38494E-06** at limit **
  25  Prefactor     .27756E-09    2.3890        .22765E-06** at limit **
  26  Prefactor     .28810E-07    6.4358       -.33394E-06** at limit **
  27  Normalizat    1.0963        .13047        .88113E-05    .68578E-03
  28  Prefactor     .88857        .14293       -.44694E-05    .39294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 5.84532e-08
  Prefactor  = 3.84942
  Prefactor  = 2.04614e-07
  Prefactor  = 3.0132
  Prefactor  = 21.2907
  Prefactor  = 26.5369
  Prefactor  = 5.02376e-08
  Prefactor  = 40.9045
  norm       = 7.20689
  Prefactor  = 12.0703
  norm       = 1.19006
  Prefactor  = 4.84917
  Prefactor  = 0
  Prefactor  = 7.21064
  norm       = 0.162482
  Prefactor  = 4.35885e-06
  norm       = 1.84772
  Prefactor  = 7.68829e-08
  Prefactor  = 40.8665
  Prefactor  = 3.21441
  Prefactor  = 3.48388e-07
  norm       = 2.7589e-08
  Prefactor  = 1.28231e-08
  Prefactor  = 2.77556e-10
  Prefactor  = 2.88103e-08
  Normalizat = 1.0963
  Prefactor  = 0.888574
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) = 14523.1898622
delta logL = 0.0789333766297

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  5.952e+00  4.894e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.384e+00  4.194e-01  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.090e+00  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 225.895 47.996
Photon Index (Free Index): 2.38 +/- 0.42
Photon Flux (Free Index): 3.93e-08 +/- 2.58e-08
Energy Flux (Free Index): 1.32e-05 +/- 8.33e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35813568/cmap_HighResolution_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='1.32e-05', photon_flux_error='2.04e-08', dlogl='7.89e-02', energy_flux='1.46e-05', photon_flux2='3.93e-08', job_status='DONE', time_completed='2026-08-25 11:52:27.109481', photon_index_error2='0.42', photon_index2='2.38', ts='4.90', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='8.33e-06', EG='1.10', time_epoch_completed='1787683947.11', return_code='0', job_id='35813568', GAL2='0.89', EG2='1.09', return_code2='0', energy_flux_error='8.82e-06', photon_flux_error2='2.58e-08', ts2='5.04', photon_index='2.22' WHERE bin_id='942' AND source_name='4FGL J1503.5+4759' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug 25 11:52:27 PDT 2026

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

 FCN=   14523.27     FROM HESSE     STATUS=OK           587 CALLS     3153 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    30.950        .16532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .58453E-07    19.844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8494        3.0649        .51415E-03   -1.5669    
   4  Prefactor     .20461E-06    9.1559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0132        1.8948        .58439E-03   -1.5673    
   6  Prefactor     21.291        13.999        .21684E-03   -1.5616    
   7  Prefactor     26.537        18.523        .19424E-03   -1.5605    
   8  Prefactor     .50238E-07    15.647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.904        22.562        .15636E-03   -1.5580    
  10  norm          7.2069        5.5613        .37390E-03   -1.5654    
  11  Prefactor     12.070        9.9200        .28795E-03   -1.5638    
  12  norm          1.1901        .84664        .10439E-02   -1.5686    
  13  Prefactor     4.8492        4.4444        .45599E-03   -1.5664    
  14  Prefactor      .0000        1.6091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2106        4.3459        .37343E-03   -1.5654    
  16  norm          .16248        .59815        .28235E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .43588E-05    1.6781        .56153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8477        1.8299        .76690E-03   -1.5681    
  19  Prefactor     .76883E-07    4.8166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.866        50.325        .15693E-03   -1.5580    
  21  Prefactor     3.2144        13.918        .56041E-03   -1.5672    
  22  Prefactor     .34839E-06    10.346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .27589E-07    4.3352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .12823E-07    5.4694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .27756E-09    2.3876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .28810E-07    6.6233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0963        .11482        .38155E-01   -.89871    
  28  Prefactor     .88857        .12318        .44860E-01   -.96542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43309e-07
Minuit parameter uncertainties:
  1  0.000146382
  2  0.00215397
  3  3.0649
  4  0.00273737
  5  1.89481
  6  13.9993
  7  18.5226
  8  0.00177327
  9  22.5624
  10  5.56133
  11  9.92002
  12  0.846644
  13  4.44444
  14  1.25988e-05
  15  4.34589
  16  0.598153
  17  0.00540903
  18  1.82987
  19  0.00121701
  20  50.3251
  21  13.3772
  22  0.00379704
  23  0.000691796
  24  0.000530041
  25  5.30244e-05
  26  0.000874016
  27  0.114846
  28  0.123219
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  7.211e+00  4.346e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.096e+00  1.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.90
Ra Dec: 225.895 47.996
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 8.82e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14523.1982096
delta logL = 0.0705860501912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14523.1898626
delta logL = 0.0789330286898

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14523.19     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      305 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9519        5.6143        .80962E-04   -.21931E-02
   2  Index         2.3841        .48048        .64846E-02    .50162E-04
   3  Normalizat    1.0902        .13003        .22569E-03    .60449E-06
   4  Prefactor     .89237        .14256        .27121E-03    .10061E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.95189
  Index      = 2.38415
  Normalizat = 1.09016
  Prefactor  = 0.892368
 **********
 **   18 **HESSE 
 **********

 FCN=   14523.19     FROM HESSE     STATUS=OK            27 CALLS      332 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9519        4.8937        .32385E-05   -1.5659    
   2  Index         2.3841        .41876        .25939E-03   -.55057    
   3  Normalizat    1.0902        .12992        .90274E-05   -.90068    
   4  Prefactor     .89237        .14250        .10848E-04   -.96408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39265e-11
Minuit parameter uncertainties:
  1  4.89374
  2  0.419437
  3  0.129955
  4  0.142557
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) = 14523.1898622
delta logL = 0.0789333766297

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  5.952e+00  4.894e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.384e+00  4.194e-01  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.090e+00  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 225.895 47.996
Photon Index (Free Index): 2.38 +/- 0.42
Photon Flux (Free Index): 3.93e-08 +/- 2.58e-08
Energy Flux (Free Index): 1.32e-05 +/- 8.33e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35813614/cmap_HighResolution_808704001_809308801_4FGL_J1503.5+4759_weekly_bin942.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='1.32e-05', photon_flux_error='2.04e-08', dlogl='7.89e-02', energy_flux='1.46e-05', photon_flux2='3.93e-08', job_status='DONE', time_completed='2026-08-25 11:53:59.911606', photon_index_error2='0.42', photon_index2='2.38', ts='4.90', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='8.33e-06', EG='1.10', time_epoch_completed='1787684039.91', return_code='0', job_id='35813614', GAL2='0.89', EG2='1.09', return_code2='0', energy_flux_error='8.82e-06', photon_flux_error2='2.58e-08', ts2='5.04', photon_index='2.22' WHERE bin_id='942' AND source_name='4FGL J1503.5+4759' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug 25 11:53:59 PDT 2026

