Skip to content

Revert Evaluate annotation in Electrical package #2082

@mwetter

Description

@mwetter

The following annotation has been added in IBPSA through #2067:

diff --git a/Buildings/Electrical/Transmission/BaseClasses/PartialBaseLine.mo b/Buildings/Electrical/Transmission/BaseClasses/PartialBaseLine.mo
index 99a9ba4e73..7b05a22e67 100644
--- a/Buildings/Electrical/Transmission/BaseClasses/PartialBaseLine.mo
+++ b/Buildings/Electrical/Transmission/BaseClasses/PartialBaseLine.mo
@@ -37,7 +37,7 @@ partial model PartialBaseLine "Partial cable line dispersion model"
                choicesAllMatching = true);
 
   final parameter Modelica.Units.SI.Temperature T_ref=commercialCable.T_ref
-    "Reference temperature of the line";
+    "Reference temperature of the line" annotation (Evaluate = true);
   final parameter Modelica.Units.SI.Temperature M=commercialCable.M
     "Temperature constant (R_actual = R*(M + T_heatPort)/(M + T_ref))";
   final parameter Modelica.Units.SI.Resistance R=commercialCable.lineResistance(

It turns out that this leads in OpenModelica 1.26.0~dev-325-g8f8a82a to the error

[9] 11:18:07 Translation Warning
[Buildings.Electrical.Transmission.BaseClasses.BaseCable: 7:3-8:34]: [Parameter line1.commercialCable.T_ref has no value, and is fixed during initialization (fixed=true), using available start value (start=288.15) as default value.](omeditmessagesbrowser:///Buildings.Electrical.Transmission.BaseClasses.BaseCable?lineNumber=7)

[10] 11:18:07 Translation Notification
It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet.

[11] 11:18:07 Translation Warning
It was not possible to solve the under-determined initial system (1371 equations and 1411 variables)

[12] 11:18:07 Translation Error
No system for the symbolic initialization was generated

[13] 11:18:07 Scripting Error
Translation of Buildings.Electrical.Examples.RenewableSources failed.

This issue is to remove the annotation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions