Opened 9 years ago

Closed 7 years ago

#3799 closed defect (fixed)

SimCode generation fails for 3ph trafo models

Reported by: Rüdiger Franke Owned by: Lennart Ochel
Priority: critical Milestone: 1.12.0
Component: Backend Version:
Keywords: Cc: Adrian Pop

Description

Despite of remaining frontend errors (#3274), the 3ph trafo models do pass to the backend now. If resolveSimpleEquations is disabled (or #3798 will be fixed), the next error occurs during the generation of SimCode. See e.g. PowerSystems.Examples.Spot.AC3ph.Transformer:

[OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:5183:7-5183:48:writable] Error: Internal error for Eqn: 1 : {0.0003183098861837907 * $DER.trafo.i1[1], 0.0003183098861837907 * $DER.trafo.i1[2], 0.0003183098861837907 * $DER.trafo.i1[3]} + PowerSystems.AC3ph.Transformers.TrafoStray$trafo.j_dq0({trafo.i1[1], trafo.i1[2], trafo.i1[3]}) * trafo.omega[2] * 0.0003183098861837907 + {trafo.i1[1] * 0.1, trafo.i1[2] * 0.1, trafo.i1[3] * 0.1} = {trafo.v1[1] - trafo.v2[1], trafo.v1[2] - trafo.v2[2], trafo.v1[3] - trafo.v2[3]}
array equations currently only supported on form v = functioncall(...)

Change History (5)

comment:1 by Rüdiger Franke, 9 years ago

Priority: highcritical

comment:2 by Martin Sjölund, 8 years ago

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

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

Milestone: 1.11.01.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:4 by Francesco Casella, 7 years ago

Milestone: 1.12.0Future

The milestone of this ticket has been reassigned to "Future".

If you think the issue is still valid and relevant for you, please select milestone 1.13.0 for back-end, code generation and run-time issues, or 2.0.0 for front-end issues.

If you are aware that the problem is no longer present, please select the milestone corresponding to the version of OMC you used to check that, and set the status to "worksforme".

In both cases, a short informative comment would be welcome.

comment:5 by Martin Sjölund, 7 years ago

Milestone: Future1.12.0
Resolution: fixed
Status: newclosed

PowerSystems.Examples.AC3ph.Elementary.Transformer is working since 1.12.0

Note: See TracTickets for help on using tickets.