Opened 4 years ago

Closed 4 years ago

#6244 closed defect (worksforme)

OM does not support modification of complex types

Reported by: Dietmar Winkler Owned by: Per Östlund
Priority: high Milestone: 1.17.0
Component: New Instantiation Version: v1.17.0-dev
Keywords: Cc: Francesco Casella

Description

When working on introducing nominal values for types in [OpenIPSL](https://github.com/OpenIPSL/OpenIPSL/blob/master/OpenIPSL/Types.mo) in the same way it is done in PowerGrids we noticed that OpenModelica has problems with the redefinition of the types.

What works is:
operator record ComplexPower = SI.ComplexPower;

But doing:
operator record ComplexPower = SI.ComplexPower(re(nominal = 1e8, displayUnit="MW"), im(nominal = 1e8, displayUnit="MVA"));

does fail in OpenModelica (see attached type_log.txt)

So it seems some issue with the modification.

I could not test this in PowerGrids since that library is currently not even passing simple checks, so hard do isolate this issue there.

Ah yes and of course it works fine in Dymola ;-)

Attachments (1)

type_log.txt (10.3 KB ) - added by Dietmar Winkler 4 years ago.
Log of example run OpenIPSL.Example.Machines.PSSE.GENCLS (current tip of master)

Download all attachments as: .zip

Change History (5)

by Dietmar Winkler, 4 years ago

Attachment: type_log.txt added

Log of example run OpenIPSL.Example.Machines.PSSE.GENCLS (current tip of master)

comment:1 by Francesco Casella, 4 years ago

Component: *unknown*New Instantiation
Milestone: NeedsInput1.17.0
Owner: changed from somebody to Per Östlund

@perost, would you mind having a look?

comment:2 by Dietmar Winkler, 4 years ago

Turns out that in my case I still had the old frontend activate. Switching to the new one solves the issue. I'm still waiting for test confirmation from version 1.16.1

Version 0, edited 4 years ago by Dietmar Winkler (next)

in reply to:  2 comment:3 by Francesco Casella, 4 years ago

Replying to dietmarw:

Turns out that in my case I still had the old frontend activated.

Ach so. We are keeping the settings from one install to the next, so this can be indeed a problem.

BTW, 1.17.0 will probably have the NF on by default from the command line. In OMEdit, we'll still keep the flag for some more time, just in case. Eventually we'll retire it for good, but not yet.

comment:4 by Dietmar Winkler, 4 years ago

Resolution: worksforme
Status: newclosed

Confirmed it works on 1.16.1 with the new frontend activated.

Note: See TracTickets for help on using tickets.