Opened 11 years ago
Closed 5 years ago
#3301 closed defect (fixed)
Problem with Incompressible Media in MSL trunk
| Reported by: | Rüdiger Franke | Owned by: | Adrian Pop |
|---|---|---|---|
| Priority: | high | Milestone: | 1.16.0 |
| Component: | Frontend | Version: | trunk |
| Keywords: | Cc: |
Description
The example Modelica.Fluid.Examples.IncompressibleFluidNetwork runs flawlessly with MSL 3.2.1. With MSL trunk the simulations run forever with both:
- MSL_trunk: alarm clock
- MSL_trunk_cpp: Killed
The Fluid example is identical in both versions of MSL. The problem might be caused by the used medium Glycol47. Moreover the frontend appears to pre-evaluate less things in the frontend when testing MSL trunk, compared to testing MSL 3.2.1.
The Cpp runtime additionally fails to solve the simple Modelica.Media.Examples.Tests.MediaTestModels.Incompressible.Glycol47.
Moreover the trunk version of Modelica.Media.Incompressible.Examples.TestGlycol produces an error due to unknown ‘poly_Cp’ in both runtimes.
Any idea?
Change History (11)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
| Component: | Unknown → Frontend |
|---|---|
| Owner: | changed from to |
| Status: | new → accepted |
comment:3 by , 11 years ago
The use of poly_Cp fails particularily in Modelica.Media.Incompressible.TableBased.s_T that only accesses some elements of the vector.
It appears to work in other functions of the medium, like Modelica.Media.Incompressible.TableBased.h_T.
The value of the package constant is defined through a least squares calculation. It should not be re-calculated during each evaluation of a medium function.
Is this a case for pre-evaluation by the frontend, because all involved variables are constant?
comment:4 by , 11 years ago
Yes. It should be calculated by the front-end to a value but somehow it fails to do that.
comment:9 by , 9 years ago
| Milestone: | 1.11.0 → 1.12.0 |
|---|
Milestone moved to 1.12.0 due to 1.11.0 already being released.
comment:10 by , 8 years ago
| Milestone: | 1.12.0 → Future |
|---|
The milestone of this ticket has been reassigned to "Future".
If you think the issue is still valid and relevant for you, please select milestone 1.13.0 for back-end, code generation and run-time issues, or 2.0.0 for front-end issues.
If you are aware that the problem is no longer present, please select the milestone corresponding to the version of OMC you used to check that, and set the status to "worksforme".
In both cases, a short informative comment would be welcome.
comment:11 by , 5 years ago
| Milestone: | Future → 1.16.0 |
|---|---|
| Resolution: | → fixed |
| Status: | accepted → closed |
The mentioned models seem to work fine with both the old and the new frontend now.

The component "poly_Cp" is a package constant that we need to evaluate and we can't.
That's why it ends up in the code but has no value. This is a known problem that I'm working to fix.