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

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 picturehttps://drive.google.com/open?id=0B6PD02PffWFESlhzeXJZc2lyelU
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.

Re: OMEdit multiply graphic data when changing code in text view

For Mac OS I couldn't find this build.
The latest is openmodelica-nightly-1.9.4~dev.beta1-5-g0072bb3.mpkg

This build is the same to 747?

Re: OMEdit multiply graphic data when changing code in text view

I try with "openmodelica-nightly-1.9.4~dev.beta1-5-g0072bb3.mpkg" and it's work ok.
Thank you

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?

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