Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.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.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube",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.264/2.264, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001324/0.001324, allocations: 184.8 kB / 487.4 MB, free: 5.035 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.517/1.517, allocations: 221.5 MB / 0.7824 GB, free: 0.9727 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.0009394/0.0009394, allocations: 98.31 kB / 0.9219 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.128e-05/2.13e-05, allocations: 8 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2777, allocations: 142.4 MB / 1.206 GB, free: 43.81 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.197/1.475, allocations: 441.2 MB / 1.637 GB, free: 12.18 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003551/1.475, allocations: 120.5 kB / 1.637 GB, free: 12.11 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 4.512/5.987, allocations: 1.059 GB / 2.696 GB, free: 179.5 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.625e-06/5.987, allocations: 1.312 kB / 2.696 GB, free: 179.5 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0003585/5.988, allocations: 85.5 kB / 2.696 GB, free: 179.5 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 526 * Number of variables: 526 Notification: Performance of Generate backend data structure: time 0.009673/5.998, allocations: 3.061 MB / 2.699 GB, free: 178.4 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.844e-05/5.998, allocations: 9.625 kB / 2.699 GB, free: 178.4 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002028/6, allocations: 376.9 kB / 2.699 GB, free: 178.3 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007648/6.007, allocations: 2.931 MB / 2.702 GB, free: 177.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/6.007, allocations: 66.16 kB / 2.702 GB, free: 177.8 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003954/6.008, allocations: 125.7 kB / 2.702 GB, free: 177.8 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003203/6.011, allocations: 1.456 MB / 2.704 GB, free: 177.8 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003126/6.014, allocations: 1.789 MB / 2.706 GB, free: 177.6 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.509e-05/6.014, allocations: 3.438 kB / 2.706 GB, free: 177.6 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000153/6.014, allocations: 3.625 kB / 2.706 GB, free: 177.6 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.104e-05/6.014, allocations: 47.72 kB / 2.706 GB, free: 177.6 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0141/6.029, allocations: 8.438 MB / 2.714 GB, free: 174.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001595/6.03, allocations: 1.281 MB / 2.715 GB, free: 174.7 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009423/6.031, allocations: 0.7659 MB / 2.716 GB, free: 174.7 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001987/6.033, allocations: 2.924 MB / 2.719 GB, free: 171.4 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/6.033, allocations: 54.8 kB / 2.719 GB, free: 171.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=148): time 4.148e-06/6.033, allocations: 0 / 2.719 GB, free: 171.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=148): time 0.003804/6.037, allocations: 1.639 MB / 2.72 GB, free: 171.1 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/6.037, allocations: 95.73 kB / 2.72 GB, free: 171 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002385/6.039, allocations: 1.695 MB / 2.722 GB, free: 170.8 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001401/6.04, allocations: 31.48 kB / 2.722 GB, free: 170.8 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007439/6.04, allocations: 1.208 MB / 2.723 GB, free: 170.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003787/6.041, allocations: 0.494 MB / 2.724 GB, free: 170 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.074e-05/6.041, allocations: 2.969 kB / 2.724 GB, free: 170 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001012/6.041, allocations: 371.8 kB / 2.724 GB, free: 169.7 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006525/6.042, allocations: 498.3 kB / 2.725 GB, free: 169.7 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008524/6.042, allocations: 0.8382 MB / 2.725 GB, free: 169.4 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001918/6.044, allocations: 0.8122 MB / 2.726 GB, free: 169.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.416e-06/6.044, allocations: 2.969 kB / 2.726 GB, free: 169.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=215) (initialization): time 0.003916/6.048, allocations: 1.98 MB / 2.728 GB, free: 169.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005106/6.049, allocations: 2.693 MB / 2.731 GB, free: 166.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.667e-05/6.049, allocations: 9.656 kB / 2.731 GB, free: 166.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004566/6.049, allocations: 203.4 kB / 2.731 GB, free: 166.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/6.05, allocations: 348.9 kB / 2.731 GB, free: 166.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003746/6.054, allocations: 6.891 MB / 2.738 GB, free: 160 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002595/6.057, allocations: 215.4 kB / 2.738 GB, free: 160 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/6.057, allocations: 72.47 kB / 2.738 GB, free: 160 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/6.057, allocations: 5.062 kB / 2.738 GB, free: 160 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003479/6.061, allocations: 1.672 MB / 2.74 GB, free: 159.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/6.061, allocations: 10.03 kB / 2.74 GB, free: 159.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004229/6.061, allocations: 207.9 kB / 2.74 GB, free: 159.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/6.062, allocations: 347.8 kB / 2.741 GB, free: 159.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005273/6.067, allocations: 8.647 MB / 2.749 GB, free: 152.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00245/6.07, allocations: 203 kB / 2.749 GB, free: 152.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002014/6.07, allocations: 76.52 kB / 2.749 GB, free: 152.1 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (191): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004561/6.071, allocations: 136.7 kB / 2.749 GB, free: 152 MB / 1.167 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003924/6.074, allocations: 1.614 MB / 2.751 GB, free: 151.7 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008191/6.075, allocations: 234.9 kB / 2.751 GB, free: 151.6 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004275/6.08, allocations: 2.008 MB / 2.753 GB, free: 151.4 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-05/6.08, allocations: 22.41 kB / 2.753 GB, free: 151.4 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/6.08, allocations: 3.188 kB / 2.753 GB, free: 151.4 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002827/6.082, allocations: 1.689 MB / 2.755 GB, free: 151.1 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009029/6.092, allocations: 4.257 MB / 2.759 GB, free: 150.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/6.092, allocations: 3.938 kB / 2.759 GB, free: 150.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/6.093, allocations: 274 kB / 2.759 GB, free: 150.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003946/6.093, allocations: 185.7 kB / 2.759 GB, free: 150.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/6.093, allocations: 27.06 kB / 2.759 GB, free: 150.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003906/6.097, allocations: 6.853 MB / 2.766 GB, free: 144.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/6.097, allocations: 0.8438 kB / 2.766 GB, free: 144.3 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004978/6.102, allocations: 2.722 MB / 2.769 GB, free: 143.8 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001748/6.104, allocations: 0.5587 MB / 2.769 GB, free: 143.5 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008743/6.105, allocations: 3.812 kB / 2.769 GB, free: 143.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002106/6.107, allocations: 125.7 kB / 2.769 GB, free: 143.5 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/6.107, allocations: 107.6 kB / 2.77 GB, free: 143.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001355/6.107, allocations: 55.06 kB / 2.77 GB, free: 143.5 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.002667/6.11, allocations: 1.275 MB / 2.771 GB, free: 143.4 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.5e-07/6.11, allocations: 0 / 2.771 GB, free: 143.4 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.00845/6.118, allocations: 1.96 MB / 2.773 GB, free: 143 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (intHex.vol1.dynBal.U,intHex.vol2.dynBal.U,intHex.vol3.dynBal.U,intHex.vol4.dynBal.U,intHex.intRes2UTub.capFil1.T,intHex.intRes2UTub.capFil2.T,intHex.intRes2UTub.capFil3.T,intHex.intRes2UTub.capFil4.T,senTem.T,senTem1.T,senTem2.T,senTem3.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (140): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01013/6.128, allocations: 5.126 MB / 2.778 GB, free: 141.4 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.004937/6.133, allocations: 3.435 MB / 2.781 GB, free: 140.2 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/6.133, allocations: 0 / 2.781 GB, free: 140.2 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001358/6.135, allocations: 1.163 MB / 2.782 GB, free: 139.8 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006391/6.141, allocations: 1.125 MB / 2.783 GB, free: 139.8 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/6.153, allocations: 4.7 MB / 2.788 GB, free: 138.5 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001822/6.155, allocations: 1.809 MB / 2.79 GB, free: 137.8 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.003704/6.159, allocations: 0.7355 MB / 2.79 GB, free: 137.8 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001392/6.16, allocations: 1.094 MB / 2.791 GB, free: 137.8 MB / 1.167 GB Notification: Performance of SimCode: time 1.152e-06/6.16, allocations: 0 / 2.791 GB, free: 137.8 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1405/6.301, allocations: 80.21 MB / 2.87 GB, free: 133.8 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001797/6.301, allocations: 229.1 kB / 2.87 GB, free: 133.5 MB / 1.167 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. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DOMC_MODEL_PREFIX=Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=14 -DOMC_NUM_NONLINEAR_SYSTEMS=4 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_FMU.o Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_FMU.c In file included from Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_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_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_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); ^ 4 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DOMC_MODEL_PREFIX=Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=14 -DOMC_NUM_NONLINEAR_SYSTEMS=4 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube.o Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube.c In file included from Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube.c:7: In file included from ./Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_model.h:5: 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); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DOMC_MODEL_PREFIX=Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=14 -DOMC_NUM_NONLINEAR_SYSTEMS=4 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.o Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.c In file included from Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.c:1: In file included from ./Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.h:3: In file included from include/meta/meta_modelica.h:49: 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); ^ Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.c:1060:59: error: cannot take the address of an rvalue of type 'real_array_t' (aka 'struct base_array_s') copy_real_array_data(add_alloc_scalar_real_array(_TBor, &mul_alloc_real_matrix_product_smart(_R0, _QPip_flow)), &_TFlu); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.o] Error 1