﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4524	Simple KeyWordIO example does not work in OM	Jan Kokert	Adrian Pop	"Hi,

Today I wanted to test the KeyWordIO library with a simple example for my dissertation:
{{{
#!modelica
model test
import KeyWordIO.*;

parameter String outputFileName =
  Modelica.Utilities.Files.loadResource(""modelica://test/myoutput.txt"");
Real M[2,2] = [1,2;3,4];

algorithm
  when initial() then
    KeyWordIO.writeRealCSV(outputFileName, ""\t"", M);
  end when;

annotation (
  uses(KeyWordIO(version = ""0.7.0"")));

end test;
}}}

Unfortunately, the process crashes in the latest nightly build (v1.13.0-dev-27) and also in a version before (v1.12.0-dev-580):
{{{
stdout | error | <p>Process crashed
stdout | error | <p>Process crashed<br>
Simulation process failed. Exited with code -1073741819.
}}}

Furthermore, it is interesting that it crashed two times...

On the compilation tab it says:
{{{
test_functions.c: In function 'omc_KeyWordIO_writeRealCSV':
test_functions.c:48:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     tmp5 = tmp6;
          ^
}}}

Maybe these tickets are related:
ticket:3638
ticket:4313

I would highly appreciate if this simple example could work.
Many thanks in advance!"	defect	reopened	high	Future	Frontend	v1.13.0-dev-nightly		KeyWordIO	dr.christian.kral@…
