﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5230	getErrorString raises pyparsing.ParseException after calling buildModel in the python interface	robert.mueller@…	Alachew Mengist	"Hello,

to retrieve information about the translation process, we need to call `getErrorString()` after calling `buildModel()`.

In the OMSHell this works just fine by executing `buildModel(Modelica.Blocks.Examples.PID_Controller);getErrorString()`

Using the python interface (v1.13.0-dev-1098-ge7d386dfb (64-bit)), the following minimal working example leads to `pyparsing.ParseException: Expected end of text (at char 123), (line:2, col:1)`:

{{{
import sys

sys.path.insert(0, r'C:\OpenModelica1.13.0-dev-64bit\share\omc\scripts\PythonInterface')
sys.path.insert(0, r'C:\OpenModelica1.13.0-dev-64bit\lib\python')

import omniORB
import OMPython

interface = OMPython.OMCSession()
print(interface.sendExpression(""buildModel(Modelica.Blocks.Examples.PID_Controller);getErrorString()""))
}}}

If I instead send the command `print(interface.sendExpression(""buildModel(Modelica.Blocks.Examples.PID_Controller);getErrorString()""))` (added a semicolon after `getErrorString()`, I get `pyparsing.ParseException: Expected {quoted string, starting with "" ending with "" | Combine:({[""-""] {""0"" | W:(1234...,0123...)} [{""."" W:(0123...)}] [{W:(eE) W:(0123...,0123...)}]}) | Forward: ... | Group:({Suppress:(""{"") [Forward: ... [, Forward: ...]...] Suppress:(""}"")}) | Group:({Suppress:(""("") [Forward: ... [, Forward: ...]...] Suppress:("")"")}) | {Suppress:(""SOME"") Suppress:(""("") Forward: ... Suppress:("")"")} | ""true"" | ""false"" | {""NONE"" Suppress:(""("") Suppress:("")"")} | Combine:(Forward: ...)} (at char 0), (line:1, col:1)` instead.

Is this reproducible? Any tips or workarounds are welcome, thank you!"	defect	new	normal		OMPython	v1.13.0-dev-nightly		buildModel getErrorString	leo.gall@…
