Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.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.InternalHEXOneUTube,fileNamePrefix="IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube,fileNamePrefix="IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube",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.001444/0.001444, allocations: 180.9 kB / 7.651 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 0.7462/0.7462, allocations: 133.6 MB / 141.6 MB, free: 2.891 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 221.5 MB / 395.4 MB, free: 10.8 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.0008976/0.0008976, allocations: 106.8 kB / 478.2 MB, free: 1.332 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.239e-05/2.253e-05, allocations: 4 kB / 0.5536 GB, free: 8.938 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5113/0.5114, allocations: 82.31 MB / 0.634 GB, free: 40.87 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9453/1.457, allocations: 385.6 MB / 1.011 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003424/1.457, allocations: 121.5 kB / 1.011 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 2.269/3.726, allocations: 481.8 MB / 1.481 GB, free: 115.5 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.184e-06/3.726, allocations: 0 / 1.481 GB, free: 115.5 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0003971/3.727, allocations: 43.59 kB / 1.481 GB, free: 115.5 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 264 * Number of variables: 264 Notification: Performance of Generate backend data structure: time 0.008075/3.735, allocations: 1.937 MB / 1.483 GB, free: 113.5 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 7.22e-05/3.735, allocations: 15.08 kB / 1.483 GB, free: 113.5 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001494/3.736, allocations: 206.5 kB / 1.483 GB, free: 113.3 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00559/3.742, allocations: 1.712 MB / 1.485 GB, free: 111.6 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.306e-05/3.742, allocations: 36 kB / 1.485 GB, free: 111.5 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004199/3.742, allocations: 67.94 kB / 1.485 GB, free: 111.5 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002217/3.745, allocations: 0.7163 MB / 1.486 GB, free: 110.8 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002712/3.747, allocations: 0.9039 MB / 1.487 GB, free: 109.8 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.57e-05/3.747, allocations: 3.938 kB / 1.487 GB, free: 109.8 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001611/3.748, allocations: 0 / 1.487 GB, free: 109.8 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.535e-05/3.748, allocations: 33.97 kB / 1.487 GB, free: 109.8 MB / 0.6823 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.009034/3.757, allocations: 6.222 MB / 1.493 GB, free: 103 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008404/3.758, allocations: 0.5205 MB / 1.493 GB, free: 102.5 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003929/3.758, allocations: 323.6 kB / 1.494 GB, free: 102.2 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001181/3.759, allocations: 1.265 MB / 1.495 GB, free: 100.6 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/3.759, allocations: 45.81 kB / 1.495 GB, free: 100.6 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=68): time 4.408e-06/3.759, allocations: 0 / 1.495 GB, free: 100.6 MB / 0.6823 GB Notification: Performance of matching and sorting (n=68): time 0.001954/3.761, allocations: 0.7449 MB / 1.496 GB, free: 99.84 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/3.761, allocations: 85.67 kB / 1.496 GB, free: 99.74 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001718/3.763, allocations: 1.135 MB / 1.497 GB, free: 98.6 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001031/3.763, allocations: 29.7 kB / 1.497 GB, free: 98.57 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005224/3.764, allocations: 0.7194 MB / 1.498 GB, free: 97.84 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002158/3.764, allocations: 228.6 kB / 1.498 GB, free: 97.61 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.301e-05/3.764, allocations: 2.656 kB / 1.498 GB, free: 97.61 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001081/3.764, allocations: 345.9 kB / 1.498 GB, free: 97.27 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003623/3.764, allocations: 242.6 kB / 1.498 GB, free: 97.03 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000496/3.765, allocations: 461.5 kB / 1.499 GB, free: 96.51 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/3.766, allocations: 421.4 kB / 1.499 GB, free: 96.1 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/3.766, allocations: 0 / 1.499 GB, free: 96.1 MB / 0.6823 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002037/3.768, allocations: 0.9697 MB / 1.5 GB, free: 95.12 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003953/3.768, allocations: 1.345 MB / 1.501 GB, free: 93.71 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.757e-05/3.768, allocations: 8 kB / 1.501 GB, free: 93.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002988/3.769, allocations: 73.92 kB / 1.501 GB, free: 93.63 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006225/3.769, allocations: 182.4 kB / 1.502 GB, free: 93.45 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002007/3.771, allocations: 2.868 MB / 1.504 GB, free: 90.37 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/3.773, allocations: 103.9 kB / 1.505 GB, free: 90.27 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/3.773, allocations: 36 kB / 1.505 GB, free: 90.23 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/3.773, allocations: 6.625 kB / 1.505 GB, free: 90.23 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001818/3.775, allocations: 0.8111 MB / 1.505 GB, free: 89.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/3.775, allocations: 4 kB / 1.505 GB, free: 89.41 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001398/3.775, allocations: 63.56 kB / 1.505 GB, free: 89.34 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000603/3.776, allocations: 175.5 kB / 1.506 GB, free: 89.18 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001834/3.777, allocations: 2.878 MB / 1.508 GB, free: 86.08 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/3.779, allocations: 88.86 kB / 1.509 GB, free: 86 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.273e-05/3.779, allocations: 35.98 kB / 1.509 GB, free: 85.96 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 96 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003274/3.779, allocations: 127.7 kB / 1.509 GB, free: 85.84 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001836/3.781, allocations: 0.7487 MB / 1.509 GB, free: 85.07 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001814/3.781, allocations: 134.3 kB / 1.51 GB, free: 84.94 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002161/3.783, allocations: 0.9602 MB / 1.51 GB, free: 83.98 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/3.783, allocations: 12 kB / 1.51 GB, free: 83.96 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/3.783, allocations: 3.984 kB / 1.51 GB, free: 83.96 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00127/3.785, allocations: 0.7856 MB / 1.511 GB, free: 83.14 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004598/3.789, allocations: 2.486 MB / 1.514 GB, free: 80.55 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/3.789, allocations: 7.984 kB / 1.514 GB, free: 80.55 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005389/3.79, allocations: 127.9 kB / 1.514 GB, free: 80.42 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002344/3.79, allocations: 72.22 kB / 1.514 GB, free: 80.35 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.057e-05/3.79, allocations: 15.98 kB / 1.514 GB, free: 80.34 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/3.792, allocations: 2.873 MB / 1.517 GB, free: 77.24 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/3.792, allocations: 3.938 kB / 1.517 GB, free: 77.24 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002833/3.795, allocations: 1.519 MB / 1.518 GB, free: 75.58 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/3.796, allocations: 358.9 kB / 1.519 GB, free: 75.21 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/3.796, allocations: 4 kB / 1.519 GB, free: 75.21 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007677/3.797, allocations: 44.48 kB / 1.519 GB, free: 75.17 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/3.797, allocations: 56.42 kB / 1.519 GB, free: 75.11 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.945e-05/3.797, allocations: 34.95 kB / 1.519 GB, free: 75.08 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001664/3.799, allocations: 0.856 MB / 1.519 GB, free: 74.23 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.6e-07/3.799, allocations: 0 / 1.519 GB, free: 74.23 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.005955/3.805, allocations: 1.189 MB / 1.521 GB, free: 73.04 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 6 (intHex.vol1.dynBal.U,intHex.vol2.dynBal.U,intHex.intResUTub.capFil1.T,intHex.intResUTub.capFil2.T,senTem.T,senTem1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006198/3.811, allocations: 4.029 MB / 1.525 GB, free: 69.11 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.00266/3.814, allocations: 1.591 MB / 1.526 GB, free: 67.47 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/3.814, allocations: 0 / 1.526 GB, free: 67.47 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0006114/3.815, allocations: 0.5525 MB / 1.527 GB, free: 66.9 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003693/3.818, allocations: 0.6026 MB / 1.527 GB, free: 66.32 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007334/3.826, allocations: 2.715 MB / 1.53 GB, free: 63.56 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/3.827, allocations: 1.311 MB / 1.531 GB, free: 62.22 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002331/3.829, allocations: 444 kB / 1.532 GB, free: 61.8 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007907/3.83, allocations: 0.5968 MB / 1.532 GB, free: 61.21 MB / 0.6823 GB Notification: Performance of SimCode: time 1.863e-06/3.83, allocations: 4 kB / 1.532 GB, free: 61.2 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09049/3.921, allocations: 47.45 MB / 1.579 GB, free: 14.48 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001815/3.921, allocations: 218.9 kB / 1.579 GB, free: 14.19 MB / 0.6823 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_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_FMU.o IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_FMU.c In file included from IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_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_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_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_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube.o IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube.c In file included from IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube.c:7: In file included from ./IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_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_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.o IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.c In file included from IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.c:1: In file included from ./IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_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_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.c:1175: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_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.o] Error 1