Skip to content

Roundtrip Validation

A DSS → CIM → DSS roundtrip integration test is provided for the IEEE 13-bus feeder. The test:

  1. Parses the IEEE 13-bus DSS model from tests/test_models/IEEE13/
  2. Imports to a FeederModel via dss_to_cim
  3. Exports back to DSS via cim_to_dss
  4. Solves both models with OpenDSS
  5. 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/