Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.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.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.938/0.938, allocations: 141.8 MB / 149.3 MB, free: 9.207 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.001091/0.001091, allocations: 180.8 kB / 182.2 MB, free: 9.441 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.517/1.517, allocations: 221.5 MB / 436.4 MB, free: 13.29 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.0008829/0.000883, allocations: 87.7 kB / 0.5074 GB, free: 10.12 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001785/0.001785, allocations: 273.6 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.927e-05/2.955e-05, allocations: 4 kB / 0.6767 GB, free: 12.7 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5419/0.5419, allocations: 82.78 MB / 0.7575 GB, free: 31.93 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9824/1.524, allocations: 401.2 MB / 1.149 GB, free: 12.48 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003557/1.525, allocations: 121.5 kB / 1.149 GB, free: 12.41 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.412/5.937, allocations: 1.034 GB / 2.183 GB, free: 59.19 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.835e-06/5.937, allocations: 0 / 2.183 GB, free: 59.19 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0004985/5.938, allocations: 82.03 kB / 2.183 GB, free: 59.11 MB / 0.7136 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.01513/5.953, allocations: 3.051 MB / 2.186 GB, free: 56.03 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 9.224e-05/5.953, allocations: 16.02 kB / 2.186 GB, free: 56.01 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003568/5.957, allocations: 368.6 kB / 2.187 GB, free: 55.65 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01024/5.967, allocations: 2.9 MB / 2.19 GB, free: 52.74 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001618/5.967, allocations: 68 kB / 2.19 GB, free: 52.68 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001014/5.968, allocations: 131.9 kB / 2.19 GB, free: 52.55 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00498/5.973, allocations: 1.453 MB / 2.191 GB, free: 51.09 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005569/5.979, allocations: 1.784 MB / 2.193 GB, free: 49.2 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.811e-05/5.979, allocations: 11.84 kB / 2.193 GB, free: 49.19 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003262/5.979, allocations: 3.75 kB / 2.193 GB, free: 49.19 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.314e-05/5.979, allocations: 56 kB / 2.193 GB, free: 49.13 MB / 0.7136 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.01548/5.995, allocations: 8.447 MB / 2.201 GB, free: 40.51 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00172/5.996, allocations: 1.275 MB / 2.203 GB, free: 39.19 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009674/5.997, allocations: 0.7693 MB / 2.203 GB, free: 38.42 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001954/5.999, allocations: 2.92 MB / 2.206 GB, free: 34.86 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.676e-05/6, allocations: 47.88 kB / 2.206 GB, free: 34.81 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=148): time 3.777e-06/6, allocations: 0 / 2.206 GB, free: 34.81 MB / 0.7136 GB Notification: Performance of matching and sorting (n=148): time 0.004151/6.004, allocations: 1.646 MB / 2.208 GB, free: 33.14 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.573e-05/6.004, allocations: 90.42 kB / 2.208 GB, free: 33.03 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003006/6.007, allocations: 1.693 MB / 2.21 GB, free: 31.31 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.000203/6.007, allocations: 29.7 kB / 2.21 GB, free: 31.28 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007148/6.008, allocations: 1.207 MB / 2.211 GB, free: 30.05 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004307/6.008, allocations: 0.4964 MB / 2.211 GB, free: 29.55 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.199e-05/6.008, allocations: 0 / 2.211 GB, free: 29.55 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001056/6.008, allocations: 369.9 kB / 2.212 GB, free: 29.18 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007114/6.009, allocations: 499.9 kB / 2.212 GB, free: 28.7 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000912/6.01, allocations: 0.8424 MB / 2.213 GB, free: 27.72 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001941/6.012, allocations: 0.8126 MB / 2.214 GB, free: 26.92 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.146e-06/6.012, allocations: 0 / 2.214 GB, free: 26.92 MB / 0.7136 GB Notification: Performance of matching and sorting (n=215) (initialization): time 0.004055/6.016, allocations: 1.975 MB / 2.216 GB, free: 24.91 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005576/6.017, allocations: 2.695 MB / 2.218 GB, free: 21.95 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.933e-05/6.017, allocations: 11.94 kB / 2.218 GB, free: 21.94 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005079/6.017, allocations: 209 kB / 2.218 GB, free: 21.71 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/6.018, allocations: 347.5 kB / 2.219 GB, free: 21.38 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00382/6.022, allocations: 6.885 MB / 2.226 GB, free: 14 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003183/6.025, allocations: 226.4 kB / 2.226 GB, free: 13.77 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002175/6.026, allocations: 67.98 kB / 2.226 GB, free: 13.71 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/6.026, allocations: 4 kB / 2.226 GB, free: 13.7 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003852/6.029, allocations: 1.668 MB / 2.227 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.448e-05/6.029, allocations: 8.5 kB / 2.227 GB, free: 12.01 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004491/6.03, allocations: 212.4 kB / 2.228 GB, free: 11.79 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/6.031, allocations: 351.5 kB / 2.228 GB, free: 11.44 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005322/6.036, allocations: 8.643 MB / 2.236 GB, free: 2.125 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002804/6.039, allocations: 210.4 kB / 2.237 GB, free: 1.922 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/6.039, allocations: 71.55 kB / 2.237 GB, free: 1.855 MB / 0.7136 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.000429/6.04, allocations: 149.1 kB / 2.237 GB, free: 1.703 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003705/6.044, allocations: 1.607 MB / 2.238 GB, free: 72 kB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000549/6.044, allocations: 237 kB / 2.239 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004864/6.049, allocations: 2.007 MB / 2.241 GB, free: 13.81 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.262e-05/6.049, allocations: 23.98 kB / 2.241 GB, free: 13.79 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/6.049, allocations: 0 / 2.241 GB, free: 13.79 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003359/6.052, allocations: 1.681 MB / 2.242 GB, free: 12.04 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009393/6.062, allocations: 4.27 MB / 2.246 GB, free: 7.703 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.455e-06/6.062, allocations: 0 / 2.246 GB, free: 7.703 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/6.063, allocations: 274.3 kB / 2.247 GB, free: 7.438 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004455/6.063, allocations: 185.2 kB / 2.247 GB, free: 7.238 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.854e-05/6.064, allocations: 23.98 kB / 2.247 GB, free: 7.215 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6912/6.755, allocations: 6.839 MB / 2.254 GB, free: 75.85 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.819e-06/6.755, allocations: 1.531 kB / 2.254 GB, free: 75.85 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007675/6.763, allocations: 2.718 MB / 2.256 GB, free: 75.51 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002228/6.765, allocations: 0.5543 MB / 2.257 GB, free: 75.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003908/6.765, allocations: 9.922 kB / 2.257 GB, free: 75.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00147/6.767, allocations: 128.3 kB / 2.257 GB, free: 75.41 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002736/6.767, allocations: 108.4 kB / 2.257 GB, free: 75.41 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/6.767, allocations: 61.47 kB / 2.257 GB, free: 75.41 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.002826/6.77, allocations: 1.261 MB / 2.258 GB, free: 75.27 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.61e-07/6.77, allocations: 0 / 2.258 GB, free: 75.27 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.007901/6.778, allocations: 1.96 MB / 2.26 GB, free: 75.2 MB / 0.7292 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.009731/6.788, allocations: 5.145 MB / 2.265 GB, free: 73.8 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.005199/6.793, allocations: 3.428 MB / 2.269 GB, free: 72.65 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/6.793, allocations: 3.812 kB / 2.269 GB, free: 72.65 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001551/6.795, allocations: 1.164 MB / 2.27 GB, free: 72.23 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008667/6.803, allocations: 1.134 MB / 2.271 GB, free: 72.22 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/6.817, allocations: 4.684 MB / 2.275 GB, free: 71.14 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001885/6.819, allocations: 1.801 MB / 2.277 GB, free: 70.4 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.004326/6.823, allocations: 0.726 MB / 2.278 GB, free: 70.38 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00166/6.825, allocations: 1.093 MB / 2.279 GB, free: 70.38 MB / 0.7292 GB Notification: Performance of SimCode: time 2.144e-06/6.825, allocations: 0 / 2.279 GB, free: 70.38 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.173/6.998, allocations: 80.42 MB / 2.357 GB, free: 65.9 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002012/6.998, allocations: 250.7 kB / 2.358 GB, free: 65.61 MB / 0.7292 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=BuildingSystems_BuildingSystems_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 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_FMU.o BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_FMU.c In file included from BuildingSystems_BuildingSystems_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 BuildingSystems_BuildingSystems_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=BuildingSystems_BuildingSystems_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 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube.o BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube.c In file included from BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube.c:7: In file included from ./BuildingSystems_BuildingSystems_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=BuildingSystems_BuildingSystems_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 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.o BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.c In file included from BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.c:1: In file included from ./BuildingSystems_BuildingSystems_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); ^ BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.c:1098: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: *** [: BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.o] Error 1