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


Performing analysis on: 4FGL_J1245.1+5709_weekly_bin937
RA = 191.288, Dec = 57.158
tmin = 805680001, tmax = 806284801
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='32623596', job_status='RUN', time_executed='2026-07-21 10:13:03.908563', time_epoch_executed='1784653983.91' WHERE source_name='4FGL J1245.1+5709' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32623596

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32623596/ft1_4FGL_J1245.1+5709_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32623596/ft2_4FGL_J1245.1+5709_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32623596/ft1_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623596/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits ra=191.288 dec=57.158 rad=12.0 tmin=805680001.0 tmax=806284801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.87
user 3.75
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32623596/ft2_4FGL_J1245.1+5709_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32623596/ft2_4FGL_J1245.1+5709_weekly_bin937.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/32623596/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32623596/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1416

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32623596/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32623596/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" o/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).

number of points = 17284
number of fields = 31
RA_SUN column already exists. File will not be modified.
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/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)
Done.


Performing analysis on: 4FGL_J1245.1+5709_weekly_bin937
RA = 191.288, Dec = 57.158
tmin = 805680001, tmax = 806284801
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='32623632', job_status='RUN', time_executed='2026-07-21 10:13:31.611635', time_epoch_executed='1784654011.61' WHERE source_name='4FGL J1245.1+5709' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32623632

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32623632/ft1_4FGL_J1245.1+5709_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32623632/ft2_4FGL_J1245.1+5709_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32623632/ft1_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623632/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits ra=191.288 dec=57.158 rad=12.0 tmin=805680001.0 tmax=806284801.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.20
user 4.16
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32623632/ft2_4FGL_J1245.1+5709_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32623632/ft2_4FGL_J1245.1+5709_weekly_bin937.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/32623632/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32623632/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1416

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32623632/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32623632/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" o
WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

utfile=/lscratch/kocevski/32623596/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32623596/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 16.17
user 15.20
sys 0.19

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32623596/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32623596/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32623596/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623596/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32623596/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 60.01
user 55.55
sys 3.36

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

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32623596/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32623596/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623596/cmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.08
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32623596/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32623596/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623596/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 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.94
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32623596/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32623596/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32623596/Model_4FGL_J1245.1+5709_weekly_bin937.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J1245.1+5709_weekly_bin937
RA = 191.288, Dec = 57.158
tmin = 805680001, tmax = 806284801
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='32623819', job_status='RUN', time_executed='2026-07-21 10:15:30.624004', time_epoch_executed='1784654130.62' WHERE source_name='4FGL J1245.1+5709' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32623819

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32623819/ft1_4FGL_J1245.1+5709_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32623819/ft2_4FGL_J1245.1+5709_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32623819/ft1_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623819/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits ra=191.288 dec=57.158 rad=12.0 tmin=805680001.0 tmax=806284801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.60
user 3.69
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32623819/ft2_4FGL_J1245.1+5709_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32623819/ft2_4FGL_J1245.1+5709_weekly_bin937.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/32623819/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32623819/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.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.99
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 1416

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32623819/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32623819/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" outfile=/lscratch/kocevski/32623632/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32623632/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 18.06
user 17.01
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32623632/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32623632/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32623632/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623632/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32623632/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 67.57
user 62.67
sys 3.84

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

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32623632/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32623632/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623632/cmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.07
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32623632/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32623632/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623632/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.06
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32623632/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32623632/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32623632/Model_4FGL_J1245.1+5709_weekly_bin937.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J1245.1+5709_weekly_bin937
RA = 191.288, Dec = 57.158
tmin = 805680001, tmax = 806284801
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='32623941', job_status='RUN', time_executed='2026-07-21 10:16:30.133442', time_epoch_executed='1784654190.13' WHERE source_name='4FGL J1245.1+5709' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32623941

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32623941/ft1_4FGL_J1245.1+5709_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32623941/ft2_4FGL_J1245.1+5709_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32623941/ft1_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623941/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits ra=191.288 dec=57.158 rad=12.0 tmin=805680001.0 tmax=806284801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.84
user 3.74
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32623941/ft2_4FGL_J1245.1+5709_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32623941/ft2_4FGL_J1245.1+5709_weekly_bin937.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/32623941/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32623941/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1416

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32623941/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32623941/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" onumber of points = 17284
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1245.1+5709_weekly_bin937
RA = 191.288, Dec = 57.158
tmin = 805680001, tmax = 806284801
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='32623852', job_status='RUN', time_executed='2026-07-21 10:16:08.808887', time_epoch_executed='1784654168.81' WHERE source_name='4FGL J1245.1+5709' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32623852

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32623852/ft1_4FGL_J1245.1+5709_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32623852/ft2_4FGL_J1245.1+5709_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32623852/ft1_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623852/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits ra=191.288 dec=57.158 rad=12.0 tmin=805680001.0 tmax=806284801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.71
user 3.68
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32623852/ft2_4FGL_J1245.1+5709_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32623852/ft2_4FGL_J1245.1+5709_weekly_bin937.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/32623852/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32623852/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1416

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32623852/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32623852/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" outfile=/lscratch/kocevski/32623819/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32623819/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 16.14
user 15.19
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32623819/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32623819/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32623819/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623819/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32623819/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 60.03
user 55.34
sys 3.56

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

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32623819/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32623819/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623819/cmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.96
user 0.20
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32623819/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32623819/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623819/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.03
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32623819/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32623819/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32623819/Model_4FGL_J1245.1+5709_weekly_bin937.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/32623596/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits.....................!
real 39.91
user 37.94
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32623596/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits', '/lscratch/kocevski/32623596/ft2_4FGL_J1245.1+5709_weekly_bin937.fits', expMap='/lscratch/kocevski/32623596/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', expCube='/lscratch/kocevski/32623596/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32623596/Model_4FGL_J1245.1+5709_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32623596/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32623596/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32623596/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32623596/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32623596/Model_4FGL_J1245.1+5709_weekly_bin937.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) = 15382.4158982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23069       1.0000          .0000       .10000E+07
     2 'Prefactor '    24.747       1.0000          .0000       .10000E+07
     3 'norm      '    .68061E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8589       1.0000          .0000       .10000E+07
     5 'norm      '    .67113E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.378       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.7261       1.0000          .0000       .10000E+07
     8 'Prefactor '    .34164E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7172       1.0000          .0000       .10000E+07
    10 'Prefactor '    .83164E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .35825E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.6191       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.6862       1.0000          .0000       .10000E+07
    14 'norm      '    2.9535       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10986E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.6208       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.3203       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.0275       1.0000          .0000       .10000E+07
    19 'norm      '    .83134       1.0000          .0000       .10000E+07
    20 'Prefactor '    .30270E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    47.912       1.0000          .0000       .10000E+07
    22 'norm      '    .65862E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    21.197       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.5247       1.0000          .0000       .10000E+07
    25 'norm      '    .24675E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .86949       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0325       1.0000          .00number of points = 17284
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1245.1+5709_weekly_bin937
RA = 191.288, Dec = 57.158
tmin = 805680001, tmax = 806284801
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='32624078', job_status='RUN', time_executed='2026-07-21 10:17:46.662659', time_epoch_executed='1784654266.66' WHERE source_name='4FGL J1245.1+5709' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32624078

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32624078/ft1_4FGL_J1245.1+5709_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32624078/ft2_4FGL_J1245.1+5709_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32624078/ft1_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624078/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits ra=191.288 dec=57.158 rad=12.0 tmin=805680001.0 tmax=806284801.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.38
user 4.27
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32624078/ft2_4FGL_J1245.1+5709_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32624078/ft2_4FGL_J1245.1+5709_weekly_bin937.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/32624078/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32624078/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1416

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32624078/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32624078/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" o00       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1858 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22466        5.9031       -.96495E-06** at limit **
   2  Prefactor     25.280        5.9833        .20462E-06   -.10267    
   3  norm           .0000        1.6710       -.21436E-07** at limit **
   4  Prefactor     2.8601        1.8633        .92644E-07    .19552E-02
   5  norm           .0000        .43601       -.95798E-07** at limit **
   6  Prefactor     21.399        1.6027       -.45348E-07    .10918E-01
   7  Prefactor     7.7262        3.2897        .32339E-07    .93222E-03
   8  Prefactor     .55511E-10    2.0960        .11059E-06** at limit **
   9  norm          1.7190        1.0801       -.63929E-07   -.27222E-02
  10  Prefactor     .18319E-08    8.4137        .43110E-06** at limit **
  11  norm           .0000        1.0392        .41845E-09** at limit **
  12  Prefactor     6.6350        7.4375       -.59674E-06   -.39483E-01
  13  Prefactor     6.6771        3.6203        .12209E-07    .37808E-03
  14  norm          2.9555        1.2842        .79175E-08    .64285E-03
  15  Prefactor     .55511E-10    2.7694        .14041E-06** at limit **
  16  norm          1.6216        .89409       -.16985E-07    .37137E-03
  17  Prefactor     6.4341        1.7912       -.20913E-07    .88277E-02
  18  Prefactor     6.0244        5.2613       -.53043E-07   -.60232E-02
  19  norm          .83233        1.8694        .15743E-07   -.38611E-03
  20  Prefactor     .57732E-08    12.495        .29523E-06** at limit **
  21  Prefactor     47.918        1.1663        .87849E-08   -.74864E-03
  22  norm           .0000        1.7219       -.78329E-07** at limit **
  23  Prefactor     21.766        25.273        .46788E-06   -.33179E-02
  24  Prefactor     1.5276        1.8421       -.29281E-07   -.70712E-03
  25  norm           .0000        .68510       -.76962E-07** at limit **
  26  Normalizat    .86854        .11227        .28577E-05    .57920E-04
  27  Prefactor     1.0329        .13839       -.28518E-05    .17750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.224657
  Prefactor  = 25.2801
  norm       = 0
  Prefactor  = 2.86013
  norm       = 0
  Prefactor  = 21.3992
  Prefactor  = 7.72625
  Prefactor  = 5.55112e-11
  norm       = 1.71898
  Prefactor  = 1.83187e-09
  norm       = 0
  Prefactor  = 6.63504
  Prefactor  = 6.67712
  norm       = 2.95545
  Prefactor  = 5.55112e-11
  norm       = 1.62159
  Prefactor  = 6.43411
  Prefactor  = 6.02445
  norm       = 0.832325
  Prefactor  = 5.77316e-09
  Prefactor  = 47.9178
  norm       = 0
  Prefactor  = 21.7663
  Prefactor  = 1.52759
  norm       = 0
  Normalizat = 0.868538
  Prefactor  = 1.0329
number of points = 17284
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1245.1+5709_weekly_bin937
RA = 191.288, Dec = 57.158
tmin = 805680001, tmax = 806284801
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='32624094', job_status='RUN', time_executed='2026-07-21 10:18:11.658663', time_epoch_executed='1784654291.66' WHERE source_name='4FGL J1245.1+5709' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32624094

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32624094/ft1_4FGL_J1245.1+5709_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32624094/ft2_4FGL_J1245.1+5709_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32624094/ft1_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624094/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits ra=191.288 dec=57.158 rad=12.0 tmin=805680001.0 tmax=806284801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.70
user 3.69
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32624094/ft2_4FGL_J1245.1+5709_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32624094/ft2_4FGL_J1245.1+5709_weekly_bin937.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/32624094/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32624094/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1416

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32624094/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32624094/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" outfile=/lscratch/kocevski/32623941/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32623941/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 16.20
user 15.15
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32623941/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32623941/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32623941/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623941/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32623941/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 59.91
user 55.51
sys 3.48

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

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32623941/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32623941/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623941/cmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.98
user 0.21
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32623941/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32623941/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623941/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.17
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32623941/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32623941/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32623941/Model_4FGL_J1245.1+5709_weekly_bin937.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GALutfile=/lscratch/kocevski/32623852/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32623852/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 16.24
user 15.18
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32623852/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32623852/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32623852/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623852/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32623852/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 60.18
user 55.60
sys 3.47

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

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32623852/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32623852/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623852/cmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.10
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32623852/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32623852/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32623852/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.10
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32623852/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32623852/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32623852/Model_4FGL_J1245.1+5709_weekly_bin937.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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

 FCN=   15382.35     FROM HESSE     STATUS=OK           552 CALLS     2410 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22466        1.2337        .71096E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.280        15.447        .20106E-03   -1.5607    
   3  norm           .0000        1.6711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8601        2.0049        .60099E-03   -1.5674    
   5  norm           .0000        .43549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.399        12.620        .21634E-03   -1.5615    
   7  Prefactor     7.7262        3.2892        .36053E-03   -1.5652    
   8  Prefactor     .55511E-10    2.0972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7190        1.0798        .80152E-04   -1.5682    
  10  Prefactor     .18319E-08    8.4036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.0387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6350        8.1692        .38981E-03   -1.5656    
  13  Prefactor     6.6771        3.6249        .38783E-03   -1.5656    
  14  norm          2.9555        1.2857        .59067E-03   -1.5674    
  15  Prefactor     .55511E-10    2.7692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6216        .88907        .83098E-03   -1.5682    
  17  Prefactor     6.4341        17.739        .39903E-03   -1.5657    
  18  Prefactor     6.0244        5.2896        .40874E-03   -1.5659    
  19  norm          .83233        1.9147        .50627E-03   -1.5690    
  20  Prefactor     .57732E-08    12.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.918        22.006        .14448E-03   -1.5570    
  22  norm           .0000        1.6510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.766        25.307        .21727E-03   -1.5615    
  24  Prefactor     1.5276        1.8621        .86459E-03   -1.5683    
  25  norm           .0000        .68311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86854        .98041E-01    .44510E-01   -.97575    
  27  Prefactor     1.0329        .11878        .41067E-01   -.91641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35167e-06
Minuit parameter uncertainties:
  1  1.05293
  2  15.4471
  3  3.97273e-06
  4  2.0049
  5  2.32406e-06
  6  12.6197
  7  3.28925
  8  1.97862e-05
  9  1.07977
  10  0.000247207
  11  3.0309e-08
  12  8.16917
  13  3.62488
  14  1.28572
  15  2.94037e-05
  16  0.889068
  17  17.739
  18  5.28962
  19  1.91474
  20  0.000539019
  21  22.0063
  22  6.52295e-06
  23  25.3067
  24  1.86212
  25  2.15183e-06
  26  0.0980615
  27  0.118815
_V02
Working on...
/lscratch/kocevski/32623632/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits.....................!
real 45.93
user 44.18
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32623632/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits', '/lscratch/kocevski/32623632/ft2_4FGL_J1245.1+5709_weekly_bin937.fits', expMap='/lscratch/kocevski/32623632/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', expCube='/lscratch/kocevski/32623632/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32623632/Model_4FGL_J1245.1+5709_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32623632/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32623632/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32623632/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32623632/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32623632/Model_4FGL_J1245.1+5709_weekly_bin937.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) = 15382.4158982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23069       1.0000          .0000       .10000E+07
     2 'Prefactor '    24.747       1.0000          .0000       .10000E+07
     3 'norm      '    .68061E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8589       1.0000          .0000       .10000E+07
     5 'norm      '    .67113E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.378       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.7261       1.0000          .0000       .10000E+07
     8 'Prefactor '    .34164E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7172       1.0000          .0000       .10000E+07
    10 'Prefactor '    .83164E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .35825E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.6191       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.6862       1.0000          .0000       .10000E+07
    14 'norm      '    2.9535       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10986E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.6208       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.3203       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.0275       1.0000          .0000       .10000E+07
    19 'norm      '    .83134       1.0000          .0000       .10000E+07
    20 'Prefactor '    .30270E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    47.912       1.0000          .0000       .10000E+07
    22 'norm      '    .65862E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    21.197       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.5247       1.0000          .0000       .10000E+07
    25 'norm      '    .24675E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .86949       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0325       1.0000          .00Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.677e+00  3.625e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.033e+00  1.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.685e-01  9.806e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.86
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 8.20e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3481414
delta logL = 0.00120889289428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3474693
delta logL = 0.0018809986268

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8269        69.667        .38376E-03    .20025E-01
   2  Index         2.1054        2.7781        .12668        .26991E-03
   3  Normalizat    .86932        .51011E-01    .44508E-01    .31313E-04
   4  Prefactor     1.0324        .48261E-01    .41075E-01    .24712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.82689
  Index      = 2.10543
  Normalizat = 0.869323
  Prefactor  = 1.03236
number of points = 17284
number of fields = 31
RA_SUN column already exists. File will not be modified.
 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8269        4.5364        .15351E-04   -1.5656    
   2  Index         2.1054        .38753        .73400E-02   -.61740    
   3  Normalizat    .86932        .10921        .22104E-03   -.97547    
   4  Prefactor     1.0324        .13807        .25932E-03   -.91658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83707e-09
Minuit parameter uncertainties:
  1  4.5364
  2  0.38812
  3  0.109234
  4  0.138122
Done.


Performing analysis on: 4FGL_J1245.1+5709_weekly_bin937
RA = 191.288, Dec = 57.158
tmin = 805680001, tmax = 806284801
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='32624098', job_status='RUN', time_executed='2026-07-21 10:18:17.244468', time_epoch_executed='1784654297.24' WHERE source_name='4FGL J1245.1+5709' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32624098

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32624098/ft1_4FGL_J1245.1+5709_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32624098/ft2_4FGL_J1245.1+5709_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32624098/ft1_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624098/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits ra=191.288 dec=57.158 rad=12.0 tmin=805680001.0 tmax=806284801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.48
user 4.29
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32624098/ft2_4FGL_J1245.1+5709_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32624098/ft2_4FGL_J1245.1+5709_weekly_bin937.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/32624098/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32624098/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1416

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32624098/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32624098/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" oshell-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) = 15382.3474692
delta logL = 0.00188102606262

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.827e+00  4.536e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.105e+00  3.881e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.032e+00  1.381e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.693e-01  1.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.88
Ra Dec: 191.288 57.158
Photon Index (Free Index): 2.11 +/- 0.39
Photon Flux (Free Index): 2.85e-08 +/- 1.84e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.07e-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/32623596/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='1.55e-05', photon_flux_error='1.58e-08', dlogl='1.88e-03', energy_flux='1.51e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2026-07-21 10:26:57.618256', photon_index_error2='0.39', photon_index2='2.11', ts='9.86', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='0.87', time_epoch_completed='1784654817.62', return_code='0', job_id='32623596', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='1.84e-08', ts2='9.88', photon_index='2.13' WHERE bin_id='937' AND source_name='4FGL J1245.1+5709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 10:26:58 PDT 2026

00       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1858 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22466        5.9031       -.96495E-06** at limit **
   2  Prefactor     25.280        5.9833        .20462E-06   -.10267    
   3  norm           .0000        1.6710       -.21436E-07** at limit **
   4  Prefactor     2.8601        1.8633        .92644E-07    .19552E-02
   5  norm           .0000        .43601       -.95798E-07** at limit **
   6  Prefactor     21.399        1.6027       -.45348E-07    .10918E-01
   7  Prefactor     7.7262        3.2897        .32339E-07    .93222E-03
   8  Prefactor     .55511E-10    2.0960        .11059E-06** at limit **
   9  norm          1.7190        1.0801       -.63929E-07   -.27222E-02
  10  Prefactor     .18319E-08    8.4137        .43110E-06** at limit **
  11  norm           .0000        1.0392        .41845E-09** at limit **
  12  Prefactor     6.6350        7.4375       -.59674E-06   -.39483E-01
  13  Prefactor     6.6771        3.6203        .12209E-07    .37808E-03
  14  norm          2.9555        1.2842        .79175E-08    .64285E-03
  15  Prefactor     .55511E-10    2.7694        .14041E-06** at limit **
  16  norm          1.6216        .89409       -.16985E-07    .37137E-03
  17  Prefactor     6.4341        1.7912       -.20913E-07    .88277E-02
  18  Prefactor     6.0244        5.2613       -.53043E-07   -.60232E-02
  19  norm          .83233        1.8694        .15743E-07   -.38611E-03
  20  Prefactor     .57732E-08    12.495        .29523E-06** at limit **
  21  Prefactor     47.918        1.1663        .87849E-08   -.74864E-03
  22  norm           .0000        1.7219       -.78329E-07** at limit **
  23  Prefactor     21.766        25.273        .46788E-06   -.33179E-02
  24  Prefactor     1.5276        1.8421       -.29281E-07   -.70712E-03
  25  norm           .0000        .68510       -.76962E-07** at limit **
  26  Normalizat    .86854        .11227        .28577E-05    .57920E-04
  27  Prefactor     1.0329        .13839       -.28518E-05    .17750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.224657
  Prefactor  = 25.2801
  norm       = 0
  Prefactor  = 2.86013
  norm       = 0
  Prefactor  = 21.3992
  Prefactor  = 7.72625
  Prefactor  = 5.55112e-11
  norm       = 1.71898
  Prefactor  = 1.83187e-09
  norm       = 0
  Prefactor  = 6.63504
  Prefactor  = 6.67712
  norm       = 2.95545
  Prefactor  = 5.55112e-11
  norm       = 1.62159
  Prefactor  = 6.43411
  Prefactor  = 6.02445
  norm       = 0.832325
  Prefactor  = 5.77316e-09
  Prefactor  = 47.9178
  norm       = 0
  Prefactor  = 21.7663
  Prefactor  = 1.52759
  norm       = 0
  Normalizat = 0.868538
  Prefactor  = 1.0329
 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK           552 CALLS     2410 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22466        1.2337        .71096E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.280        15.447        .20106E-03   -1.5607    
   3  norm           .0000        1.6711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8601        2.0049        .60099E-03   -1.5674    
   5  norm           .0000        .43549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.399        12.620        .21634E-03   -1.5615    
   7  Prefactor     7.7262        3.2892        .36053E-03   -1.5652    
   8  Prefactor     .55511E-10    2.0972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7190        1.0798        .80152E-04   -1.5682    
  10  Prefactor     .18319E-08    8.4036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.0387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6350        8.1692        .38981E-03   -1.5656    
  13  Prefactor     6.6771        3.6249        .38783E-03   -1.5656    
  14  norm          2.9555        1.2857        .59067E-03   -1.5674    
  15  Prefactor     .55511E-10    2.7692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6216        .88907        .83098E-03   -1.5682    
  17  Prefactor     6.4341        17.739        .39903E-03   -1.5657    
  18  Prefactor     6.0244        5.2896        .40874E-03   -1.5659    
  19  norm          .83233        1.9147        .50627E-03   -1.5690    
  20  Prefactor     .57732E-08    12.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.918        22.006        .14448E-03   -1.5570    
  22  norm           .0000        1.6510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.766        25.307        .21727E-03   -1.5615    
  24  Prefactor     1.5276        1.8621        .86459E-03   -1.5683    
  25  norm           .0000        .68311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86854        .98041E-01    .44510E-01   -.97575    
  27  Prefactor     1.0329        .11878        .41067E-01   -.91641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35167e-06
Minuit parameter uncertainties:
  1  1.05293
  2  15.4471
  3  3.97273e-06
  4  2.0049
  5  2.32406e-06
  6  12.6197
  7  3.28925
  8  1.97862e-05
  9  1.07977
  10  0.000247207
  11  3.0309e-08
  12  8.16917
  13  3.62488
  14  1.28572
  15  2.94037e-05
  16  0.889068
  17  17.739
  18  5.28962
  19  1.91474
  20  0.000539019
  21  22.0063
  22  6.52295e-06
  23  25.3067
  24  1.86212
  25  2.15183e-06
  26  0.0980615
  27  0.118815
utfile=/lscratch/kocevski/32624078/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32624078/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 18.87
user 17.75
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32624078/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32624078/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32624078/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624078/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32624078/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 69.63
user 64.41
sys 4.12

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

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32624078/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32624078/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624078/cmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.07
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32624078/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32624078/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624078/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.10
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32624078/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32624078/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32624078/Model_4FGL_J1245.1+5709_weekly_bin937.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GALutfile=/lscratch/kocevski/32624094/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32624094/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 16.32
user 15.40
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32624094/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32624094/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32624094/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624094/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32624094/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 59.81
user 55.40
sys 3.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
Added 217 point sources and 0 extended sources

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32624094/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32624094/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624094/cmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.22
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32624094/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32624094/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624094/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.05
user 0.20
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32624094/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32624094/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32624094/Model_4FGL_J1245.1+5709_weekly_bin937.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/32623819/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits.....................!
real 39.81
user 37.79
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32623819/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits', '/lscratch/kocevski/32623819/ft2_4FGL_J1245.1+5709_weekly_bin937.fits', expMap='/lscratch/kocevski/32623819/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', expCube='/lscratch/kocevski/32623819/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32623819/Model_4FGL_J1245.1+5709_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32623819/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32623819/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32623819/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32623819/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32623819/Model_4FGL_J1245.1+5709_weekly_bin937.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) = 15382.4158982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23069       1.0000          .0000       .10000E+07
     2 'Prefactor '    24.747       1.0000          .0000       .10000E+07
     3 'norm      '    .68061E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8589       1.0000          .0000       .10000E+07
     5 'norm      '    .67113E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.378       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.7261       1.0000          .0000       .10000E+07
     8 'Prefactor '    .34164E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7172       1.0000          .0000       .10000E+07
    10 'Prefactor '    .83164E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .35825E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.6191       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.6862       1.0000          .0000       .10000E+07
    14 'norm      '    2.9535       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10986E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.6208       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.3203       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.0275       1.0000          .0000       .10000E+07
    19 'norm      '    .83134       1.0000          .0000       .10000E+07
    20 'Prefactor '    .30270E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    47.912       1.0000          .0000       .10000E+07
    22 'norm      '    .65862E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    21.197       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.5247       1.0000          .0000       .10000E+07
    25 'norm      '    .24675E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .86949       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0325       1.0000          .00Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.677e+00  3.625e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.033e+00  1.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.685e-01  9.806e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.86
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 8.20e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3481414
delta logL = 0.00120889289428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3474693
delta logL = 0.0018809986268

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8269        69.667        .38376E-03    .20025E-01
   2  Index         2.1054        2.7781        .12668        .26991E-03
   3  Normalizat    .86932        .51011E-01    .44508E-01    .31313E-04
   4  Prefactor     1.0324        .48261E-01    .41075E-01    .24712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.82689
  Index      = 2.10543
  Normalizat = 0.869323
  Prefactor  = 1.03236
 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8269        4.5364        .15351E-04   -1.5656    
   2  Index         2.1054        .38753        .73400E-02   -.61740    
   3  Normalizat    .86932        .10921        .22104E-03   -.97547    
   4  Prefactor     1.0324        .13807        .25932E-03   -.91658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83707e-09
Minuit parameter uncertainties:
  1  4.5364
  2  0.38812
  3  0.109234
  4  0.138122
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) = 15382.3474692
delta logL = 0.00188102606262

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.827e+00  4.536e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.105e+00  3.881e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.032e+00  1.381e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.693e-01  1.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.88
Ra Dec: 191.288 57.158
Photon Index (Free Index): 2.11 +/- 0.39
Photon Flux (Free Index): 2.85e-08 +/- 1.84e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.07e-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/32623632/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='1.55e-05', photon_flux_error='1.58e-08', dlogl='1.88e-03', energy_flux='1.51e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2026-07-21 10:28:23.670113', photon_index_error2='0.39', photon_index2='2.11', ts='9.86', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='0.87', time_epoch_completed='1784654903.67', return_code='0', job_id='32623632', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='1.84e-08', ts2='9.88', photon_index='2.13' WHERE bin_id='937' AND source_name='4FGL J1245.1+5709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 10:28:24 PDT 2026

00       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1858 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22466        5.9031       -.96495E-06** at limit **
   2  Prefactor     25.280        5.9833        .20462E-06   -.10267    
   3  norm           .0000        1.6710       -.21436E-07** at limit **
   4  Prefactor     2.8601        1.8633        .92644E-07    .19552E-02
   5  norm           .0000        .43601       -.95798E-07** at limit **
   6  Prefactor     21.399        1.6027       -.45348E-07    .10918E-01
   7  Prefactor     7.7262        3.2897        .32339E-07    .93222E-03
   8  Prefactor     .55511E-10    2.0960        .11059E-06** at limit **
   9  norm          1.7190        1.0801       -.63929E-07   -.27222E-02
  10  Prefactor     .18319E-08    8.4137        .43110E-06** at limit **
  11  norm           .0000        1.0392        .41845E-09** at limit **
  12  Prefactor     6.6350        7.4375       -.59674E-06   -.39483E-01
  13  Prefactor     6.6771        3.6203        .12209E-07    .37808E-03
  14  norm          2.9555        1.2842        .79175E-08    .64285E-03
  15  Prefactor     .55511E-10    2.7694        .14041E-06** at limit **
  16  norm          1.6216        .89409       -.16985E-07    .37137E-03
  17  Prefactor     6.4341        1.7912       -.20913E-07    .88277E-02
  18  Prefactor     6.0244        5.2613       -.53043E-07   -.60232E-02
  19  norm          .83233        1.8694        .15743E-07   -.38611E-03
  20  Prefactor     .57732E-08    12.495        .29523E-06** at limit **
  21  Prefactor     47.918        1.1663        .87849E-08   -.74864E-03
  22  norm           .0000        1.7219       -.78329E-07** at limit **
  23  Prefactor     21.766        25.273        .46788E-06   -.33179E-02
  24  Prefactor     1.5276        1.8421       -.29281E-07   -.70712E-03
  25  norm           .0000        .68510       -.76962E-07** at limit **
  26  Normalizat    .86854        .11227        .28577E-05    .57920E-04
  27  Prefactor     1.0329        .13839       -.28518E-05    .17750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.224657
  Prefactor  = 25.2801
  norm       = 0
  Prefactor  = 2.86013
  norm       = 0
  Prefactor  = 21.3992
  Prefactor  = 7.72625
  Prefactor  = 5.55112e-11
  norm       = 1.71898
  Prefactor  = 1.83187e-09
  norm       = 0
  Prefactor  = 6.63504
  Prefactor  = 6.67712
  norm       = 2.95545
  Prefactor  = 5.55112e-11
  norm       = 1.62159
  Prefactor  = 6.43411
  Prefactor  = 6.02445
  norm       = 0.832325
  Prefactor  = 5.77316e-09
  Prefactor  = 47.9178
  norm       = 0
  Prefactor  = 21.7663
  Prefactor  = 1.52759
  norm       = 0
  Normalizat = 0.868538
  Prefactor  = 1.0329
_V02
Working on...
/lscratch/kocevski/32623941/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits.....................!
real 40.40
user 38.52
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32623941/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits', '/lscratch/kocevski/32623941/ft2_4FGL_J1245.1+5709_weekly_bin937.fits', expMap='/lscratch/kocevski/32623941/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', expCube='/lscratch/kocevski/32623941/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32623941/Model_4FGL_J1245.1+5709_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32623941/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32623941/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32623941/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32623941/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32623941/Model_4FGL_J1245.1+5709_weekly_bin937.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) = 15382.4158982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23069       1.0000          .0000       .10000E+07
     2 'Prefactor '    24.747       1.0000          .0000       .10000E+07
     3 'norm      '    .68061E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8589       1.0000          .0000       .10000E+07
     5 'norm      '    .67113E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.378       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.7261       1.0000          .0000       .10000E+07
     8 'Prefactor '    .34164E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7172       1.0000          .0000       .10000E+07
    10 'Prefactor '    .83164E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .35825E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.6191       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.6862       1.0000          .0000       .10000E+07
    14 'norm      '    2.9535       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10986E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.6208       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.3203       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.0275       1.0000          .0000       .10000E+07
    19 'norm      '    .83134       1.0000          .0000       .10000E+07
    20 'Prefactor '    .30270E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    47.912       1.0000          .0000       .10000E+07
    22 'norm      '    .65862E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    21.197       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.5247       1.0000          .0000       .10000E+07
    25 'norm      '    .24675E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .86949       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0325       1.0000          .00 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK           552 CALLS     2410 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22466        1.2337        .71096E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.280        15.447        .20106E-03   -1.5607    
   3  norm           .0000        1.6711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8601        2.0049        .60099E-03   -1.5674    
   5  norm           .0000        .43549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.399        12.620        .21634E-03   -1.5615    
   7  Prefactor     7.7262        3.2892        .36053E-03   -1.5652    
   8  Prefactor     .55511E-10    2.0972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7190        1.0798        .80152E-04   -1.5682    
  10  Prefactor     .18319E-08    8.4036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.0387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6350        8.1692        .38981E-03   -1.5656    
  13  Prefactor     6.6771        3.6249        .38783E-03   -1.5656    
  14  norm          2.9555        1.2857        .59067E-03   -1.5674    
  15  Prefactor     .55511E-10    2.7692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6216        .88907        .83098E-03   -1.5682    
  17  Prefactor     6.4341        17.739        .39903E-03   -1.5657    
  18  Prefactor     6.0244        5.2896        .40874E-03   -1.5659    
  19  norm          .83233        1.9147        .50627E-03   -1.5690    
  20  Prefactor     .57732E-08    12.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.918        22.006        .14448E-03   -1.5570    
  22  norm           .0000        1.6510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.766        25.307        .21727E-03   -1.5615    
  24  Prefactor     1.5276        1.8621        .86459E-03   -1.5683    
  25  norm           .0000        .68311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86854        .98041E-01    .44510E-01   -.97575    
  27  Prefactor     1.0329        .11878        .41067E-01   -.91641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35167e-06
