Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

FMU UnicodeDecodeError

FMU UnicodeDecodeError

After I reinstalled OpenModelica to a newer nigtly build - I get the following error, decoding it's fmu's: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcd in position 24: invalid continuation byte
Previous versions worked properly.
Problem is not in a model, as even the simlest testing models give the same results.
How can I fix it?

Re: FMU UnicodeDecodeError

Is this on Windows or Linux? What do you mean by decoding the FMU?

Re: FMU UnicodeDecodeError

Oh, sorry, was unclear.
It's windows. By decoding FMU I mean creation of model in python through pyFMI

Re: FMU UnicodeDecodeError

Ok. The problem might be in PyFMI while loading the FMU.
More questions:
What system do you have? 32bit? 64bit?
How did you installed PyFMI and FMIL?

Re: FMU UnicodeDecodeError

System is 64bit, PyFMI and FMlob were installed through conda and worked on the older version of openmodelica. Both the new and the old versions of openmodelcia are 64 bit. The old one was downloaded 28th of may 2018, the newer is 15th of october

Re: FMU UnicodeDecodeError

Thanks for the info. I'll give it a try on my system, see how it goes.

Re: FMU UnicodeDecodeError

Thank you

Re: FMU UnicodeDecodeError

Is there any news? Is it a common error or this problem occurs only at my machine?

Re: FMU UnicodeDecodeError

Yes. I installed PyFMI via conda and tested with an OM FMU.
I get crashes in the sundials solver on both Windows and Linux and could not find out why yet.
The FMUs work fine in fmiChecker but they crash in python.
I suspect it might have something to do with stack alignment.
I even ran this in valgrind in Linux but got no clear idea what the problem is.
I will continue debugging this.

Re: FMU UnicodeDecodeError

Ok, thank you for your involvement in my problem.

There are 0 guests and 0 other users also viewing this topic