﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4693	Changing input values in interactive simulation fails for model sizes above a certain threshold	anonymous	somebody	"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.

"	defect	new	critical		Interactive Environment	v1.13.0-dev-nightly			