Minuit parameter uncertainties:
  1  1.05293
  2  15.4471
  3  3.97273e-06
  4  2.0049
  5  2.32406e-06
  6  12.6197
  7  3.28925
  8  1.97862e-05
  9  1.07977
  10  0.000247207
  11  3.0309e-08
  12  8.16917
  13  3.62488
  14  1.28572
  15  2.94037e-05
  16  0.889068
  17  17.739
  18  5.28962
  19  1.91474
  20  0.000539019
  21  22.0063
  22  6.52295e-06
  23  25.3067
  24  1.86212
  25  2.15183e-06
  26  0.0980615
  27  0.118815
_V02
Working on...
/lscratch/kocevski/32623852/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits.....................!
real 39.67
user 37.94
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32623852/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits', '/lscratch/kocevski/32623852/ft2_4FGL_J1245.1+5709_weekly_bin937.fits', expMap='/lscratch/kocevski/32623852/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', expCube='/lscratch/kocevski/32623852/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32623852/Model_4FGL_J1245.1+5709_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32623852/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32623852/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32623852/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32623852/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32623852/Model_4FGL_J1245.1+5709_weekly_bin937.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) = 15382.4158982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23069       1.0000          .0000       .10000E+07
     2 'Prefactor '    24.747       1.0000          .0000       .10000E+07
     3 'norm      '    .68061E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8589       1.0000          .0000       .10000E+07
     5 'norm      '    .67113E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.378       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.7261       1.0000          .0000       .10000E+07
     8 'Prefactor '    .34164E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7172       1.0000          .0000       .10000E+07
    10 'Prefactor '    .83164E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .35825E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.6191       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.6862       1.0000          .0000       .10000E+07
    14 'norm      '    2.9535       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10986E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.6208       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.3203       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.0275       1.0000          .0000       .10000E+07
    19 'norm      '    .83134       1.0000          .0000       .10000E+07
    20 'Prefactor '    .30270E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    47.912       1.0000          .0000       .10000E+07
    22 'norm      '    .65862E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    21.197       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.5247       1.0000          .0000       .10000E+07
    25 'norm      '    .24675E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .86949       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0325       1.0000          .00number of points = 17284
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1245.1+5709_weekly_bin937
RA = 191.288, Dec = 57.158
tmin = 805680001, tmax = 806284801
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='32624377', job_status='RUN', time_executed='2026-07-21 10:21:10.728395', time_epoch_executed='1784654470.73' WHERE source_name='4FGL J1245.1+5709' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32624377

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32624377/ft1_4FGL_J1245.1+5709_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32624377/ft2_4FGL_J1245.1+5709_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32624377/ft1_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624377/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits ra=191.288 dec=57.158 rad=12.0 tmin=805680001.0 tmax=806284801.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.01
user 3.80
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32624377/ft2_4FGL_J1245.1+5709_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32624377/ft2_4FGL_J1245.1+5709_weekly_bin937.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/32624377/ft1_filteredMKT_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32624377/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1416

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32624377/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32624377/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" outfile=/lscratch/kocevski/32624098/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32624098/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 21.56
user 20.31
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32624098/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32624098/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32624098/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624098/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32624098/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 76.28
user 70.19
sys 4.54

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

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32624098/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32624098/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624098/cmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.50
user 0.25
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32624098/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32624098/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624098/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.40
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32624098/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32624098/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32624098/Model_4FGL_J1245.1+5709_weekly_bin937.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL00       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1858 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22466        5.9031       -.96495E-06** at limit **
   2  Prefactor     25.280        5.9833        .20462E-06   -.10267    
   3  norm           .0000        1.6710       -.21436E-07** at limit **
   4  Prefactor     2.8601        1.8633        .92644E-07    .19552E-02
   5  norm           .0000        .43601       -.95798E-07** at limit **
   6  Prefactor     21.399        1.6027       -.45348E-07    .10918E-01
   7  Prefactor     7.7262        3.2897        .32339E-07    .93222E-03
   8  Prefactor     .55511E-10    2.0960        .11059E-06** at limit **
   9  norm          1.7190        1.0801       -.63929E-07   -.27222E-02
  10  Prefactor     .18319E-08    8.4137        .43110E-06** at limit **
  11  norm           .0000        1.0392        .41845E-09** at limit **
  12  Prefactor     6.6350        7.4375       -.59674E-06   -.39483E-01
  13  Prefactor     6.6771        3.6203        .12209E-07    .37808E-03
  14  norm          2.9555        1.2842        .79175E-08    .64285E-03
  15  Prefactor     .55511E-10    2.7694        .14041E-06** at limit **
  16  norm          1.6216        .89409       -.16985E-07    .37137E-03
  17  Prefactor     6.4341        1.7912       -.20913E-07    .88277E-02
  18  Prefactor     6.0244        5.2613       -.53043E-07   -.60232E-02
  19  norm          .83233        1.8694        .15743E-07   -.38611E-03
  20  Prefactor     .57732E-08    12.495        .29523E-06** at limit **
  21  Prefactor     47.918        1.1663        .87849E-08   -.74864E-03
  22  norm           .0000        1.7219       -.78329E-07** at limit **
  23  Prefactor     21.766        25.273        .46788E-06   -.33179E-02
  24  Prefactor     1.5276        1.8421       -.29281E-07   -.70712E-03
  25  norm           .0000        .68510       -.76962E-07** at limit **
  26  Normalizat    .86854        .11227        .28577E-05    .57920E-04
  27  Prefactor     1.0329        .13839       -.28518E-05    .17750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.224657
  Prefactor  = 25.2801
  norm       = 0
  Prefactor  = 2.86013
  norm       = 0
  Prefactor  = 21.3992
  Prefactor  = 7.72625
  Prefactor  = 5.55112e-11
  norm       = 1.71898
  Prefactor  = 1.83187e-09
  norm       = 0
  Prefactor  = 6.63504
  Prefactor  = 6.67712
  norm       = 2.95545
  Prefactor  = 5.55112e-11
  norm       = 1.62159
  Prefactor  = 6.43411
  Prefactor  = 6.02445
  norm       = 0.832325
  Prefactor  = 5.77316e-09
  Prefactor  = 47.9178
  norm       = 0
  Prefactor  = 21.7663
  Prefactor  = 1.52759
  norm       = 0
  Normalizat = 0.868538
  Prefactor  = 1.0329
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.677e+00  3.625e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.033e+00  1.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.685e-01  9.806e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.86
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 8.20e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3481414
delta logL = 0.00120889289428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3474693
delta logL = 0.0018809986268

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8269        69.667        .38376E-03    .20025E-01
   2  Index         2.1054        2.7781        .12668        .26991E-03
   3  Normalizat    .86932        .51011E-01    .44508E-01    .31313E-04
   4  Prefactor     1.0324        .48261E-01    .41075E-01    .24712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.82689
  Index      = 2.10543
  Normalizat = 0.869323
  Prefactor  = 1.03236
00       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1858 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22466        5.9031       -.96495E-06** at limit **
   2  Prefactor     25.280        5.9833        .20462E-06   -.10267    
   3  norm           .0000        1.6710       -.21436E-07** at limit **
   4  Prefactor     2.8601        1.8633        .92644E-07    .19552E-02
   5  norm           .0000        .43601       -.95798E-07** at limit **
   6  Prefactor     21.399        1.6027       -.45348E-07    .10918E-01
   7  Prefactor     7.7262        3.2897        .32339E-07    .93222E-03
   8  Prefactor     .55511E-10    2.0960        .11059E-06** at limit **
   9  norm          1.7190        1.0801       -.63929E-07   -.27222E-02
  10  Prefactor     .18319E-08    8.4137        .43110E-06** at limit **
  11  norm           .0000        1.0392        .41845E-09** at limit **
  12  Prefactor     6.6350        7.4375       -.59674E-06   -.39483E-01
  13  Prefactor     6.6771        3.6203        .12209E-07    .37808E-03
  14  norm          2.9555        1.2842        .79175E-08    .64285E-03
  15  Prefactor     .55511E-10    2.7694        .14041E-06** at limit **
  16  norm          1.6216        .89409       -.16985E-07    .37137E-03
  17  Prefactor     6.4341        1.7912       -.20913E-07    .88277E-02
  18  Prefactor     6.0244        5.2613       -.53043E-07   -.60232E-02
  19  norm          .83233        1.8694        .15743E-07   -.38611E-03
  20  Prefactor     .57732E-08    12.495        .29523E-06** at limit **
  21  Prefactor     47.918        1.1663        .87849E-08   -.74864E-03
  22  norm           .0000        1.7219       -.78329E-07** at limit **
  23  Prefactor     21.766        25.273        .46788E-06   -.33179E-02
  24  Prefactor     1.5276        1.8421       -.29281E-07   -.70712E-03
  25  norm           .0000        .68510       -.76962E-07** at limit **
  26  Normalizat    .86854        .11227        .28577E-05    .57920E-04
  27  Prefactor     1.0329        .13839       -.28518E-05    .17750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.224657
  Prefactor  = 25.2801
  norm       = 0
  Prefactor  = 2.86013
  norm       = 0
  Prefactor  = 21.3992
  Prefactor  = 7.72625
  Prefactor  = 5.55112e-11
  norm       = 1.71898
  Prefactor  = 1.83187e-09
  norm       = 0
  Prefactor  = 6.63504
  Prefactor  = 6.67712
  norm       = 2.95545
  Prefactor  = 5.55112e-11
  norm       = 1.62159
  Prefactor  = 6.43411
  Prefactor  = 6.02445
  norm       = 0.832325
  Prefactor  = 5.77316e-09
  Prefactor  = 47.9178
  norm       = 0
  Prefactor  = 21.7663
  Prefactor  = 1.52759
  norm       = 0
  Normalizat = 0.868538
  Prefactor  = 1.0329
 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8269        4.5364        .15351E-04   -1.5656    
   2  Index         2.1054        .38753        .73400E-02   -.61740    
   3  Normalizat    .86932        .10921        .22104E-03   -.97547    
   4  Prefactor     1.0324        .13807        .25932E-03   -.91658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83707e-09
Minuit parameter uncertainties:
  1  4.5364
  2  0.38812
  3  0.109234
  4  0.138122
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) = 15382.3474692
delta logL = 0.00188102606262

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.827e+00  4.536e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.105e+00  3.881e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.032e+00  1.381e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.693e-01  1.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.88
Ra Dec: 191.288 57.158
Photon Index (Free Index): 2.11 +/- 0.39
Photon Flux (Free Index): 2.85e-08 +/- 1.84e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.07e-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/32623819/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='1.55e-05', photon_flux_error='1.58e-08', dlogl='1.88e-03', energy_flux='1.51e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2026-07-21 10:29:41.861206', photon_index_error2='0.39', photon_index2='2.11', ts='9.86', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='0.87', time_epoch_completed='1784654981.86', return_code='0', job_id='32623819', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='1.84e-08', ts2='9.88', photon_index='2.13' WHERE bin_id='937' AND source_name='4FGL J1245.1+5709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 10:29:42 PDT 2026

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

 FCN=   15382.35     FROM HESSE     STATUS=OK           552 CALLS     2410 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22466        1.2337        .71096E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.280        15.447        .20106E-03   -1.5607    
   3  norm           .0000        1.6711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8601        2.0049        .60099E-03   -1.5674    
   5  norm           .0000        .43549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.399        12.620        .21634E-03   -1.5615    
   7  Prefactor     7.7262        3.2892        .36053E-03   -1.5652    
   8  Prefactor     .55511E-10    2.0972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7190        1.0798        .80152E-04   -1.5682    
  10  Prefactor     .18319E-08    8.4036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.0387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6350        8.1692        .38981E-03   -1.5656    
  13  Prefactor     6.6771        3.6249        .38783E-03   -1.5656    
  14  norm          2.9555        1.2857        .59067E-03   -1.5674    
  15  Prefactor     .55511E-10    2.7692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6216        .88907        .83098E-03   -1.5682    
  17  Prefactor     6.4341        17.739        .39903E-03   -1.5657    
  18  Prefactor     6.0244        5.2896        .40874E-03   -1.5659    
  19  norm          .83233        1.9147        .50627E-03   -1.5690    
  20  Prefactor     .57732E-08    12.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.918        22.006        .14448E-03   -1.5570    
  22  norm           .0000        1.6510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.766        25.307        .21727E-03   -1.5615    
  24  Prefactor     1.5276        1.8621        .86459E-03   -1.5683    
  25  norm           .0000        .68311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86854        .98041E-01    .44510E-01   -.97575    
  27  Prefactor     1.0329        .11878        .41067E-01   -.91641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35167e-06
Minuit parameter uncertainties:
  1  1.05293
  2  15.4471
  3  3.97273e-06
  4  2.0049
  5  2.32406e-06
  6  12.6197
  7  3.28925
  8  1.97862e-05
  9  1.07977
  10  0.000247207
  11  3.0309e-08
  12  8.16917
  13  3.62488
  14  1.28572
  15  2.94037e-05
  16  0.889068
  17  17.739
  18  5.28962
  19  1.91474
  20  0.000539019
  21  22.0063
  22  6.52295e-06
  23  25.3067
  24  1.86212
  25  2.15183e-06
  26  0.0980615
  27  0.118815
 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK           552 CALLS     2410 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22466        1.2337        .71096E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.280        15.447        .20106E-03   -1.5607    
   3  norm           .0000        1.6711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8601        2.0049        .60099E-03   -1.5674    
   5  norm           .0000        .43549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.399        12.620        .21634E-03   -1.5615    
   7  Prefactor     7.7262        3.2892        .36053E-03   -1.5652    
   8  Prefactor     .55511E-10    2.0972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7190        1.0798        .80152E-04   -1.5682    
  10  Prefactor     .18319E-08    8.4036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.0387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6350        8.1692        .38981E-03   -1.5656    
  13  Prefactor     6.6771        3.6249        .38783E-03   -1.5656    
  14  norm          2.9555        1.2857        .59067E-03   -1.5674    
  15  Prefactor     .55511E-10    2.7692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6216        .88907        .83098E-03   -1.5682    
  17  Prefactor     6.4341        17.739        .39903E-03   -1.5657    
  18  Prefactor     6.0244        5.2896        .40874E-03   -1.5659    
  19  norm          .83233        1.9147        .50627E-03   -1.5690    
  20  Prefactor     .57732E-08    12.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.918        22.006        .14448E-03   -1.5570    
  22  norm           .0000        1.6510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.766        25.307        .21727E-03   -1.5615    
  24  Prefactor     1.5276        1.8621        .86459E-03   -1.5683    
  25  norm           .0000        .68311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86854        .98041E-01    .44510E-01   -.97575    
  27  Prefactor     1.0329        .11878        .41067E-01   -.91641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35167e-06
Minuit parameter uncertainties:
  1  1.05293
  2  15.4471
  3  3.97273e-06
  4  2.0049
  5  2.32406e-06
  6  12.6197
  7  3.28925
  8  1.97862e-05
  9  1.07977
  10  0.000247207
  11  3.0309e-08
  12  8.16917
  13  3.62488
  14  1.28572
  15  2.94037e-05
  16  0.889068
  17  17.739
  18  5.28962
  19  1.91474
  20  0.000539019
  21  22.0063
  22  6.52295e-06
  23  25.3067
  24  1.86212
  25  2.15183e-06
  26  0.0980615
  27  0.118815
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.677e+00  3.625e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.033e+00  1.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.685e-01  9.806e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.86
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 8.20e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3481414
delta logL = 0.00120889289428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3474693
delta logL = 0.0018809986268

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8269        69.667        .38376E-03    .20025E-01
   2  Index         2.1054        2.7781        .12668        .26991E-03
   3  Normalizat    .86932        .51011E-01    .44508E-01    .31313E-04
   4  Prefactor     1.0324        .48261E-01    .41075E-01    .24712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.82689
  Index      = 2.10543
  Normalizat = 0.869323
  Prefactor  = 1.03236
 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8269        4.5364        .15351E-04   -1.5656    
   2  Index         2.1054        .38753        .73400E-02   -.61740    
   3  Normalizat    .86932        .10921        .22104E-03   -.97547    
   4  Prefactor     1.0324        .13807        .25932E-03   -.91658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83707e-09
Minuit parameter uncertainties:
  1  4.5364
  2  0.38812
  3  0.109234
  4  0.138122
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.677e+00  3.625e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.033e+00  1.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.685e-01  9.806e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.86
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 8.20e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3481414
delta logL = 0.00120889289428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3474693
delta logL = 0.0018809986268

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8269        69.667        .38376E-03    .20025E-01
   2  Index         2.1054        2.7781        .12668        .26991E-03
   3  Normalizat    .86932        .51011E-01    .44508E-01    .31313E-04
   4  Prefactor     1.0324        .48261E-01    .41075E-01    .24712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.82689
  Index      = 2.10543
  Normalizat = 0.869323
  Prefactor  = 1.03236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8269        4.5364        .15351E-04   -1.5656    
   2  Index         2.1054        .38753        .73400E-02   -.61740    
   3  Normalizat    .86932        .10921        .22104E-03   -.97547    
   4  Prefactor     1.0324        .13807        .25932E-03   -.91658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83707e-09
Minuit parameter uncertainties:
  1  4.5364
  2  0.38812
  3  0.109234
  4  0.138122
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3474692
delta logL = 0.00188102606262

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.827e+00  4.536e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.105e+00  3.881e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.032e+00  1.381e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.693e-01  1.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.88
Ra Dec: 191.288 57.158
Photon Index (Free Index): 2.11 +/- 0.39
Photon Flux (Free Index): 2.85e-08 +/- 1.84e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.07e-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/32623941/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='1.55e-05', photon_flux_error='1.58e-08', dlogl='1.88e-03', energy_flux='1.51e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2026-07-21 10:30:42.470023', photon_index_error2='0.39', photon_index2='2.11', ts='9.86', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='0.87', time_epoch_completed='1784655042.47', return_code='0', job_id='32623941', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='1.84e-08', ts2='9.88', photon_index='2.13' WHERE bin_id='937' AND source_name='4FGL J1245.1+5709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 10:30:43 PDT 2026

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

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3474692
delta logL = 0.00188102606262

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.827e+00  4.536e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.105e+00  3.881e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.032e+00  1.381e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.693e-01  1.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.88
Ra Dec: 191.288 57.158
Photon Index (Free Index): 2.11 +/- 0.39
Photon Flux (Free Index): 2.85e-08 +/- 1.84e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.07e-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/32623852/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='1.55e-05', photon_flux_error='1.58e-08', dlogl='1.88e-03', energy_flux='1.51e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2026-07-21 10:30:46.488768', photon_index_error2='0.39', photon_index2='2.11', ts='9.86', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='0.87', time_epoch_completed='1784655046.49', return_code='0', job_id='32623852', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='1.84e-08', ts2='9.88', photon_index='2.13' WHERE bin_id='937' AND source_name='4FGL J1245.1+5709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 10:30:47 PDT 2026

_V02
Working on...
/lscratch/kocevski/32624094/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits.....................!
real 39.51
user 37.78
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32624094/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits', '/lscratch/kocevski/32624094/ft2_4FGL_J1245.1+5709_weekly_bin937.fits', expMap='/lscratch/kocevski/32624094/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', expCube='/lscratch/kocevski/32624094/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32624094/Model_4FGL_J1245.1+5709_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32624094/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32624094/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32624094/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32624094/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32624094/Model_4FGL_J1245.1+5709_weekly_bin937.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) = 15382.4158982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23069       1.0000          .0000       .10000E+07
     2 'Prefactor '    24.747       1.0000          .0000       .10000E+07
     3 'norm      '    .68061E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8589       1.0000          .0000       .10000E+07
     5 'norm      '    .67113E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.378       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.7261       1.0000          .0000       .10000E+07
     8 'Prefactor '    .34164E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7172       1.0000          .0000       .10000E+07
    10 'Prefactor '    .83164E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .35825E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.6191       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.6862       1.0000          .0000       .10000E+07
    14 'norm      '    2.9535       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10986E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.6208       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.3203       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.0275       1.0000          .0000       .10000E+07
    19 'norm      '    .83134       1.0000          .0000       .10000E+07
    20 'Prefactor '    .30270E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    47.912       1.0000          .0000       .10000E+07
    22 'norm      '    .65862E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    21.197       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.5247       1.0000          .0000       .10000E+07
    25 'norm      '    .24675E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .86949       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0325       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1858 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22466        5.9031       -.96495E-06** at limit **
   2  Prefactor     25.280        5.9833        .20462E-06   -.10267    
   3  norm           .0000        1.6710       -.21436E-07** at limit **
   4  Prefactor     2.8601        1.8633        .92644E-07    .19552E-02
   5  norm           .0000        .43601       -.95798E-07** at limit **
   6  Prefactor     21.399        1.6027       -.45348E-07    .10918E-01
   7  Prefactor     7.7262        3.2897        .32339E-07    .93222E-03
   8  Prefactor     .55511E-10    2.0960        .11059E-06** at limit **
   9  norm          1.7190        1.0801       -.63929E-07   -.27222E-02
  10  Prefactor     .18319E-08    8.4137        .43110E-06** at limit **
  11  norm           .0000        1.0392        .41845E-09** at limit **
  12  Prefactor     6.6350        7.4375       -.59674E-06   -.39483E-01
  13  Prefactor     6.6771        3.6203        .12209E-07    .37808E-03
  14  norm          2.9555        1.2842        .79175E-08    .64285E-03
  15  Prefactor     .55511E-10    2.7694        .14041E-06** at limit **
  16  norm          1.6216        .89409       -.16985E-07    .37137E-03
  17  Prefactor     6.4341        1.7912       -.20913E-07    .88277E-02
  18  Prefactor     6.0244        5.2613       -.53043E-07   -.60232E-02
  19  norm          .83233        1.8694        .15743E-07   -.38611E-03
  20  Prefactor     .57732E-08    12.495        .29523E-06** at limit **
  21  Prefactor     47.918        1.1663        .87849E-08   -.74864E-03
  22  norm           .0000        1.7219       -.78329E-07** at limit **
  23  Prefactor     21.766        25.273        .46788E-06   -.33179E-02
  24  Prefactor     1.5276        1.8421       -.29281E-07   -.70712E-03
  25  norm           .0000        .68510       -.76962E-07** at limit **
  26  Normalizat    .86854        .11227        .28577E-05    .57920E-04
  27  Prefactor     1.0329        .13839       -.28518E-05    .17750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.224657
  Prefactor  = 25.2801
  norm       = 0
  Prefactor  = 2.86013
  norm       = 0
  Prefactor  = 21.3992
  Prefactor  = 7.72625
  Prefactor  = 5.55112e-11
  norm       = 1.71898
  Prefactor  = 1.83187e-09
  norm       = 0
  Prefactor  = 6.63504
  Prefactor  = 6.67712
  norm       = 2.95545
  Prefactor  = 5.55112e-11
  norm       = 1.62159
  Prefactor  = 6.43411
  Prefactor  = 6.02445
  norm       = 0.832325
  Prefactor  = 5.77316e-09
  Prefactor  = 47.9178
  norm       = 0
  Prefactor  = 21.7663
  Prefactor  = 1.52759
  norm       = 0
  Normalizat = 0.868538
  Prefactor  = 1.0329
_V02
Working on...
/lscratch/kocevski/32624078/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits.....................!
real 45.84
user 44.04
sys 0.77

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32624078/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits', '/lscratch/kocevski/32624078/ft2_4FGL_J1245.1+5709_weekly_bin937.fits', expMap='/lscratch/kocevski/32624078/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', expCube='/lscratch/kocevski/32624078/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32624078/Model_4FGL_J1245.1+5709_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32624078/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32624078/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32624078/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32624078/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32624078/Model_4FGL_J1245.1+5709_weekly_bin937.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) = 15382.4158982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23069       1.0000          .0000       .10000E+07
     2 'Prefactor '    24.747       1.0000          .0000       .10000E+07
     3 'norm      '    .68061E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8589       1.0000          .0000       .10000E+07
     5 'norm      '    .67113E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.378       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.7261       1.0000          .0000       .10000E+07
     8 'Prefactor '    .34164E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7172       1.0000          .0000       .10000E+07
    10 'Prefactor '    .83164E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .35825E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.6191       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.6862       1.0000          .0000       .10000E+07
    14 'norm      '    2.9535       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10986E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.6208       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.3203       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.0275       1.0000          .0000       .10000E+07
    19 'norm      '    .83134       1.0000          .0000       .10000E+07
    20 'Prefactor '    .30270E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    47.912       1.0000          .0000       .10000E+07
    22 'norm      '    .65862E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    21.197       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.5247       1.0000          .0000       .10000E+07
    25 'norm      '    .24675E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .86949       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0325       1.0000          .00utfile=/lscratch/kocevski/32624377/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32624377/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 16.41
user 15.29
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32624377/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32624377/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32624377/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624377/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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/32624377/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
.....................!
real 60.55
user 55.82
sys 3.62

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

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32624377/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32624377/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624377/cmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.07
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32624377/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits scfile=/lscratch/kocevski/32624377/ft2_4FGL_J1245.1+5709_weekly_bin937.fits outfile=/lscratch/kocevski/32624377/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.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=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.08
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32624377/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32624377/ft2_4FGL_J1245.1+5709_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32624377/Model_4FGL_J1245.1+5709_weekly_bin937.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL00       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1858 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22466        5.9031       -.96495E-06** at limit **
   2  Prefactor     25.280        5.9833        .20462E-06   -.10267    
   3  norm           .0000        1.6710       -.21436E-07** at limit **
   4  Prefactor     2.8601        1.8633        .92644E-07    .19552E-02
   5  norm           .0000        .43601       -.95798E-07** at limit **
   6  Prefactor     21.399        1.6027       -.45348E-07    .10918E-01
   7  Prefactor     7.7262        3.2897        .32339E-07    .93222E-03
   8  Prefactor     .55511E-10    2.0960        .11059E-06** at limit **
   9  norm          1.7190        1.0801       -.63929E-07   -.27222E-02
  10  Prefactor     .18319E-08    8.4137        .43110E-06** at limit **
  11  norm           .0000        1.0392        .41845E-09** at limit **
  12  Prefactor     6.6350        7.4375       -.59674E-06   -.39483E-01
  13  Prefactor     6.6771        3.6203        .12209E-07    .37808E-03
  14  norm          2.9555        1.2842        .79175E-08    .64285E-03
  15  Prefactor     .55511E-10    2.7694        .14041E-06** at limit **
  16  norm          1.6216        .89409       -.16985E-07    .37137E-03
  17  Prefactor     6.4341        1.7912       -.20913E-07    .88277E-02
  18  Prefactor     6.0244        5.2613       -.53043E-07   -.60232E-02
  19  norm          .83233        1.8694        .15743E-07   -.38611E-03
  20  Prefactor     .57732E-08    12.495        .29523E-06** at limit **
  21  Prefactor     47.918        1.1663        .87849E-08   -.74864E-03
  22  norm           .0000        1.7219       -.78329E-07** at limit **
  23  Prefactor     21.766        25.273        .46788E-06   -.33179E-02
  24  Prefactor     1.5276        1.8421       -.29281E-07   -.70712E-03
  25  norm           .0000        .68510       -.76962E-07** at limit **
  26  Normalizat    .86854        .11227        .28577E-05    .57920E-04
  27  Prefactor     1.0329        .13839       -.28518E-05    .17750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.224657
  Prefactor  = 25.2801
  norm       = 0
  Prefactor  = 2.86013
  norm       = 0
  Prefactor  = 21.3992
  Prefactor  = 7.72625
  Prefactor  = 5.55112e-11
  norm       = 1.71898
  Prefactor  = 1.83187e-09
  norm       = 0
  Prefactor  = 6.63504
  Prefactor  = 6.67712
  norm       = 2.95545
  Prefactor  = 5.55112e-11
  norm       = 1.62159
  Prefactor  = 6.43411
  Prefactor  = 6.02445
  norm       = 0.832325
  Prefactor  = 5.77316e-09
  Prefactor  = 47.9178
  norm       = 0
  Prefactor  = 21.7663
  Prefactor  = 1.52759
  norm       = 0
  Normalizat = 0.868538
  Prefactor  = 1.0329
 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK           552 CALLS     2410 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22466        1.2337        .71096E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.280        15.447        .20106E-03   -1.5607    
   3  norm           .0000        1.6711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8601        2.0049        .60099E-03   -1.5674    
   5  norm           .0000        .43549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.399        12.620        .21634E-03   -1.5615    
   7  Prefactor     7.7262        3.2892        .36053E-03   -1.5652    
   8  Prefactor     .55511E-10    2.0972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7190        1.0798        .80152E-04   -1.5682    
  10  Prefactor     .18319E-08    8.4036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.0387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6350        8.1692        .38981E-03   -1.5656    
  13  Prefactor     6.6771        3.6249        .38783E-03   -1.5656    
  14  norm          2.9555        1.2857        .59067E-03   -1.5674    
  15  Prefactor     .55511E-10    2.7692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6216        .88907        .83098E-03   -1.5682    
  17  Prefactor     6.4341        17.739        .39903E-03   -1.5657    
  18  Prefactor     6.0244        5.2896        .40874E-03   -1.5659    
  19  norm          .83233        1.9147        .50627E-03   -1.5690    
  20  Prefactor     .57732E-08    12.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.918        22.006        .14448E-03   -1.5570    
  22  norm           .0000        1.6510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.766        25.307        .21727E-03   -1.5615    
  24  Prefactor     1.5276        1.8621        .86459E-03   -1.5683    
  25  norm           .0000        .68311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86854        .98041E-01    .44510E-01   -.97575    
  27  Prefactor     1.0329        .11878        .41067E-01   -.91641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35167e-06
Minuit parameter uncertainties:
  1  1.05293
  2  15.4471
  3  3.97273e-06
  4  2.0049
  5  2.32406e-06
  6  12.6197
  7  3.28925
  8  1.97862e-05
  9  1.07977
  10  0.000247207
  11  3.0309e-08
  12  8.16917
  13  3.62488
  14  1.28572
  15  2.94037e-05
  16  0.889068
  17  17.739
  18  5.28962
  19  1.91474
  20  0.000539019
  21  22.0063
  22  6.52295e-06
  23  25.3067
  24  1.86212
  25  2.15183e-06
  26  0.0980615
  27  0.118815
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.677e+00  3.625e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.033e+00  1.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.685e-01  9.806e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.86
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 8.20e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3481414
delta logL = 0.00120889289428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3474693
delta logL = 0.0018809986268

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8269        69.667        .38376E-03    .20025E-01
   2  Index         2.1054        2.7781        .12668        .26991E-03
   3  Normalizat    .86932        .51011E-01    .44508E-01    .31313E-04
   4  Prefactor     1.0324        .48261E-01    .41075E-01    .24712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.82689
  Index      = 2.10543
  Normalizat = 0.869323
  Prefactor  = 1.03236
 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8269        4.5364        .15351E-04   -1.5656    
   2  Index         2.1054        .38753        .73400E-02   -.61740    
   3  Normalizat    .86932        .10921        .22104E-03   -.97547    
   4  Prefactor     1.0324        .13807        .25932E-03   -.91658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83707e-09
Minuit parameter uncertainties:
  1  4.5364
  2  0.38812
  3  0.109234
  4  0.138122
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) = 15382.3474692
delta logL = 0.00188102606262

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.827e+00  4.536e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.105e+00  3.881e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.032e+00  1.381e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.693e-01  1.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.88
Ra Dec: 191.288 57.158
Photon Index (Free Index): 2.11 +/- 0.39
Photon Flux (Free Index): 2.85e-08 +/- 1.84e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.07e-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/32624094/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='1.55e-05', photon_flux_error='1.58e-08', dlogl='1.88e-03', energy_flux='1.51e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2026-07-21 10:32:30.806921', photon_index_error2='0.39', photon_index2='2.11', ts='9.86', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='0.87', time_epoch_completed='1784655150.81', return_code='0', job_id='32624094', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='1.84e-08', ts2='9.88', photon_index='2.13' WHERE bin_id='937' AND source_name='4FGL J1245.1+5709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 10:32:31 PDT 2026

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

 FCN=   15382.35     FROM HESSE     STATUS=OK           552 CALLS     2410 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22466        1.2337        .71096E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.280        15.447        .20106E-03   -1.5607    
   3  norm           .0000        1.6711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8601        2.0049        .60099E-03   -1.5674    
   5  norm           .0000        .43549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.399        12.620        .21634E-03   -1.5615    
   7  Prefactor     7.7262        3.2892        .36053E-03   -1.5652    
   8  Prefactor     .55511E-10    2.0972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7190        1.0798        .80152E-04   -1.5682    
  10  Prefactor     .18319E-08    8.4036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.0387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6350        8.1692        .38981E-03   -1.5656    
  13  Prefactor     6.6771        3.6249        .38783E-03   -1.5656    
  14  norm          2.9555        1.2857        .59067E-03   -1.5674    
  15  Prefactor     .55511E-10    2.7692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6216        .88907        .83098E-03   -1.5682    
  17  Prefactor     6.4341        17.739        .39903E-03   -1.5657    
  18  Prefactor     6.0244        5.2896        .40874E-03   -1.5659    
  19  norm          .83233        1.9147        .50627E-03   -1.5690    
  20  Prefactor     .57732E-08    12.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.918        22.006        .14448E-03   -1.5570    
  22  norm           .0000        1.6510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.766        25.307        .21727E-03   -1.5615    
  24  Prefactor     1.5276        1.8621        .86459E-03   -1.5683    
  25  norm           .0000        .68311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86854        .98041E-01    .44510E-01   -.97575    
  27  Prefactor     1.0329        .11878        .41067E-01   -.91641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35167e-06
Minuit parameter uncertainties:
  1  1.05293
  2  15.4471
  3  3.97273e-06
  4  2.0049
  5  2.32406e-06
  6  12.6197
  7  3.28925
  8  1.97862e-05
  9  1.07977
  10  0.000247207
  11  3.0309e-08
  12  8.16917
  13  3.62488
  14  1.28572
  15  2.94037e-05
  16  0.889068
  17  17.739
  18  5.28962
  19  1.91474
  20  0.000539019
  21  22.0063
  22  6.52295e-06
  23  25.3067
  24  1.86212
  25  2.15183e-06
  26  0.0980615
  27  0.118815
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.677e+00  3.625e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.033e+00  1.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.685e-01  9.806e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.86
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 8.20e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3481414
delta logL = 0.00120889289428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3474693
delta logL = 0.0018809986268

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8269        69.667        .38376E-03    .20025E-01
   2  Index         2.1054        2.7781        .12668        .26991E-03
   3  Normalizat    .86932        .51011E-01    .44508E-01    .31313E-04
   4  Prefactor     1.0324        .48261E-01    .41075E-01    .24712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.82689
  Index      = 2.10543
  Normalizat = 0.869323
  Prefactor  = 1.03236
 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8269        4.5364        .15351E-04   -1.5656    
   2  Index         2.1054        .38753        .73400E-02   -.61740    
   3  Normalizat    .86932        .10921        .22104E-03   -.97547    
   4  Prefactor     1.0324        .13807        .25932E-03   -.91658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83707e-09
Minuit parameter uncertainties:
  1  4.5364
  2  0.38812
  3  0.109234
  4  0.138122
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) = 15382.3474692
delta logL = 0.00188102606262

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.827e+00  4.536e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.105e+00  3.881e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.032e+00  1.381e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.693e-01  1.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.88
Ra Dec: 191.288 57.158
Photon Index (Free Index): 2.11 +/- 0.39
Photon Flux (Free Index): 2.85e-08 +/- 1.84e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.07e-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/32624078/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='1.55e-05', photon_flux_error='1.58e-08', dlogl='1.88e-03', energy_flux='1.51e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2026-07-21 10:33:03.723140', photon_index_error2='0.39', photon_index2='2.11', ts='9.86', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='0.87', time_epoch_completed='1784655183.72', return_code='0', job_id='32624078', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='1.84e-08', ts2='9.88', photon_index='2.13' WHERE bin_id='937' AND source_name='4FGL J1245.1+5709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 10:33:04 PDT 2026

_V02
Working on...
/lscratch/kocevski/32624098/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits.....................!
real 50.55
user 48.23
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32624098/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits', '/lscratch/kocevski/32624098/ft2_4FGL_J1245.1+5709_weekly_bin937.fits', expMap='/lscratch/kocevski/32624098/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', expCube='/lscratch/kocevski/32624098/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32624098/Model_4FGL_J1245.1+5709_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32624098/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32624098/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32624098/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32624098/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32624098/Model_4FGL_J1245.1+5709_weekly_bin937.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) = 15382.4158982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23069       1.0000          .0000       .10000E+07
     2 'Prefactor '    24.747       1.0000          .0000       .10000E+07
     3 'norm      '    .68061E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8589       1.0000          .0000       .10000E+07
     5 'norm      '    .67113E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.378       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.7261       1.0000          .0000       .10000E+07
     8 'Prefactor '    .34164E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7172       1.0000          .0000       .10000E+07
    10 'Prefactor '    .83164E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .35825E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.6191       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.6862       1.0000          .0000       .10000E+07
    14 'norm      '    2.9535       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10986E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.6208       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.3203       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.0275       1.0000          .0000       .10000E+07
    19 'norm      '    .83134       1.0000          .0000       .10000E+07
    20 'Prefactor '    .30270E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    47.912       1.0000          .0000       .10000E+07
    22 'norm      '    .65862E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    21.197       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.5247       1.0000          .0000       .10000E+07
    25 'norm      '    .24675E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .86949       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0325       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1858 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22466        5.9031       -.96495E-06** at limit **
   2  Prefactor     25.280        5.9833        .20462E-06   -.10267    
   3  norm           .0000        1.6710       -.21436E-07** at limit **
   4  Prefactor     2.8601        1.8633        .92644E-07    .19552E-02
   5  norm           .0000        .43601       -.95798E-07** at limit **
   6  Prefactor     21.399        1.6027       -.45348E-07    .10918E-01
   7  Prefactor     7.7262        3.2897        .32339E-07    .93222E-03
   8  Prefactor     .55511E-10    2.0960        .11059E-06** at limit **
   9  norm          1.7190        1.0801       -.63929E-07   -.27222E-02
  10  Prefactor     .18319E-08    8.4137        .43110E-06** at limit **
  11  norm           .0000        1.0392        .41845E-09** at limit **
  12  Prefactor     6.6350        7.4375       -.59674E-06   -.39483E-01
  13  Prefactor     6.6771        3.6203        .12209E-07    .37808E-03
  14  norm          2.9555        1.2842        .79175E-08    .64285E-03
  15  Prefactor     .55511E-10    2.7694        .14041E-06** at limit **
  16  norm          1.6216        .89409       -.16985E-07    .37137E-03
  17  Prefactor     6.4341        1.7912       -.20913E-07    .88277E-02
  18  Prefactor     6.0244        5.2613       -.53043E-07   -.60232E-02
  19  norm          .83233        1.8694        .15743E-07   -.38611E-03
  20  Prefactor     .57732E-08    12.495        .29523E-06** at limit **
  21  Prefactor     47.918        1.1663        .87849E-08   -.74864E-03
  22  norm           .0000        1.7219       -.78329E-07** at limit **
  23  Prefactor     21.766        25.273        .46788E-06   -.33179E-02
  24  Prefactor     1.5276        1.8421       -.29281E-07   -.70712E-03
  25  norm           .0000        .68510       -.76962E-07** at limit **
  26  Normalizat    .86854        .11227        .28577E-05    .57920E-04
  27  Prefactor     1.0329        .13839       -.28518E-05    .17750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.224657
  Prefactor  = 25.2801
  norm       = 0
  Prefactor  = 2.86013
  norm       = 0
  Prefactor  = 21.3992
  Prefactor  = 7.72625
  Prefactor  = 5.55112e-11
  norm       = 1.71898
  Prefactor  = 1.83187e-09
  norm       = 0
  Prefactor  = 6.63504
  Prefactor  = 6.67712
  norm       = 2.95545
  Prefactor  = 5.55112e-11
  norm       = 1.62159
  Prefactor  = 6.43411
  Prefactor  = 6.02445
  norm       = 0.832325
  Prefactor  = 5.77316e-09
  Prefactor  = 47.9178
  norm       = 0
  Prefactor  = 21.7663
  Prefactor  = 1.52759
  norm       = 0
  Normalizat = 0.868538
  Prefactor  = 1.0329
_V02
Working on...
/lscratch/kocevski/32624377/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits.....................!
real 40.33
user 38.22
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32624377/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits', '/lscratch/kocevski/32624377/ft2_4FGL_J1245.1+5709_weekly_bin937.fits', expMap='/lscratch/kocevski/32624377/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', expCube='/lscratch/kocevski/32624377/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32624377/Model_4FGL_J1245.1+5709_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32624377/ft1_filtered_4FGL_J1245.1+5709_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32624377/ft2_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32624377/expmap_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32624377/ltcube_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32624377/Model_4FGL_J1245.1+5709_weekly_bin937.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) = 15382.4158982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23069       1.0000          .0000       .10000E+07
     2 'Prefactor '    24.747       1.0000          .0000       .10000E+07
     3 'norm      '    .68061E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8589       1.0000          .0000       .10000E+07
     5 'norm      '    .67113E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.378       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.7261       1.0000          .0000       .10000E+07
     8 'Prefactor '    .34164E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7172       1.0000          .0000       .10000E+07
    10 'Prefactor '    .83164E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .35825E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.6191       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.6862       1.0000          .0000       .10000E+07
    14 'norm      '    2.9535       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10986E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.6208       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.3203       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.0275       1.0000          .0000       .10000E+07
    19 'norm      '    .83134       1.0000          .0000       .10000E+07
    20 'Prefactor '    .30270E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    47.912       1.0000          .0000       .10000E+07
    22 'norm      '    .65862E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    21.197       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.5247       1.0000          .0000       .10000E+07
    25 'norm      '    .24675E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .86949       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0325       1.0000          .00 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK           552 CALLS     2410 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22466        1.2337        .71096E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.280        15.447        .20106E-03   -1.5607    
   3  norm           .0000        1.6711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8601        2.0049        .60099E-03   -1.5674    
   5  norm           .0000        .43549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.399        12.620        .21634E-03   -1.5615    
   7  Prefactor     7.7262        3.2892        .36053E-03   -1.5652    
   8  Prefactor     .55511E-10    2.0972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7190        1.0798        .80152E-04   -1.5682    
  10  Prefactor     .18319E-08    8.4036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.0387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6350        8.1692        .38981E-03   -1.5656    
  13  Prefactor     6.6771        3.6249        .38783E-03   -1.5656    
  14  norm          2.9555        1.2857        .59067E-03   -1.5674    
  15  Prefactor     .55511E-10    2.7692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6216        .88907        .83098E-03   -1.5682    
  17  Prefactor     6.4341        17.739        .39903E-03   -1.5657    
  18  Prefactor     6.0244        5.2896        .40874E-03   -1.5659    
  19  norm          .83233        1.9147        .50627E-03   -1.5690    
  20  Prefactor     .57732E-08    12.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.918        22.006        .14448E-03   -1.5570    
  22  norm           .0000        1.6510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.766        25.307        .21727E-03   -1.5615    
  24  Prefactor     1.5276        1.8621        .86459E-03   -1.5683    
  25  norm           .0000        .68311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86854        .98041E-01    .44510E-01   -.97575    
  27  Prefactor     1.0329        .11878        .41067E-01   -.91641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35167e-06
