/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). Done. Performing analysis on: 4FGL_J0050.0-5736_weekly_bin932 RA = 12.5197, Dec = -57.6164 tmin = 802656001, tmax = 803260801 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='29141670', job_status='RUN', time_executed='2026-06-19 12:15:11.687049', time_epoch_executed='1781896511.69' WHERE source_name='4FGL J0050.0-5736' and cadence='weekly' and bin_id='932' UPDATE lightcurve_data_v2 SET job_id='29141670', job_status='RUN', time_executed='2026-06-19 12:15:11.687049', time_epoch_executed='1781896511.69' WHERE source_name='4FGL J0050.0-5736' and cadence='weekly' and bin_id='932' 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement Traceback (most recent call last): File "/sdf/data/fermi/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 124, in executeCommand cursor.execute(command) File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute self._handle_result(self._connection.cmd_query(stmt)) File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query)) File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result raise errors.get_exception(packet) DatabaseError: 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement Command execution failed. Waiting 20.3187145643 seconds and trying again... UPDATE lightcurve_data_v2 SET job_id='29141670', job_status='RUN', time_executed='2026-06-19 12:15:11.687049', time_epoch_executed='1781896511.69' WHERE source_name='4FGL J0050.0-5736' and cadence='weekly' and bin_id='932' UPDATE lightcurve_data_v2 SET job_id='29141670', job_status='RUN', time_executed='2026-06-19 12:15:11.687049', time_epoch_executed='1781896511.69' WHERE source_name='4FGL J0050.0-5736' and cadence='weekly' and bin_id='932' 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement Traceback (most recent call last): File "/sdf/data/fermi/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 124, in executeCommand cursor.execute(command) File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute self._handle_result(self._connection.cmd_query(stmt)) File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query)) File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result raise errors.get_exception(packet) DatabaseError: 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement Command execution failed. Waiting 11.2333307745 seconds and trying again... Done. Creating custom output directory: /lscratch/kocevski/29141670 Creating custom pfile directory: /lscratch/kocevski/29141670/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=802656001.0 && nMetStart<80326080141603', job_status='RUN', time_executed='2026-06-19 12:14:17.747574', time_epoch_executed='1781896457.75' WHERE source_name='4FGL J0050.0-5736' and cadence='weekly' and bin_id='932' 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement Traceback (most recent call last): File "/sdf/data/fermi/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 124, in executeCommand cursor.execute(command) File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute self._handle_result(self._connection.cmd_query(stmt)) File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query)) File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result raise errors.get_exception(packet) DatabaseError: 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement Command execution failed. Waiting 3.90138902369 seconds and trying again... UPDATE lightcurve_data_v2 SET job_id='29141603', job_status='RUN', time_executed='2026-06-19 12:14:17.747574', time_epoch_executed='1781896457.75' WHERE source_name='4FGL J0050.0-5736' and cadence='weekly' and bin_id='932' UPDATE lightcurve_data_v2 SET job_id='29141603', job_status='RUN', time_executed='2026-06-19 12:14:17.747574', time_epoch_executed='1781896457.75' WHERE source_name='4FGL J0050.0-5736' and cadence='weekly' and bin_id='932' 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement Traceback (most recent call last): File "/sdf/data/fermi/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 124, in executeCommand cursor.execute(command) File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute self._handle_result(self._connection.cmd_query(stmt)) File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query)) File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result raise errors.get_exception(packet) DatabaseError: 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement Command execution failed. Waiting 6.33368324815 seconds and trying again... Done. Creating custom output directory: /lscratch/kocevski/29141603 Creating custom pfile directory: /lscratch/kocevski/29141603/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=802656001.0 && nMetStart<803260801.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=802656001.0 && nMetStart<803260801.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/29141603/ft1_4FGL_J0050.0-5736_weekly_bin932.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=802656001.0 && nMetStart<803260801.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/29141603/ft2_4FGL_J0050.0-5736_weekly_bin932.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/29141603/ft1_4FGL_J0050.0-5736_weekly_bin932.fits outfile=/lscratch/kocevski/29141603/ft1_filteredMKT_4FGL_J0050.0-5736_weekly_bin932.fits ra=12.5197 dec=-57.6164 rad=12.0 tmin=802656001.0 tmax=803260801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.number of points = 17485 number of fields = 31 RA_SUN column already exists. File will not be modified. number of points = 17485 number of fields = 31 RA_SUN column already exists. File will not be modified. 0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Done. real 4.87 user 3.97 sys 0.23 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/29141603/ft2_4FGL_J0050.0-5736_weekly_bin932.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/29141603/ft2_4FGL_J0050.0-5736_weekly_bin932.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/29141603/ft1_filteredMKT_4FGL_J0050.0-5736_weekly_bin932.fits evtable="EVENTS" outfile="/lscratch/kocevski/29141603/ft1_filtered_4FGL_J0050.0-5736_weekly_bin932.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.87 user 0.19 sys 0.15 Number of photons that the gtmktime cut: 1810 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/29141603/ft1_filtered_4FGL_J0050.0-5736_weekly_bin932.fits" evtable="EVENTS" scfile=/lscratch/kocevski/29141603/ft2_4FGL_J0050.0-5736_weekly_bin932.fits sctable="SC_DATA" outfile=/lscratch/kocevski/29141603/ltcube_802656001_803260801_4FGL_J0050.0-5736_weekly_bin932.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/29141603/ft2_4FGL_J0050.0-5736_weekly_bin932.fits .....................! real 18.91 user 17.81 sys 0.34 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/29141603/ft1_filtered_4FGL_J0050.0-5736_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/29141603/ft2_4FGL_J0050.0-5736_weekly_bin932.fits sctable="SC_DATA" expcube=/lscratch/kocevski/29141603/ltcube_802656001_803260801_4FGL_J0050.0-5736_weekly_bin932.fits outfile=/lscratch/kocevski/29141603/expmap_802656001_803260801_4FGL_J0050.0-5736_weekly_bin932.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/29141603/ltcube_802656001_803260801_4FGL_J0050.0-5736_weekly_bin932.fits .....................! real 68.87 user 63.03 sys 4.32 Generating the xml model: radLim = 0.001 maxRad = 12 normsOnly = True freeVariableSources = True Fixing all sources to their catalog values, except variable sources Creating file and adding sources from 4FGL Extended source SMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/SMC-Galaxy.fits is the correct path to the extended template. Added 198 point sources and 1 extended sources If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True Setting source of interest to: 4FGL J0050.0-5736 @ 12.5197 -57.6164 Creating the counts map: time -p gtbin.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=802656001.0 && nMetStart<803260801.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/29141670/ft1_4FGL_J0050.0-5736_weekly_bin932.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=802656001.0 && nMetStart<803260801.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/29141670/ft2_4FGL_J0050.0-5736_weekly_bin932.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/29141670/ft1_4FGL_J0050.0-5736_weekly_bin932.fits outfile=/lscratch/kocevski/29141670/ft1_filteredMKT_4FGL_J0050.0-5736_weekly_bin932.fits ra=12.5197 dec=-57.6164 rad=12.0 tmin=802656001.0 tmax=803260801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Done. real 4.70 user 3.48 sys 0.20 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/29141670/ft2_4FGL_J0050.0-5736_weekly_bin932.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/29141670/ft2_4FGL_J0050.0-5736_weekly_bin932.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/29141670/ft1_filteredMKT_4FGL_J0050.0-5736_weekly_bin932.fits evtable="EVENTS" outfile="/lscratch/kocevski/29141670/ft1_filtered_4FGL_J0050.0-5736_weekly_bin932.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.19 sys 0.12 Number of photons that the gtmktime cut: 1810 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/29141670/ft1_filtered_4FGL_J0050.0-5736_weekly_bin932.fits" evtable="EVENTS" scfile=/lscratch/kocevski/29141670/ft2_4FGL_J0050.0-5736_weekly_bin932.fits sctable="SC_DATA" outfile=/lscratch/kocevski/29141670/ltcube_802656001_803260801_4FGL_J0050.0-5736_weekly_bin932.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/29141670/ft2_4FGL_J0050.0-5736_weekly_bin932.fits .....................! real 16.48 user 15.59 sys 0.24 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/29141670/ft1_filtered_4FGL_J0050.0-5736_weekly_bin932.fits evtable="EVENTS" scfile=/lscratch/kocevski/29141670/ft2_4FGL_J0050.0-5736_weekly_bin932.fits sctable="SC_DATA" expcube=/lscratch/kocevski/29141670/ltcube_802656001_803260801_4FGL_J0050.0-5736_weekly_bin932.fits outfile=/lscratch/kocevski/29141670/expmap_802656001_803260801_4FGL_J0050.0-5736_weekly_bin932.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