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
Special rule for protected connectors? #3347
Labels
bug
Something isn't working
Comments
eshmoylova
added
bug
Something isn't working
CI
Issue that addresses continuous integration
labels
Mar 15, 2023
Design meeting. There seems to be two solutions:
|
Seems that some tools (e.g., Dymola 2023) have such a special rule for protected connectors. |
HansOlsson
added a commit
to HansOlsson/ModelicaSpecification
that referenced
this issue
Apr 5, 2023
Proposal to resolve modelica#3347 Closes modelica#3347
HansOlsson
added a commit
that referenced
this issue
Apr 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found this model in the Buildings library. In the protected section it has the following connector:
[FluidProperties](https://github.com/lbl-srg/modelica-buildings/blob/master/Buildings/Fluid/FMI/Interfaces/FluidProperties.mo) is a connector containing another connector:
MassFractionConnector is in turn defined as:
This connector is then used as:
where X_wZon_internal is declared as an output (also protected):
So, we have non-causal connector connected to an output. MapleSim rejects this model (and any model containing it as component) for that reason. One of the models that uses it, for example, is Buildings.Fluid.FMI.Conversion.Validation.AirToOutlet. It is marked as a simulation model and has a Dymola script. So, I'm assuming it works in Dymola.
I wonder if that means that connector restrictions do not apply to protected connectors?
The text was updated successfully, but these errors were encountered: