﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3953	simulate(..) returns record instead of string	Bernhard Thiele	somebody	"According the its signature the MOS scripting function `simulate(..)` should return a String. However, (?sometimes?) a record is returned.

Consider following MOS script:

{{{
#!modelica
loadModel(Modelica);

res := simulate(Modelica.Blocks.Examples.PID_Controller);
print(""A"");
print(res); // No error, but this line will be blank?
print(""B"");

if true then
  res := simulate(Modelica.Blocks.Examples.PID_Controller);
  print(res); // Throws an error that a record is passed, but a String is expected
else
  print(""Just to have an else"");
end if;
}}}

The first print doesn't work (but gives error), the second print fails with a type error (expected String, but got a record).

How is the return value of `simulate(..)` supposed to work?"	defect	new	high	Future	Interactive Environment				Adrian Pop Martin Sjölund
