#5785 closed defect (invalid)
OMEdit crashes when editing OMSimulator model
Reported by: | Andreas Heuermann | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | 1.16.0 |
Component: | OMEdit | Version: | v1.16.0-dev |
Keywords: | OMEdit OMSimulator FMU Connector | Cc: | Lennart Ochel |
Description
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
Attachments (4)
Change History (10)
by , 5 years ago
Attachment: | OMEdit_Crash.png added |
---|
comment:1 by , 5 years ago
While trying to safe the spp file to add as example OMEdit crashes also. See the next screenshot.
comment:2 by , 5 years ago
Summary: | OMEdit crashes when editing .. model → OMEdit crashes when editing OMSimulator model |
---|
comment:3 by , 5 years ago
It could be interesting to see the stacktrace. Tools | Open Working Directory, then attach omedit*.log
and omedit*.txt
files to this ticket.
comment:4 by , 5 years ago
The central error is presumably
terminate called after throwing an instance of 'std::runtime_error' what(): Failed to copy file: C:/Users\USERNAME\AppData\Local\Temp\OpenModelica\OMEdit\simulateWithOMSimulator-4scj5a1n\temp/model.ssp to: D:/workspace/Testitesttest/ticket5785/simulateWithOMSimulator.ssp
from omediterror.txt.
comment:5 by , 5 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
This is not an issue of OMEdit. I traced it back to OMSimulator core and created an issue on OMSimulator github https://github.com/OpenModelica/OMSimulator/issues/715.
comment:6 by , 5 years ago
But I still would prefer whenever OMSimulator throws std::runtime_error
to catch the error and at least give some more output on what happend.
Is this possible?
Crash of OMEdit after error cathed by OMSimulator