Skip to content

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

@falis96

Description

@falis96

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions