Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.ThermalZones.ReducedOrder.Validation.VDI6007.TestCase2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.ThermalZones.ReducedOrder.Validation.VDI6007.TestCase2,fileNamePrefix="Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.ReducedOrder.Validation.VDI6007.TestCase2,fileNamePrefix="Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.217/2.217, allocations: 387.4 MB / 394.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001146, allocations: 184.8 kB / 487.4 MB, free: 5.055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.652/1.652, allocations: 221.5 MB / 0.7824 GB, free: 1.039 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 98.12 kB / 0.9219 GB, free: 2.266 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.053e-05/2.064e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3437, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.965/7.309, allocations: 2.188 GB / 3.394 GB, free: 136.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003415/7.31, allocations: 95.94 kB / 3.394 GB, free: 136.1 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1258/7.435, allocations: 64.27 MB / 3.456 GB, free: 71.32 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.014e-06/7.435, allocations: 3.938 kB / 3.456 GB, free: 71.31 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.411e-05/7.436, allocations: 28 kB / 3.457 GB, free: 71.29 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001943/7.437, allocations: 1.222 MB / 3.458 GB, free: 70.02 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.718e-05/7.438, allocations: 12.03 kB / 3.458 GB, free: 70.01 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001936/7.438, allocations: 138.3 kB / 3.458 GB, free: 69.87 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002916/7.441, allocations: 1.456 MB / 3.459 GB, free: 68.36 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/7.441, allocations: 63 kB / 3.459 GB, free: 68.29 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.936e-05/7.441, allocations: 35.84 kB / 3.459 GB, free: 68.26 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000583/7.441, allocations: 310.5 kB / 3.46 GB, free: 67.96 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006664/7.442, allocations: 425.1 kB / 3.46 GB, free: 67.53 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/7.442, allocations: 0 / 3.46 GB, free: 67.53 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.089e-05/7.442, allocations: 0 / 3.46 GB, free: 67.53 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/7.442, allocations: 15.94 kB / 3.46 GB, free: 67.51 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003298/7.446, allocations: 2.63 MB / 3.463 GB, free: 64.68 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006301/7.446, allocations: 371.9 kB / 3.463 GB, free: 64.31 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003378/7.447, allocations: 233.4 kB / 3.463 GB, free: 64.08 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/7.447, allocations: 4.328 kB / 3.463 GB, free: 64.08 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003727/7.447, allocations: 249.9 kB / 3.463 GB, free: 63.82 MB / 1.151 GB Notification: Performance of pre-optimization done (n=45): time 2.264e-06/7.447, allocations: 3.938 kB / 3.463 GB, free: 63.82 MB / 1.151 GB Notification: Performance of matching and sorting (n=45): time 0.001084/7.448, allocations: 0.5842 MB / 3.464 GB, free: 63.22 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/7.448, allocations: 59.41 kB / 3.464 GB, free: 63.15 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002061/7.45, allocations: 1.455 MB / 3.466 GB, free: 61.68 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/7.45, allocations: 25.7 kB / 3.466 GB, free: 61.65 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003699/7.451, allocations: 0.5137 MB / 3.466 GB, free: 61.13 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/7.451, allocations: 145.9 kB / 3.466 GB, free: 60.99 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/7.451, allocations: 0 / 3.466 GB, free: 60.99 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001045/7.451, allocations: 322 kB / 3.467 GB, free: 60.67 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/7.451, allocations: 157.1 kB / 3.467 GB, free: 60.52 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002779/7.451, allocations: 258.8 kB / 3.467 GB, free: 60.22 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/7.452, allocations: 186.2 kB / 3.467 GB, free: 60.04 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/7.452, allocations: 0 / 3.467 GB, free: 60.04 MB / 1.151 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.000993/7.453, allocations: 0.6639 MB / 3.468 GB, free: 59.37 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/7.453, allocations: 12.38 kB / 3.468 GB, free: 59.36 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/7.453, allocations: 4 kB / 3.468 GB, free: 59.35 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004546/7.453, allocations: 152.8 kB / 3.468 GB, free: 59.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000408/7.454, allocations: 107.8 kB / 3.468 GB, free: 59.09 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002691/7.456, allocations: 2.502 MB / 3.47 GB, free: 56.49 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005268/7.457, allocations: 79.61 kB / 3.471 GB, free: 56.41 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.621e-05/7.457, allocations: 20 kB / 3.471 GB, free: 56.39 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.assEqu.nFai,assEqu.nFai,$whenCondition5,$whenCondition4,$PRE.intGai.nextTimeEvent,$whenCondition3,$PRE.reference.nextTimeEvent,$whenCondition1,$whenCondition2,reference.nextTimeEvent,$PRE.reference.nextTimeEventScaled,reference.nextTimeEventScaled,$PRE.assEqu.satisfied,assEqu.satisfied,$PRE.mean.y_last,mean.y_last,intGai.nextTimeEvent,$PRE.intGai.nextTimeEventScaled,intGai.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001695/7.457, allocations: 130.5 kB / 3.471 GB, free: 56.26 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00103/7.458, allocations: 0.5949 MB / 3.471 GB, free: 55.65 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/7.458, allocations: 118.5 kB / 3.471 GB, free: 55.53 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001171/7.459, allocations: 0.6457 MB / 3.472 GB, free: 54.86 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/7.459, allocations: 4 kB / 3.472 GB, free: 54.86 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/7.459, allocations: 4 kB / 3.472 GB, free: 54.85 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/7.459, allocations: 3.984 kB / 3.472 GB, free: 54.85 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002319/7.462, allocations: 1.615 MB / 3.474 GB, free: 53.19 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/7.462, allocations: 0 / 3.474 GB, free: 53.19 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002322/7.462, allocations: 51.97 kB / 3.474 GB, free: 53.14 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003928/7.462, allocations: 165.6 kB / 3.474 GB, free: 52.97 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.448e-05/7.462, allocations: 15.98 kB / 3.474 GB, free: 52.95 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002925/7.465, allocations: 3.803 MB / 3.478 GB, free: 48.93 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/7.465, allocations: 0 / 3.478 GB, free: 48.93 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/7.467, allocations: 0.9219 MB / 3.478 GB, free: 47.98 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003762/7.467, allocations: 303.5 kB / 3.479 GB, free: 47.66 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/7.467, allocations: 8 kB / 3.479 GB, free: 47.66 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003476/7.468, allocations: 35.97 kB / 3.479 GB, free: 47.62 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/7.468, allocations: 60.28 kB / 3.479 GB, free: 47.56 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/7.468, allocations: 15.98 kB / 3.479 GB, free: 47.55 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001222/7.469, allocations: 1.147 MB / 3.48 GB, free: 46.39 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.81e-07/7.469, allocations: 0 / 3.48 GB, free: 46.39 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001105/7.47, allocations: 283.6 kB / 3.48 GB, free: 46.12 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (thermalZoneTwoElements.extWallRC.thermCapExt[1].T,thermalZoneTwoElements.intWallRC.thermCapInt[1].T,assEqu.diff,mean.x) * Number of discrete variables: 12 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,intGai.nextTimeEvent,intGai.nextTimeEventScaled,reference.nextTimeEvent,reference.nextTimeEventScaled,assEqu.satisfied,assEqu.nFai,mean.y_last) * Number of discrete states: 7 (intGai.nextTimeEvent,reference.nextTimeEvent,mean.x,assEqu.satisfied,assEqu.nFai,reference.nextTimeEventScaled,intGai.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 13,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002844/7.473, allocations: 2.333 MB / 3.482 GB, free: 43.86 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001013/7.474, allocations: 0.5761 MB / 3.483 GB, free: 43.27 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/7.474, allocations: 0 / 3.483 GB, free: 43.27 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005973/7.475, allocations: 496.6 kB / 3.484 GB, free: 42.76 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009308/7.476, allocations: 177.9 kB / 3.484 GB, free: 42.59 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003402/7.479, allocations: 2.266 MB / 3.486 GB, free: 40.27 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005776/7.48, allocations: 1.181 MB / 3.487 GB, free: 39.06 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0003174/7.48, allocations: 140.5 kB / 3.487 GB, free: 38.93 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004277/7.48, allocations: 399.3 kB / 3.488 GB, free: 38.54 MB / 1.151 GB Notification: Performance of SimCode: time 1.132e-06/7.48, allocations: 0 / 3.488 GB, free: 38.54 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05307/7.533, allocations: 24.6 MB / 3.512 GB, free: 14.06 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001972/7.534, allocations: 187.7 kB / 3.512 GB, free: 13.87 MB / 1.151 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=3 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.o Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c In file included from Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:9: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:54: include/fmi2/fmu2_model_interface.c:73:11: warning: enumeration value 'modelSlaveInitialized' not handled in switch [-Wswitch] switch (comp->state) ^ include/fmi2/fmu2_model_interface.c:162:16: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] GC_vasprintf(&str, msg, args); ^~~~ include/util/modelica_string.h:71:31: note: passing argument to parameter 'strp' here int GC_vasprintf(const char **strp, const char *fmt, va_list ap); ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:439:82: warning: missing terminating '"' character [-Winvalid-pp-token] comp->fmuData->modelData->stringParameterData[0].attribute.start = mmc_mk_scon("Inputs differ by more than threShold. ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:439:82: error: expected expression Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:440:61: warning: missing terminating '"' character [-Winvalid-pp-token] Check output 'satisfied' for when violation(s) happened."); ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:847:68: error: function definition is not allowed here fmi2Real getReal(ModelInstance* comp, const fmi2ValueReference vr) { ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:861:92: error: function definition is not allowed here fmi2Status setReal(ModelInstance* comp, const fmi2ValueReference vr, const fmi2Real value) { ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:877:74: error: function definition is not allowed here fmi2Integer getInteger(ModelInstance* comp, const fmi2ValueReference vr) { ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:887:98: error: function definition is not allowed here fmi2Status setInteger(ModelInstance* comp, const fmi2ValueReference vr, const fmi2Integer value) { ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:898:74: error: function definition is not allowed here fmi2Boolean getBoolean(ModelInstance* comp, const fmi2ValueReference vr) { ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:924:98: error: function definition is not allowed here fmi2Status setBoolean(ModelInstance* comp, const fmi2ValueReference vr, const fmi2Boolean value) { ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:951:72: error: function definition is not allowed here fmi2String getString(ModelInstance* comp, const fmi2ValueReference vr) { ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:963:90: error: function definition is not allowed here fmi2Status setString(ModelInstance* comp, const fmi2ValueReference vr, fmi2String value) { ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:976:97: error: function definition is not allowed here fmi2Status setExternalFunction(ModelInstance* c, const fmi2ValueReference vr, const void* value){ ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:985:79: error: function definition is not allowed here fmi2ValueReference mapInputReference2InputNumber(const fmi2ValueReference vr) { ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:992:81: error: function definition is not allowed here fmi2ValueReference mapOutputReference2OutputNumber(const fmi2ValueReference vr) { ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:1002:1: error: expected '}' ^ Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.c:58:49: note: to match this '{' void setDefaultStartValues(ModelInstance *comp) { ^ 6 warnings and 13 errors generated. make: *** [: Buildings_9_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase2_FMU.o] Error 1