Opened 4 years ago

Last modified 3 years ago

#6373 assigned defect

Electrical Quasistationary MutualInductor in standard library not working in OM

Reported by: anonymous Owned by: Per Östlund
Priority: critical Milestone:
Component: New Instantiation Version: 1.16.2
Keywords: complex numbers, sum, MutualInductor Cc:

Description

The component Electrical.Quasistationary.MultiPhase.Basic.MutualInductor from the standard library does not work in OpenModelica. The problem can be reproduced simply by opening the component in OMEdit and running a check, which gives
[1] Translation Error
[Modelica.Electrical.QuasiStationary.MultiPhase: 1337:9-1337:54]: Expected a reduction function with type signature ('A,'B) => 'B, but got .sum<function>() => #NORETCALL#.

The issue seems to be that the sum function does not work for complex arrays. (It works in Dymola.)

Change History (2)

comment:1 by Francesco Casella, 4 years ago

Component: Code GenerationNew Instantiation
Milestone: NeedsInput1.18.0
Owner: changed from Mahder Alemseged Gebremedhin to Per Östlund
Priority: normalcritical
Status: newassigned

I guess this may be a duplicate of #2387. Are two-dimensional arrays involved?

comment:2 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.