You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the integrator block to calculate the total electricity produced by PV panels in a Modelica model, different solvers (CVODE, DASSL, and Euler) produce significantly different results for the same model. The integrator computes the cumulative sum of real-time power generation, but the results vary depending on the solver used. In the test, CVODE even returns an output of zero when the PV power generation is nonzero.
To Reproduce
Steps to reproduce the behavior:
Open model 'Buildings.Electrical.DC.Sources.Examples.PVSimple'
Add an integrator block to be connected with the power output of pv
Run a 10-day simulation with different solvers (CVODE, DASSL, and Euler)
CVODE setting:
CVODE result:
DASSL setting:
DASSL result:
Euler setting:
Euler result:
Expected behavior
The integral of power over time should be consistent across solvers (within numerical precision limits). The choice of solver should not drastically affect the accumulated energy calculation.
Screenshots
Comparison results of cumulative PV power generation with different solvers:
Version
Modelica Buildings Library: 10.0.0., 2023-09-05
Modelica simulation environment: Dymola 2022X
Operating system: Windows 10
The text was updated successfully, but these errors were encountered:
Thanks for reporting. Did you report this to the Dassault support? As it works with one solver, I suspect it is an issue with Dymola, and there is nothing sensible we can do on the library side. However, please note that Dymola 2025x is the latest version, and I remember in the last years there was an update in the Modelica Standard Library regarding the data reader, which is used in this model. Perhaps updating Dymola and/or the Buildings library corrects this issue.
@GuowenLi-PhD@mwetter This problem is solved, at least no significant difference in Dymola 2025x, the results with reported solvers dassl, euler, cvode are as follows.
Describe the bug
When using the
integrator
block to calculate the total electricity produced by PV panels in a Modelica model, different solvers (CVODE, DASSL, and Euler) produce significantly different results for the same model. The integrator computes the cumulative sum of real-time power generation, but the results vary depending on the solver used. In the test, CVODE even returns an output of zero when the PV power generation is nonzero.To Reproduce
Steps to reproduce the behavior:
integrator
block to be connected with the power output ofpv
CVODE setting:
CVODE result:
DASSL setting:
DASSL result:
Euler setting:
Euler result:
Expected behavior
The integral of power over time should be consistent across solvers (within numerical precision limits). The choice of solver should not drastically affect the accumulated energy calculation.
Screenshots
Comparison results of cumulative PV power generation with different solvers:
Version
The text was updated successfully, but these errors were encountered: