Closed lyw2024 closed 4 months ago
Hi lyw2024,
can you provide the complete modelDescription.xml in text form?
/Peter
Hello, peter: I have update the modelDescription. please help to check. modelDescription.txt
thank you
Hi lyw2024,
/Peter
hello, peter: after I replaced with the latest version. This error ( "Start attribute is required for this causality, variability and initial combination") happened. Do you know when we can reaease fmi-library to fix this issue?
Made a new release including that fix: https://github.com/modelon-community/fmi-library/releases/tag/3.0a4
hello, all: when I try to read .FMU with FMILibary. see following:
lyw@ubuntu:~/Desktop/FMILibrary-2.0a1-src/FMILibrary-2.0a1/Test/FMI2$ ./fmi2Test Demo.fmu ./Temp argv[0] = ./fmi2Test argv[1] = Demo.fmu argv[2] = ./Temp module = FMILIB, log level = VERBOSE: Allocating FMIL context module = FMILIB, log level = VERBOSE: Detecting FMI standard version module = FMIZIP, log level = VERBOSE: Unpacking FMU into ./Temp module = FMIXML, log level = VERBOSE: Parsing XML to detect FMI standard version module = FMIXML, log level = VERBOSE: XML specifies FMI 2.0 module = FMILIB, log level = INFO: XML specifies FMI standard version 2.0 module = FMILIB, log level = VERBOSE: Parsing model description XML module = FMI2XML, log level = VERBOSE: Parsing XML element fmiModelDescription module = FMI2XML, log level = VERBOSE: Parsing XML element CoSimulation module = FMI2XML, log level = ERROR: Unknown attribute 'stepSize=0.001' in XML module = FMI2XML, log level = VERBOSE: Parsing XML element VendorAnnotations module = FMI2XML, log level = VERBOSE: Parsing XML element ModelVariables module = FMI2XML, log level = INFO: [Line:45] Detected during parsing: module = FMI2XML, log level = ERROR: XML element 'ScalarVariable': could not parse value for enumeration attribute 'causality'='independent' module = FMI2XML, log level = VERBOSE: Building alias index module = FMI2XML, log level = VERBOSE: Parsing XML element ModelStructure module = FMI2XML, log level = ERROR: [Line:52] Unknown element 'Unknown' in XML, skipping module = FMI2XML, log level = ERROR: [Line:53] Unknown element 'Unknown' in XML, skipping module = FMI2XML, log level = ERROR: [Line:54] Unknown element 'Unknown' in XML, skipping module = FMI2XML, log level = ERROR: [Line:55] Unknown element 'Unknown' in XML, skipping module = FMI2XML, log level = ERROR: [Line:57] Unknown element 'InitialUnknowns' in XML, skipping module = FMI2XML, log level = WARNING: [Line:58] Skipping nested XML element 'Unknown' module = FMI2XML, log level = WARNING: [Line:59] Skipping nested XML element 'Unknown' module = FMI2XML, log level = WARNING: [Line:60] Skipping nested XML element 'Unknown' module = FMI2XML, log level = WARNING: [Line:61] Skipping nested XML element 'Unknown' module = FMI2XML, log level = ERROR: Input variable ac is not listed among inputs in ModelStructure module = FMI2XML, log level = ERROR: Input variable bc is not listed among inputs in ModelStructure module = FMI2XML, log level = ERROR: Output variable out1 is not listed among outputs in ModelStructure module = FMI2XML, log level = ERROR: Output variable out2 is not listed among outputs in ModelStructure module = FMI2XML, log level = ERROR: Output variable out3 is not listed among outputs in ModelStructure module = FMI2XML, log level = ERROR: Output variable out4 is not listed among outputs in ModelStructure module = FMI2XML, log level = FATAL: Model structure is not valid due to detected errors. Cannot continue. module = FMI2XML, log level = FATAL: Parse error at line 63: parsing aborted
the FMU is generated by simulink.
do you know why I have this error, can you help me to solve it.
thank you.