- Index
- » Developer
- » OpenModelica development
- » OMEdit multiply graphic data when...
OMEdit multiply graphic data when changing code in text view
OMEdit multiply graphic data when changing code in text view
On build OpenModelica 1.9.4~dev-675-gb524b08
I get strange behaviour of OMEdit.
For example, I copy test model Modelica.Fuild.Example.DrumBoiler (MSL 3.2.1) to my test_DrumBoiler model
After code examination I find to input with out full path:
Code:
Blocks.Interfaces.RealInput q_F(unit="MW") if
use_inputs "fuel flow rate"
annotation (Placement(transformation(extent={{-112,-56},{-100,-44}})));
Blocks.Interfaces.RealInput Y_Valve if use_inputs "valve opening"
annotation (Placement(transformation(extent={{-112,-96},{-100,-84}})));
and in Diagram View they are shown as red squares.
When I correct code
Code:
Modelica.Blocks.Interfaces.RealInput q_F(unit="MW") if
use_inputs "fuel flow rate"
annotation (Placement(transformation(extent={{-112,-56},{-100,-44}})));
Modelica.Blocks.Interfaces.RealInput Y_Valve if use_inputs "valve opening"
annotation (Placement(transformation(extent={{-112,-96},{-100,-84}})));
and change view to Diagram I saw four element "RealInput q_F" and four element "RealInput Y_Valve" see picture
and modelica code in section between "model name" and "equation" is multiplay tree times and plus four lines:
Code:
Blocks.Interfaces.RealInput Y_Valve annotation(Placement(visible = true, transformation(extent = {{-112, -96}, {-100, -84}}, rotation = 0)));
Blocks.Interfaces.RealInput q_F annotation(Placement(visible = true, transformation(extent = {{-140, -54}, {-128, -42}}, rotation = 0)));
Blocks.Interfaces.RealInput q_F annotation(Placement(visible = true, transformation(extent = {{-142, -32}, {-130, -20}}, rotation = 0)));
Blocks.Interfaces.RealInput q_F annotation(Placement(visible = true, transformation(origin = {-141, -43}, extent = {{-13, -13}, {13, 13}}, rotation = 0)));
What happened? My be I do something wrong?
Re: OMEdit multiply graphic data when changing code in text view
I tried it with "OpenModelica v1.9.4-dev-747-g47db7d2". Everything seems to work fine.
Adeel.
- adeas
- 454 Posts
Re: OMEdit multiply graphic data when changing code in text view
It's strange bug.
I can get this behaviour with "openmodelica-nightly-1.9.4~dev.beta1-5-g0072bb3.mpkg"
I think error happened if OpenModelica works a half of day (3-4 hours) and when you try to check model without saving.
After restart OpenModelica always all right.
What debug options I need to setup for catching this bug?
- Index
- » Developer
- » OpenModelica development
- » OMEdit multiply graphic data when...