﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5785	OMEdit crashes when editing OMSimulator model	Andreas Heuermann	Adeel Asghar	"I'm trying to add a connector between `testInput.integertable1.y` and `simpleTest.u` where testInput is a submodule of CSV file (simulated testInput.mo) and simpleTest is a submodule of an ME 2.0 FMU (generated from simpleTest.mo).

After I get a scripting error
{{{
[addConnection] Type mismatch in connection: testInput.integertable1.y .> simpleTest.u
}}}
OMEdit will crash. Please see attached screenshot.

SimpleTest.mo
{{{
model SimpleTest ""just a simple model - Compilation etc.""
  Modelica.Blocks.Interfaces.IntegerInput u;
  Modelica.Blocks.Interfaces.IntegerOutput y;
algorithm
  when u > pre(u) then
    y := y + 2;
  end when;
end SimpleTest;
}}}

testInput.mo
{{{
model testInput
  Modelica.Blocks.Sources.IntegerTable integertable1(table=[0, 1; 0.2, 2; 0.4, 3; 0.6, 4; 0.8, 5; 1, 6]);
end testInput;
}}}

I'm running OpenModelica v1.16.0-dev-106-gf60ffbd0a (64-bit)
Connected to OMSimulator v2.1.0-dev-147-g36ec2c7-mingw on Windows 10"	defect	closed	high	1.16.0	OMEdit	v1.16.0-dev	invalid	OMEdit OMSimulator FMU Connector	Lennart Ochel
