OMSimulator icon indicating copy to clipboard operation
OMSimulator copied to clipboard

Different values on source and destination connection in ssd file

Open larsviktorlarsson opened this issue 3 months ago • 1 comments

In an ssd file "D16_aero_stimuli.ssd" I have a connetor output "u" on the ssd top level. The "u" connector is connected to an output "u of an FMU in the ssd. After simulation of the model, I expect OMsimulator to log the same values on both "u" and "u.out.y", but this is not the case:

Image

I have uploaded the complete .ssp file as a .zip file.

ParkerSimPack.zip

Running OMSimulator in python on windows: oms.version Out[9]: 'OMSimulator v2.1.3-win-notlm'

Execute the following code to simulate the model of interest:

ssd2Run= "D16_aero_stimuli" from OMSimulator import OMSimulator

oms = OMSimulator() oms.importFile("ParkerSimPack.ssp")# %% oms.setCommandLineOption("--emitEvents=false") # Removes duplicate log samples in result file oms.setCommandLineOption("--stripRoot=true") # Removes root names in variable names in log file oms.activateVariant(SSP1.SSDs[0].root.get("name"),ssd2Run) oms.instantiate(ssd2Run) oms.initialize(ssd2Run)

oms.simulate(ssd2Run) oms.terminate(ssd2Run) oms.delete(ssd2Run)

larsviktorlarsson avatar Sep 19 '25 13:09 larsviktorlarsson