Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.conf.json 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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,fileNamePrefix="IDEAS_dev_IDEAS_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/Complex 4.0.0+maint.om/package.mo): time 0.002067/0.002067, allocations: 172.5 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.485/1.485, allocations: 133.5 MB / 141.6 MB, free: 2.91 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.074/3.074, allocations: 221.5 MB / 395.4 MB, free: 10.81 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.002481/0.002481, allocations: 103.5 kB / 478.2 MB, free: 1.34 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 6.598e-05/6.592e-05, allocations: 4 kB / 0.5536 GB, free: 8.938 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9518/0.9519, allocations: 82.3 MB / 0.634 GB, free: 40.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.665/2.617, allocations: 403.1 MB / 1.028 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005764/2.618, allocations: 122.2 kB / 1.028 GB, free: 14.2 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 6.88/9.498, allocations: 1.035 GB / 2.063 GB, free: 50.51 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.675e-06/9.498, allocations: 0 / 2.063 GB, free: 50.51 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0007487/9.499, allocations: 79.16 kB / 2.063 GB, free: 50.44 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: 526 * Number of variables: 526 Notification: Performance of Generate backend data structure: time 0.01441/9.513, allocations: 3.057 MB / 2.066 GB, free: 47.35 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 7.72e-05/9.513, allocations: 12.03 kB / 2.066 GB, free: 47.34 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00313/9.516, allocations: 383.7 kB / 2.067 GB, free: 46.96 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01155/9.528, allocations: 2.931 MB / 2.069 GB, free: 44.02 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002748/9.528, allocations: 64 kB / 2.07 GB, free: 43.96 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001439/9.53, allocations: 135.9 kB / 2.07 GB, free: 43.83 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006344/9.536, allocations: 1.453 MB / 2.071 GB, free: 42.37 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007825/9.544, allocations: 1.787 MB / 2.073 GB, free: 40.48 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001626/9.544, allocations: 7.938 kB / 2.073 GB, free: 40.47 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006709/9.545, allocations: 3.938 kB / 2.073 GB, free: 40.47 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.917e-05/9.545, allocations: 52 kB / 2.073 GB, free: 40.42 MB / 0.698 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.02203/9.567, allocations: 8.442 MB / 2.081 GB, free: 31.74 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/9.569, allocations: 1.271 MB / 2.082 GB, free: 30.42 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001559/9.571, allocations: 0.7731 MB / 2.083 GB, free: 29.64 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003032/9.574, allocations: 2.922 MB / 2.086 GB, free: 26.08 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.986e-05/9.574, allocations: 47.88 kB / 2.086 GB, free: 26.02 MB / 0.698 GB Notification: Performance of pre-optimization done (n=148): time 7.895e-06/9.574, allocations: 0 / 2.086 GB, free: 26.02 MB / 0.698 GB Notification: Performance of matching and sorting (n=148): time 0.005923/9.58, allocations: 1.639 MB / 2.088 GB, free: 24.35 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.451e-05/9.58, allocations: 90.42 kB / 2.088 GB, free: 24.25 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006705/9.587, allocations: 1.698 MB / 2.089 GB, free: 22.53 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0006885/9.588, allocations: 25.7 kB / 2.089 GB, free: 22.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.002181/9.59, allocations: 1.223 MB / 2.091 GB, free: 21.26 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.00142/9.591, allocations: 0.4926 MB / 2.091 GB, free: 20.76 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003078/9.592, allocations: 0 / 2.091 GB, free: 20.76 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002849/9.592, allocations: 369.9 kB / 2.091 GB, free: 20.39 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/9.593, allocations: 495.9 kB / 2.092 GB, free: 19.91 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/9.595, allocations: 0.8424 MB / 2.093 GB, free: 18.93 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002985/9.598, allocations: 0.8084 MB / 2.093 GB, free: 18.13 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.559e-05/9.598, allocations: 0 / 2.093 GB, free: 18.13 MB / 0.698 GB Notification: Performance of matching and sorting (n=215) (initialization): time 0.006116/9.604, allocations: 1.977 MB / 2.095 GB, free: 16.13 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001123/9.605, allocations: 2.701 MB / 2.098 GB, free: 13.16 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.957e-05/9.605, allocations: 8 kB / 2.098 GB, free: 13.16 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006353/9.606, allocations: 196 kB / 2.098 GB, free: 12.95 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/9.607, allocations: 355.5 kB / 2.099 GB, free: 12.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005123/9.613, allocations: 6.883 MB / 2.105 GB, free: 5.215 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003561/9.616, allocations: 218.4 kB / 2.106 GB, free: 5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004769/9.617, allocations: 71.98 kB / 2.106 GB, free: 4.93 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/9.617, allocations: 4 kB / 2.106 GB, free: 4.926 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005138/9.622, allocations: 1.668 MB / 2.107 GB, free: 3.238 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-05/9.622, allocations: 8 kB / 2.107 GB, free: 3.23 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005424/9.622, allocations: 209.5 kB / 2.107 GB, free: 3.008 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001376/9.624, allocations: 347.5 kB / 2.108 GB, free: 2.668 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009776/9.634, allocations: 8.66 MB / 2.116 GB, free: 9.336 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003863/9.638, allocations: 202.7 kB / 2.116 GB, free: 9.137 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008256/9.638, allocations: 67.98 kB / 2.116 GB, free: 9.07 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.001163/9.64, allocations: 136.6 kB / 2.117 GB, free: 8.93 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007442/9.647, allocations: 1.61 MB / 2.118 GB, free: 7.293 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001581/9.649, allocations: 237.1 kB / 2.118 GB, free: 7.059 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007435/9.656, allocations: 2.011 MB / 2.12 GB, free: 5.027 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.464e-05/9.656, allocations: 20 kB / 2.12 GB, free: 5.008 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-05/9.656, allocations: 3.953 kB / 2.12 GB, free: 5.004 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004411/9.661, allocations: 1.685 MB / 2.122 GB, free: 3.254 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.9085/10.57, allocations: 4.263 MB / 2.126 GB, free: 72.04 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/10.57, allocations: 1.531 kB / 2.126 GB, free: 72.04 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001583/10.57, allocations: 271.5 kB / 2.126 GB, free: 72.04 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000653/10.57, allocations: 185.7 kB / 2.127 GB, free: 72 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001295/10.57, allocations: 23.11 kB / 2.127 GB, free: 72 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00637/10.58, allocations: 6.844 MB / 2.133 GB, free: 65.98 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/10.58, allocations: 3.781 kB / 2.133 GB, free: 65.98 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008179/10.59, allocations: 2.727 MB / 2.136 GB, free: 65.59 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002482/10.59, allocations: 0.562 MB / 2.137 GB, free: 65.45 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004329/10.59, allocations: 2.188 kB / 2.137 GB, free: 65.45 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001562/10.59, allocations: 120.6 kB / 2.137 GB, free: 65.44 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003353/10.59, allocations: 111.7 kB / 2.137 GB, free: 65.44 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002001/10.59, allocations: 59.17 kB / 2.137 GB, free: 65.44 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.002821/10.59, allocations: 1.268 MB / 2.138 GB, free: 65.29 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7.41e-07/10.59, allocations: 0 / 2.138 GB, free: 65.29 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.01025/10.6, allocations: 1.96 MB / 2.14 GB, free: 65.2 MB / 0.7136 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.01122/10.62, allocations: 5.118 MB / 2.145 GB, free: 63.78 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.006581/10.62, allocations: 3.431 MB / 2.148 GB, free: 62.64 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.356e-05/10.62, allocations: 0 / 2.148 GB, free: 62.64 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001911/10.62, allocations: 1.159 MB / 2.149 GB, free: 62.21 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008125/10.63, allocations: 1.139 MB / 2.151 GB, free: 62.2 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01703/10.65, allocations: 4.699 MB / 2.155 GB, free: 61.11 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001791/10.65, allocations: 1.805 MB / 2.157 GB, free: 60.38 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.004802/10.66, allocations: 0.7364 MB / 2.158 GB, free: 60.35 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001998/10.66, allocations: 1.099 MB / 2.159 GB, free: 60.35 MB / 0.7136 GB Notification: Performance of SimCode: time 1.824e-06/10.66, allocations: 0 / 2.159 GB, free: 60.35 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2188/10.88, allocations: 80.18 MB / 2.237 GB, free: 55.88 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003451/10.88, allocations: 219.9 kB / 2.237 GB, free: 55.59 MB / 0.7136 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=IDEAS_dev_IDEAS_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 IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_FMU.o IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_FMU.c In file included from IDEAS_dev_IDEAS_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 IDEAS_dev_IDEAS_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=IDEAS_dev_IDEAS_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 IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube.o IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube.c In file included from IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube.c:7: In file included from ./IDEAS_dev_IDEAS_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=IDEAS_dev_IDEAS_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 IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.o IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.c In file included from IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.c:1: In file included from ./IDEAS_dev_IDEAS_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); ^ IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.c:1320: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: *** [: IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube_functions.o] Error 1