I followed your post about importing XML file to CasADi, and you solved these problems. In my case, I can create XML file, but I can not parse XML file in CasADi (I am using CasADi integrated in Jmodelica). The erros are as follows:
Traceback (most recent call last):
File "C:\JModelica.org-SDK-1.11\install\Python\pyjmi\examples\EV_test4.py", line 66, in <module>
ocp.parseFMI('EV_pack.EV_Energy_Opt.xml')
File "C:\JModelica.org-SDK-1.11\install\Python\casadi\casadi_core.py", line 37624, in parseFMI
return _casadi_core.SymbolicOCP_parseFMI(self, *args)
RuntimeError: The assertion "handle!=0" on line 153 of file "c:/JModelica.org-SDK-1.11/src/ThirdParty/CasADi/CasADi/casadi/core/misc/../function/plugin_interface.hpp" failed.
PluginInterface::loadPlugin: Cannot load shared library:
Tried libcasadi_xmlfile_tinyxml.dll:
Error code (WIN32): 126
Tried: c:/JModelica.org-SDK-1.11/install/ThirdParty/CasADi/lib\libcasadi_xmlfile_tinyxml.dll:
Error code (WIN32): 126
Tried: .\libcasadi_xmlfile_tinyxml.dll:
Error code (WIN32): 126
=========================================================================================
I spent one week to adjust the program following instructions in the internet, but it is still not working. Do you have any advice?
Thank you very much for your reading.