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

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


Performing analysis on: 4FGL_J0507.9+6737_weekly_bin945
RA = 76.9956, Dec = 67.6223
tmin = 810518401, tmax = 811123201
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='38284871', job_status='RUN', time_executed='2026-09-15 03:52:27.567891', time_epoch_executed='1789469547.57' WHERE source_name='4FGL J0507.9+6737' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38284871

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38284871/ft1_4FGL_J0507.9+6737_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38284871/ft2_4FGL_J0507.9+6737_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38284871/ft1_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284871/ft1_filteredMKT_4FGL_J0507.9+6737_weekly_bin945.fits ra=76.9956 dec=67.6223 rad=12.0 tmin=810518401.0 tmax=811123201.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.60
user 5.22
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38284871/ft2_4FGL_J0507.9+6737_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38284871/ft2_4FGL_J0507.9+6737_weekly_bin945.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/38284871/ft1_filteredMKT_4FGL_J0507.9+6737_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38284871/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.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.47
user 0.24
sys 0.13

Number of photons that the gtmktime cut: 4814

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38284871/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38284871/ft2_4FGL_J0507.9+6737_weekly_bin945.fits sctable="SC_DATA"number of points = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0507.9+6737_weekly_bin945
RA = 76.9956, Dec = 67.6223
tmin = 810518401, tmax = 811123201
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='38284878', job_status='RUN', time_executed='2026-09-15 03:52:55.944625', time_epoch_executed='1789469575.94' WHERE source_name='4FGL J0507.9+6737' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38284878

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38284878/ft1_4FGL_J0507.9+6737_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38284878/ft2_4FGL_J0507.9+6737_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38284878/ft1_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284878/ft1_filteredMKT_4FGL_J0507.9+6737_weekly_bin945.fits ra=76.9956 dec=67.6223 rad=12.0 tmin=810518401.0 tmax=811123201.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.99
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38284878/ft2_4FGL_J0507.9+6737_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38284878/ft2_4FGL_J0507.9+6737_weekly_bin945.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/38284878/ft1_filteredMKT_4FGL_J0507.9+6737_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38284878/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.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.50
user 0.21
sys 0.11

Number of photons that the gtmktime cut: 4814

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38284878/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38284878/ft2_4FGL_J0507.9+6737_weekly_bin945.fits sctable="SC_DATA"number of points = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0507.9+6737_weekly_bin945
RA = 76.9956, Dec = 67.6223
tmin = 810518401, tmax = 811123201
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='38284880', job_status='RUN', time_executed='2026-09-15 03:52:55.930269', time_epoch_executed='1789469575.93' WHERE source_name='4FGL J0507.9+6737' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38284880

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38284880/ft1_4FGL_J0507.9+6737_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38284880/ft2_4FGL_J0507.9+6737_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38284880/ft1_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284880/ft1_filteredMKT_4FGL_J0507.9+6737_weekly_bin945.fits ra=76.9956 dec=67.6223 rad=12.0 tmin=810518401.0 tmax=811123201.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.70
user 5.27
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38284880/ft2_4FGL_J0507.9+6737_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38284880/ft2_4FGL_J0507.9+6737_weekly_bin945.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/38284880/ft1_filteredMKT_4FGL_J0507.9+6737_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38284880/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.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.51
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 4814

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38284880/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38284880/ft2_4FGL_J0507.9+6737_weekly_bin945.fits sctable="SC_DATA"number of points = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0507.9+6737_weekly_bin945
RA = 76.9956, Dec = 67.6223
tmin = 810518401, tmax = 811123201
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='38284884', job_status='RUN', time_executed='2026-09-15 03:53:08.194949', time_epoch_executed='1789469588.19' WHERE source_name='4FGL J0507.9+6737' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38284884

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38284884/ft1_4FGL_J0507.9+6737_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38284884/ft2_4FGL_J0507.9+6737_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38284884/ft1_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284884/ft1_filteredMKT_4FGL_J0507.9+6737_weekly_bin945.fits ra=76.9956 dec=67.6223 rad=12.0 tmin=810518401.0 tmax=811123201.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 5.42
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38284884/ft2_4FGL_J0507.9+6737_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38284884/ft2_4FGL_J0507.9+6737_weekly_bin945.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/38284884/ft1_filteredMKT_4FGL_J0507.9+6737_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38284884/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.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.51
user 0.24
sys 0.13

Number of photons that the gtmktime cut: 4814

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38284884/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38284884/ft2_4FGL_J0507.9+6737_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38284871/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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/38284871/ft2_4FGL_J0507.9+6737_weekly_bin945.fits
.....................!
real 18.12
user 17.68
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38284871/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38284871/ft2_4FGL_J0507.9+6737_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38284871/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284871/expmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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/38284871/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits
.....................!
real 72.27
user 67.64
sys 4.07

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 180 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0507.9+6737 @ 76.9956 67.6223

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38284871/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits scfile=/lscratch/kocevski/38284871/ft2_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284871/cmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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=76.9956 yref=67.6223 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.60
user 0.27
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38284871/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits scfile=/lscratch/kocevski/38284871/ft2_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284871/cmap_HighResolution_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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=76.9956 yref=67.6223 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 outfile=/lscratch/kocevski/38284878/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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/38284878/ft2_4FGL_J0507.9+6737_weekly_bin945.fits
.....................!
real 16.90
user 16.41
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38284878/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38284878/ft2_4FGL_J0507.9+6737_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38284878/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284878/expmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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/38284878/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits
.....................!
real 64.43
user 60.16
sys 3.75

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 180 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0507.9+6737 @ 76.9956 67.6223

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38284878/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits scfile=/lscratch/kocevski/38284878/ft2_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284878/cmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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=76.9956 yref=67.6223 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.52
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38284878/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits scfile=/lscratch/kocevski/38284878/ft2_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284878/cmap_HighResolution_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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=76.9956 yref=67.6223 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 outfile=/lscratch/kocevski/38284880/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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/38284880/ft2_4FGL_J0507.9+6737_weekly_bin945.fits
.....................!
real 18.32
user 17.84
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38284880/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38284880/ft2_4FGL_J0507.9+6737_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38284880/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284880/expmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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/38284880/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits
.....................!
real 74.42
user 69.69
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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 180 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0507.9+6737 @ 76.9956 67.6223

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38284880/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits scfile=/lscratch/kocevski/38284880/ft2_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284880/cmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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=76.9956 yref=67.6223 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.50
user 0.26
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38284880/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits scfile=/lscratch/kocevski/38284880/ft2_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284880/cmap_HighResolution_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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=76.9956 yref=67.6223 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 outfile=/lscratch/kocevski/38284884/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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/38284884/ft2_4FGL_J0507.9+6737_weekly_bin945.fits
.....................!
real 18.66
user 18.18
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38284884/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38284884/ft2_4FGL_J0507.9+6737_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38284884/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284884/expmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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/38284884/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits
.....................!
real 75.34
user 70.19
sys 4.32

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 180 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0507.9+6737 @ 76.9956 67.6223

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38284884/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits scfile=/lscratch/kocevski/38284884/ft2_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284884/cmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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=76.9956 yref=67.6223 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.50
user 0.25
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38284884/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits scfile=/lscratch/kocevski/38284884/ft2_4FGL_J0507.9+6737_weekly_bin945.fits outfile=/lscratch/kocevski/38284884/cmap_HighResolution_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.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=76.9956 yref=67.6223 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.50
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38284878/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38284878/ft2_4FGL_J0507.9+6737_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38284878/Model_4FGL_J0507.9+6737_weekly_bin945.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/38284878/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits.....................!
real 260.73
user 258.09
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38284878/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits', '/lscratch/kocevski/38284878/ft2_4FGL_J0507.9+6737_weekly_bin945.fits', expMap='/lscratch/kocevski/38284878/expmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits', expCube='/lscratch/kocevski/38284878/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38284878/Model_4FGL_J0507.9+6737_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0507.9+6737'

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  5.003e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
289        Index:  1.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38284878/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38284878/ft2_4FGL_J0507.9+6737_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38284878/expmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38284878/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38284878/Model_4FGL_J0507.9+6737_weekly_bin945.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) = 48054.5025925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0417       1.0000          .0000       .10000E+07
     2 'Prefactor '    .50515E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9833       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.1667       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17129E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .60142E-03   1.0000          .0000       .10000E+07
     7 'norm      '    6.5185       1.0000          .0000       .10000E+07
     8 'norm      '    3.9585       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.8193       1.0000          .0000       .10000E+07
    10 'Prefactor '    19.864       1.0000          .0000       .10000E+07
    11 'Prefactor '    .37277E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .74130E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32535E-06   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.1043       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .98893       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   48053.80     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      805 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0415        3.1091        .36058E-06    .25030E-02
   2  Prefactor      .0000        3.5894        .90821E-07** at limit **
   3  Prefactor     2.9838        2.2714        .84238E-07    .13561E-02
   4  Prefactor     2.1670        1.3937        .38734E-07    .11366E-02
   5  Prefactor     .64909E-06    16.344       -.73326E-07** at limit **
   6  Prefactor     .17072E-05    11.553        .21045E-06** at limit **
   7  norm          6.5240        6.0976        .29136E-07   -.69004E-02
   8  norm          4.0244        6.5297        .72539E-07    .60851E-01
   9  Prefactor     5.8222        4.7160       -.11925E-06   -.15037E-02
  10  Prefactor     19.756        5.2789       -.25485E-07   -.11203    
  11  Prefactor     .32907E-06    11.976        .59571E-07** at limit **
  12  Prefactor      .0000        2.1634       -.99719E-07** at limit **
  13  Prefactor      .0000        2.5763        .15820E-06** at limit **
  14  Normalizat    1.1045        .11120        .35911E-05   -.24565E-04
  15  Prefactor     .98888        .27660E-01   -.15656E-05   -.59675E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.04154
  Prefactor  = 0
  Prefactor  = 2.98378
  Prefactor  = 2.16701
  Prefactor  = 6.49092e-07
  Prefactor  = 1.70719e-06
  norm       = 6.524
  norm       = 4.02445
  Prefactor  = 5.82225
  Prefactor  = 19.7557
  Prefactor  = 3.2907e-07
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.10449
  Prefactor  = 0.988875
 (v3.41).

This is gtbin version HEAD
real 0.63
user 0.27
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38284871/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38284871/ft2_4FGL_J0507.9+6737_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38284871/Model_4FGL_J0507.9+6737_weekly_bin945.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/38284871/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits.....................!
real 319.39
user 316.12
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38284871/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits', '/lscratch/kocevski/38284871/ft2_4FGL_J0507.9+6737_weekly_bin945.fits', expMap='/lscratch/kocevski/38284871/expmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits', expCube='/lscratch/kocevski/38284871/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38284871/Model_4FGL_J0507.9+6737_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0507.9+6737'

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  5.003e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
289        Index:  1.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38284871/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38284871/ft2_4FGL_J0507.9+6737_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38284871/expmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38284871/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38284871/Model_4FGL_J0507.9+6737_weekly_bin945.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) = 48054.5025925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0417       1.0000          .0000       .10000E+07
     2 'Prefactor '    .50515E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9833       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.1667       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17129E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .60142E-03   1.0000          .0000       .10000E+07
     7 'norm      '    6.5185       1.0000          .0000       .10000E+07
     8 'norm      '    3.9585       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.8193       1.0000          .0000       .10000E+07
    10 'Prefactor '    19.864       1.0000          .0000       .10000E+07
    11 'Prefactor '    .37277E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .74130E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32535E-06   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.1043       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .98893       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+05 **********
 **   18 **HESSE 
 **********

 FCN=   48053.80     FROM HESSE     STATUS=OK           214 CALLS     1019 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0415        3.1021        .72342E-03   -1.5679    
   2  Prefactor      .0000        3.5953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9838        2.2760        .58753E-03   -1.5673    
   4  Prefactor     2.1670        1.3990        .69938E-03   -1.5679    
   5  Prefactor     .64909E-06    17.700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17072E-05    15.232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.5240        6.2005        .39284E-03   -1.5657    
   8  norm          4.0244        13.574        .50674E-03   -1.5668    
   9  Prefactor     5.8222        4.7164        .41609E-03   -1.5660    
  10  Prefactor     19.756        13.351        .22445E-03   -1.5619    
  11  Prefactor     .32907E-06    12.656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.1617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.5781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.1045        .10749        .11714       -.89608    
  15  Prefactor     .98888        .26286E-01    .29339E-01   -.93101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70036e-07
Minuit parameter uncertainties:
  1  3.10214
  2  9.30951e-06
  3  2.27597
  4  1.39899
  5  0.00677901
  6  0.0101989
  7  6.20047
  8  13.5739
  9  4.71636
  10  13.3507
  11  0.00408175
  12  4.58455e-06
  13  9.45956e-06
  14  0.10751
  15  0.0262867
 (v3.41).

This is gtbin version HEAD
real 0.47
user 0.25
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38284880/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38284880/ft2_4FGL_J0507.9+6737_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38284880/Model_4FGL_J0507.9+6737_weekly_bin945.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/38284880/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits.....................!
real 319.68
user 316.38
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38284880/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits', '/lscratch/kocevski/38284880/ft2_4FGL_J0507.9+6737_weekly_bin945.fits', expMap='/lscratch/kocevski/38284880/expmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits', expCube='/lscratch/kocevski/38284880/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38284880/Model_4FGL_J0507.9+6737_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0507.9+6737'

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  5.003e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
289        Index:  1.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38284880/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38284880/ft2_4FGL_J0507.9+6737_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38284880/expmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38284880/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38284880/Model_4FGL_J0507.9+6737_weekly_bin945.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) = 48054.5025925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0417       1.0000          .0000       .10000E+07
     2 'Prefactor '    .50515E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9833       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.1667       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17129E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .60142E-03   1.0000          .0000       .10000E+07
     7 'norm      '    6.5185       1.0000          .0000       .10000E+07
     8 'norm      '    3.9585       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.8193       1.0000          .0000       .10000E+07
    10 'Prefactor '    19.864       1.0000          .0000       .10000E+07
    11 'Prefactor '    .37277E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .74130E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32535E-06   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.1043       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .98893       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   48053.80     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      805 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0415        3.1091        .36058E-06    .25030E-02
   2  Prefactor      .0000        3.5894        .90821E-07** at limit **
   3  Prefactor     2.9838        2.2714        .84238E-07    .13561E-02
   4  Prefactor     2.1670        1.3937        .38734E-07    .11366E-02
   5  Prefactor     .64909E-06    16.344       -.73326E-07** at limit **
   6  Prefactor     .17072E-05    11.553        .21045E-06** at limit **
   7  norm          6.5240        6.0976        .29136E-07   -.69004E-02
   8  norm          4.0244        6.5297        .72539E-07    .60851E-01
   9  Prefactor     5.8222        4.7160       -.11925E-06   -.15037E-02
  10  Prefactor     19.756        5.2789       -.25485E-07   -.11203    
  11  Prefactor     .32907E-06    11.976        .59571E-07** at limit **
  12  Prefactor      .0000        2.1634       -.99719E-07** at limit **
  13  Prefactor      .0000        2.5763        .15820E-06** at limit **
  14  Normalizat    1.1045        .11120        .35911E-05   -.24565E-04
  15  Prefactor     .98888        .27660E-01   -.15656E-05   -.59675E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.04154
  Prefactor  = 0
  Prefactor  = 2.98378
  Prefactor  = 2.16701
  Prefactor  = 6.49092e-07
  Prefactor  = 1.70719e-06
  norm       = 6.524
  norm       = 4.02445
  Prefactor  = 5.82225
  Prefactor  = 19.7557
  Prefactor  = 3.2907e-07
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.10449
  Prefactor  = 0.988875
 (v3.41).

