Skip to content

Unable to specify requiredIntermediateVariables and nRequiredIntermediateVariables when calling instantiate_fmu #840

@elmir-nahodovic

Description

@elmir-nahodovic

Currently when importing and simulating a co-sim fmu, calling
instantiate_fmu(...) will call fmi3InstantiateCoSimulation with:

        self.component = self.fmi3InstantiateCoSimulation(
            self.instanceName.encode("utf-8"),
            self.guid.encode("utf-8"),
            resourcePath.encode("utf-8"),
            fmi3Boolean(visible),
            fmi3Boolean(loggingOn),
            fmi3Boolean(eventModeUsed),
            fmi3Boolean(earlyReturnAllowed),
            None, <---
            0, <---
            fmi3InstanceEnvironment(),
            self.logMessage,
            self.intermediateUpdate,
        )

Unable to set:

 const fmi3ValueReference       requiredIntermediateVariables[],
    size_t                         nRequiredIntermediateVariables,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions