﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5129	SimulationResult.resultFile ignores simflag -r	leo.gall@…	Adrian Pop	"Hello,

When simulating a model via the OMShell, the response from the interface has a wrong path for 'resultFile' if its name is specified as a simflag to the simulate call.

Please see the following example:

{{{
OMShell 1.1 Copyright Open Source Modelica Consortium (OSMC) 2002-2018
Distributed under OMSC-PL and GPL, see www.openmodelica.org

Connected to v1.13.0-dev-516-g2199757a2 (64-bit)
Um Hilfe zur Benutzung von OMShell und OpenModelica zu bekommen, tippen Sie ""help()"" und dann Enter.
>> loadModel(Modelica)
true

>> simulate(Modelica.Blocks.Examples.PID_Controller, simflags=""-r=result.mat"")
record SimulationResult
    resultFile = ""C:/Users/*****/AppData/Local/Temp/OpenModelica/Modelica.Blocks.Examples.PID_Controller_res.mat"",
    simulationOptions = ""startTime = 0.0, stopTime = 4.0, numberOfIntervals = 500, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'Modelica.Blocks.Examples.PID_Controller', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-r=result.mat'"",
    messages = ""LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
LOG_SUCCESS       | info    | The simulation finished successfully.
"",
    timeFrontend = 0.4211824075777083,
    timeBackend = 0.03604395478073517,
    timeSimCode = 0.007793409574607846,
    timeTemplates = 0.02874894900023647,
    timeCompile = 2.795966870516829,
    timeSimulation = 0.1441454386610263,
    timeTotal = 3.434178265981765
end SimulationResult;

>>
}}}
 

It should be:

{{{
record SimulationResult
    resultFile = ""C:/Users/*****/AppData/Local/Temp/OpenModelica/result.mat"",
	...
end SimulationResult;
}}}


The same goes for the response via Python interface."	defect	closed	normal	1.13.0	Interactive Environment	v1.13.0-dev-nightly	fixed		robert.mueller@…