This is gtbin version HEAD
real 0.56
user 0.25
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38284884/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38284884/ft2_4FGL_J0507.9+6737_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38284884/Model_4FGL_J0507.9+6737_weekly_bin945.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/38284884/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits.....................!
real 319.01
user 315.77
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38284884/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits', '/lscratch/kocevski/38284884/ft2_4FGL_J0507.9+6737_weekly_bin945.fits', expMap='/lscratch/kocevski/38284884/expmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits', expCube='/lscratch/kocevski/38284884/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38284884/Model_4FGL_J0507.9+6737_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0507.9+6737'

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  5.003e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
289        Index:  1.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38284884/ft1_filtered_4FGL_J0507.9+6737_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38284884/ft2_4FGL_J0507.9+6737_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38284884/expmap_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38284884/ltcube_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38284884/Model_4FGL_J0507.9+6737_weekly_bin945.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) = 48054.5025925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0417       1.0000          .0000       .10000E+07
     2 'Prefactor '    .50515E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9833       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.1667       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17129E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .60142E-03   1.0000          .0000       .10000E+07
     7 'norm      '    6.5185       1.0000          .0000       .10000E+07
     8 'norm      '    3.9585       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.8193       1.0000          .0000       .10000E+07
    10 'Prefactor '    19.864       1.0000          .0000       .10000E+07
    11 'Prefactor '    .37277E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .74130E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32535E-06   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.1043       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .98893       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   48053.80     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      805 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0415        3.1091        .36058E-06    .25030E-02
   2  Prefactor      .0000        3.5894        .90821E-07** at limit **
   3  Prefactor     2.9838        2.2714        .84238E-07    .13561E-02
   4  Prefactor     2.1670        1.3937        .38734E-07    .11366E-02
   5  Prefactor     .64909E-06    16.344       -.73326E-07** at limit **
   6  Prefactor     .17072E-05    11.553        .21045E-06** at limit **
   7  norm          6.5240        6.0976        .29136E-07   -.69004E-02
   8  norm          4.0244        6.5297        .72539E-07    .60851E-01
   9  Prefactor     5.8222        4.7160       -.11925E-06   -.15037E-02
  10  Prefactor     19.756        5.2789       -.25485E-07   -.11203    
  11  Prefactor     .32907E-06    11.976        .59571E-07** at limit **
  12  Prefactor      .0000        2.1634       -.99719E-07** at limit **
  13  Prefactor      .0000        2.5763        .15820E-06** at limit **
  14  Normalizat    1.1045        .11120        .35911E-05   -.24565E-04
  15  Prefactor     .98888        .27660E-01   -.15656E-05   -.59675E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.04154
  Prefactor  = 0
  Prefactor  = 2.98378
  Prefactor  = 2.16701
  Prefactor  = 6.49092e-07
  Prefactor  = 1.70719e-06
  norm       = 6.524
  norm       = 4.02445
  Prefactor  = 5.82225
  Prefactor  = 19.7557
  Prefactor  = 3.2907e-07
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.10449
  Prefactor  = 0.988875
   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   48053.80     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      805 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0415        3.1091        .36058E-06    .25030E-02
   2  Prefactor      .0000        3.5894        .90821E-07** at limit **
   3  Prefactor     2.9838        2.2714        .84238E-07    .13561E-02
   4  Prefactor     2.1670        1.3937        .38734E-07    .11366E-02
   5  Prefactor     .64909E-06    16.344       -.73326E-07** at limit **
   6  Prefactor     .17072E-05    11.553        .21045E-06** at limit **
   7  norm          6.5240        6.0976        .29136E-07   -.69004E-02
   8  norm          4.0244        6.5297        .72539E-07    .60851E-01
   9  Prefactor     5.8222        4.7160       -.11925E-06   -.15037E-02
  10  Prefactor     19.756        5.2789       -.25485E-07   -.11203    
  11  Prefactor     .32907E-06    11.976        .59571E-07** at limit **
  12  Prefactor      .0000        2.1634       -.99719E-07** at limit **
  13  Prefactor      .0000        2.5763        .15820E-06** at limit **
  14  Normalizat    1.1045        .11120        .35911E-05   -.24565E-04
  15  Prefactor     .98888        .27660E-01   -.15656E-05   -.59675E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.04154
  Prefactor  = 0
  Prefactor  = 2.98378
  Prefactor  = 2.16701
  Prefactor  = 6.49092e-07
  Prefactor  = 1.70719e-06
  norm       = 6.524
  norm       = 4.02445
  Prefactor  = 5.82225
  Prefactor  = 19.7557
  Prefactor  = 3.2907e-07
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.10449
  Prefactor  = 0.988875
