Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Modelica.ComplexBlocks problem

Modelica.ComplexBlocks problem

before opening a ticket:
I'm using elements from Modelica.ComplexBlocks e.g. block feedback

When using the original implementation

Code:

block Feedback

...
equation
    y = (if useConjugateInput1 then Modelica.ComplexMath.conj(u1) else u1) -     (if useConjugateInput2 then Modelica.ComplexMath.conj(u2) else u2);

I received a warning and initialization fails.

Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem:
         $DER.GridConverter.Icontroller.PId.x = 0.0
         $DER.GridConverter.Icontroller.PIq.x = 0.0.

After modification of feedback block:

Code:

block MyFeedback

...
equation
//     y = (if useConjugateInput1 then Modelica.ComplexMath.conj(u1) else u1) -     (if useConjugateInput2 then Modelica.ComplexMath.conj(u2) else u2);
   y = u1 - u2;

everything is fine.

unfortunately I was not able to create a simple model to demonstrate this behavior.

As my temporary workaround a removed all "useConjugateInput" from all ComplexBlocks elements I used.

omc: OMCompiler v1.18.0-dev.188+gb64a64f15a
MSL: 3.2.3
OS: Linux 64

Thx & BR

There are 0 guests and 0 other users also viewing this topic
You are here: