Roundtrip Validation¶
A DSS → CIM → DSS roundtrip integration test is provided for the IEEE 13-bus feeder. The test:
- Parses the IEEE 13-bus DSS model from
tests/test_models/IEEE13/ - Imports to a
FeederModelviadss_to_cim - Exports back to DSS via
cim_to_dss - Solves both models with OpenDSS
- Compares total power and per-bus voltages
Current accuracy: within 0.14% on active power (4.4 kW on a 3230 kW system).
Running the Test¶
# Full roundtrip test
uv run pytest cimhub_opendss/tests/test_ieee13_roundtrip.py -vs
# All roundtrip tests
uv run pytest cimhub_opendss/tests/ -k roundtrip -vs
# Full test suite
uv run pytest cimhub_opendss/tests/ -vs
Test Models¶
| Model | Nodes | Elements | Location |
|---|---|---|---|
| IEEE 13-bus | 13 | ~30 | tests/test_models/IEEE13/ |
| IEEE 13-bus (assets) | 13 | ~30 | tests/test_models/IEEE13_assets/ |
| IEEE 9500-node | ~9500 | ~5000 | tests/test_models/ieee9500/ |