Done.

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

Extracting fit parameters...

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  5.822e+00  4.716e+00  0.000e+00  1.000e+06 ( 1.000e-14)
289        Index:  1.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.889e-01  2.629e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.104e+00  1.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.06
Ra Dec: 76.996 67.622
Photon Index (Fixed Index): 1.58 +/- 0.00
Photon Flux (Fixed Index): 7.08e-09 +/- 5.73e-09
Energy Flux (Fixed Index): 1.72e-05 +/- 1.40e-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) = 48053.8013123
delta logL = 0.00318778123619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 48053.8007726
delta logL = 0.00372747755318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6805       1.0000          .0000       .10000E+07
     2 'Index     '    1.6366       1.0000          .0000       10.000    
     3 'Normalizat'    1.1037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98888       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   48053.80     FROM MIGRAD    STATUS=FAILED        94 CALLS      264 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6807        5.5538        .16849E-04   -.12652E-01
   2  Index         1.6369        .76169        .32602E-01    .29523E-02
   3  Normalizat    1.1037        .11132        .51980E-03    .15677E-03
   4  Prefactor     .98889        .26469E-01    .12966E-03    .55977E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   48053.80     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      335 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6807        5.5538        .72700E-05   -1.5660    
   2  Index         1.6369        .76169        .76742E-03   -.73774    
   3  Normalizat    1.1037        .11132        .15993E-03   -.89633    
   4  Prefactor     .98889        .26469E-01    .31766E-04   -.93101    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   48053.80     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      372 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6808        4.9890        .33698E-05   -.51820E-03
   2  Index         1.6369        .69101        .65204E-02    .12394E-03
   3  Normalizat    1.1037        .11098        .20792E-04   -.48992E-04
   4  Prefactor     .98889        .26474E-01    .51862E-05   -.14380E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.68079
  Index      = 1.63691
  Normalizat = 1.10369
  Prefactor  = 0.988885
 **********
 **   18 **HESSE 
 **********

 FCN=   48053.80     FROM HESSE     STATUS=OK           214 CALLS     1019 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0415        3.1021        .72342E-03   -1.5679    
   2  Prefactor      .0000        3.5953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9838        2.2760        .58753E-03   -1.5673    
   4  Prefactor     2.1670        1.3990        .69938E-03   -1.5679    
   5  Prefactor     .64909E-06    17.700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17072E-05    15.232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.5240        6.2005        .39284E-03   -1.5657    
   8  norm          4.0244        13.574        .50674E-03   -1.5668    
   9  Prefactor     5.8222        4.7164        .41609E-03   -1.5660    
  10  Prefactor     19.756        13.351        .22445E-03   -1.5619    
  11  Prefactor     .32907E-06    12.656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.1617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.5781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.1045        .10749        .11714       -.89608    
  15  Prefactor     .98888        .26286E-01    .29339E-01   -.93101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70036e-07
Minuit parameter uncertainties:
  1  3.10214
  2  9.30951e-06
  3  2.27597
  4  1.39899
  5  0.00677901
  6  0.0101989
  7  6.20047
  8  13.5739
  9  4.71636
  10  13.3507
  11  0.00408175
  12  4.58455e-06
  13  9.45956e-06
  14  0.10751
  15  0.0262867
 **********
 **   18 **HESSE 
 **********

 FCN=   48053.80     FROM HESSE     STATUS=OK            25 CALLS      397 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6808        4.9213        .67396E-06   -1.5660    
   2  Index         1.6369        .68164        .13041E-02   -.73774    
   3  Normalizat    1.1037        .11106        .41584E-05   -.89633    
   4  Prefactor     .98889        .26506E-01    .10372E-05   -.93101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31261e-12
Minuit parameter uncertainties:
  1  4.92132
  2  0.685555
  3  0.111087
  4  0.0265065
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) = 48053.8007724
delta logL = 0.00372763929045

