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)
Change History (5)
by , 4 years ago
Attachment: | type_log.txt added |
---|
comment:1 by , 4 years ago
Component: | *unknown* → New Instantiation |
---|---|
Milestone: | NeedsInput → 1.17.0 |
Owner: | changed from | to
@perost, would you mind having a look?
follow-up: 3 comment:2 by , 4 years ago
Turns out that in my case I still had the old frontend activated. Switching to the new one solves the issue. I'm still waiting for test confirmation from version 1.16.1
comment:3 by , 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 , 4 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Confirmed it works on 1.16.1 with the new frontend activated.
Log of example run OpenIPSL.Example.Machines.PSSE.GENCLS (current tip of master)