Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Co-simulation FMU prints double rows #1196

Open
Thewodoros opened this issue Dec 23, 2022 · 1 comment
Open

Co-simulation FMU prints double rows #1196

Thewodoros opened this issue Dec 23, 2022 · 1 comment

Comments

@Thewodoros
Copy link

Description

I tried to make an FMU out of Amesim’s tutorial model, the driveline, and then launch it in OMSimulator (python library). But for every step, it prints the same row in the CSV result file twice: two lines for time=0.0001, two for time=0.0002, etc.

Version and OS

  • Version: 2.1.1.post190, installed through pip
  • OS: Win10 22H2, 64bit
@MathiasMalandain
Copy link

Up on this one. I have a simple test case with two FMUs (basically, FMU1 produces a value, FMU2 consumes it). With fixed time step 1, I get one row for t=0, then two for t=1, two for t=2, etc. until I reach the end time, at which point I get 3 rows.

For each time point, the input value for FMU2 (directly sent by FMU1 after its time stepping) is updated between the first and second rows.

This is a weird behavior, although I at least know that only keeping the "odd numbered rows" in the output file yields what was expected.

Version and OS

  • Version: 2.1.1~247-g614c663-linux-notlm-debug
  • OS: Ubuntu22.04 (64bit)

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

No branches or pull requests

2 participants