Configuration with two models (Damper and Mass, from tutorial example).
Two outputs from the model Damper (df_0 and df_1) connected to the input from the model mass (in_f_u), as in the file attached (see next message).
Action 1:
run the osp-validator on the configuration
java -jar osp-cli.jar osp-system-structure -file "OspSystemStructure.xml"
Result 1:
No error!
Action 2:
run the cosim-cli
.\cosim.exe run "OspSystemStructure.xml"
Result 2:
Error message is shown:
_error: Invalid system structure: Cannot establish connection between variables Damper1:df_1 and Mass1:in_f_u: Target variable is already connected to Damper1:df0
I believe the osp-validator should be able to detect this type of error (multiple outputs connected to the same input), as this configuration would not run.
Setup:
Action 1:
java -jar osp-cli.jar osp-system-structure -file "OspSystemStructure.xml"
Result 1: No error!
Action 2:
.\cosim.exe run "OspSystemStructure.xml"
Result 2: Error message is shown: _error: Invalid system structure: Cannot establish connection between variables Damper1:df_1 and Mass1:in_f_u: Target variable is already connected to Damper1:df0
I believe the osp-validator should be able to detect this type of error (multiple outputs connected to the same input), as this configuration would not run.