Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.ThermalZones.ReducedOrder.Validation.VDI6007.TestCase6.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.ThermalZones.ReducedOrder.Validation.VDI6007.TestCase6,fileNamePrefix="Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.ReducedOrder.Validation.VDI6007.TestCase6,fileNamePrefix="Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.734/1.734, allocations: 289.9 MB / 297.4 MB, free: 6.395 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001191/0.00119, allocations: 180.8 kB / 366.7 MB, free: 1.645 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.995/1.995, allocations: 205.2 MB / 0.626 GB, free: 7.129 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009527/0.0009528, allocations: 77.53 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.973e-05/1.985e-05, allocations: 4 kB / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7448/0.7449, allocations: 116.3 MB / 0.9733 GB, free: 76.14 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.98/7.725, allocations: 2.348 GB / 3.322 GB, free: 141 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003448/7.726, allocations: 97.89 kB / 3.322 GB, free: 140.9 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 0.1358/7.861, allocations: 66.65 MB / 3.387 GB, free: 73.99 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.585e-06/7.862, allocations: 3.938 kB / 3.387 GB, free: 73.99 MB / 0.948 GB Notification: Performance of Transformations before backend: time 9.893e-05/7.862, allocations: 31.98 kB / 3.387 GB, free: 73.96 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002384/7.864, allocations: 1.369 MB / 3.388 GB, free: 72.54 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 6.531e-05/7.864, allocations: 8.031 kB / 3.388 GB, free: 72.53 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003226/7.864, allocations: 166 kB / 3.388 GB, free: 72.37 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003409/7.868, allocations: 1.556 MB / 3.39 GB, free: 70.76 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/7.868, allocations: 63 kB / 3.39 GB, free: 70.69 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.375e-05/7.868, allocations: 35.91 kB / 3.39 GB, free: 70.66 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006412/7.869, allocations: 338.5 kB / 3.39 GB, free: 70.33 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006938/7.869, allocations: 469 kB / 3.391 GB, free: 69.86 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/7.87, allocations: 0 / 3.391 GB, free: 69.86 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.258e-05/7.87, allocations: 4 kB / 3.391 GB, free: 69.85 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/7.87, allocations: 12 kB / 3.391 GB, free: 69.84 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003633/7.873, allocations: 2.854 MB / 3.394 GB, free: 66.77 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00066/7.874, allocations: 391.5 kB / 3.394 GB, free: 66.38 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003861/7.874, allocations: 261.5 kB / 3.394 GB, free: 66.12 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.343e-05/7.874, allocations: 12.36 kB / 3.394 GB, free: 66.11 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004289/7.875, allocations: 272.3 kB / 3.394 GB, free: 65.84 MB / 0.948 GB Notification: Performance of pre-optimization done (n=52): time 3.236e-06/7.875, allocations: 0 / 3.394 GB, free: 65.84 MB / 0.948 GB Notification: Performance of matching and sorting (n=52): time 0.001269/7.876, allocations: 0.6599 MB / 3.395 GB, free: 65.16 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/7.876, allocations: 59.84 kB / 3.395 GB, free: 65.09 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002387/7.879, allocations: 1.768 MB / 3.397 GB, free: 63.31 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 4.111e-05/7.879, allocations: 29.7 kB / 3.397 GB, free: 63.28 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004318/7.879, allocations: 0.5969 MB / 3.398 GB, free: 62.67 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000111/7.879, allocations: 165.7 kB / 3.398 GB, free: 62.51 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-05/7.879, allocations: 0.5469 kB / 3.398 GB, free: 62.51 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.539e-05/7.879, allocations: 337.5 kB / 3.398 GB, free: 62.18 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002529/7.88, allocations: 161.5 kB / 3.398 GB, free: 62.02 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002937/7.88, allocations: 277.7 kB / 3.398 GB, free: 61.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002802/7.88, allocations: 191.5 kB / 3.399 GB, free: 61.52 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/7.88, allocations: 7.938 kB / 3.399 GB, free: 61.51 MB / 0.948 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001061/7.881, allocations: 0.7248 MB / 3.399 GB, free: 60.78 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/7.881, allocations: 4 kB / 3.399 GB, free: 60.77 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/7.881, allocations: 4 kB / 3.399 GB, free: 60.77 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004902/7.882, allocations: 175.2 kB / 3.399 GB, free: 60.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003918/7.882, allocations: 107.9 kB / 3.4 GB, free: 60.49 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002685/7.885, allocations: 2.535 MB / 3.402 GB, free: 57.85 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005891/7.885, allocations: 91.48 kB / 3.402 GB, free: 57.76 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.885e-05/7.886, allocations: 20 kB / 3.402 GB, free: 57.74 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 24 ($PRE.assEqu.nFai,assEqu.nFai,$whenCondition6,$whenCondition5,$PRE.intGai.nextTimeEvent,$whenCondition4,$PRE.reference.nextTimeEvent,$whenCondition3,$PRE.setTemp.nextTimeEvent,$whenCondition1,$whenCondition2,reference.nextTimeEvent,$PRE.reference.nextTimeEventScaled,reference.nextTimeEventScaled,$PRE.assEqu.satisfied,assEqu.satisfied,$PRE.mean.y,mean.y,intGai.nextTimeEvent,$PRE.intGai.nextTimeEventScaled,intGai.nextTimeEventScaled,setTemp.nextTimeEvent,$PRE.setTemp.nextTimeEventScaled,setTemp.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * 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%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000238/7.886, allocations: 133.5 kB / 3.402 GB, free: 57.61 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001037/7.887, allocations: 0.6638 MB / 3.403 GB, free: 56.93 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001601/7.887, allocations: 142.2 kB / 3.403 GB, free: 56.79 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001332/7.888, allocations: 0.7251 MB / 3.404 GB, free: 56.03 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/7.888, allocations: 7.953 kB / 3.404 GB, free: 56.02 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/7.888, allocations: 4 kB / 3.404 GB, free: 56.02 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/7.888, allocations: 0 / 3.404 GB, free: 56.02 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002651/7.891, allocations: 1.832 MB / 3.406 GB, free: 54.14 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/7.891, allocations: 0 / 3.406 GB, free: 54.14 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002624/7.891, allocations: 55.97 kB / 3.406 GB, free: 54.08 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003946/7.892, allocations: 177.5 kB / 3.406 GB, free: 53.9 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.597e-05/7.892, allocations: 15.94 kB / 3.406 GB, free: 53.89 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003177/7.895, allocations: 3.862 MB / 3.41 GB, free: 49.8 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/7.895, allocations: 0 / 3.41 GB, free: 49.8 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/7.896, allocations: 1.029 MB / 3.411 GB, free: 48.75 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004772/7.897, allocations: 343.2 kB / 3.411 GB, free: 48.39 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001343/7.897, allocations: 12 kB / 3.411 GB, free: 48.38 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003939/7.897, allocations: 43.91 kB / 3.411 GB, free: 48.34 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/7.898, allocations: 60.45 kB / 3.411 GB, free: 48.28 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/7.898, allocations: 19.98 kB / 3.411 GB, free: 48.26 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.00161/7.899, allocations: 1.388 MB / 3.412 GB, free: 46.87 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.8e-07/7.899, allocations: 8 kB / 3.412 GB, free: 46.86 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001155/7.9, allocations: 319.5 kB / 3.413 GB, free: 46.55 MB / 0.948 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: 15 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,intGai.nextTimeEvent,intGai.nextTimeEventScaled,reference.nextTimeEvent,reference.nextTimeEventScaled,setTemp.nextTimeEvent,setTemp.nextTimeEventScaled,assEqu.satisfied,assEqu.nFai,mean.y) * Number of discrete states: 9 (intGai.nextTimeEvent,reference.nextTimeEvent,setTemp.nextTimeEvent,mean.x,assEqu.satisfied,assEqu.nFai,setTemp.nextTimeEventScaled,reference.nextTimeEventScaled,intGai.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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%) 14,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003227/7.904, allocations: 2.428 MB / 3.415 GB, free: 44.18 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001221/7.905, allocations: 0.6289 MB / 3.416 GB, free: 43.54 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/7.905, allocations: 0 / 3.416 GB, free: 43.54 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005852/7.905, allocations: 0.5173 MB / 3.416 GB, free: 43 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/7.907, allocations: 204.9 kB / 3.416 GB, free: 42.81 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004361/7.911, allocations: 2.666 MB / 3.419 GB, free: 40.09 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007083/7.912, allocations: 1.274 MB / 3.42 GB, free: 38.79 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.0003845/7.912, allocations: 172.2 kB / 3.42 GB, free: 38.63 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005541/7.913, allocations: 495.2 kB / 3.421 GB, free: 38.14 MB / 0.948 GB Notification: Performance of SimCode: time 8.71e-07/7.913, allocations: 0 / 3.421 GB, free: 38.14 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05831/7.971, allocations: 27.65 MB / 3.448 GB, free: 10.59 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002296/7.971, allocations: 185.3 kB / 3.448 GB, free: 10.39 MB / 0.948 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_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6 -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_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.o Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c In file included from Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_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_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_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_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:512: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_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:512:82: error: expected expression Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:513:61: warning: missing terminating '"' character [-Winvalid-pp-token] Check output 'satisfied' for when violation(s) happened."); ^ Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:997:68: error: function definition is not allowed here fmi2Real getReal(ModelInstance* comp, const fmi2ValueReference vr) { ^ Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:1011:92: error: function definition is not allowed here fmi2Status setReal(ModelInstance* comp, const fmi2ValueReference vr, const fmi2Real value) { ^ Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:1027:74: error: function definition is not allowed here fmi2Integer getInteger(ModelInstance* comp, const fmi2ValueReference vr) { ^ Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:1037:98: error: function definition is not allowed here fmi2Status setInteger(ModelInstance* comp, const fmi2ValueReference vr, const fmi2Integer value) { ^ Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:1048:74: error: function definition is not allowed here fmi2Boolean getBoolean(ModelInstance* comp, const fmi2ValueReference vr) { ^ Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:1077:98: error: function definition is not allowed here fmi2Status setBoolean(ModelInstance* comp, const fmi2ValueReference vr, const fmi2Boolean value) { ^ Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:1107:72: error: function definition is not allowed here fmi2String getString(ModelInstance* comp, const fmi2ValueReference vr) { ^ Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:1121:90: error: function definition is not allowed here fmi2Status setString(ModelInstance* comp, const fmi2ValueReference vr, fmi2String value) { ^ Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:1136:97: error: function definition is not allowed here fmi2Status setExternalFunction(ModelInstance* c, const fmi2ValueReference vr, const void* value){ ^ Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:1145:79: error: function definition is not allowed here fmi2ValueReference mapInputReference2InputNumber(const fmi2ValueReference vr) { ^ Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:1152:81: error: function definition is not allowed here fmi2ValueReference mapOutputReference2OutputNumber(const fmi2ValueReference vr) { ^ Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:1162:1: error: expected '}' ^ Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.c:58:49: note: to match this '{' void setDefaultStartValues(ModelInstance *comp) { ^ 6 warnings and 13 errors generated. make: *** [: Buildings_8_Buildings_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase6_FMU.o] Error 1