Skip to content

Annotations cause errors in OpenModelica #1578

@jonas4climate

Description

@jonas4climate

Describe the bug
Several models cause scripting errors when opening them within OpenModelica (OMEdit) due to logic within annotations (perhaps errors due to model restructuring?). I'm not sure if these messages can be turned off with a flag, but it still seems inconvenient for usage within OpenModelica. In Dymola, no error messages show up .

Affected:

  • AixLib.ThermalZones.HighOrder.Rooms.BaseClasses.PartialRoomParams: annotations containing withWindow and outside
  • AixLib.Utilities.HeatTransfer.HeatToRad: annotation mentioning radCalcMethod == 4
  • AixLib.Utilities.Interfaces.SolarRad_in: annotations mentioning Smooth.Bezier curves.
  • AixLib.Fluid.Movers.PumpsPolynomialBased.PumpHeadControlled: annotations calculate_power and calculate_efficiency

To Reproduce
Steps to reproduce the behavior:

  1. Open any model using these components, e.g. AixLib.ThermalZones.Rooms.Examples.OFD_1Jan
  2. View console output

Expected behavior
No scripting errors when opening the models.

Desktop (please complete the following information):
OMEdit (Open Modelica 1.24.3) and AixLib v2.1.0

Metadata

Metadata

Assignees

No one assigned

    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