Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.ThermalZones.ReducedOrder.Validation.VDI6007.TestCase7.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.ThermalZones.ReducedOrder.Validation.VDI6007.TestCase7,fileNamePrefix="BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.ThermalZones.ReducedOrder.Validation.VDI6007.TestCase7,fileNamePrefix="BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.878/0.878, allocations: 141.8 MB / 149.3 MB, free: 9.211 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 176.9 kB / 182.2 MB, free: 9.461 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.656/1.656, allocations: 221.5 MB / 436.4 MB, free: 13.36 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 92.09 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002118/0.002118, allocations: 272.9 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.321e-05/2.322e-05, allocations: 4 kB / 0.6766 GB, free: 12.74 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.521/0.5211, allocations: 82.76 MB / 0.7575 GB, free: 31.95 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.008/6.529, allocations: 2.152 GB / 2.909 GB, free: 131.9 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003435/6.53, allocations: 95.98 kB / 2.909 GB, free: 131.9 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.1446/6.674, allocations: 70.74 MB / 2.978 GB, free: 69.22 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.024e-06/6.674, allocations: 0 / 2.978 GB, free: 69.22 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001384/6.675, allocations: 31.98 kB / 2.979 GB, free: 69.19 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 157 * Number of variables: 157 Notification: Performance of Generate backend data structure: time 0.002936/6.678, allocations: 1.54 MB / 2.98 GB, free: 67.59 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/6.678, allocations: 12.03 kB / 2.98 GB, free: 67.58 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004905/6.678, allocations: 189.7 kB / 2.98 GB, free: 67.39 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004011/6.682, allocations: 1.671 MB / 2.982 GB, free: 65.68 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/6.682, allocations: 74.94 kB / 2.982 GB, free: 65.59 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.656e-05/6.682, allocations: 40 kB / 2.982 GB, free: 65.55 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008188/6.683, allocations: 438.5 kB / 2.982 GB, free: 65.13 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008778/6.684, allocations: 0.5832 MB / 2.983 GB, free: 64.51 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.565e-05/6.684, allocations: 3.984 kB / 2.983 GB, free: 64.51 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.536e-05/6.684, allocations: 8 kB / 2.983 GB, free: 64.5 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/6.684, allocations: 12 kB / 2.983 GB, free: 64.49 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004727/6.689, allocations: 3.477 MB / 2.986 GB, free: 60.79 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008385/6.69, allocations: 0.5131 MB / 2.987 GB, free: 60.26 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004303/6.69, allocations: 302.5 kB / 2.987 GB, free: 59.96 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.087e-05/6.69, allocations: 8.562 kB / 2.987 GB, free: 59.95 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000486/6.691, allocations: 325.9 kB / 2.987 GB, free: 59.62 MB / 0.698 GB Notification: Performance of pre-optimization done (n=65): time 3.947e-06/6.691, allocations: 0 / 2.987 GB, free: 59.62 MB / 0.698 GB Notification: Performance of matching and sorting (n=65): time 0.001772/6.693, allocations: 0.846 MB / 2.988 GB, free: 58.76 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/6.693, allocations: 119.4 kB / 2.988 GB, free: 58.62 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002803/6.696, allocations: 1.867 MB / 2.99 GB, free: 56.75 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.000128/6.696, allocations: 37.62 kB / 2.99 GB, free: 56.7 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004921/6.696, allocations: 0.6949 MB / 2.991 GB, free: 56 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/6.696, allocations: 197.1 kB / 2.991 GB, free: 55.81 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.025e-05/6.696, allocations: 4 kB / 2.991 GB, free: 55.8 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.64e-05/6.696, allocations: 333.9 kB / 2.991 GB, free: 55.47 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003044/6.697, allocations: 201.5 kB / 2.992 GB, free: 55.28 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003507/6.697, allocations: 350 kB / 2.992 GB, free: 54.88 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003553/6.698, allocations: 240.7 kB / 2.992 GB, free: 54.64 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/6.698, allocations: 4 kB / 2.992 GB, free: 54.64 MB / 0.698 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001724/6.699, allocations: 0.9342 MB / 2.993 GB, free: 53.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/6.699, allocations: 9.75 kB / 2.993 GB, free: 53.69 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/6.699, allocations: 4 kB / 2.993 GB, free: 53.68 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006833/6.7, allocations: 235.3 kB / 2.993 GB, free: 53.45 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000442/6.7, allocations: 127.8 kB / 2.994 GB, free: 53.33 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003642/6.704, allocations: 3.159 MB / 2.997 GB, free: 50.05 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/6.705, allocations: 103.4 kB / 2.997 GB, free: 49.95 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.458e-05/6.705, allocations: 28 kB / 2.997 GB, free: 49.93 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 25 ($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_last,mean.y_last,intGai.nextTimeEvent,$PRE.intGai.nextTimeEventScaled,intGai.nextTimeEventScaled,setTemp.nextTimeEvent,$PRE.setTemp.nextTimeEventScaled,setTemp.nextTimeEventScaled,conHeaCoo.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * 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: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002028/6.705, allocations: 135.2 kB / 2.997 GB, free: 49.79 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001471/6.707, allocations: 0.8499 MB / 2.998 GB, free: 48.92 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001929/6.707, allocations: 166 kB / 2.998 GB, free: 48.76 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/6.709, allocations: 0.922 MB / 2.999 GB, free: 47.82 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/6.709, allocations: 11.98 kB / 2.999 GB, free: 47.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/6.709, allocations: 3.938 kB / 2.999 GB, free: 47.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/6.709, allocations: 0 / 2.999 GB, free: 47.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003362/6.712, allocations: 2.162 MB / 3.001 GB, free: 45.59 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/6.712, allocations: 0 / 3.001 GB, free: 45.59 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002986/6.713, allocations: 71.89 kB / 3.001 GB, free: 45.52 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006217/6.713, allocations: 251.6 kB / 3.001 GB, free: 45.27 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.233e-05/6.713, allocations: 7.984 kB / 3.001 GB, free: 45.26 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003889/6.717, allocations: 4.304 MB / 3.005 GB, free: 40.72 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/6.717, allocations: 0 / 3.005 GB, free: 40.72 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002161/6.72, allocations: 1.261 MB / 3.007 GB, free: 39.43 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005684/6.72, allocations: 378.9 kB / 3.007 GB, free: 39.04 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000156/6.72, allocations: 8 kB / 3.007 GB, free: 39.04 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004949/6.721, allocations: 59.86 kB / 3.007 GB, free: 38.98 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/6.721, allocations: 72.44 kB / 3.007 GB, free: 38.91 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.135e-05/6.721, allocations: 23.92 kB / 3.007 GB, free: 38.88 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001724/6.723, allocations: 1.463 MB / 3.009 GB, free: 37.43 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.11e-07/6.723, allocations: 0 / 3.009 GB, free: 37.43 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001334/6.724, allocations: 376.1 kB / 3.009 GB, free: 37.06 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (thermalZoneTwoElements.extWallRC.thermCapExt[1].T,thermalZoneTwoElements.intWallRC.thermCapInt[1].T,conHeaCoo.I.y,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_last) * 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 (42): * Single equations (assignments): 32 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {3 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.003667/6.728, allocations: 2.697 MB / 3.012 GB, free: 34.42 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001406/6.729, allocations: 0.7447 MB / 3.012 GB, free: 33.67 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/6.729, allocations: 8.188 kB / 3.012 GB, free: 33.66 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008844/6.73, allocations: 0.6172 MB / 3.013 GB, free: 33.02 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001707/6.732, allocations: 239.5 kB / 3.013 GB, free: 32.79 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005434/6.737, allocations: 2.918 MB / 3.016 GB, free: 29.82 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008126/6.738, allocations: 1.349 MB / 3.017 GB, free: 28.45 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0005622/6.739, allocations: 190 kB / 3.017 GB, free: 28.26 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006402/6.739, allocations: 0.5696 MB / 3.018 GB, free: 27.69 MB / 0.698 GB Notification: Performance of SimCode: time 1.021e-06/6.739, allocations: 0 / 3.018 GB, free: 27.69 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5651/7.304, allocations: 32.54 MB / 3.05 GB, free: 212.3 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/7.305, allocations: 197.6 kB / 3.05 GB, free: 212.2 MB / 0.698 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=BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=1 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.o BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c In file included from BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_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 BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_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); ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:577:82: warning: missing terminating '"' character [-Winvalid-pp-token] comp->fmuData->modelData->stringParameterData[0].attribute.start = mmc_mk_scon("Inputs differ by more than threShold. ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:577:82: error: expected expression BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:578:61: warning: missing terminating '"' character [-Winvalid-pp-token] Check output 'satisfied' for when violation(s) happened."); ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:1128:68: error: function definition is not allowed here fmi2Real getReal(ModelInstance* comp, const fmi2ValueReference vr) { ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:1142:92: error: function definition is not allowed here fmi2Status setReal(ModelInstance* comp, const fmi2ValueReference vr, const fmi2Real value) { ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:1158:74: error: function definition is not allowed here fmi2Integer getInteger(ModelInstance* comp, const fmi2ValueReference vr) { ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:1168:98: error: function definition is not allowed here fmi2Status setInteger(ModelInstance* comp, const fmi2ValueReference vr, const fmi2Integer value) { ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:1179:74: error: function definition is not allowed here fmi2Boolean getBoolean(ModelInstance* comp, const fmi2ValueReference vr) { ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:1215:98: error: function definition is not allowed here fmi2Status setBoolean(ModelInstance* comp, const fmi2ValueReference vr, const fmi2Boolean value) { ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:1252:72: error: function definition is not allowed here fmi2String getString(ModelInstance* comp, const fmi2ValueReference vr) { ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:1266:90: error: function definition is not allowed here fmi2Status setString(ModelInstance* comp, const fmi2ValueReference vr, fmi2String value) { ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:1281:97: error: function definition is not allowed here fmi2Status setExternalFunction(ModelInstance* c, const fmi2ValueReference vr, const void* value){ ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:1290:79: error: function definition is not allowed here fmi2ValueReference mapInputReference2InputNumber(const fmi2ValueReference vr) { ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:1297:81: error: function definition is not allowed here fmi2ValueReference mapOutputReference2OutputNumber(const fmi2ValueReference vr) { ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:1307:1: error: expected '}' ^ BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.c:58:49: note: to match this '{' void setDefaultStartValues(ModelInstance *comp) { ^ 6 warnings and 13 errors generated. make: *** [: BuildingSystems_BuildingSystems_ThermalZones_ReducedOrder_Validation_VDI6007_TestCase7_FMU.o] Error 1