Ticket #6002: FMU_test.py

File FMU_test.py, 360 bytes (added by anonymous, 6 years ago)

Test that triggers error message with OMC-exported FMU

Line 
1from fmpy import *
2
3fmu = 'AixLib.Fluid.FMI.ExportContainers.Examples.FMUs.ThermalZone.fmu' # OMC FMU # gives unit error
4#fmu = 'AixLib_Fluid_FMI_ExportContainers_Examples_FMUs_ThermalZone.fmu' # Dymola FMU # doesn't give unit error
5
6dump(fmu) # get information
7
8from fmpy import read_model_description
9model_description = read_model_description(fmu)