Opened 9 years ago

Closed 7 years ago

#3799 closed defect (fixed)

SimCode generation fails for 3ph trafo models

Reported by: rfranke Owned by: lochel
Priority: critical Milestone: 1.12.0
Component: Backend Version:
Keywords: Cc: adrpo

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 Changed 9 years ago by rfranke

  • Priority changed from high to critical

comment:2 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.10.0 to 1.11.0

Ticket retargeted after milestone closed

comment:3 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.11.0 to 1.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:4 Changed 7 years ago by casella

  • Milestone changed from 1.12.0 to Future

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 Changed 7 years ago by sjoelund.se

  • Milestone changed from Future to 1.12.0
  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.