-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot parse AMESim fmu xml file #5
Comments
The error message comes from https://github.com/cxbrooks/fmusdk2/blob/master/fmu20/src/shared/parser/XmlParser.cpp line 159:
I suggest unzipping the .fmu file and running an xml validator on the modelDescription.xml file. See https://en.wikipedia.org/wiki/XML_validation for links to xmllint and an online validator. If your modelDescription.xml file is valid .xml, then there is probably a bug somewhere in the fmusdk code. To fix this, you would need to add print statements to the code to see where in the modelDescription.xml file the problematic section is located. If your modelDescription.xml file is valid .xml, then it would help if you uploaded the modelDescription.xml file. However, I'm retired, so I'm not that interested in fixing bugs myself in this code, though I'd accept well executed push requests. https://github.com/cxbrooks/fmusdk2 says:
So, you could also try the qtronic.de version of FmuSdk, which is newer than this version. If your modelDescription.xml file is invalid .xml, then try FmuSdk, then follow up with Siemens, the manufacturers of AMESim. |
@cxbrooks thanks for your help! The modelDescription.xml is valid, i have solved the problem with qtronic.de version of FmuSdk. It seems that there are some bugs during parsing xml. |
When i use this project to call fmu generated by AMESim (FMI 2.0 Co-simulation ), Why this happens:
Parser error. Depth wrong after parsing sub-tree for Tool
What does this error mean?
The text was updated successfully, but these errors were encountered: