﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1701	error with Modelica.Utilities.Streams.error	mohamed	Willi Braun	"Dear all, \\

Using the function  Modelica.Utilities.Streams.error in this simple example with OMShell 1.8.1 generates some \\errors: \\
{{{#!mo
model err
  parameter Real a=1;
  parameter Real b=1;
  Real x;
equation
  x=a+b;
  if (x>1) then
    Modelica.Utilities.Streams.error(""\n %% Error (Modelization)\n"");
  end if;
end err;
}}}

{{{
Error: Error building simulator. Buildlog: gcc -I""C:/OpenModelica1.8.1//include/omc""  -O0 -falign-functions -msse2 -mfpmath=sse  -c -o Modelica_Utilities_Streams_error.o Modelica_Utilities_Streams_error.c \\Modelica_Utilities_Streams_error.c:3:1: warning: ""MODELICA_ASSERT"" redefined \\In file included from C:/OpenModelica1.8.1//include/omc/modelica_string.h:35, \\                 from C:/OpenModelica1.8.1//include/omc/modelica.h:82, \\                 from Modelica_Utilities_Streams_error.h:4, \\                 from Modelica_Utilities_Streams_error.c:1: \\C:/OpenModelica1.8.1//include/omc/openmodelica.h:267:1: warning: this is the location of the previous definition \\Modelica_Utilities_Streams_error.c:4:1: warning: ""MODELICA_TERMINATE"" redefined \\C:/OpenModelica1.8.1//include/omc/openmodelica.h:270:1: warning: this is the location of the previous definition \\Modelica_Utilities_Streams_error.c: In function 'in_Modelica_Utilities_Streams_error': \\Modelica_Utilities_Streams_error.c:24: error: variable or field 'out' declared void \\Modelica_Utilities_Streams_error.c:27: error: void value not ignored as it ought to be \\mingw32-make: *** [Modelica_Utilities_Streams_error] Error 1  \\
}}}
Is something wrong?

Best regards, \\mohamed"	defect	closed	critical	1.9.0	Run-time		fixed		mohamed Lennart Ochel
