Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Import fmu from EnergyPlus to Modelica

I am trying to couple EnergyPlus and Modelica using FMI. I exported an EnergyPlus model as fmu and imported it to Modelica. when i am checking for syntax errors i am getting the following warnings

" - LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiModel.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiModel.destructor.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiSetReal.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiDoStep.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiGetReal.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiInitializeSlave."

When i simulate the model i receive the error "Note: There were translation errors that might explain the problem. Compiler message: Compiling and linking the model (Visual C++).

dsmodel.c dsmodel.c(73) : warning C4090: 'initializing' : different 'const' qualifiers dsmodel.c(74) : warning C4090: 'initializing' : different 'const' qualifiers dsmodel.c(281) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data dsmodel.c(889) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data dsmodel.c(1027) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data dsmodel.c(1293) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data LINK : fatal error LNK1181: cannot open input file '_fmu_export_schedule.lib'

Error generating Dymosim." which i assume is connected to the warnings.

Can someone please help me?

Import fmu from EnergyPlus to Modelica

I am trying to couple EnergyPlus and Modelica using FMI. I exported an EnergyPlus model as fmu and imported it to Modelica. I tried to duplicate the model shown in http://simulationresearch.lbl.gov/fmu/EnergyPlus/export/index.html. I used the schedule object from EnergyPlusFMU to create the FMU.

when i am checking for syntax errors i am getting the following warnings

" - LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiModel.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiModel.destructor.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiSetReal.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiDoStep.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiGetReal.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiInitializeSlave."

When i simulate the model i receive the error "Note: There were translation errors that might explain the problem. Compiler message: Compiling and linking the model (Visual C++).

dsmodel.c dsmodel.c(73) : warning C4090: 'initializing' : different 'const' qualifiers dsmodel.c(74) : warning C4090: 'initializing' : different 'const' qualifiers dsmodel.c(281) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data dsmodel.c(889) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data dsmodel.c(1027) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data dsmodel.c(1293) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data LINK : fatal error LNK1181: cannot open input file '_fmu_export_schedule.lib'

Error generating Dymosim." which i assume is connected to the warnings.

Can someone please help me? me?

Import fmu from EnergyPlus to Modelica

I am trying to couple EnergyPlus and Modelica using FMI. I exported an EnergyPlus model as fmu and imported it to Modelica. I tried to duplicate the model shown in http://simulationresearch.lbl.gov/fmu/EnergyPlus/export/index.html. I used the schedule object from EnergyPlusFMU to create the FMU.

when i am checking for syntax errors i am getting the following warnings

" - LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiModel.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiModel.destructor.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiSetReal.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiDoStep.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiGetReal.

  • LibraryDirectory annotation must specify an existing directory. This was not the case for function _fmu_export_schedule_fmu.fmi_Functions.fmiInitializeSlave."

When i simulate the model i receive the error "Note: There were translation errors that might explain the problem. Compiler message: Compiling and linking the model (Visual C++).

dsmodel.c dsmodel.c(73) : warning C4090: 'initializing' : different 'const' qualifiers dsmodel.c(74) : warning C4090: 'initializing' : different 'const' qualifiers dsmodel.c(281) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data dsmodel.c(889) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data dsmodel.c(1027) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data dsmodel.c(1293) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data LINK : fatal error LNK1181: cannot open input file '_fmu_export_schedule.lib'

Error generating Dymosim." which i assume is connected to the warnings.

Can someone please help me?