/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits PyFITSDeprecationWarning) # noqa Likelihood Analysis Tool Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov) Importing modules... This is make3FGLxml version 01r0. The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher. This is make4FGLDR3xml version 01r09. The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations. WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). /sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead. warnings.warn(message, mplDeprecation, stacklevel=1) WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). number of points = 17522 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J2040.5-1705_weekly_bin941 RA = 310.136, Dec = -17.0901 tmin = 808099201, tmax = 808704001 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='35299076', job_status='RUN', time_executed='2026-08-18 15:48:09.121682', time_epoch_executed='1787093289.12' WHERE source_name='4FGL J2040.5-1705' and cadence='weekly' and bin_id='941' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/35299076 Creating custom pfile directory: /lscratch/kocevski/35299076/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/35299076/ft1_4FGL_J2040.5-1705_weekly_bin941.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/35299076/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/35299076/ft1_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299076/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=808099201.0 tmax=808704001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Done. real 6.20 user 5.01 sys 0.26 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35299076/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/35299076/ft2_4FGL_J2040.5-1705_weekly_bin941.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/35299076/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" outfile="/lscratch/kocevski/35299076/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.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.62 user 0.23 sys 0.14 Number of photons that the gtmktime cut: 1280 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/35299076/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35299076/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATnumber of points = 17522 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J2040.5-1705_weekly_bin941 RA = 310.136, Dec = -17.0901 tmin = 808099201, tmax = 808704001 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='35299072', job_status='RUN', time_executed='2026-08-18 15:48:07.597365', time_epoch_executed='1787093287.6' WHERE source_name='4FGL J2040.5-1705' and cadence='weekly' and bin_id='941' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/35299072 Creating custom pfile directory: /lscratch/kocevski/35299072/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/35299072/ft1_4FGL_J2040.5-1705_weekly_bin941.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/35299072/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/35299072/ft1_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299072/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=808099201.0 tmax=808704001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Done. real 6.22 user 4.99 sys 0.23 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35299072/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/35299072/ft2_4FGL_J2040.5-1705_weekly_bin941.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/35299072/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" outfile="/lscratch/kocevski/35299072/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.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.94 user 0.24 sys 0.13 Number of photons that the gtmktime cut: 1280 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/35299072/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35299072/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATAnumber of points = 17522 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J2040.5-1705_weekly_bin941 RA = 310.136, Dec = -17.0901 tmin = 808099201, tmax = 808704001 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='35299087', job_status='RUN', time_executed='2026-08-18 15:48:18.511262', time_epoch_executed='1787093298.51' WHERE source_name='4FGL J2040.5-1705' and cadence='weekly' and bin_id='941' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/35299087 Creating custom pfile directory: /lscratch/kocevski/35299087/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/35299087/ft1_4FGL_J2040.5-1705_weekly_bin941.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/35299087/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/35299087/ft1_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299087/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=808099201.0 tmax=808704001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Done. real 6.22 user 5.14 sys 0.25 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35299087/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/35299087/ft2_4FGL_J2040.5-1705_weekly_bin941.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/35299087/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" outfile="/lscratch/kocevski/35299087/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.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.15 user 0.23 sys 0.13 Number of photons that the gtmktime cut: 1280 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/35299087/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35299087/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATnumber of points = 17522 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J2040.5-1705_weekly_bin941 RA = 310.136, Dec = -17.0901 tmin = 808099201, tmax = 808704001 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='35299109', job_status='RUN', time_executed='2026-08-18 15:48:31.753878', time_epoch_executed='1787093311.75' WHERE source_name='4FGL J2040.5-1705' and cadence='weekly' and bin_id='941' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/35299109 Creating custom pfile directory: /lscratch/kocevski/35299109/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/35299109/ft1_4FGL_J2040.5-1705_weekly_bin941.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/35299109/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/35299109/ft1_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299109/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=808099201.0 tmax=808704001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Done. real 5.80 user 4.83 sys 0.22 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35299109/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/35299109/ft2_4FGL_J2040.5-1705_weekly_bin941.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/35299109/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" outfile="/lscratch/kocevski/35299109/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). This is gtmktime version HEAD Applying GTI filter: IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2)) real 0.91 user 0.22 sys 0.13 Number of photons that the gtmktime cut: 1280 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/35299109/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35299109/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATnumber of points = 17522 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J2040.5-1705_weekly_bin941 RA = 310.136, Dec = -17.0901 tmin = 808099201, tmax = 808704001 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='35299195', job_status='RUN', time_executed='2026-08-18 15:49:36.655001', time_epoch_executed='1787093376.66' WHERE source_name='4FGL J2040.5-1705' and cadence='weekly' and bin_id='941' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/35299195 Creating custom pfile directory: /lscratch/kocevski/35299195/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/35299195/ft1_4FGL_J2040.5-1705_weekly_bin941.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/35299195/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/35299195/ft1_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299195/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=808099201.0 tmax=808704001.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.78 user 4.66 sys 0.27 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35299195/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/35299195/ft2_4FGL_J2040.5-1705_weekly_bin941.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/35299195/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" outfile="/lscratch/kocevski/35299195/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.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.21 sys 0.12 Number of photons that the gtmktime cut: 1280 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/35299195/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35299195/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" outfile=/lscratch/kocevski/35299076/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299076/ft2_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 19.31 user 18.26 sys 0.25 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/35299076/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299076/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35299076/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299076/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299076/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 69.68 user 64.54 sys 4.06 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 181 point sources and 0 extended sources Setting source of interest to: 4FGL J2040.5-1705 @ 310.136 -17.0901 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/35299076/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299076/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299076/cmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 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.95 user 0.26 sys 0.14 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/35299076/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299076/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299076/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 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.26 sys 0.13 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/35299076/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299076/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35299076/Model_4FGL_J2040.5-1705_weekly_bin941.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 " outfile=/lscratch/kocevski/35299072/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299072/ft2_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 19.06 user 18.12 sys 0.23 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/35299072/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299072/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35299072/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299072/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299072/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 69.66 user 64.62 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 181 point sources and 0 extended sources Setting source of interest to: 4FGL J2040.5-1705 @ 310.136 -17.0901 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/35299072/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299072/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299072/cmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 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.14 user 0.27 sys 0.15 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/35299072/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299072/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299072/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 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.24 user 0.24 sys 0.14 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/35299072/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299072/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35299072/Model_4FGL_J2040.5-1705_weekly_bin941.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 sA" outfile=/lscratch/kocevski/35299109/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299109/ft2_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 18.57 user 17.55 sys 0.25 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/35299109/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299109/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35299109/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299109/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299109/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 68.20 user 63.09 sys 3.93 Generating the xml model: radLim = 0.001 maxRad = 12 normsOnly = True freeVariableSources = True Fixing all sources to their catalog values, except variable sources Creating file and adding sources from 4FGL Added 181 point sources and 0 extended sources Setting source of interest to: 4FGL J2040.5-1705 @ 310.136 -17.0901 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/35299109/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299109/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299109/cmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). This is gtbin version HEAD real 0.93 user 0.23 sys 0.13 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/35299109/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299109/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299109/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 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.09 user 0.25 sys 0.13 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/35299109/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299109/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35299109/Model_4FGL_J2040.5-1705_weekly_bin941.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 A" outfile=/lscratch/kocevski/35299087/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299087/ft2_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 20.20 user 19.08 sys 0.25 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/35299087/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299087/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35299087/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299087/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299087/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 73.98 user 68.70 sys 4.24 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 181 point sources and 0 extended sources Setting source of interest to: 4FGL J2040.5-1705 @ 310.136 -17.0901 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/35299087/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299087/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299087/cmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 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.99 user 0.24 sys 0.13 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/35299087/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299087/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299087/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 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.26 sys 0.12 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/35299087/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299087/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35299087/Model_4FGL_J2040.5-1705_weekly_bin941.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 number of points = 17522 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J2040.5-1705_weekly_bin941 RA = 310.136, Dec = -17.0901 tmin = 808099201, tmax = 808704001 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='35299353', job_status='RUN', time_executed='2026-08-18 15:50:58.628042', time_epoch_executed='1787093458.63' WHERE source_name='4FGL J2040.5-1705' and cadence='weekly' and bin_id='941' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/35299353 Creating custom pfile directory: /lscratch/kocevski/35299353/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/35299353/ft1_4FGL_J2040.5-1705_weekly_bin941.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/35299353/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/35299353/ft1_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299353/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=808099201.0 tmax=808704001.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.96 user 5.04 sys 0.26 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35299353/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/35299353/ft2_4FGL_J2040.5-1705_weekly_bin941.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/35299353/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" outfile="/lscratch/kocevski/35299353/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.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.22 sys 0.13 Number of photons that the gtmktime cut: 1280 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/35299353/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35299353/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATsource GAL_V02 Working on... /lscratch/kocevski/35299076/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits....................! real 46.52 user 44.65 sys 1.01 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/35299076/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits', '/lscratch/kocevski/35299076/ft2_4FGL_J2040.5-1705_weekly_bin941.fits', expMap='/lscratch/kocevski/35299076/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', expCube='/lscratch/kocevski/35299076/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35299076/Model_4FGL_J2040.5-1705_weekly_bin941.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2040.5-1705' 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 1.223e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/35299076/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits Spacecraft file(s): /lscratch/kocevski/35299076/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Exposure map: /lscratch/kocevski/35299076/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits Exposure cube: /lscratch/kocevski/35299076/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/35299076/Model_4FGL_J2040.5-1705_weekly_bin941.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) = 13752.7632962 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.733935 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .25243E-03 1.0000 .0000 .10000E+07 2 'Prefactor ' 2.4071 1.0000 .0000 .10000E+07 3 'norm ' 5.2312 1.0000 .0000 .10000E+07 4 'norm ' .21770E-03 1.0000 .0000 .10000E+07 5 'Prefactor ' .53485E-02 1.0000 .0000 .10000E+07 6 'norm ' 21.144 1.0000 .0000 .10000E+07 7 'norm ' .35888E-03 1.0000 .0000 .10000E+07 8 'norm ' 1.0450 1.0000 .0000 .10000E+07 9 'Prefactor ' .31780E-03 1.0000 .0000 .10000E+07 10 'Prefactor ' .23076E-06 1.0000 .0000 .10000E+07 11 'norm ' .22760E-08 1.0000 .0000 .10000E+07 12 'Prefactor ' .15565E-05 1.0000 .0000 .10000E+07 13 'norm ' .19090E-06 1.0000 .0000 .10000E+07 14 'Prefactor ' 4.4970 1.0000 .0000 .10000E+07 15 'Prefactor ' .15501E-05 1.0000 .0000 .10000E+07 16 'Prefactor ' .23626E-02 1.0000 .0000 .10000E+07 17 'Normalizat' .90099 1.0000 .10000E-01 10.000 18 'Prefactor ' .95971 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 116 CALLS 1048 TOTAL EDM= .14E-08 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 3.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .32085E-07 2.1646 -.77728E-07** at limit ** 2 Prefactor 2.4080 1.2224 -.47385E-07 -.32951E-02 3 norm 5.2309 5.7291 -.22747E-06 -.85746E-01 4 norm .17986E-07 3.3186 .13945E-06** at limit ** 5 Prefactor .24425E-08 27.338 .85852E-06** at limit ** 6 norm 21.186 1.0354 .26905E-08 .20271E-02 7 norm .39579E-07 2.2930 -.10838E-06** at limit ** 8 norm 1.0454 .80151 -.30088E-07 -.10541E-02 9 Prefactor .36748E-07 3.4417 .60056E-07** at limit ** 10 Prefactor .55511E-10 2.1300 -.86415E-07** at limit ** 11 norm .55511E-10 2.2461 .30857E-06** at limit ** 12 Prefactor .0000 1.1145 .15913E-06** at limit ** 13 norm .63227E-07 8.8436 -.11711E-06** at limit ** 14 Prefactor 4.6064 5.6082 -.37863E-06 -.50308E-02 15 Prefactor .21777E-06 6.4223 -.54465E-06** at limit ** 16 Prefactor .28305E-06 4.2818 .10339E-06** at limit ** 17 Normalizat .90004 .19944 .81767E-05 -.62405E-04 18 Prefactor .95991 .86028E-01 -.45871E-05 -.24228E-03 ERR DEF= .500 Final values: Prefactor = 3.20854e-08 Prefactor = 2.408 norm = 5.23091 norm = 1.79856e-08 Prefactor = 2.44249e-09 norm = 21.186 norm = 3.95795e-08 norm = 1.04545 Prefactor = 3.67484e-08 Prefactor = 5.55112e-11 norm = 5.55112e-11 Prefactor = 0 norm = 6.32272e-08 Prefactor = 4.60645 Prefactor = 2.1777e-07 Prefactor = 2.83051e-07 Normalizat = 0.900038 Prefactor = 0.959914 ource GAL_V02 Working on... /lscratch/kocevski/35299072/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits....................! real 46.49 user 44.45 sys 1.01 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/35299072/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits', '/lscratch/kocevski/35299072/ft2_4FGL_J2040.5-1705_weekly_bin941.fits', expMap='/lscratch/kocevski/35299072/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', expCube='/lscratch/kocevski/35299072/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35299072/Model_4FGL_J2040.5-1705_weekly_bin941.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2040.5-1705' 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 1.223e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/35299072/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits Spacecraft file(s): /lscratch/kocevski/35299072/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Exposure map: /lscratch/kocevski/35299072/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits Exposure cube: /lscratch/kocevski/35299072/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/35299072/Model_4FGL_J2040.5-1705_weekly_bin941.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) = 13752.7632962 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.733935 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .25243E-03 1.0000 .0000 .10000E+07 2 'Prefactor ' 2.4071 1.0000 .0000 .10000E+07 3 'norm ' 5.2312 1.0000 .0000 .10000E+07 4 'norm ' .21770E-03 1.0000 .0000 .10000E+07 5 'Prefactor ' .53485E-02 1.0000 .0000 .10000E+07 6 'norm ' 21.144 1.0000 .0000 .10000E+07 7 'norm ' .35888E-03 1.0000 .0000 .10000E+07 8 'norm ' 1.0450 1.0000 .0000 .10000E+07 9 'Prefactor ' .31780E-03 1.0000 .0000 .10000E+07 10 'Prefactor ' .23076E-06 1.0000 .0000 .10000E+07 11 'norm ' .22760E-08 1.0000 .0000 .10000E+07 12 'Prefactor ' .15565E-05 1.0000 .0000 .10000E+07 13 'norm ' .19090E-06 1.0000 .0000 .10000E+07 14 'Prefactor ' 4.4970 1.0000 .0000 .10000E+07 15 'Prefactor ' .15501E-05 1.0000 .0000 .10000E+07 16 'Prefactor ' .23626E-02 1.0000 .0000 .10000E+07 17 'Normalizat' .90099 1.0000 .10000E-01 10.000 18 'Prefactor ' .95971 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 116 CALLS 1048 TOTAL EDM= .14E-08 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 3.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .32085E-07 2.1646 -.77728E-07** at limit ** 2 Prefactor 2.4080 1.2224 -.47385E-07 -.32951E-02 3 norm 5.2309 5.7291 -.22747E-06 -.85746E-01 4 norm .17986E-07 3.3186 .13945E-06** at limit ** 5 Prefactor .24425E-08 27.338 .85852E-06** at limit ** 6 norm 21.186 1.0354 .26905E-08 .20271E-02 7 norm .39579E-07 2.2930 -.10838E-06** at limit ** 8 norm 1.0454 .80151 -.30088E-07 -.10541E-02 9 Prefactor .36748E-07 3.4417 .60056E-07** at limit ** 10 Prefactor .55511E-10 2.1300 -.86415E-07** at limit ** 11 norm .55511E-10 2.2461 .30857E-06** at limit ** 12 Prefactor .0000 1.1145 .15913E-06** at limit ** 13 norm .63227E-07 8.8436 -.11711E-06** at limit ** 14 Prefactor 4.6064 5.6082 -.37863E-06 -.50308E-02 15 Prefactor .21777E-06 6.4223 -.54465E-06** at limit ** 16 Prefactor .28305E-06 4.2818 .10339E-06** at limit ** 17 Normalizat .90004 .19944 .81767E-05 -.62405E-04 18 Prefactor .95991 .86028E-01 -.45871E-05 -.24228E-03 ERR DEF= .500 Final values: Prefactor = 3.20854e-08 Prefactor = 2.408 norm = 5.23091 norm = 1.79856e-08 Prefactor = 2.44249e-09 norm = 21.186 norm = 3.95795e-08 norm = 1.04545 Prefactor = 3.67484e-08 Prefactor = 5.55112e-11 norm = 5.55112e-11 Prefactor = 0 norm = 6.32272e-08 Prefactor = 4.60645 Prefactor = 2.1777e-07 Prefactor = 2.83051e-07 Normalizat = 0.900038 Prefactor = 0.959914 ********** ** 18 **HESSE ********** FCN= 13752.73 FROM HESSE STATUS=OK 278 CALLS 1326 TOTAL EDM= .29E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .32085E-07 4.7917 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 2.4080 1.2246 .65962E-03 -1.5677 3 norm 5.2309 7.3507 .43925E-03 -1.5662 4 norm .17986E-07 3.4023 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor .24425E-08 27.440 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm 21.186 11.258 .21754E-03 -1.5616 7 norm .39579E-07 4.7416 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 1.0454 .82160 .12179E-02 -1.5688 9 Prefactor .36748E-07 3.6330 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .55511E-10 2.1240 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 norm .55511E-10 2.1835 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor .0000 1.1100 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 13 norm .63227E-07 9.1535 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 14 Prefactor 4.6064 5.5911 .47454E-03 -1.5665 15 Prefactor .21777E-06 7.5395 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 Prefactor .28305E-06 5.7495 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Normalizat .90004 .16899 .83032E-01 -.96459 18 Prefactor .95991 .72674E-01 .34900E-01 -.94078 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.85012e-07 Minuit parameter uncertainties: 1 0.000784422 2 1.22456 3 7.35076 4 0.000494802 5 0.000520134 6 11.258 7 0.00086638 8 0.821601 9 0.00073086 10 1.8792e-05 11 2.68086e-05 12 1.47178e-06 13 0.00152121 14 5.59108 15 0.00256282 16 0.00255145 17 0.169086 18 0.0726812 number of points = 17522 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J2040.5-1705_weekly_bin941 RA = 310.136, Dec = -17.0901 tmin = 808099201, tmax = 808704001 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='35299413', job_status='RUN', time_executed='2026-08-18 15:51:41.265174', time_epoch_executed='1787093501.27' WHERE source_name='4FGL J2040.5-1705' and cadence='weekly' and bin_id='941' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/35299413 Creating custom pfile directory: /lscratch/kocevski/35299413/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/35299413/ft1_4FGL_J2040.5-1705_weekly_bin941.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/35299413/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/35299413/ft1_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299413/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=808099201.0 tmax=808704001.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.84 user 4.93 sys 0.27 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35299413/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/35299413/ft2_4FGL_J2040.5-1705_weekly_bin941.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/35299413/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" outfile="/lscratch/kocevski/35299413/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.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.89 user 0.24 sys 0.11 Number of photons that the gtmktime cut: 1280 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/35299413/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35299413/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" outfile=/lscratch/kocevski/35299195/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299195/ft2_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 18.15 user 17.09 sys 0.25 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/35299195/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299195/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35299195/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299195/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299195/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 66.15 user 61.10 sys 3.96 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 181 point sources and 0 extended sources Setting source of interest to: 4FGL J2040.5-1705 @ 310.136 -17.0901 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/35299195/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299195/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299195/cmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 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 6.62 user 0.22 sys 0.12 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/35299195/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299195/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299195/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 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.95 user 0.23 sys 0.12 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/35299195/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299195/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35299195/Model_4FGL_J2040.5-1705_weekly_bin941.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 ********** ** 18 **HESSE ********** FCN= 13752.73 FROM HESSE STATUS=OK 278 CALLS 1326 TOTAL EDM= .29E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .32085E-07 4.7917 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 2.4080 1.2246 .65962E-03 -1.5677 3 norm 5.2309 7.3507 .43925E-03 -1.5662 4 norm .17986E-07 3.4023 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor .24425E-08 27.440 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm 21.186 11.258 .21754E-03 -1.5616 7 norm .39579E-07 4.7416 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 1.0454 .82160 .12179E-02 -1.5688 9 Prefactor .36748E-07 3.6330 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .55511E-10 2.1240 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 norm .55511E-10 2.1835 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor .0000 1.1100 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 13 norm .63227E-07 9.1535 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 14 Prefactor 4.6064 5.5911 .47454E-03 -1.5665 15 Prefactor .21777E-06 7.5395 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 Prefactor .28305E-06 5.7495 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Normalizat .90004 .16899 .83032E-01 -.96459 18 Prefactor .95991 .72674E-01 .34900E-01 -.94078 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.85012e-07 Minuit parameter uncertainties: 1 0.000784422 2 1.22456 3 7.35076 4 0.000494802 5 0.000520134 6 11.258 7 0.00086638 8 0.821601 9 0.00073086 10 1.8792e-05 11 2.68086e-05 12 1.47178e-06 13 0.00152121 14 5.59108 15 0.00256282 16 0.00255145 17 0.169086 18 0.0726812 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.7332943 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 1.472e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 7.268e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.691e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.00 Ra Dec: 310.136 -17.090 Photon Flux Upper Limit: 5.14085978449e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00400881602002 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/35299076/likelihoodResults_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.txt 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) = 13752.7340522 delta logL = -0.000757845127737 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 13752.7332944 delta logL = -1.11795088742e-08 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .53291E-08 1.0000 .0000 .10000E+07 2 'Index ' 1.6134 1.0000 .0000 10.000 3 'Normalizat' .90005 1.0000 .10000E-01 10.000 4 'Prefactor ' .95990 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 38 CALLS 240 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 1.1043 .42118E-03** at limit ** 2 Index 1.6941 1.0594 -.10175E-04 .0000 3 Normalizat .90004 1.2354 -.34851E-05 .12398E-03 4 Prefactor .95991 1.3015 -.85473E-06 .22139E-03 ERR DEF= .500 Final values: Prefactor = 0 Index = 1.69407 Normalizat = 0.900038 Prefactor = 0.959914 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM HESSE STATUS=FAILED 9 CALLS 249 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 1.1043 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .28356 1.5451 -.10175E-04 -.72240 3 Normalizat .90004 1.2354 -.34851E-05 -.96459 4 Prefactor .95991 1.3015 -.85473E-06 -.94078 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 2.67315e-11 Minuit parameter uncertainties: 1 9.71452e-06 2 1.07402 3 1.27789 4 1.34811 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory source GAL_V02 Working on... /lscratch/kocevski/35299109/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits....................! real 45.30 user 43.23 sys 1.03 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/35299109/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits', '/lscratch/kocevski/35299109/ft2_4FGL_J2040.5-1705_weekly_bin941.fits', expMap='/lscratch/kocevski/35299109/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', expCube='/lscratch/kocevski/35299109/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35299109/Model_4FGL_J2040.5-1705_weekly_bin941.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2040.5-1705' 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 1.223e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/35299109/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits Spacecraft file(s): /lscratch/kocevski/35299109/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Exposure map: /lscratch/kocevski/35299109/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits Exposure cube: /lscratch/kocevski/35299109/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/35299109/Model_4FGL_J2040.5-1705_weekly_bin941.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) = 13752.7632962 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.733935 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .25243E-03 1.0000 .0000 .10000E+07 2 'Prefactor ' 2.4071 1.0000 .0000 .10000E+07 3 'norm ' 5.2312 1.0000 .0000 .10000E+07 4 'norm ' .21770E-03 1.0000 .0000 .10000E+07 5 'Prefactor ' .53485E-02 1.0000 .0000 .10000E+07 6 'norm ' 21.144 1.0000 .0000 .10000E+07 7 'norm ' .35888E-03 1.0000 .0000 .10000E+07 8 'norm ' 1.0450 1.0000 .0000 .10000E+07 9 'Prefactor ' .31780E-03 1.0000 .0000 .10000E+07 10 'Prefactor ' .23076E-06 1.0000 .0000 .10000E+07 11 'norm ' .22760E-08 1.0000 .0000 .10000E+07 12 'Prefactor ' .15565E-05 1.0000 .0000 .10000E+07 13 'norm ' .19090E-06 1.0000 .0000 .10000E+07 14 'Prefactor ' 4.4970 1.0000 .0000 .10000E+07 15 'Prefactor ' .15501E-05 1.0000 .0000 .10000E+07 16 'Prefactor ' .23626E-02 1.0000 .0000 .10000E+07 17 'Normalizat' .90099 1.0000 .10000E-01 10.000 18 'Prefactor ' .95971 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 116 CALLS 1048 TOTAL EDM= .14E-08 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 3.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .32085E-07 2.1646 -.77728E-07** at limit ** 2 Prefactor 2.4080 1.2224 -.47385E-07 -.32951E-02 3 norm 5.2309 5.7291 -.22747E-06 -.85746E-01 4 norm .17986E-07 3.3186 .13945E-06** at limit ** 5 Prefactor .24425E-08 27.338 .85852E-06** at limit ** 6 norm 21.186 1.0354 .26905E-08 .20271E-02 7 norm .39579E-07 2.2930 -.10838E-06** at limit ** 8 norm 1.0454 .80151 -.30088E-07 -.10541E-02 9 Prefactor .36748E-07 3.4417 .60056E-07** at limit ** 10 Prefactor .55511E-10 2.1300 -.86415E-07** at limit ** 11 norm .55511E-10 2.2461 .30857E-06** at limit ** 12 Prefactor .0000 1.1145 .15913E-06** at limit ** 13 norm .63227E-07 8.8436 -.11711E-06** at limit ** 14 Prefactor 4.6064 5.6082 -.37863E-06 -.50308E-02 15 Prefactor .21777E-06 6.4223 -.54465E-06** at limit ** 16 Prefactor .28305E-06 4.2818 .10339E-06** at limit ** 17 Normalizat .90004 .19944 .81767E-05 -.62405E-04 18 Prefactor .95991 .86028E-01 -.45871E-05 -.24228E-03 ERR DEF= .500 Final values: Prefactor = 3.20854e-08 Prefactor = 2.408 norm = 5.23091 norm = 1.79856e-08 Prefactor = 2.44249e-09 norm = 21.186 norm = 3.95795e-08 norm = 1.04545 Prefactor = 3.67484e-08 Prefactor = 5.55112e-11 norm = 5.55112e-11 Prefactor = 0 norm = 6.32272e-08 Prefactor = 4.60645 Prefactor = 2.1777e-07 Prefactor = 2.83051e-07 Normalizat = 0.900038 Prefactor = 0.959914 Done. MINUIT Return Code (Free Index): 101 logL (Free Index) = 13752.7332943 delta logL = -1.81898940355e-12 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 9.715e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 1.694e+00 1.074e+00 0.000e+00 1.000e+01 (-1.000e+00) 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 1.348e+00 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.278e+00 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 0.00 Ra Dec: 310.136 -17.090 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/35299076/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2026-08-18 16:01:54.996299', job_id='35299076', GAL2='0.96', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1787094115.0', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-1.82e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='941' AND source_name='4FGL J2040.5-1705' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Aug 18 16:01:55 PDT 2026 source GAL_V02 Working on... /lscratch/kocevski/35299087/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits....................! real 50.04 user 47.93 sys 1.14 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/35299087/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits', '/lscratch/kocevski/35299087/ft2_4FGL_J2040.5-1705_weekly_bin941.fits', expMap='/lscratch/kocevski/35299087/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', expCube='/lscratch/kocevski/35299087/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35299087/Model_4FGL_J2040.5-1705_weekly_bin941.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2040.5-1705' 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 1.223e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/35299087/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits Spacecraft file(s): /lscratch/kocevski/35299087/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Exposure map: /lscratch/kocevski/35299087/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits Exposure cube: /lscratch/kocevski/35299087/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/35299087/Model_4FGL_J2040.5-1705_weekly_bin941.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) = 13752.7632962 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.733935 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .25243E-03 1.0000 .0000 .10000E+07 2 'Prefactor ' 2.4071 1.0000 .0000 .10000E+07 3 'norm ' 5.2312 1.0000 .0000 .10000E+07 4 'norm ' .21770E-03 1.0000 .0000 .10000E+07 5 'Prefactor ' .53485E-02 1.0000 .0000 .10000E+07 6 'norm ' 21.144 1.0000 .0000 .10000E+07 7 'norm ' .35888E-03 1.0000 .0000 .10000E+07 8 'norm ' 1.0450 1.0000 .0000 .10000E+07 9 'Prefactor ' .31780E-03 1.0000 .0000 .10000E+07 10 'Prefactor ' .23076E-06 1.0000 .0000 .10000E+07 11 'norm ' .22760E-08 1.0000 .0000 .10000E+07 12 'Prefactor ' .15565E-05 1.0000 .0000 .10000E+07 13 'norm ' .19090E-06 1.0000 .0000 .10000E+07 14 'Prefactor ' 4.4970 1.0000 .0000 .10000E+07 15 'Prefactor ' .15501E-05 1.0000 .0000 .10000E+07 16 'Prefactor ' .23626E-02 1.0000 .0000 .10000E+07 17 'Normalizat' .90099 1.0000 .10000E-01 10.000 18 'Prefactor ' .95971 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 116 CALLS 1048 TOTAL EDM= .14E-08 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 3.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .32085E-07 2.1646 -.77728E-07** at limit ** 2 Prefactor 2.4080 1.2224 -.47385E-07 -.32951E-02 3 norm 5.2309 5.7291 -.22747E-06 -.85746E-01 4 norm .17986E-07 3.3186 .13945E-06** at limit ** 5 Prefactor .24425E-08 27.338 .85852E-06** at limit ** 6 norm 21.186 1.0354 .26905E-08 .20271E-02 7 norm .39579E-07 2.2930 -.10838E-06** at limit ** 8 norm 1.0454 .80151 -.30088E-07 -.10541E-02 9 Prefactor .36748E-07 3.4417 .60056E-07** at limit ** 10 Prefactor .55511E-10 2.1300 -.86415E-07** at limit ** 11 norm .55511E-10 2.2461 .30857E-06** at limit ** 12 Prefactor .0000 1.1145 .15913E-06** at limit ** 13 norm .63227E-07 8.8436 -.11711E-06** at limit ** 14 Prefactor 4.6064 5.6082 -.37863E-06 -.50308E-02 15 Prefactor .21777E-06 6.4223 -.54465E-06** at limit ** 16 Prefactor .28305E-06 4.2818 .10339E-06** at limit ** 17 Normalizat .90004 .19944 .81767E-05 -.62405E-04 18 Prefactor .95991 .86028E-01 -.45871E-05 -.24228E-03 ERR DEF= .500 Final values: Prefactor = 3.20854e-08 Prefactor = 2.408 norm = 5.23091 norm = 1.79856e-08 Prefactor = 2.44249e-09 norm = 21.186 norm = 3.95795e-08 norm = 1.04545 Prefactor = 3.67484e-08 Prefactor = 5.55112e-11 norm = 5.55112e-11 Prefactor = 0 norm = 6.32272e-08 Prefactor = 4.60645 Prefactor = 2.1777e-07 Prefactor = 2.83051e-07 Normalizat = 0.900038 Prefactor = 0.959914 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.7332943 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 1.472e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 7.268e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.691e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.00 Ra Dec: 310.136 -17.090 Photon Flux Upper Limit: 5.14085978449e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00400881602002 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/35299072/likelihoodResults_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.txt 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) = 13752.7340522 delta logL = -0.000757845127737 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 13752.7332944 delta logL = -1.11795088742e-08 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .53291E-08 1.0000 .0000 .10000E+07 2 'Index ' 1.6134 1.0000 .0000 10.000 3 'Normalizat' .90005 1.0000 .10000E-01 10.000 4 'Prefactor ' .95990 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 38 CALLS 240 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 1.1043 .42118E-03** at limit ** 2 Index 1.6941 1.0594 -.10175E-04 .0000 3 Normalizat .90004 1.2354 -.34851E-05 .12398E-03 4 Prefactor .95991 1.3015 -.85473E-06 .22139E-03 ERR DEF= .500 Final values: Prefactor = 0 Index = 1.69407 Normalizat = 0.900038 Prefactor = 0.959914 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM HESSE STATUS=FAILED 9 CALLS 249 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 1.1043 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .28356 1.5451 -.10175E-04 -.72240 3 Normalizat .90004 1.2354 -.34851E-05 -.96459 4 Prefactor .95991 1.3015 -.85473E-06 -.94078 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 2.67315e-11 Minuit parameter uncertainties: 1 9.71452e-06 2 1.07402 3 1.27789 4 1.34811 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 101 logL (Free Index) = 13752.7332943 delta logL = -1.81898940355e-12 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 9.715e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 1.694e+00 1.074e+00 0.000e+00 1.000e+01 (-1.000e+00) 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 1.348e+00 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.278e+00 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 0.00 Ra Dec: 310.136 -17.090 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/35299072/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2026-08-18 16:02:10.074586', job_id='35299072', GAL2='0.96', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1787094130.07', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-1.82e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='941' AND source_name='4FGL J2040.5-1705' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Aug 18 16:02:10 PDT 2026 ********** ** 18 **HESSE ********** FCN= 13752.73 FROM HESSE STATUS=OK 278 CALLS 1326 TOTAL EDM= .29E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .32085E-07 4.7917 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 2.4080 1.2246 .65962E-03 -1.5677 3 norm 5.2309 7.3507 .43925E-03 -1.5662 4 norm .17986E-07 3.4023 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor .24425E-08 27.440 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm 21.186 11.258 .21754E-03 -1.5616 7 norm .39579E-07 4.7416 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 1.0454 .82160 .12179E-02 -1.5688 9 Prefactor .36748E-07 3.6330 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .55511E-10 2.1240 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 norm .55511E-10 2.1835 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor .0000 1.1100 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 13 norm .63227E-07 9.1535 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 14 Prefactor 4.6064 5.5911 .47454E-03 -1.5665 15 Prefactor .21777E-06 7.5395 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 Prefactor .28305E-06 5.7495 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Normalizat .90004 .16899 .83032E-01 -.96459 18 Prefactor .95991 .72674E-01 .34900E-01 -.94078 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.85012e-07 Minuit parameter uncertainties: 1 0.000784422 2 1.22456 3 7.35076 4 0.000494802 5 0.000520134 6 11.258 7 0.00086638 8 0.821601 9 0.00073086 10 1.8792e-05 11 2.68086e-05 12 1.47178e-06 13 0.00152121 14 5.59108 15 0.00256282 16 0.00255145 17 0.169086 18 0.0726812 ********** ** 18 **HESSE ********** FCN= 13752.73 FROM HESSE STATUS=OK 278 CALLS 1326 TOTAL EDM= .29E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .32085E-07 4.7917 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 2.4080 1.2246 .65962E-03 -1.5677 3 norm 5.2309 7.3507 .43925E-03 -1.5662 4 norm .17986E-07 3.4023 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor .24425E-08 27.440 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm 21.186 11.258 .21754E-03 -1.5616 7 norm .39579E-07 4.7416 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 1.0454 .82160 .12179E-02 -1.5688 9 Prefactor .36748E-07 3.6330 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .55511E-10 2.1240 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 norm .55511E-10 2.1835 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor .0000 1.1100 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 13 norm .63227E-07 9.1535 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 14 Prefactor 4.6064 5.5911 .47454E-03 -1.5665 15 Prefactor .21777E-06 7.5395 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 Prefactor .28305E-06 5.7495 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Normalizat .90004 .16899 .83032E-01 -.96459 18 Prefactor .95991 .72674E-01 .34900E-01 -.94078 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.85012e-07 Minuit parameter uncertainties: 1 0.000784422 2 1.22456 3 7.35076 4 0.000494802 5 0.000520134 6 11.258 7 0.00086638 8 0.821601 9 0.00073086 10 1.8792e-05 11 2.68086e-05 12 1.47178e-06 13 0.00152121 14 5.59108 15 0.00256282 16 0.00255145 17 0.169086 18 0.0726812 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.7332943 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 1.472e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 7.268e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.691e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.00 Ra Dec: 310.136 -17.090 Photon Flux Upper Limit: 5.14085978449e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00400881602002 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/35299109/likelihoodResults_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.txt 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) = 13752.7340522 delta logL = -0.000757845127737 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 13752.7332944 delta logL = -1.11795088742e-08 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .53291E-08 1.0000 .0000 .10000E+07 2 'Index ' 1.6134 1.0000 .0000 10.000 3 'Normalizat' .90005 1.0000 .10000E-01 10.000 4 'Prefactor ' .95990 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 38 CALLS 240 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 1.1043 .42118E-03** at limit ** 2 Index 1.6941 1.0594 -.10175E-04 .0000 3 Normalizat .90004 1.2354 -.34851E-05 .12398E-03 4 Prefactor .95991 1.3015 -.85473E-06 .22139E-03 ERR DEF= .500 Final values: Prefactor = 0 Index = 1.69407 Normalizat = 0.900038 Prefactor = 0.959914 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM HESSE STATUS=FAILED 9 CALLS 249 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 1.1043 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .28356 1.5451 -.10175E-04 -.72240 3 Normalizat .90004 1.2354 -.34851E-05 -.96459 4 Prefactor .95991 1.3015 -.85473E-06 -.94078 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 2.67315e-11 Minuit parameter uncertainties: 1 9.71452e-06 2 1.07402 3 1.27789 4 1.34811 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 101 logL (Free Index) = 13752.7332943 delta logL = -1.81898940355e-12 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 9.715e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 1.694e+00 1.074e+00 0.000e+00 1.000e+01 (-1.000e+00) 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 1.348e+00 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.278e+00 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 0.00 Ra Dec: 310.136 -17.090 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/35299109/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2026-08-18 16:02:56.550624', job_id='35299109', GAL2='0.96', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1787094176.55', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-1.82e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='941' AND source_name='4FGL J2040.5-1705' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Aug 18 16:02:57 PDT 2026 A" outfile=/lscratch/kocevski/35299353/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299353/ft2_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 19.21 user 18.22 sys 0.24 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/35299353/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299353/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35299353/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299353/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299353/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 70.91 user 65.78 sys 4.11 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 181 point sources and 0 extended sources Setting source of interest to: 4FGL J2040.5-1705 @ 310.136 -17.0901 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/35299353/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299353/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299353/cmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 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.23 sys 0.12 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/35299353/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299353/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299353/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 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.24 sys 0.14 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/35299353/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299353/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35299353/Model_4FGL_J2040.5-1705_weekly_bin941.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/35299195/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits....................! real 43.43 user 41.59 sys 0.79 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/35299195/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits', '/lscratch/kocevski/35299195/ft2_4FGL_J2040.5-1705_weekly_bin941.fits', expMap='/lscratch/kocevski/35299195/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', expCube='/lscratch/kocevski/35299195/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35299195/Model_4FGL_J2040.5-1705_weekly_bin941.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2040.5-1705' 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 1.223e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/35299195/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits Spacecraft file(s): /lscratch/kocevski/35299195/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Exposure map: /lscratch/kocevski/35299195/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits Exposure cube: /lscratch/kocevski/35299195/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/35299195/Model_4FGL_J2040.5-1705_weekly_bin941.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) = 13752.7632962 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.733935 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .25243E-03 1.0000 .0000 .10000E+07 2 'Prefactor ' 2.4071 1.0000 .0000 .10000E+07 3 'norm ' 5.2312 1.0000 .0000 .10000E+07 4 'norm ' .21770E-03 1.0000 .0000 .10000E+07 5 'Prefactor ' .53485E-02 1.0000 .0000 .10000E+07 6 'norm ' 21.144 1.0000 .0000 .10000E+07 7 'norm ' .35888E-03 1.0000 .0000 .10000E+07 8 'norm ' 1.0450 1.0000 .0000 .10000E+07 9 'Prefactor ' .31780E-03 1.0000 .0000 .10000E+07 10 'Prefactor ' .23076E-06 1.0000 .0000 .10000E+07 11 'norm ' .22760E-08 1.0000 .0000 .10000E+07 12 'Prefactor ' .15565E-05 1.0000 .0000 .10000E+07 13 'norm ' .19090E-06 1.0000 .0000 .10000E+07 14 'Prefactor ' 4.4970 1.0000 .0000 .10000E+07 15 'Prefactor ' .15501E-05 1.0000 .0000 .10000E+07 16 'Prefactor ' .23626E-02 1.0000 .0000 .10000E+07 17 'Normalizat' .90099 1.0000 .10000E-01 10.000 18 'Prefactor ' .95971 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 116 CALLS 1048 TOTAL EDM= .14E-08 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 3.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .32085E-07 2.1646 -.77728E-07** at limit ** 2 Prefactor 2.4080 1.2224 -.47385E-07 -.32951E-02 3 norm 5.2309 5.7291 -.22747E-06 -.85746E-01 4 norm .17986E-07 3.3186 .13945E-06** at limit ** 5 Prefactor .24425E-08 27.338 .85852E-06** at limit ** 6 norm 21.186 1.0354 .26905E-08 .20271E-02 7 norm .39579E-07 2.2930 -.10838E-06** at limit ** 8 norm 1.0454 .80151 -.30088E-07 -.10541E-02 9 Prefactor .36748E-07 3.4417 .60056E-07** at limit ** 10 Prefactor .55511E-10 2.1300 -.86415E-07** at limit ** 11 norm .55511E-10 2.2461 .30857E-06** at limit ** 12 Prefactor .0000 1.1145 .15913E-06** at limit ** 13 norm .63227E-07 8.8436 -.11711E-06** at limit ** 14 Prefactor 4.6064 5.6082 -.37863E-06 -.50308E-02 15 Prefactor .21777E-06 6.4223 -.54465E-06** at limit ** 16 Prefactor .28305E-06 4.2818 .10339E-06** at limit ** 17 Normalizat .90004 .19944 .81767E-05 -.62405E-04 18 Prefactor .95991 .86028E-01 -.45871E-05 -.24228E-03 ERR DEF= .500 Final values: Prefactor = 3.20854e-08 Prefactor = 2.408 norm = 5.23091 norm = 1.79856e-08 Prefactor = 2.44249e-09 norm = 21.186 norm = 3.95795e-08 norm = 1.04545 Prefactor = 3.67484e-08 Prefactor = 5.55112e-11 norm = 5.55112e-11 Prefactor = 0 norm = 6.32272e-08 Prefactor = 4.60645 Prefactor = 2.1777e-07 Prefactor = 2.83051e-07 Normalizat = 0.900038 Prefactor = 0.959914 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.7332943 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 1.472e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 7.268e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.691e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.00 Ra Dec: 310.136 -17.090 Photon Flux Upper Limit: 5.14085978449e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00400881602002 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/35299087/likelihoodResults_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.txt 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) = 13752.7340522 delta logL = -0.000757845127737 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 13752.7332944 delta logL = -1.11795088742e-08 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .53291E-08 1.0000 .0000 .10000E+07 2 'Index ' 1.6134 1.0000 .0000 10.000 3 'Normalizat' .90005 1.0000 .10000E-01 10.000 4 'Prefactor ' .95990 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 38 CALLS 240 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 1.1043 .42118E-03** at limit ** 2 Index 1.6941 1.0594 -.10175E-04 .0000 3 Normalizat .90004 1.2354 -.34851E-05 .12398E-03 4 Prefactor .95991 1.3015 -.85473E-06 .22139E-03 ERR DEF= .500 Final values: Prefactor = 0 Index = 1.69407 Normalizat = 0.900038 Prefactor = 0.959914 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM HESSE STATUS=FAILED 9 CALLS 249 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 1.1043 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .28356 1.5451 -.10175E-04 -.72240 3 Normalizat .90004 1.2354 -.34851E-05 -.96459 4 Prefactor .95991 1.3015 -.85473E-06 -.94078 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 2.67315e-11 Minuit parameter uncertainties: 1 9.71452e-06 2 1.07402 3 1.27789 4 1.34811 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 101 logL (Free Index) = 13752.7332943 delta logL = -1.81898940355e-12 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 9.715e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 1.694e+00 1.074e+00 0.000e+00 1.000e+01 (-1.000e+00) 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 1.348e+00 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.278e+00 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 0.00 Ra Dec: 310.136 -17.090 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/35299087/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2026-08-18 16:03:09.359962', job_id='35299087', GAL2='0.96', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1787094189.36', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-1.82e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='941' AND source_name='4FGL J2040.5-1705' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Aug 18 16:03:09 PDT 2026 ********** ** 18 **HESSE ********** FCN= 13752.73 FROM HESSE STATUS=OK 278 CALLS 1326 TOTAL EDM= .29E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .32085E-07 4.7917 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 2.4080 1.2246 .65962E-03 -1.5677 3 norm 5.2309 7.3507 .43925E-03 -1.5662 4 norm .17986E-07 3.4023 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor .24425E-08 27.440 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm 21.186 11.258 .21754E-03 -1.5616 7 norm .39579E-07 4.7416 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 1.0454 .82160 .12179E-02 -1.5688 9 Prefactor .36748E-07 3.6330 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .55511E-10 2.1240 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 norm .55511E-10 2.1835 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor .0000 1.1100 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 13 norm .63227E-07 9.1535 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 14 Prefactor 4.6064 5.5911 .47454E-03 -1.5665 15 Prefactor .21777E-06 7.5395 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 Prefactor .28305E-06 5.7495 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Normalizat .90004 .16899 .83032E-01 -.96459 18 Prefactor .95991 .72674E-01 .34900E-01 -.94078 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.85012e-07 Minuit parameter uncertainties: 1 0.000784422 2 1.22456 3 7.35076 4 0.000494802 5 0.000520134 6 11.258 7 0.00086638 8 0.821601 9 0.00073086 10 1.8792e-05 11 2.68086e-05 12 1.47178e-06 13 0.00152121 14 5.59108 15 0.00256282 16 0.00255145 17 0.169086 18 0.0726812 A" outfile=/lscratch/kocevski/35299413/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299413/ft2_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 18.63 user 17.66 sys 0.23 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/35299413/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299413/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35299413/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299413/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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/35299413/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits .....................! real 67.76 user 62.96 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 181 point sources and 0 extended sources Setting source of interest to: 4FGL J2040.5-1705 @ 310.136 -17.0901 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/35299413/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299413/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299413/cmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 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.19 user 0.23 sys 0.14 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/35299413/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits scfile=/lscratch/kocevski/35299413/ft2_4FGL_J2040.5-1705_weekly_bin941.fits outfile=/lscratch/kocevski/35299413/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.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=310.136 yref=-17.0901 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.25 sys 0.14 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/35299413/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35299413/ft2_4FGL_J2040.5-1705_weekly_bin941.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35299413/Model_4FGL_J2040.5-1705_weekly_bin941.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 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.7332943 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 1.472e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 7.268e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.691e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.00 Ra Dec: 310.136 -17.090 Photon Flux Upper Limit: 5.14085978449e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00400881602002 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/35299195/likelihoodResults_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.txt 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) = 13752.7340522 delta logL = -0.000757845127737 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 13752.7332944 delta logL = -1.11795088742e-08 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .53291E-08 1.0000 .0000 .10000E+07 2 'Index ' 1.6134 1.0000 .0000 10.000 3 'Normalizat' .90005 1.0000 .10000E-01 10.000 4 'Prefactor ' .95990 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 38 CALLS 240 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 1.1043 .42118E-03** at limit ** 2 Index 1.6941 1.0594 -.10175E-04 .0000 3 Normalizat .90004 1.2354 -.34851E-05 .12398E-03 4 Prefactor .95991 1.3015 -.85473E-06 .22139E-03 ERR DEF= .500 Final values: Prefactor = 0 Index = 1.69407 Normalizat = 0.900038 Prefactor = 0.959914 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM HESSE STATUS=FAILED 9 CALLS 249 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 1.1043 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .28356 1.5451 -.10175E-04 -.72240 3 Normalizat .90004 1.2354 -.34851E-05 -.96459 4 Prefactor .95991 1.3015 -.85473E-06 -.94078 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 2.67315e-11 Minuit parameter uncertainties: 1 9.71452e-06 2 1.07402 3 1.27789 4 1.34811 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 101 logL (Free Index) = 13752.7332943 delta logL = -1.81898940355e-12 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 9.715e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 1.694e+00 1.074e+00 0.000e+00 1.000e+01 (-1.000e+00) 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 1.348e+00 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.278e+00 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 0.00 Ra Dec: 310.136 -17.090 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/35299195/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2026-08-18 16:04:06.690882', job_id='35299195', GAL2='0.96', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1787094246.69', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-1.82e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='941' AND source_name='4FGL J2040.5-1705' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Aug 18 16:04:07 PDT 2026 source GAL_V02 Working on... /lscratch/kocevski/35299353/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits....................! real 47.11 user 45.15 sys 1.02 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/35299353/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits', '/lscratch/kocevski/35299353/ft2_4FGL_J2040.5-1705_weekly_bin941.fits', expMap='/lscratch/kocevski/35299353/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', expCube='/lscratch/kocevski/35299353/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35299353/Model_4FGL_J2040.5-1705_weekly_bin941.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2040.5-1705' 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 1.223e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/35299353/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits Spacecraft file(s): /lscratch/kocevski/35299353/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Exposure map: /lscratch/kocevski/35299353/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits Exposure cube: /lscratch/kocevski/35299353/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/35299353/Model_4FGL_J2040.5-1705_weekly_bin941.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) = 13752.7632962 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.733935 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .25243E-03 1.0000 .0000 .10000E+07 2 'Prefactor ' 2.4071 1.0000 .0000 .10000E+07 3 'norm ' 5.2312 1.0000 .0000 .10000E+07 4 'norm ' .21770E-03 1.0000 .0000 .10000E+07 5 'Prefactor ' .53485E-02 1.0000 .0000 .10000E+07 6 'norm ' 21.144 1.0000 .0000 .10000E+07 7 'norm ' .35888E-03 1.0000 .0000 .10000E+07 8 'norm ' 1.0450 1.0000 .0000 .10000E+07 9 'Prefactor ' .31780E-03 1.0000 .0000 .10000E+07 10 'Prefactor ' .23076E-06 1.0000 .0000 .10000E+07 11 'norm ' .22760E-08 1.0000 .0000 .10000E+07 12 'Prefactor ' .15565E-05 1.0000 .0000 .10000E+07 13 'norm ' .19090E-06 1.0000 .0000 .10000E+07 14 'Prefactor ' 4.4970 1.0000 .0000 .10000E+07 15 'Prefactor ' .15501E-05 1.0000 .0000 .10000E+07 16 'Prefactor ' .23626E-02 1.0000 .0000 .10000E+07 17 'Normalizat' .90099 1.0000 .10000E-01 10.000 18 'Prefactor ' .95971 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 116 CALLS 1048 TOTAL EDM= .14E-08 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 3.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .32085E-07 2.1646 -.77728E-07** at limit ** 2 Prefactor 2.4080 1.2224 -.47385E-07 -.32951E-02 3 norm 5.2309 5.7291 -.22747E-06 -.85746E-01 4 norm .17986E-07 3.3186 .13945E-06** at limit ** 5 Prefactor .24425E-08 27.338 .85852E-06** at limit ** 6 norm 21.186 1.0354 .26905E-08 .20271E-02 7 norm .39579E-07 2.2930 -.10838E-06** at limit ** 8 norm 1.0454 .80151 -.30088E-07 -.10541E-02 9 Prefactor .36748E-07 3.4417 .60056E-07** at limit ** 10 Prefactor .55511E-10 2.1300 -.86415E-07** at limit ** 11 norm .55511E-10 2.2461 .30857E-06** at limit ** 12 Prefactor .0000 1.1145 .15913E-06** at limit ** 13 norm .63227E-07 8.8436 -.11711E-06** at limit ** 14 Prefactor 4.6064 5.6082 -.37863E-06 -.50308E-02 15 Prefactor .21777E-06 6.4223 -.54465E-06** at limit ** 16 Prefactor .28305E-06 4.2818 .10339E-06** at limit ** 17 Normalizat .90004 .19944 .81767E-05 -.62405E-04 18 Prefactor .95991 .86028E-01 -.45871E-05 -.24228E-03 ERR DEF= .500 Final values: Prefactor = 3.20854e-08 Prefactor = 2.408 norm = 5.23091 norm = 1.79856e-08 Prefactor = 2.44249e-09 norm = 21.186 norm = 3.95795e-08 norm = 1.04545 Prefactor = 3.67484e-08 Prefactor = 5.55112e-11 norm = 5.55112e-11 Prefactor = 0 norm = 6.32272e-08 Prefactor = 4.60645 Prefactor = 2.1777e-07 Prefactor = 2.83051e-07 Normalizat = 0.900038 Prefactor = 0.959914 ********** ** 18 **HESSE ********** FCN= 13752.73 FROM HESSE STATUS=OK 278 CALLS 1326 TOTAL EDM= .29E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .32085E-07 4.7917 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 2.4080 1.2246 .65962E-03 -1.5677 3 norm 5.2309 7.3507 .43925E-03 -1.5662 4 norm .17986E-07 3.4023 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor .24425E-08 27.440 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm 21.186 11.258 .21754E-03 -1.5616 7 norm .39579E-07 4.7416 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 1.0454 .82160 .12179E-02 -1.5688 9 Prefactor .36748E-07 3.6330 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .55511E-10 2.1240 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 norm .55511E-10 2.1835 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor .0000 1.1100 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 13 norm .63227E-07 9.1535 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 14 Prefactor 4.6064 5.5911 .47454E-03 -1.5665 15 Prefactor .21777E-06 7.5395 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 Prefactor .28305E-06 5.7495 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Normalizat .90004 .16899 .83032E-01 -.96459 18 Prefactor .95991 .72674E-01 .34900E-01 -.94078 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.85012e-07 Minuit parameter uncertainties: 1 0.000784422 2 1.22456 3 7.35076 4 0.000494802 5 0.000520134 6 11.258 7 0.00086638 8 0.821601 9 0.00073086 10 1.8792e-05 11 2.68086e-05 12 1.47178e-06 13 0.00152121 14 5.59108 15 0.00256282 16 0.00255145 17 0.169086 18 0.0726812 source GAL_V02 Working on... /lscratch/kocevski/35299413/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits....................! real 44.59 user 42.56 sys 1.18 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/35299413/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits', '/lscratch/kocevski/35299413/ft2_4FGL_J2040.5-1705_weekly_bin941.fits', expMap='/lscratch/kocevski/35299413/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', expCube='/lscratch/kocevski/35299413/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35299413/Model_4FGL_J2040.5-1705_weekly_bin941.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2040.5-1705' 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 1.223e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/35299413/ft1_filtered_4FGL_J2040.5-1705_weekly_bin941.fits Spacecraft file(s): /lscratch/kocevski/35299413/ft2_4FGL_J2040.5-1705_weekly_bin941.fits Exposure map: /lscratch/kocevski/35299413/expmap_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits Exposure cube: /lscratch/kocevski/35299413/ltcube_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/35299413/Model_4FGL_J2040.5-1705_weekly_bin941.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) = 13752.7632962 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.733935 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .25243E-03 1.0000 .0000 .10000E+07 2 'Prefactor ' 2.4071 1.0000 .0000 .10000E+07 3 'norm ' 5.2312 1.0000 .0000 .10000E+07 4 'norm ' .21770E-03 1.0000 .0000 .10000E+07 5 'Prefactor ' .53485E-02 1.0000 .0000 .10000E+07 6 'norm ' 21.144 1.0000 .0000 .10000E+07 7 'norm ' .35888E-03 1.0000 .0000 .10000E+07 8 'norm ' 1.0450 1.0000 .0000 .10000E+07 9 'Prefactor ' .31780E-03 1.0000 .0000 .10000E+07 10 'Prefactor ' .23076E-06 1.0000 .0000 .10000E+07 11 'norm ' .22760E-08 1.0000 .0000 .10000E+07 12 'Prefactor ' .15565E-05 1.0000 .0000 .10000E+07 13 'norm ' .19090E-06 1.0000 .0000 .10000E+07 14 'Prefactor ' 4.4970 1.0000 .0000 .10000E+07 15 'Prefactor ' .15501E-05 1.0000 .0000 .10000E+07 16 'Prefactor ' .23626E-02 1.0000 .0000 .10000E+07 17 'Normalizat' .90099 1.0000 .10000E-01 10.000 18 'Prefactor ' .95971 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 116 CALLS 1048 TOTAL EDM= .14E-08 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 3.4% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .32085E-07 2.1646 -.77728E-07** at limit ** 2 Prefactor 2.4080 1.2224 -.47385E-07 -.32951E-02 3 norm 5.2309 5.7291 -.22747E-06 -.85746E-01 4 norm .17986E-07 3.3186 .13945E-06** at limit ** 5 Prefactor .24425E-08 27.338 .85852E-06** at limit ** 6 norm 21.186 1.0354 .26905E-08 .20271E-02 7 norm .39579E-07 2.2930 -.10838E-06** at limit ** 8 norm 1.0454 .80151 -.30088E-07 -.10541E-02 9 Prefactor .36748E-07 3.4417 .60056E-07** at limit ** 10 Prefactor .55511E-10 2.1300 -.86415E-07** at limit ** 11 norm .55511E-10 2.2461 .30857E-06** at limit ** 12 Prefactor .0000 1.1145 .15913E-06** at limit ** 13 norm .63227E-07 8.8436 -.11711E-06** at limit ** 14 Prefactor 4.6064 5.6082 -.37863E-06 -.50308E-02 15 Prefactor .21777E-06 6.4223 -.54465E-06** at limit ** 16 Prefactor .28305E-06 4.2818 .10339E-06** at limit ** 17 Normalizat .90004 .19944 .81767E-05 -.62405E-04 18 Prefactor .95991 .86028E-01 -.45871E-05 -.24228E-03 ERR DEF= .500 Final values: Prefactor = 3.20854e-08 Prefactor = 2.408 norm = 5.23091 norm = 1.79856e-08 Prefactor = 2.44249e-09 norm = 21.186 norm = 3.95795e-08 norm = 1.04545 Prefactor = 3.67484e-08 Prefactor = 5.55112e-11 norm = 5.55112e-11 Prefactor = 0 norm = 6.32272e-08 Prefactor = 4.60645 Prefactor = 2.1777e-07 Prefactor = 2.83051e-07 Normalizat = 0.900038 Prefactor = 0.959914 ********** ** 18 **HESSE ********** FCN= 13752.73 FROM HESSE STATUS=OK 278 CALLS 1326 TOTAL EDM= .29E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .32085E-07 4.7917 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 2.4080 1.2246 .65962E-03 -1.5677 3 norm 5.2309 7.3507 .43925E-03 -1.5662 4 norm .17986E-07 3.4023 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor .24425E-08 27.440 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm 21.186 11.258 .21754E-03 -1.5616 7 norm .39579E-07 4.7416 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 1.0454 .82160 .12179E-02 -1.5688 9 Prefactor .36748E-07 3.6330 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .55511E-10 2.1240 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 norm .55511E-10 2.1835 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 12 Prefactor .0000 1.1100 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 13 norm .63227E-07 9.1535 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 14 Prefactor 4.6064 5.5911 .47454E-03 -1.5665 15 Prefactor .21777E-06 7.5395 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 Prefactor .28305E-06 5.7495 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Normalizat .90004 .16899 .83032E-01 -.96459 18 Prefactor .95991 .72674E-01 .34900E-01 -.94078 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.85012e-07 Minuit parameter uncertainties: 1 0.000784422 2 1.22456 3 7.35076 4 0.000494802 5 0.000520134 6 11.258 7 0.00086638 8 0.821601 9 0.00073086 10 1.8792e-05 11 2.68086e-05 12 1.47178e-06 13 0.00152121 14 5.59108 15 0.00256282 16 0.00255145 17 0.169086 18 0.0726812 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.7332943 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 1.472e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 7.268e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.691e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.00 Ra Dec: 310.136 -17.090 Photon Flux Upper Limit: 5.14085978449e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00400881602002 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/35299353/likelihoodResults_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.txt 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) = 13752.7340522 delta logL = -0.000757845127737 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 13752.7332944 delta logL = -1.11795088742e-08 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .53291E-08 1.0000 .0000 .10000E+07 2 'Index ' 1.6134 1.0000 .0000 10.000 3 'Normalizat' .90005 1.0000 .10000E-01 10.000 4 'Prefactor ' .95990 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 38 CALLS 240 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 1.1043 .42118E-03** at limit ** 2 Index 1.6941 1.0594 -.10175E-04 .0000 3 Normalizat .90004 1.2354 -.34851E-05 .12398E-03 4 Prefactor .95991 1.3015 -.85473E-06 .22139E-03 ERR DEF= .500 Final values: Prefactor = 0 Index = 1.69407 Normalizat = 0.900038 Prefactor = 0.959914 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM HESSE STATUS=FAILED 9 CALLS 249 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 1.1043 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .28356 1.5451 -.10175E-04 -.72240 3 Normalizat .90004 1.2354 -.34851E-05 -.96459 4 Prefactor .95991 1.3015 -.85473E-06 -.94078 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 2.67315e-11 Minuit parameter uncertainties: 1 9.71452e-06 2 1.07402 3 1.27789 4 1.34811 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 101 logL (Free Index) = 13752.7332943 delta logL = -1.81898940355e-12 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 9.715e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 1.694e+00 1.074e+00 0.000e+00 1.000e+01 (-1.000e+00) 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 1.348e+00 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.278e+00 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 0.00 Ra Dec: 310.136 -17.090 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/35299353/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2026-08-18 16:05:47.562045', job_id='35299353', GAL2='0.96', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1787094347.56', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-1.82e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='941' AND source_name='4FGL J2040.5-1705' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Aug 18 16:05:48 PDT 2026 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 13752.7332943 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 1.472e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 7.268e-02 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.691e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.00 Ra Dec: 310.136 -17.090 Photon Flux Upper Limit: 5.14085978449e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00400881602002 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/35299413/likelihoodResults_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.txt 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) = 13752.7340522 delta logL = -0.000757845127737 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 13752.7332944 delta logL = -1.11795088742e-08 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .53291E-08 1.0000 .0000 .10000E+07 2 'Index ' 1.6134 1.0000 .0000 10.000 3 'Normalizat' .90005 1.0000 .10000E-01 10.000 4 'Prefactor ' .95990 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM MIGRAD STATUS=CONVERGED 38 CALLS 240 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 1.1043 .42118E-03** at limit ** 2 Index 1.6941 1.0594 -.10175E-04 .0000 3 Normalizat .90004 1.2354 -.34851E-05 .12398E-03 4 Prefactor .95991 1.3015 -.85473E-06 .22139E-03 ERR DEF= .500 Final values: Prefactor = 0 Index = 1.69407 Normalizat = 0.900038 Prefactor = 0.959914 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 13752.73 FROM HESSE STATUS=FAILED 9 CALLS 249 TOTAL EDM= .27E-10 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 1.1043 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .28356 1.5451 -.10175E-04 -.72240 3 Normalizat .90004 1.2354 -.34851E-05 -.96459 4 Prefactor .95991 1.3015 -.85473E-06 -.94078 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 2.67315e-11 Minuit parameter uncertainties: 1 9.71452e-06 2 1.07402 3 1.27789 4 1.34811 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 101 logL (Free Index) = 13752.7332943 delta logL = -1.81898940355e-12 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 0.000e+00 9.715e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 1.694e+00 1.074e+00 0.000e+00 1.000e+01 (-1.000e+00) 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 9.599e-01 1.348e+00 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 9.000e-01 1.278e+00 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 0.00 Ra Dec: 310.136 -17.090 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/35299413/cmap_HighResolution_808099201_808704001_4FGL_J2040.5-1705_weekly_bin941.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2026-08-18 16:06:19.357981', job_id='35299413', GAL2='0.96', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1787094379.36', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-1.82e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='941' AND source_name='4FGL J2040.5-1705' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Aug 18 16:06:19 PDT 2026