Giter VIP home page Giter VIP logo

reference-fmus's Introduction

Reference FMUs

A set of hand-coded FMUs for development, testing and debugging of the Functional Mock-up Interface.

Use the fmusim executable to simulate an FMU:

> fmusim --help
Usage: fmusim [OPTION]... [FMU]
Simulate a Functional Mock-up Unit and write the output to result.csv.

  --help                           display this help and exit
  --interface-type [me|cs]         the interface type to use
  --tolerance [TOLERANCE]          relative tolerance
  --start-time [VALUE]             start time
  --stop-time [VALUE]              stop time
  --output-interval [VALUE]        set the output interval
  --start-value [name] [value]     set a start value
  --output-variable [name]         record a specific variable
  --input-file [FILE]              read input from a CSV file
  --output-file [FILE]             write output to a CSV file
  --log-fmi-calls                  log FMI calls
  --fmi-log-file [FILE]            set the FMI log file
  --solver [euler|cvode]           the solver to use
  --early-return-allowed           allow early return
  --event-mode-used                use event mode
  --record-intermediate-values     record outputs in intermediate update
  --initial-fmu-state-file [FILE]  file to read the serialized FMU state
  --final-fmu-state-file [FILE]    file to save the serialized FMU state

Example:

  fmusim BouncingBall.fmu  simulate with the default settings

You can download the pre-built Reference FMUs and fmusim executables from releases.

CSV file structure

fmusim uses CSV (comma separated values) files with the following structure as input and output format.

  • The file must be UTF-8 encoded.
  • The first line contains the names of the columns.
  • Each column name must match a variable name of the respective FMU.
  • Names that contain commas (,) must be surrounded by double quotes (").
  • The first column is the independent variable.
  • The values of the first column must be monotonically increasing.
  • Every line is terminated by a newline character (\n).
  • Every column is separated by a comma (,).
  • Every line must have the same number of columns.
  • The values must be stored in the same format as the start values of the respective variables in the modelDescription.xml.
  • String and Binary variables can only be scalars or arrays with only one element.
  • String values must be surrounded by double quotes (").

Example:

<ModelVariables>
    <Float64 name="time" causality="independent"/>
    <Float64 name="Float64 array">
        <Dimension valueReference="2"/>
    </Float64>
    <Boolean name="Boolean array">
        <Dimension valueReference="4"/>
    </Boolean>
    <Binary name="Binary scalar"/>
</ModelVariables>
time,"Float64 array","Boolean array","Binary scalar"
0,1e-2 -1,0 false 1 true,666f6f
0.1,0.02 -2,1 false 0 true,aa6f6f
0.5,0.03 -3,1 true 0 false,66bb6f

Repository structure

<model>

  • config.h - model specific types and definitions
  • FMI{1CS|1ME|2|3}.xml - model descriptions
  • model.c - implementation of the model

include

  • fmi{|2|3}Functions.h - FMI header files
  • model.h - generic model interface
  • cosimulation.h - generic co-simulation interface

src

  • fmi{1|2|3}Functions.c - FMI implementations
  • cosimulation.c - generic co-simulation

examples

  • *.c - various FMI 3.0 import examples
  • Examples.cmake - CMake configuration for the example projects

fmusim

  • sources of the fmusim executable

Build the FMUs

To build the FMUs you need CMake and a supported build tool e.g. Visual Studio ≥ 2013 , Xcode or make:

  • download or clone the repository

  • open the CMakeGUI

  • click Browse Source... and select the cloned or downloaded and extracted repository (that contains CMakeLists.txt)

  • click Browse Build... and select the folder where you want build the FMUs

  • click Configure and select the generator for your IDE / build tool

  • select the FMI_VERSION you want to build and optionally the FMI_TYPE (only for FMI 1.0)

  • click Generate to generate the project files

  • click Open Project or open the project in your build tool

  • build the project

The FMUs will be in the dist folder inside the selected build folder.

Building fmusim

To build the fmusim executable, run the build/build_*.py <platform> Python scripts (where <platform> is the platform to build for, e.g. x86_64-windows) and enable WITH_FMUSIM before generating the CMake project.

License and attribution

Copyright © 2023, Modelica Association Project "FMI". All rights reserved. The code is released under the 2-Clause BSD License.

The Reference FMUs are a fork of the Test FMUs by Dassault Systèmes, which are a fork of the FMU SDK by QTronic, both released under the 2-Clause BSD License.

reference-fmus's People

Contributors

andreas-junghanns avatar beutlich avatar clagms avatar drzisga avatar ghannesen avatar klausschuch avatar maplesoft-fmigroup avatar martinotter avatar mblesken avatar nickbattle avatar pmai avatar ptaeuberds avatar spllr avatar t-sommer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reference-fmus's Issues

Forked repository?

README.md states:

The Reference FMUs are a fork of the Test FMUs by Dassault Systèmes, which are a fork of the FMU SDK by QTronic, both released under the 2-Clause BSD License.

This does not seem to be true as this repo is a real source repo and not a forked repo.

Start values for input clock.

In the standard we have

If causality = input and variability = Clock, that is, the variable is an input Clock, it is required to provide a start value for describing the expected initial condition of the input Clock for that FMU. If an input Clock has fmi3True as a start value, the environment should activate the Clock the first time it enters Event Mode. The environment can nevertheless choose different start values if it is not possible to fulfill the conditions in a simulation setup.

I don't understand what would be the point for a clock start value.
What information does it bring.

Either the master is using a clock and then it knows if it should be active at time tStart.
Or the master is not activating the clock then it should always be false.

What does it mean to have a start == true and ofset == "some value"

Or am I missing something?

Indentation of example code in doc

The following code has strange indentation in the document:

[source, c]
----
include::Reference-FMUs/examples/model_exchange.c[tags=ModelExchange]
----

Add OSS licenses to reference FMUs

We should ship open source software licenses with the reference FMUs
Reason: to give an example for the usage of the docuemtation/licecenses folder (see https://fmi-standard.org/docs/3.0-dev/#fmu-distribution), also in the light of modelica/fmi-cross-check#114 to require from tools participating in the cross-check the necessary licesne information

Licesense files to be added:

error instatiating BouncingBall in FMPy with alpha6 new headers and FMI3.xml

Could you please provide an example on its usage?

Thank you

Issues found in FMI3 configuration of Reference FMUs

I'm attempting to port the FMI2 formal model to cover FMI3, but running this over the various Reference FMU configuration files raises some errors. It may be that these are errors in the tool rather than the FMUs, but I think these are real problems according to the current documentation. I've listed the "raw" errors with some explanation interleaved:

-------------------- Clocks/FMI3.xml
Checking XML
2.2.8 Variable "inClock3" causality/variability/initial/start <input>/<clock>/<exact>/nil invalid at line 16
2.2.8 Variable "inClock3" initial/variability/start <exact>/<clock>/nil invalid at line 16
2.2.8 Variable "input2" causality/variability/initial/start <input>/<discrete>/nil/nil invalid at line 24
2.2.9 Outputs section does not match output variables at line 28
2.2.9 InitialUnknowns must include refs: {1004, 1005, 2001, 2002, 2003, 2004, 2005, 2007}
Errors found.

inClock3 should have a start value defined, as (F) in the standard in 2.2.8.
input2 should have a start value defined, as (D) in the standard in 2.2.8
The outputs section should list all of the output variables, as it says in 2.2.9 (1004 and 1005 are missing)
The initial unknowns should include the outputs which have default initial values of calculated, see 2.2.9.

-------------------- Feedthrough/FMI3.xml
Checking XML
2.2.9 InitialUnknowns must include refs: {3, 5, 7, 9, 12}
Errors found.

The initial unknowns should include the outputs which have default initial values of calculated, see 2.2.9.

-------------------- LinearTransform/FMI3.xml
Checking XML
2.2.8 Variable "m" causality/variability/initial/start <parameter>/<constant>/nil/[2] invalid at line 16
2.2.8 Variable "m" variability/causality <constant>/<parameter> invalid at line 16
2.2.8 Variable "n" causality/variability/initial/start <parameter>/<constant>/nil/[3] invalid at line 17
2.2.8 Variable "n" variability/causality <constant>/<parameter> invalid at line 17
2.2.8 Variable "A" causality/variability/initial/start <parameter>/<fixed>/<calculated>/nil invalid at line 21
2.2.8 Dimensions of "u" do not match start vector at line 18
2.2.9 Outputs section does not match output variables at line 30
2.2.9 Derivatives declared, but no Real/derivative variables at line 30
2.2.9 InitialUnknowns must include refs: {4}
Errors found.

A parameter variability must be fixed or tunable, but m and n are constant.
The dimenions of u say it is a one-dimensional value of three elements, but the start value is not.
The outputs section should list all of the output variables, as it says in 2.2.9.
Value reference 1 is not a derivative of anything.
The initial unknowns should include 4 because it is an output variable that is calculated.

-------------------- Resource/FMI3.xml
Checking XML
2.2.8 Variable "y" initial/variability/start <calculated>/<continuous>/[0] invalid at line 16
2.2.9 InitialUnknowns must include refs: {0}
Errors found.

A calculated value cannot have a start attribute.
The initial unknowns should include 0 because it is an output variable that is calculated.

Could someone check these?

Issues found in FMI2 configuration of Reference FMUs

A couple of errors are raised by the formal checking of the FMI2 Reference FMUs:

-------------------- Resource/FMI2.xml
2.2.7 Variable "y" initial/variability/start <calculated>/<continuous>/0 invalid at line 29
2.2.8 InitialUnknowns must include: {1}
Errors found.

A calculated value cannot have a start attribute.
The initial unknowns should include 1 because it is an output variable that is calculated, by default.

-------------------- Stair/FMI2.xml
2.2.7 Continuous variable must be Real at line 29
Errors found.

The value is declared as an Integer.

Time events are not handled in model exchange example (listed on the standard doc)

I provide a PR that shows this problem with a modified bounding ball model (called BouncingBallStairs): #70

I also fixed this issue in #71

The expected behavior of the BouncingBallStairs model is as follows:
expected_behavior

Essentially, each time there's a bounce, the model schedules a time event for about 0.1s later.

The model also shows that, when an timed event happens at the same time as a state event, it can happen that the state event is not longer handled. That is, if the ball collides with the floor (the importer detects a zero crossing), but the floor moves, then the ball will no longer collide with the floor.

The behavior obtained from #70 is the incorrect one:
bad_behavior

Typo in Reference-FMUs/src/fmi3Functions.c

In Reference-FMUs/src/fmi3Functions.c it shoud be
#define FMI3_FUNCTION_PREFIX pasteB(MODEL_IDENTIFIER, _)
instead of
#define fmi3_FUNCTION_PREFIX pasteB(MODEL_IDENTIFIER, _)

in order to be consisten with fmi3Functions.h:
#if defined(FMI3_FUNCTION_PREFIX)

Otherwise the build will fail

fmi3setClock not working

Trying to assign "fmi3ClockActive" or "fmi3ClockInactive" using "fmi3SetClock" does not work.

  1. I define in my FMU (model.c) the function setClock, for which I pass the bool value* and *index along with the model instance and the value reference:

Status setClock(ModelInstance* comp, ValueReference vr**, bool* value, size_t index*) {
switch (vr) {
case vr_inputClock1:

		// set the output variables
		M(inputClock1) = value[(*index)++];
		return OK;

}

  1. The fmi3 function "fmi3SetClock" needs then more arguments in the instruction "setClock", see below:

    fmi3Status fmi3SetClock(fmi3Instance instance,
    const fmi3ValueReference valueReferences[],
    size_t nValueReferences,
    const fmi3Clock values[],
    size_t nValues) {

    ASSERT_STATE(SetClock)

    Status status = OK;

    for (size_t i = 0; i < nValueReferences; i++) {
    if (values[i]) {
    Status s = setClock(instance, valueReferences[i]);
    status = max(status, s);
    if (status > Warning) return (fmi3Status)status;
    }
    }

    return (fmi3Status)status;
    }

Inconsistent indentation in model_exchange.c

Detected this while reading section 3.2.4. of the fmi standard doc:

    ​m = M_fmi3InstantiateModelExchange("m", MODEL_GUID, NULL, fmi3False, fmi3False, NULL, cb_logMessage);
// "m" is the instance name
// "M_" is the MODEL_IDENTIFIER

   ​if (m == NULL) {
       ​status = fmi3Error;
       ​goto TERMINATE;
   ​}

// set the start time
time  = tStart;

Request Co-Simulation FMU 3.0 for testing clocked model partitions

The intention of this request is to better understand the concept of "clocked model partitions" when applied to Co-Sim FMUs.

Hence, we would like to have a reference CS FMU featuring two "clocked model partitions", see picture below.
Each model partition contains, at least:

  • a "triggered" input clock
  • a float64 input variable
  • a float64 output variable
  • a (triggered) output clock
  • a dummy calculation inside each model partition, including e.g. clock tick counters

The dependencies of the "clocked variables" associated to its corresponding partition should be clearly represented in the model. For this reason, the description of an up-to-date ModelDescription.xml, where the clocks and other variables in the FMU are described according to their current features as described in the specification, is also welcome.

image

Error during building solution in Visual Studio

Hello,

Trying to generate a VS 2017 x 64 Solution using CMakeGUI v3.11.1 I got the error:

CMake Error at CMakeLists.txt:23 (add_compile_definitions):
Unknown CMake command "add_compile_definitions".

When I replaced "add_compile_definitions" through "add_definitions" I could generate a VS solution with 19 projects inside using the CMake Options:

FMI_TYPE CS
FMI_VERSION 3

But when building the VS solution I got the errors:

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Severity Code Description Project File Line Suppression State
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory Dahlquist E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory BouncingBall E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory BouncingBall E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 BouncingBall e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be 3 BouncingBall e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 BouncingBall e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory Clocks E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory Clocks E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 Clocks e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be 3 Clocks e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 Clocks e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory Dahlquist E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 Dahlquist e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be 3 Dahlquist e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 Dahlquist e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory Feedthrough E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory Feedthrough E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 Feedthrough e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be 3 Feedthrough e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 Feedthrough e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory LinearTransform E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory LinearTransform E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 LinearTransform e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be 3 LinearTransform e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 LinearTransform e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory Resource E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory Resource E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 Resource e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be 3 Resource e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 Resource e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory Stair E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory Stair E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 Stair e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be 3 Stair e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 Stair e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory VanDerPol E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory VanDerPol E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 VanDerPol e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be 3 VanDerPol e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 VanDerPol e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory co_simulation E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory co_simulation E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory cs_early_return E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory cs_early_return E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 cs_early_return e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be 3 cs_early_return e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 cs_early_return e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory jacobian E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory jacobian E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be 3 jacobian e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 jacobian e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 jacobian e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory model E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory model E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be 3 model e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 model e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 model e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory model_exchange E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory model_exchange E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be 3 model_exchange e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 model_exchange e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 model_exchange e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory scs_synchronous E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory scs_synchronous E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be 3 scs_synchronous e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 scs_synchronous e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 scs_synchronous e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory scs_threaded E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory scs_threaded E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be 3 scs_threaded e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 scs_threaded e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 scs_threaded e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory slave1 E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory slave1 E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be 3 slave1 e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 slave1 e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 slave1 e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1083 Cannot open source file: '_CRT_SECURE_NO_WARNINGS': No such file or directory slave2 E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1083 Cannot open source file: 'FMI_VERSION=3': No such file or directory slave2 E:\01_VVI\ModelicaReferenzFMUs\Build\c1 1
Error C1189 #error: FMI_VERSION must be 3 slave2 e:\01_vvi\modelicareferenzfmus\src\fmi3functions.c 9
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 slave2 e:\01_vvi\modelicareferenzfmus\include\model.h 5
Error C1189 #error: FMI_VERSION must be one of 1, 2 or 3 slave2 e:\01_vvi\modelicareferenzfmus\include\model.h 5
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
could you please provide a solution for this?

Thank you and regards

LinearTransform: referenced variables in Dimensions are not UInt64

In LinearTransform FMU Example, there are more multi-dimensional variables and their Dimension elements refer to another variable by valueReference attribute. The problem is that these variables are defined as Int32, which is in contradiction with the FMI 3 standard: "The referenced variable must be a variable of type < UInt64 >"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.