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

TestWallFriction fails with pedantic check #3378

Closed
dietmarw opened this issue Jan 30, 2020 · 6 comments · Fixed by #3383
Closed

TestWallFriction fails with pedantic check #3378

dietmarw opened this issue Jan 30, 2020 · 6 comments · Fixed by #3383
Assignees
Labels
L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation) tool-issue Issue targets a specific Modelica tool only
Milestone

Comments

@dietmarw
Copy link
Member

Whilst testing the major SI unit PR I checked the MSL (4.0.0-alpha.1 (almost)) in Dymola in pedantic mode and got the following error on Modelica.Fluid.Fittings.BaseClasses.QuadraticTurbulent.TestWallFriction:

Check of Modelica.Fluid.Fittings.BaseClasses.QuadraticTurbulent.TestWallFriction:

Component type specifier MassFlowRate is from a partial package. That is not correct.
File: /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Fluid/Interfaces.mo, line 13
Component context: port_a.m_flow
Component declared as MassFlowRate m_flow in Modelica.Media.Interfaces.PartialMedium

Component type specifier MassFlowRate is from a partial package. That is not correct.
File: /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Fluid/Interfaces.mo, line 13
Component context: port_b.m_flow
Component declared as MassFlowRate m_flow in Modelica.Media.Interfaces.PartialMedium

Component type specifier MassFlowRate is from a partial package. That is not correct.
File: /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Fluid/Interfaces.mo, line 289
Component context: m_flow_start
Component declared as MassFlowRate m_flow_start in Modelica.Media.Interfaces.PartialMedium

Component type specifier MassFlowRate is from a partial package. That is not correct.
File: /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Fluid/Interfaces.mo, line 293
Component context: m_flow_small
Component declared as MassFlowRate m_flow_small in Modelica.Media.Interfaces.PartialMedium

Component type specifier MassFlowRate is from a partial package. That is not correct.
File: /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Fluid/Interfaces.mo, line 306
Component context: m_flow
Component declared as MassFlowRate m_flow in Modelica.Media.Interfaces.PartialMedium

Component type specifier ThermodynamicState is from a partial package. That is not correct.
File: /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Fluid/Interfaces.mo, line 332
Component context: state_a
Component declared as ThermodynamicState state_a in Modelica.Media.Interfaces.PartialMedium

Component type specifier ThermodynamicState is from a partial package. That is not correct.
File: /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Fluid/Interfaces.mo, line 333
Component context: state_b
Component declared as ThermodynamicState state_b in Modelica.Media.Interfaces.PartialMedium

Component type specifier MassFlowRate is from a partial package. That is not correct.
File: /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Fluid/Interfaces.mo, line 714
Component context: m_flow
Component declared as MassFlowRate m_flow in Modelica.Media.Interfaces.PartialMedium

Component type specifier MassFlowRate is from a partial package. That is not correct.
File: /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Fluid/Interfaces.mo, line 726
Component context: m_flow_start
Component declared as MassFlowRate m_flow_start in Modelica.Media.Interfaces.PartialMedium

Component type specifier ThermodynamicState is from a partial package. That is not correct.
File: /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Fluid/Fittings.mo, line 1570
Component context: state_nominal
Component declared as ThermodynamicState state_nominal in Modelica.Media.Interfaces.PartialMedium

ERRORS have been issued.
@dietmarw dietmarw added bug Critical/severe issue L: Fluid.Dissipation Issue addresses Modelica.Fluid.Dissipation labels Jan 30, 2020
@dietmarw dietmarw added this to the MSL4.0.0 milestone Jan 30, 2020
@dietmarw dietmarw added the V: 4.0.0-dev Issue originates in MSL v4.0.0-dev (and is not present in earlier releases) label Jan 30, 2020
@beutlich
Copy link
Member

beutlich commented Jan 30, 2020

This issue is independent of #3379 and already can observed with MSL v3.2.3 in Dymola 2020.

@beutlich beutlich added L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation) and removed L: Fluid.Dissipation Issue addresses Modelica.Fluid.Dissipation V: 4.0.0-dev Issue originates in MSL v4.0.0-dev (and is not present in earlier releases) labels Jan 30, 2020
@HansOlsson
Copy link
Contributor

That error message when checking the specific model is a bit excessive (and not exclusive to this model as far as I can tell). It does not occur when checking the entire package.

It should say "It must be redeclared before being used." (as similar messages do); and the underlying problem is that the types are in the partial package Medium that must be redeclared.

(Note: Just so that no-one tries to "correct" this by making the model partial: you can currently drag in this model and redeclare the Medium - and then it just works; similarly as if a parameter lacked a value.)

@wischhusen
Copy link
Contributor

I do not understand the purpose of the model. What kind of tests were intended? Even if a suitable fluid model is chosen failures will remain due to the missing inner System model. I would rather say let us remove the model ...

@beutlich
Copy link
Member

It is not used anywhere inside MSL or ModelicaTest.

@HansOlsson
Copy link
Contributor

It is not used anywhere inside MSL or ModelicaTest.

It is used in ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction - that compares different pipes and also this one. Thus one possibility would be to move it to ModelicaTest, as it seems it isn't intended for actual use (according to description).

@beutlich
Copy link
Member

beutlich commented Jan 31, 2020

Ah, sorry. I mixed it up with Modelica.Fluid.Fittings.BaseClasses.QuadraticTurbulent.BaseModel which is nowhere used except TestWallFriction.

beutlich added a commit to beutlich/ModelicaStandardLibrary that referenced this issue Jan 31, 2020
@beutlich beutlich added tool-issue Issue targets a specific Modelica tool only and removed bug Critical/severe issue labels Feb 1, 2020
beutlich added a commit to beutlich/ModelicaStandardLibrary that referenced this issue Feb 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation) tool-issue Issue targets a specific Modelica tool only
Projects
None yet
4 participants