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

Buildings Library Electrical Package

Buildings Library Electrical Package

Hi,
I am trying to understand the electrical package of the Buildings library. I realized that I am not able to run all the examples. I would appreciate if anybody knows and shares how to fix these errors.
I am using OMEdit OpenModelica 1.9.1 (r22929) (RML version).

Here are the errors under AC-one phase:
Example: Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformer (I got the same error when I tried using this transformer object in a simple model)
Errors displayed:
[:0:0-0:0] Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed!
[:0:0-0:0] Error: Internal error - IndexReduction.pantelidesIndexReduction failed!
[:0:0-0:0] Error: Internal error - IndexReduction.pantelidesIndexReduction1 failed! Use +d=bltdump to get more information.
[:0:0-0:0] Warning: Alias set with several free start values
* candidate: shortCircuit.v[1](start = 1.0)
* candidate: tra_cc.V2[1](start = tra_cc.VLow * cos(0.0))
=> select value from tra_cc.V2[1](start = tra_cc.VLow * cos(0.0))
   because its component reference (or its binding component reference) is closer to the top level scope with depth: 2.
   If we have equal component reference depth for several components choose the one with non zero binding.
……./modelica-buildings-2.0.0-rc.1/Buildings 2.0.0/Electrical/AC/OnePhase/Loads/Inductive.mo:37:9-37:88] Error: Internal error
Differentiate.differentiateEquationTime failed for -tra_load.terminal_p.i[1] = -homotopy((load.v[2] * load.Q + load.v[1] * load.Pow) / (load.v[1] ^ 2.0 + load.v[2] ^ 2.0), 0.0)

Example: Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery  (I got the same error when I created a simple model involving one storage unit)
Errors displayed:
[……./modelica-buildings-2.0.0-rc.1/Buildings 2.0.0/Electrical/Interfaces/Terminal.mo:7:1-7:54] Error: Could not evaluate structural parameter (or constant): PhaseSystem.n which gives dimensions of array: v[PhaseSystem.n]. Array dimensions must be known at compile time.
[:0:0-0:0] Error: Error occurred while flattening model Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery

Example: Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad  (Same error as in battery)
[:0:0-0:0] Error: Error occurred while flattening model Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad
[……./modelica-buildings-2.0.0-rc.1/Buildings 2.0.0/Electrical/Interfaces/Terminal.mo:7:1-7:54] Error: Could not evaluate structural parameter (or constant): PhaseSystem.n which gives dimensions of array: v[PhaseSystem.n]. Array dimensions must be known at compile time.
[……/modelica-buildings-2.0.0-rc.1/Buildings 2.0.0/Electrical/AC/OnePhase/Conversion/ACDCConverter.mo:41:5-41:39] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.root(terminal_p.theta);.

Thank you very much in advance,

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