NTNU-IHB / PythonFMU

A lightweight framework that enables the packaging of Python3.x code as co-simulation FMUs
MIT License
136 stars 38 forks source link

Problem with initialization #209

Closed MinsGoing closed 3 months ago

MinsGoing commented 7 months ago

image image When I generate FMU and execute FMU, the initialized output is incorrect. The correct output should be as shown in the following image. image

MinsGoing commented 7 months ago

How to not assign initial values to input variables?

markaren commented 7 months ago

Are you sure the issue is not the importing tools' initialization? How about FMUs from other tools?

MinsGoing commented 7 months ago

Are you sure the issue is not the importing tools' initialization? How about FMUs from other tools?

The fmu generated by the modelica is correct. The possible reason is that the modelica parameter can only be defined without assignment.