Opened 4 years ago

Last modified 3 years ago

#6390 new defect

Cannot extend from RealOutput

Reported by: Martin Sjölund Owned by: Per Östlund
Priority: low Milestone:
Component: New Instantiation Version: 1.16.2
Keywords: Cc:

Description

connector ElectricCurrentOut
extends Modelica.Blocks.Interfaces.RealOutput( final quantity= "ElectricCurrent", final unit="A", displayUnit="A");
annotation(uses(Modelica(version="4.0.0")));
end ElectricCurrentOut;
Error: Internal error Invalid connector type on component unit

Change History (5)

comment:1 by Francesco Casella, 4 years ago

MWE:

connector ElectricCurrentOut
extends Modelica.Blocks.Interfaces.RealOutput(unit="A");
annotation(uses(Modelica(version="4.0.0")));
end ElectricCurrentOut;

gives

[1] 16:22:12 Translation Error
[ElectricCurrentOut: 2:47-2:55]:
Internal error Invalid connector type on component unit

upon checking, while

[1] 16:13:04 Translation Error
Internal error Invalid connector type on component unit

without indication of the source code lines. No idea why.

@perost, is this a trivial fix?

in reply to:  1 comment:2 by Per Östlund, 4 years ago

Replying to casella:

@perost, is this a trivial fix?

No, it's slightly complicated since the NF doesn't really handle connectors like this at the moment.

comment:3 by Martin Sjölund, 4 years ago

It could be possible to handle some of these (the ones that don't contain anything except extends/import maybe).

comment:4 by Francesco Casella, 4 years ago

Well, if there is a workaround for the TransiEnt library I guess this is not top priority currently.

comment:5 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.