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

[JModelica.org] Illegal class access #570

Closed
jonathankampemodelon opened this issue Nov 8, 2016 · 1 comment
Closed

[JModelica.org] Illegal class access #570

jonathankampemodelon opened this issue Nov 8, 2016 · 1 comment

Comments

@jonathankampemodelon
Copy link

When compiling Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances, JModelica.org detects two illegal class accesses:

Error at line 27, column 65, in file '...\Buildings\Electrical\AC\ThreePhasesUnbalanced\Sensors\GeneralizedSensor.mo',
In component sen:
  Cannot find class or component declaration for PhaseSystem
Error at line 29, column 65, in file '...\Buildings\Electrical\AC\ThreePhasesUnbalanced\Sensors\GeneralizedSensor_N.mo',
In component sen_N:
  Cannot find class or component declaration for PhaseSystem

According to the modelica specification [MLS 3.3, 5.3.2 Composite Name Lookup], classes can not be accessed in components, with the exception of function calls. It seems ThreePhasesBalanced.GeneralizedSensor has a correct access:
Modelica.Blocks.Interfaces.RealOutput S[PhaseSystems.OnePhase.n] while ThreePhasesUnbalanced.GeneralizedSensor (and GeneralizedSensor_N)has not:
Modelica.Blocks.Interfaces.RealOutput S[3,terminal_n.phase[1].PhaseSystem.n]

Could you please fix this?

mwetter added a commit that referenced this issue Nov 8, 2016
@mwetter
Copy link
Member

mwetter commented Nov 8, 2016

Thanks for reporting. This is now fixed.

@mwetter mwetter closed this as completed Nov 8, 2016
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

2 participants