Registry Mirror
Skip to content

Conversation

@hubertus65

Copy link
Copy Markdown
Member

Modelica.Electrical.QuasiStatic.Polyphase.Blocks.FromSymmetricalComponents modifies the array outputs arg_u[m] and arg_y[m] with a scalar displayUnit="deg" but no each:

output SI.Angle arg_u[m](displayUnit="deg") = arg(u) "Argument of input";
output SI.Angle arg_y[m](displayUnit="deg") = arg(y) "Argument of output";

OpenModelica 1.27.1 rejects the block:

Error: Non-array modification '"deg"' for array component 'displayUnit', possibly due to missing 'each'.

This PR adds the missing each to both declarations. A scan of Modelica and ModelicaTest found no other array attribute modifications of this form.

Found while writing new ModelicaTest coverage tests. After the change, a test model instantiating the block passes checkModel in OpenModelica.

🤖 Generated with Claude Code

…onents

Modelica.Electrical.QuasiStatic.Polyphase.Blocks.FromSymmetricalComponents
modified the array components arg_u[m] and arg_y[m] with a scalar
displayUnit="deg" without each. OpenModelica rejects the block ("Non-array
modification '"deg"' for array component 'displayUnit', possibly due to
missing 'each'").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AHaumer
AHaumer self-requested a review November 1, 2026 09:39

@AHaumer AHaumer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct

@AHaumer AHaumer added bug Critical/severe issue L: Electrical.QuasiStatic Issue addresses Modelica.Electrical.QuasiStatic needs backporting Needs back-porting from the master branch labels Nov 1, 2026
@AHaumer AHaumer added this to the maintenance milestone Nov 1, 2026

@HansOlsson HansOlsson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@AHaumer
AHaumer merged commit 73f4172 into modelica:master Nov 2, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Critical/severe issue L: Electrical.QuasiStatic Issue addresses Modelica.Electrical.QuasiStatic needs backporting Needs back-porting from the master branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants