/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_J0007.7+4008_daily_bin2180
RA = 1.9275, Dec = 40.134
tmin = 804384001, tmax = 804643201
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='30857028', job_status='RUN', time_executed='2026-07-06 22:56:10.998791', time_epoch_executed='1783403771.0' WHERE source_name='4FGL J0007.7+4008' and cadence='daily' and bin_id='2180'
UPDATE lightcurve_data_v2 SET job_id='30857028', job_status='RUN', time_executed='2026-07-06 22:56:10.998791', time_epoch_executed='1783403771.0' WHERE source_name='4FGL J0007.7+4008' and cadence='daily' and bin_id='2180'
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.12252982285 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_id='30857028', job_status='RUN', time_executed='2026-07-06 22:56:10.998791', time_epoch_executed='1783403771.0' WHERE source_name='4FGL J0007.7+4008' and cadence='daily' and bin_id='2180'
UPDATE lightcurve_data_v2 SET job_id='30857028', job_status='RUN', time_executed='2026-07-06 22:56:10.998791', time_epoch_executed='1783403771.0' WHERE source_name='4FGL J0007.7+4008' and cadence='daily' and bin_id='2180'
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 24.8049688579 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_id='30857028', job_status='RUN', time_executed='2026-07-06 22:56:10.998791', time_epoch_executed='1783403771.0' WHERE source_name='4FGL J0007.7+4008' and cadence='daily' and bin_id='2180'
UPDATE lightcurve_data_v2 SET job_id='30857028',