Minuit parameter uncertainties:
  1  1.05293
  2  15.4471
  3  3.97273e-06
  4  2.0049
  5  2.32406e-06
  6  12.6197
  7  3.28925
  8  1.97862e-05
  9  1.07977
  10  0.000247207
  11  3.0309e-08
  12  8.16917
  13  3.62488
  14  1.28572
  15  2.94037e-05
  16  0.889068
  17  17.739
  18  5.28962
  19  1.91474
  20  0.000539019
  21  22.0063
  22  6.52295e-06
  23  25.3067
  24  1.86212
  25  2.15183e-06
  26  0.0980615
  27  0.118815
00       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1858 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22466        5.9031       -.96495E-06** at limit **
   2  Prefactor     25.280        5.9833        .20462E-06   -.10267    
   3  norm           .0000        1.6710       -.21436E-07** at limit **
   4  Prefactor     2.8601        1.8633        .92644E-07    .19552E-02
   5  norm           .0000        .43601       -.95798E-07** at limit **
   6  Prefactor     21.399        1.6027       -.45348E-07    .10918E-01
   7  Prefactor     7.7262        3.2897        .32339E-07    .93222E-03
   8  Prefactor     .55511E-10    2.0960        .11059E-06** at limit **
   9  norm          1.7190        1.0801       -.63929E-07   -.27222E-02
  10  Prefactor     .18319E-08    8.4137        .43110E-06** at limit **
  11  norm           .0000        1.0392        .41845E-09** at limit **
  12  Prefactor     6.6350        7.4375       -.59674E-06   -.39483E-01
  13  Prefactor     6.6771        3.6203        .12209E-07    .37808E-03
  14  norm          2.9555        1.2842        .79175E-08    .64285E-03
  15  Prefactor     .55511E-10    2.7694        .14041E-06** at limit **
  16  norm          1.6216        .89409       -.16985E-07    .37137E-03
  17  Prefactor     6.4341        1.7912       -.20913E-07    .88277E-02
  18  Prefactor     6.0244        5.2613       -.53043E-07   -.60232E-02
  19  norm          .83233        1.8694        .15743E-07   -.38611E-03
  20  Prefactor     .57732E-08    12.495        .29523E-06** at limit **
  21  Prefactor     47.918        1.1663        .87849E-08   -.74864E-03
  22  norm           .0000        1.7219       -.78329E-07** at limit **
  23  Prefactor     21.766        25.273        .46788E-06   -.33179E-02
  24  Prefactor     1.5276        1.8421       -.29281E-07   -.70712E-03
  25  norm           .0000        .68510       -.76962E-07** at limit **
  26  Normalizat    .86854        .11227        .28577E-05    .57920E-04
  27  Prefactor     1.0329        .13839       -.28518E-05    .17750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.224657
  Prefactor  = 25.2801
  norm       = 0
  Prefactor  = 2.86013
  norm       = 0
  Prefactor  = 21.3992
  Prefactor  = 7.72625
  Prefactor  = 5.55112e-11
  norm       = 1.71898
  Prefactor  = 1.83187e-09
  norm       = 0
  Prefactor  = 6.63504
  Prefactor  = 6.67712
  norm       = 2.95545
  Prefactor  = 5.55112e-11
  norm       = 1.62159
  Prefactor  = 6.43411
  Prefactor  = 6.02445
  norm       = 0.832325
  Prefactor  = 5.77316e-09
  Prefactor  = 47.9178
  norm       = 0
  Prefactor  = 21.7663
  Prefactor  = 1.52759
  norm       = 0
  Normalizat = 0.868538
  Prefactor  = 1.0329
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.677e+00  3.625e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.033e+00  1.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.685e-01  9.806e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.86
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 8.20e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3481414
delta logL = 0.00120889289428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3474693
delta logL = 0.0018809986268

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8269        69.667        .38376E-03    .20025E-01
   2  Index         2.1054        2.7781        .12668        .26991E-03
   3  Normalizat    .86932        .51011E-01    .44508E-01    .31313E-04
   4  Prefactor     1.0324        .48261E-01    .41075E-01    .24712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.82689
  Index      = 2.10543
  Normalizat = 0.869323
  Prefactor  = 1.03236
 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8269        4.5364        .15351E-04   -1.5656    
   2  Index         2.1054        .38753        .73400E-02   -.61740    
   3  Normalizat    .86932        .10921        .22104E-03   -.97547    
   4  Prefactor     1.0324        .13807        .25932E-03   -.91658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83707e-09
Minuit parameter uncertainties:
  1  4.5364
  2  0.38812
  3  0.109234
  4  0.138122
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) = 15382.3474692
delta logL = 0.00188102606262

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.827e+00  4.536e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.105e+00  3.881e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.032e+00  1.381e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.693e-01  1.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.88
Ra Dec: 191.288 57.158
Photon Index (Free Index): 2.11 +/- 0.39
Photon Flux (Free Index): 2.85e-08 +/- 1.84e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.07e-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/32624098/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='1.55e-05', photon_flux_error='1.58e-08', dlogl='1.88e-03', energy_flux='1.51e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2026-07-21 10:34:59.738731', photon_index_error2='0.39', photon_index2='2.11', ts='9.86', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='0.87', time_epoch_completed='1784655299.74', return_code='0', job_id='32624098', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='1.84e-08', ts2='9.88', photon_index='2.13' WHERE bin_id='937' AND source_name='4FGL J1245.1+5709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 10:35:00 PDT 2026

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

 FCN=   15382.35     FROM HESSE     STATUS=OK           552 CALLS     2410 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22466        1.2337        .71096E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.280        15.447        .20106E-03   -1.5607    
   3  norm           .0000        1.6711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8601        2.0049        .60099E-03   -1.5674    
   5  norm           .0000        .43549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.399        12.620        .21634E-03   -1.5615    
   7  Prefactor     7.7262        3.2892        .36053E-03   -1.5652    
   8  Prefactor     .55511E-10    2.0972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7190        1.0798        .80152E-04   -1.5682    
  10  Prefactor     .18319E-08    8.4036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.0387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6350        8.1692        .38981E-03   -1.5656    
  13  Prefactor     6.6771        3.6249        .38783E-03   -1.5656    
  14  norm          2.9555        1.2857        .59067E-03   -1.5674    
  15  Prefactor     .55511E-10    2.7692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6216        .88907        .83098E-03   -1.5682    
  17  Prefactor     6.4341        17.739        .39903E-03   -1.5657    
  18  Prefactor     6.0244        5.2896        .40874E-03   -1.5659    
  19  norm          .83233        1.9147        .50627E-03   -1.5690    
  20  Prefactor     .57732E-08    12.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.918        22.006        .14448E-03   -1.5570    
  22  norm           .0000        1.6510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.766        25.307        .21727E-03   -1.5615    
  24  Prefactor     1.5276        1.8621        .86459E-03   -1.5683    
  25  norm           .0000        .68311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86854        .98041E-01    .44510E-01   -.97575    
  27  Prefactor     1.0329        .11878        .41067E-01   -.91641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35167e-06
Minuit parameter uncertainties:
  1  1.05293
  2  15.4471
  3  3.97273e-06
  4  2.0049
  5  2.32406e-06
  6  12.6197
  7  3.28925
  8  1.97862e-05
  9  1.07977
  10  0.000247207
  11  3.0309e-08
  12  8.16917
  13  3.62488
  14  1.28572
  15  2.94037e-05
  16  0.889068
  17  17.739
  18  5.28962
  19  1.91474
  20  0.000539019
  21  22.0063
  22  6.52295e-06
  23  25.3067
  24  1.86212
  25  2.15183e-06
  26  0.0980615
  27  0.118815
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.677e+00  3.625e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.033e+00  1.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.685e-01  9.806e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.86
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 8.20e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3481414
delta logL = 0.00120889289428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15382.3474693
delta logL = 0.0018809986268

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15382.35     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8269        69.667        .38376E-03    .20025E-01
   2  Index         2.1054        2.7781        .12668        .26991E-03
   3  Normalizat    .86932        .51011E-01    .44508E-01    .31313E-04
   4  Prefactor     1.0324        .48261E-01    .41075E-01    .24712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.82689
  Index      = 2.10543
  Normalizat = 0.869323
  Prefactor  = 1.03236
 **********
 **   18 **HESSE 
 **********

 FCN=   15382.35     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8269        4.5364        .15351E-04   -1.5656    
   2  Index         2.1054        .38753        .73400E-02   -.61740    
   3  Normalizat    .86932        .10921        .22104E-03   -.97547    
   4  Prefactor     1.0324        .13807        .25932E-03   -.91658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83707e-09
Minuit parameter uncertainties:
  1  4.5364
  2  0.38812
  3  0.109234
  4  0.138122
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) = 15382.3474692
delta logL = 0.00188102606262

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.827e+00  4.536e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.105e+00  3.881e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.032e+00  1.381e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.693e-01  1.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.88
Ra Dec: 191.288 57.158
Photon Index (Free Index): 2.11 +/- 0.39
Photon Flux (Free Index): 2.85e-08 +/- 1.84e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.07e-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/32624377/cmap_HighResolution_805680001_806284801_4FGL_J1245.1+5709_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='1.55e-05', photon_flux_error='1.58e-08', dlogl='1.88e-03', energy_flux='1.51e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2026-07-21 10:35:58.551405', photon_index_error2='0.39', photon_index2='2.11', ts='9.86', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='0.87', time_epoch_completed='1784655358.55', return_code='0', job_id='32624377', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='1.84e-08', ts2='9.88', photon_index='2.13' WHERE bin_id='937' AND source_name='4FGL J1245.1+5709' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 10:35:59 PDT 2026

