Skip to content

Package the OMSimulator XML schemas in libomsimulator - #84

Merged
adrpo merged 1 commit into
OpenModelica:masterfrom
adrpo:package-omsimulator-schemas
Oct 23, 2026
Merged

adrpo merged 1 commit into
OpenModelica:masterfrom
adrpo:package-omsimulator-schemas

Conversation

@adrpo

@adrpo adrpo commented Oct 23, 2026

Copy link
Copy Markdown
Member

Fixes #83.

The Python OMSimulator validates every FMU and SSP against XML schemas that OMSimulator's CMake installs next to its modules, in usr/lib/<triple>/omc/OMSimulator/schema/{fmi2,fmi3,ssp}. debian/libomsimulator.install only listed OMSimulator/*.py, so the schema directory never reached a package. dh_missing --list-missing only reports such files, so nothing failed at build time. The packaged OMSimulator then fails on every model:

lxml.etree.XMLSchemaParseError: Failed to locate the main schema resource at
'/usr/lib/x86_64-linux-gnu/omc/OMSimulator/schema/fmi2/fmi2ModelDescription.xsd'.

This adds the schema directory to libomsimulator.install.

Testing

I ran dh_install -plibomsimulator with this debian/ directory against a debian/tmp filled from a real CMake install of OMSimulator (v3.0.0.post202):

libomsimulator.install .xsd files in the package (of 25 installed)
master 0
this PR 25 (schema/fmi2, schema/fmi3, schema/ssp)

The same OMSimulator with its schema/ directory in place loads and simulates FMI 2.0 FMUs in both co-simulation and model exchange.

The full Debian build in CI was not run. It only runs with the CI/Full Debian Packaging label.


generated by Claude Code

The Python OMSimulator validates every FMU and SSP against the schemas
that CMake installs to usr/lib/<triple>/omc/OMSimulator/schema, but
libomsimulator.install only listed OMSimulator/*.py. The schema
directory was dropped (dh_missing only lists it), so the packaged
OMSimulator failed on every model with an XMLSchemaParseError.

Fixes OpenModelica#83

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adrpo
adrpo merged commit d8a7768 into OpenModelica:master Oct 23, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libomsimulator package misses the OMSimulator XML schemas, OMSimulator fails on every FMU

2 participants