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

Model fails to run when using Modelica.Fluid.Sensors.Temperature #103

Open
falis96 opened this issue Feb 15, 2024 · 0 comments
Open

Model fails to run when using Modelica.Fluid.Sensors.Temperature #103

falis96 opened this issue Feb 15, 2024 · 0 comments

Comments

@falis96
Copy link

falis96 commented Feb 15, 2024

Simple model with sink, source and temperature sensor fails to compile in both Dymola and OpenModelica.
Error message on OpenModelica is: Error: External function ‘TwoPhaseMedium_setState_pT_C_impl_wrap‘ could not be found in any of the given shared libraries;
Error message on Dymola is: dsmodel.c(94): error C2084: function 'void TwoPhaseMedium_setState_pT_C_impl_wrap(double,double,ExternalThermodynamicState *,const char *,const char *,const char *)' already has a body
dsmodel.c(84): note: see previous definition of 'TwoPhaseMedium_setState_pT_C_impl_wrap'
dsmodel.c(112): error C2084: function 'void TwoPhaseMedium_setState_ph_C_impl_wrap(double,double,int,ExternalThermodynamicState *,const char *,const char *,const char *)' already has a body
dsmodel.c(102): note: see previous definition of 'TwoPhaseMedium_setState_ph_C_impl_wrap'
The error on Dymola is the same as in #102.
The test case is attached
Test_Tsensor_MSLTotal.zip

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

1 participant