Extracting fit parameters...

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  5.681e+00  4.921e+00  0.000e+00  1.000e+06 ( 1.000e-14)
289        Index:  1.637e+00  6.856e-01  0.000e+00  1.000e+01 (-1.000e+00)
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.889e-01  2.651e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.104e+00  1.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.07
Ra Dec: 76.996 67.622
Photon Index (Free Index): 1.64 +/- 0.69
Photon Flux (Free Index): 8.06e-09 +/- 1.37e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.77e-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/38284878/cmap_HighResolution_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.08e-09', energy_flux2='1.62e-05', photon_flux_error='5.73e-09', dlogl='3.73e-03', energy_flux='1.72e-05', photon_flux2='8.06e-09', job_status='DONE', time_completed='2026-09-15 04:05:56.523291', photon_index_error2='0.69', photon_index2='1.64', ts='7.06', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='1.10', time_epoch_completed='1789470356.52', return_code='0', job_id='38284878', GAL2='0.99', EG2='1.10', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='1.37e-08', ts2='7.07', photon_index='1.58' WHERE bin_id='945' AND source_name='4FGL J0507.9+6737' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 04:05:56 PDT 2026

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

 FCN=   48053.80     FROM HESSE     STATUS=OK           214 CALLS     1019 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0415        3.1021        .72342E-03   -1.5679    
   2  Prefactor      .0000        3.5953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9838        2.2760        .58753E-03   -1.5673    
   4  Prefactor     2.1670        1.3990        .69938E-03   -1.5679    
   5  Prefactor     .64909E-06    17.700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17072E-05    15.232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.5240        6.2005        .39284E-03   -1.5657    
   8  norm          4.0244        13.574        .50674E-03   -1.5668    
   9  Prefactor     5.8222        4.7164        .41609E-03   -1.5660    
  10  Prefactor     19.756        13.351        .22445E-03   -1.5619    
  11  Prefactor     .32907E-06    12.656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.1617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.5781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.1045        .10749        .11714       -.89608    
  15  Prefactor     .98888        .26286E-01    .29339E-01   -.93101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70036e-07
Minuit parameter uncertainties:
  1  3.10214
  2  9.30951e-06
  3  2.27597
  4  1.39899
  5  0.00677901
  6  0.0101989
  7  6.20047
  8  13.5739
  9  4.71636
  10  13.3507
  11  0.00408175
  12  4.58455e-06
  13  9.45956e-06
  14  0.10751
  15  0.0262867
 **********
 **   18 **HESSE 
 **********

 FCN=   48053.80     FROM HESSE     STATUS=OK           214 CALLS     1019 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0415        3.1021        .72342E-03   -1.5679    
   2  Prefactor      .0000        3.5953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9838        2.2760        .58753E-03   -1.5673    
   4  Prefactor     2.1670        1.3990        .69938E-03   -1.5679    
   5  Prefactor     .64909E-06    17.700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17072E-05    15.232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.5240        6.2005        .39284E-03   -1.5657    
   8  norm          4.0244        13.574        .50674E-03   -1.5668    
   9  Prefactor     5.8222        4.7164        .41609E-03   -1.5660    
  10  Prefactor     19.756        13.351        .22445E-03   -1.5619    
  11  Prefactor     .32907E-06    12.656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.1617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.5781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.1045        .10749        .11714       -.89608    
  15  Prefactor     .98888        .26286E-01    .29339E-01   -.93101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70036e-07
Minuit parameter uncertainties:
  1  3.10214
  2  9.30951e-06
  3  2.27597
  4  1.39899
  5  0.00677901
  6  0.0101989
  7  6.20047
  8  13.5739
  9  4.71636
  10  13.3507
  11  0.00408175
  12  4.58455e-06
  13  9.45956e-06
  14  0.10751
  15  0.0262867
Done.

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

Extracting fit parameters...

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  5.822e+00  4.716e+00  0.000e+00  1.000e+06 ( 1.000e-14)
289        Index:  1.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.889e-01  2.629e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.104e+00  1.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.06
Ra Dec: 76.996 67.622
Photon Index (Fixed Index): 1.58 +/- 0.00
Photon Flux (Fixed Index): 7.08e-09 +/- 5.73e-09
Energy Flux (Fixed Index): 1.72e-05 +/- 1.40e-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) = 48053.8013123
delta logL = 0.00318778123619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 48053.8007726
delta logL = 0.00372747755318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6805       1.0000          .0000       .10000E+07
     2 'Index     '    1.6366       1.0000          .0000       10.000    
     3 'Normalizat'    1.1037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98888       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   48053.80     FROM MIGRAD    STATUS=FAILED        94 CALLS      264 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6807        5.5538        .16849E-04   -.12652E-01
   2  Index         1.6369        .76169        .32602E-01    .29523E-02
   3  Normalizat    1.1037        .11132        .51980E-03    .15677E-03
   4  Prefactor     .98889        .26469E-01    .12966E-03    .55977E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   48053.80     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      335 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6807        5.5538        .72700E-05   -1.5660    
   2  Index         1.6369        .76169        .76742E-03   -.73774    
   3  Normalizat    1.1037        .11132        .15993E-03   -.89633    
   4  Prefactor     .98889        .26469E-01    .31766E-04   -.93101    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   48053.80     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      372 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6808        4.9890        .33698E-05   -.51820E-03
   2  Index         1.6369        .69101        .65204E-02    .12394E-03
   3  Normalizat    1.1037        .11098        .20792E-04   -.48992E-04
   4  Prefactor     .98889        .26474E-01    .51862E-05   -.14380E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.68079
  Index      = 1.63691
  Normalizat = 1.10369
  Prefactor  = 0.988885
 **********
 **   18 **HESSE 
 **********

 FCN=   48053.80     FROM HESSE     STATUS=OK            25 CALLS      397 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6808        4.9213        .67396E-06   -1.5660    
   2  Index         1.6369        .68164        .13041E-02   -.73774    
   3  Normalizat    1.1037        .11106        .41584E-05   -.89633    
   4  Prefactor     .98889        .26506E-01    .10372E-05   -.93101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31261e-12
Minuit parameter uncertainties:
  1  4.92132
  2  0.685555
  3  0.111087
  4  0.0265065
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) = 48053.8007724
delta logL = 0.00372763929045

Extracting fit parameters...

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  5.681e+00  4.921e+00  0.000e+00  1.000e+06 ( 1.000e-14)
289        Index:  1.637e+00  6.856e-01  0.000e+00  1.000e+01 (-1.000e+00)
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.889e-01  2.651e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.104e+00  1.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.07
Ra Dec: 76.996 67.622
Photon Index (Free Index): 1.64 +/- 0.69
Photon Flux (Free Index): 8.06e-09 +/- 1.37e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.77e-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/38284871/cmap_HighResolution_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.08e-09', energy_flux2='1.62e-05', photon_flux_error='5.73e-09', dlogl='3.73e-03', energy_flux='1.72e-05', photon_flux2='8.06e-09', job_status='DONE', time_completed='2026-09-15 04:07:36.691848', photon_index_error2='0.69', photon_index2='1.64', ts='7.06', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='1.10', time_epoch_completed='1789470456.69', return_code='0', job_id='38284871', GAL2='0.99', EG2='1.10', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='1.37e-08', ts2='7.07', photon_index='1.58' WHERE bin_id='945' AND source_name='4FGL J0507.9+6737' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 04:07:36 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  5.822e+00  4.716e+00  0.000e+00  1.000e+06 ( 1.000e-14)
289        Index:  1.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.889e-01  2.629e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.104e+00  1.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.06
Ra Dec: 76.996 67.622
Photon Index (Fixed Index): 1.58 +/- 0.00
Photon Flux (Fixed Index): 7.08e-09 +/- 5.73e-09
Energy Flux (Fixed Index): 1.72e-05 +/- 1.40e-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) = 48053.8013123
delta logL = 0.00318778123619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 48053.8007726
delta logL = 0.00372747755318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6805       1.0000          .0000       .10000E+07
     2 'Index     '    1.6366       1.0000          .0000       10.000    
     3 'Normalizat'    1.1037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98888       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   48053.80     FROM MIGRAD    STATUS=FAILED        94 CALLS      264 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6807        5.5538        .16849E-04   -.12652E-01
   2  Index         1.6369        .76169        .32602E-01    .29523E-02
   3  Normalizat    1.1037        .11132        .51980E-03    .15677E-03
   4  Prefactor     .98889        .26469E-01    .12966E-03    .55977E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   48053.80     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      335 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6807        5.5538        .72700E-05   -1.5660    
   2  Index         1.6369        .76169        .76742E-03   -.73774    
   3  Normalizat    1.1037        .11132        .15993E-03   -.89633    
   4  Prefactor     .98889        .26469E-01    .31766E-04   -.93101    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   48053.80     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      372 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6808        4.9890        .33698E-05   -.51820E-03
   2  Index         1.6369        .69101        .65204E-02    .12394E-03
   3  Normalizat    1.1037        .11098        .20792E-04   -.48992E-04
   4  Prefactor     .98889        .26474E-01    .51862E-05   -.14380E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.68079
  Index      = 1.63691
  Normalizat = 1.10369
  Prefactor  = 0.988885
 **********
 **   18 **HESSE 
 **********

 FCN=   48053.80     FROM HESSE     STATUS=OK            25 CALLS      397 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6808        4.9213        .67396E-06   -1.5660    
   2  Index         1.6369        .68164        .13041E-02   -.73774    
   3  Normalizat    1.1037        .11106        .41584E-05   -.89633    
   4  Prefactor     .98889        .26506E-01    .10372E-05   -.93101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31261e-12
Minuit parameter uncertainties:
  1  4.92132
  2  0.685555
  3  0.111087
  4  0.0265065
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) = 48053.8007724
delta logL = 0.00372763929045

Extracting fit parameters...

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  5.681e+00  4.921e+00  0.000e+00  1.000e+06 ( 1.000e-14)
289        Index:  1.637e+00  6.856e-01  0.000e+00  1.000e+01 (-1.000e+00)
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.889e-01  2.651e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.104e+00  1.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.07
Ra Dec: 76.996 67.622
Photon Index (Free Index): 1.64 +/- 0.69
Photon Flux (Free Index): 8.06e-09 +/- 1.37e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.77e-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/38284880/cmap_HighResolution_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.08e-09', energy_flux2='1.62e-05', photon_flux_error='5.73e-09', dlogl='3.73e-03', energy_flux='1.72e-05', photon_flux2='8.06e-09', job_status='DONE', time_completed='2026-09-15 04:08:08.323284', photon_index_error2='0.69', photon_index2='1.64', ts='7.06', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='1.10', time_epoch_completed='1789470488.32', return_code='0', job_id='38284880', GAL2='0.99', EG2='1.10', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='1.37e-08', ts2='7.07', photon_index='1.58' WHERE bin_id='945' AND source_name='4FGL J0507.9+6737' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 04:08:08 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  5.822e+00  4.716e+00  0.000e+00  1.000e+06 ( 1.000e-14)
289        Index:  1.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.889e-01  2.629e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.104e+00  1.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.06
Ra Dec: 76.996 67.622
Photon Index (Fixed Index): 1.58 +/- 0.00
Photon Flux (Fixed Index): 7.08e-09 +/- 5.73e-09
Energy Flux (Fixed Index): 1.72e-05 +/- 1.40e-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) = 48053.8013123
delta logL = 0.00318778123619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 48053.8007726
delta logL = 0.00372747755318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6805       1.0000          .0000       .10000E+07
     2 'Index     '    1.6366       1.0000          .0000       10.000    
     3 'Normalizat'    1.1037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98888       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   48053.80     FROM MIGRAD    STATUS=FAILED        94 CALLS      264 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6807        5.5538        .16849E-04   -.12652E-01
   2  Index         1.6369        .76169        .32602E-01    .29523E-02
   3  Normalizat    1.1037        .11132        .51980E-03    .15677E-03
   4  Prefactor     .98889        .26469E-01    .12966E-03    .55977E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   48053.80     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      335 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6807        5.5538        .72700E-05   -1.5660    
   2  Index         1.6369        .76169        .76742E-03   -.73774    
   3  Normalizat    1.1037        .11132        .15993E-03   -.89633    
   4  Prefactor     .98889        .26469E-01    .31766E-04   -.93101    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   48053.80     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      372 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6808        4.9890        .33698E-05   -.51820E-03
   2  Index         1.6369        .69101        .65204E-02    .12394E-03
   3  Normalizat    1.1037        .11098        .20792E-04   -.48992E-04
   4  Prefactor     .98889        .26474E-01    .51862E-05   -.14380E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.68079
  Index      = 1.63691
  Normalizat = 1.10369
  Prefactor  = 0.988885
 **********
 **   18 **HESSE 
 **********

 FCN=   48053.80     FROM HESSE     STATUS=OK            25 CALLS      397 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6808        4.9213        .67396E-06   -1.5660    
   2  Index         1.6369        .68164        .13041E-02   -.73774    
   3  Normalizat    1.1037        .11106        .41584E-05   -.89633    
   4  Prefactor     .98889        .26506E-01    .10372E-05   -.93101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31261e-12
Minuit parameter uncertainties:
  1  4.92132
  2  0.685555
  3  0.111087
  4  0.0265065
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) = 48053.8007724
delta logL = 0.00372763929045

Extracting fit parameters...

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  5.681e+00  4.921e+00  0.000e+00  1.000e+06 ( 1.000e-14)
289        Index:  1.637e+00  6.856e-01  0.000e+00  1.000e+01 (-1.000e+00)
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.889e-01  2.651e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.104e+00  1.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.07
Ra Dec: 76.996 67.622
Photon Index (Free Index): 1.64 +/- 0.69
Photon Flux (Free Index): 8.06e-09 +/- 1.37e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.77e-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/38284884/cmap_HighResolution_810518401_811123201_4FGL_J0507.9+6737_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.08e-09', energy_flux2='1.62e-05', photon_flux_error='5.73e-09', dlogl='3.73e-03', energy_flux='1.72e-05', photon_flux2='8.06e-09', job_status='DONE', time_completed='2026-09-15 04:08:26.927927', photon_index_error2='0.69', photon_index2='1.64', ts='7.06', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='1.10', time_epoch_completed='1789470506.93', return_code='0', job_id='38284884', GAL2='0.99', EG2='1.10', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='1.37e-08', ts2='7.07', photon_index='1.58' WHERE bin_id='945' AND source_name='4FGL J0507.9+6737' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 04:08:27 PDT 2026

