Opened 7 years ago

Last modified 3 years ago

#4693 new defect

Changing input values in interactive simulation fails for model sizes above a certain threshold

Reported by: anonymous Owned by: somebody
Priority: critical Milestone:
Component: Interactive Environment Version: v1.13.0-dev-nightly
Keywords: Cc:

Description

Hi all,

Some part of OM shows broken behavior when simulating a model interactively. In the following model, the target was to set the external input u1 to some value (say 1) during interactive simulation.

model test

  Real M1;
  Real M2;
  Real M3;
  Real M4;
  Real M5;
  Real M6;
  Real M7;
  Real M8;
  Real M9;
  Real M10;
  Real M11;
  Real M12;
  Real M13;
  Real M14;
  Real M15;
  Real M16;
  Real M17;
  Real M18;
  Real M19;
  Real M20;
  //Real M21;

  Modelica.Blocks.Interfaces.RealInput u1;
  Real y;
  
equation

  y = 2 * u1;
  
  M1 = 100;
  M2 = 100;
  M3 = 100;
  M4 = 100;
  M5 = 100;
  M6 = 100;
  M7 = 100;
  M8 = 100;
  M9 = 100;
  M10 = 100;
  M11 = 100;
  M12 = 100;
  M13 = 100;
  M14 = 100;
  M15 = 100;
  M16 = 100;
  M17 = 100;
  M18 = 100;
  M19 = 100;
  M20 = 100;
  //M21 = 100;


end test;

With the above model, it works as expected.
Now retry the same with the following model:

model test

  Real M1;
  Real M2;
  Real M3;
  Real M4;
  Real M5;
  Real M6;
  Real M7;
  Real M8;
  Real M9;
  Real M10;
  Real M11;
  Real M12;
  Real M13;
  Real M14;
  Real M15;
  Real M16;
  Real M17;
  Real M18;
  Real M19;
  Real M20;
  Real M21;

  Modelica.Blocks.Interfaces.RealInput u1;
  Real y;
  
equation

  y = 2 * u1;
  
  M1 = 100;
  M2 = 100;
  M3 = 100;
  M4 = 100;
  M5 = 100;
  M6 = 100;
  M7 = 100;
  M8 = 100;
  M9 = 100;
  M10 = 100;
  M11 = 100;
  M12 = 100;
  M13 = 100;
  M14 = 100;
  M15 = 100;
  M16 = 100;
  M17 = 100;
  M18 = 100;
  M19 = 100;
  M20 = 100;
  M21 = 100;


end test;

Here, after setting u1 = 1 in interactive mode, u1 takes a wrong and extremely small value, around 3e-304. This behavior seems to depend on model size (in this case, at least).

I also observe this behavior when not using the OMedit interactive environment but using UAexpert to connect to the created OPC UA server and change the value of u1 there.

Change History (7)

comment:1 Changed 7 years ago by anonymous

  • Summary changed from Interactive simulation to Changing input values in interactive simulation fails for model sizes above a certain threshold

comment:2 Changed 7 years ago by anonymous

Is this issue already being looked into?

comment:3 Changed 6 years ago by casella

  • Milestone changed from 1.13.0 to 1.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:4 Changed 5 years ago by casella

  • Milestone changed from 1.14.0 to 1.16.0

Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0

comment:5 Changed 4 years ago by casella

  • Milestone changed from 1.16.0 to 1.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:6 Changed 4 years ago by casella

  • Milestone changed from 1.17.0 to 1.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:7 Changed 3 years ago by casella

  • Milestone 1.18.0 deleted

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.