Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube,fileNamePrefix="Buildings_latest_Buildings_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/Buildings 10.0.0-master/package.mo): time 2.493/2.493, allocations: 390.5 MB / 398 MB, free: 10.95 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.001217/0.001217, allocations: 179.1 kB / 491.2 MB, free: 1.574 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.546/1.546, allocations: 221.5 MB / 0.7868 GB, free: 13.3 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008814/0.0008817, allocations: 87.97 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.132e-05/3.135e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2884, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.219/1.508, allocations: 424.5 MB / 1.627 GB, free: 5.223 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003483/1.508, allocations: 121.6 kB / 1.627 GB, free: 5.152 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 1.732/3.24, allocations: 487.9 MB / 2.104 GB, free: 94.98 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.804e-06/3.24, allocations: 0 / 2.104 GB, free: 94.98 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000145/3.24, allocations: 47.98 kB / 2.104 GB, free: 94.93 MB / 1.151 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.003873/3.244, allocations: 1.939 MB / 2.105 GB, free: 92.94 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/3.244, allocations: 12.03 kB / 2.105 GB, free: 92.93 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005009/3.245, allocations: 209.5 kB / 2.106 GB, free: 92.72 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002807/3.247, allocations: 1.711 MB / 2.107 GB, free: 90.96 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.149e-05/3.247, allocations: 36 kB / 2.107 GB, free: 90.92 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/3.248, allocations: 64 kB / 2.107 GB, free: 90.86 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001196/3.249, allocations: 0.7149 MB / 2.108 GB, free: 90.14 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/3.25, allocations: 0.9055 MB / 2.109 GB, free: 89.18 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.031e-05/3.25, allocations: 3.938 kB / 2.109 GB, free: 89.18 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.649e-05/3.25, allocations: 7.953 kB / 2.109 GB, free: 89.17 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.836e-05/3.25, allocations: 24 kB / 2.109 GB, free: 89.14 MB / 1.151 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.006651/3.257, allocations: 6.239 MB / 2.115 GB, free: 82.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007029/3.258, allocations: 0.5051 MB / 2.116 GB, free: 81.79 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000359/3.258, allocations: 321.1 kB / 2.116 GB, free: 81.47 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008396/3.259, allocations: 1.267 MB / 2.117 GB, free: 79.93 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/3.259, allocations: 43.06 kB / 2.117 GB, free: 79.88 MB / 1.151 GB Notification: Performance of pre-optimization done (n=68): time 2.906e-06/3.259, allocations: 0 / 2.117 GB, free: 79.88 MB / 1.151 GB Notification: Performance of matching and sorting (n=68): time 0.00165/3.261, allocations: 0.7565 MB / 2.118 GB, free: 79.11 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/3.261, allocations: 85.67 kB / 2.118 GB, free: 79 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/3.262, allocations: 1.121 MB / 2.119 GB, free: 77.88 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.895e-05/3.262, allocations: 29.7 kB / 2.119 GB, free: 77.84 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004438/3.262, allocations: 0.7233 MB / 2.12 GB, free: 77.11 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001586/3.263, allocations: 232.5 kB / 2.12 GB, free: 76.88 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.273e-05/3.263, allocations: 0 / 2.12 GB, free: 76.88 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.574e-05/3.263, allocations: 341.9 kB / 2.12 GB, free: 76.54 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003296/3.263, allocations: 246.6 kB / 2.121 GB, free: 76.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004259/3.264, allocations: 459.2 kB / 2.121 GB, free: 75.77 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009801/3.265, allocations: 416.2 kB / 2.122 GB, free: 75.37 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/3.265, allocations: 4 kB / 2.122 GB, free: 75.36 MB / 1.151 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001724/3.266, allocations: 0.9723 MB / 2.122 GB, free: 74.38 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002527/3.267, allocations: 1.343 MB / 2.124 GB, free: 72.96 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.882e-05/3.267, allocations: 8 kB / 2.124 GB, free: 72.95 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002485/3.267, allocations: 77.67 kB / 2.124 GB, free: 72.87 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005877/3.267, allocations: 183.7 kB / 2.124 GB, free: 72.69 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001592/3.269, allocations: 2.879 MB / 2.127 GB, free: 69.59 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009963/3.27, allocations: 95.23 kB / 2.127 GB, free: 69.49 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.781e-05/3.27, allocations: 43.97 kB / 2.127 GB, free: 69.45 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 7.294e-06/3.27, allocations: 4 kB / 2.127 GB, free: 69.45 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001576/3.272, allocations: 0.8005 MB / 2.128 GB, free: 68.64 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/3.272, allocations: 4 kB / 2.128 GB, free: 68.63 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001198/3.272, allocations: 62.14 kB / 2.128 GB, free: 68.57 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005612/3.272, allocations: 191.7 kB / 2.128 GB, free: 68.38 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/3.274, allocations: 2.871 MB / 2.131 GB, free: 65.28 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009401/3.275, allocations: 91.39 kB / 2.131 GB, free: 65.19 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.872e-05/3.275, allocations: 43.94 kB / 2.131 GB, free: 65.14 MB / 1.151 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.0001708/3.275, allocations: 116.8 kB / 2.131 GB, free: 65.02 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001392/3.276, allocations: 0.7526 MB / 2.132 GB, free: 64.26 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/3.277, allocations: 146.3 kB / 2.132 GB, free: 64.11 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001852/3.278, allocations: 0.9528 MB / 2.133 GB, free: 63.14 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/3.278, allocations: 8 kB / 2.133 GB, free: 63.13 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/3.279, allocations: 4 kB / 2.133 GB, free: 63.12 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001218/3.28, allocations: 0.7896 MB / 2.134 GB, free: 62.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003839/3.284, allocations: 2.472 MB / 2.136 GB, free: 59.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.166e-06/3.284, allocations: 11.94 kB / 2.136 GB, free: 59.68 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005127/3.284, allocations: 131.8 kB / 2.136 GB, free: 59.55 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001832/3.284, allocations: 74.06 kB / 2.136 GB, free: 59.48 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.034e-05/3.284, allocations: 15.98 kB / 2.136 GB, free: 59.46 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001472/3.286, allocations: 2.867 MB / 2.139 GB, free: 56.36 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/3.286, allocations: 4 kB / 2.139 GB, free: 56.36 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00196/3.288, allocations: 1.526 MB / 2.141 GB, free: 54.68 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005305/3.288, allocations: 354.9 kB / 2.141 GB, free: 54.31 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/3.289, allocations: 16.12 kB / 2.141 GB, free: 54.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000611/3.289, allocations: 35.91 kB / 2.141 GB, free: 54.26 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.61e-05/3.289, allocations: 56.38 kB / 2.141 GB, free: 54.21 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.587e-05/3.289, allocations: 35.98 kB / 2.141 GB, free: 54.17 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001074/3.29, allocations: 0.856 MB / 2.142 GB, free: 53.32 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.7e-07/3.29, allocations: 0 / 2.142 GB, free: 53.32 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003398/3.294, allocations: 1.189 MB / 2.143 GB, free: 52.12 MB / 1.151 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.00464/3.298, allocations: 4.041 MB / 2.147 GB, free: 47.98 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002018/3.3, allocations: 1.592 MB / 2.149 GB, free: 46.33 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/3.301, allocations: 0 / 2.149 GB, free: 46.33 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005331/3.301, allocations: 0.5498 MB / 2.149 GB, free: 45.76 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002988/3.304, allocations: 0.6053 MB / 2.15 GB, free: 45.16 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004885/3.309, allocations: 2.705 MB / 2.152 GB, free: 42.37 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006489/3.31, allocations: 1.311 MB / 2.154 GB, free: 41.02 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001592/3.311, allocations: 449.8 kB / 2.154 GB, free: 40.58 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005953/3.312, allocations: 0.5968 MB / 2.155 GB, free: 39.98 MB / 1.151 GB Notification: Performance of SimCode: time 6.51e-07/3.312, allocations: 0 / 2.155 GB, free: 39.98 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8552/4.167, allocations: 47.46 MB / 2.201 GB, free: 240.7 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/4.167, allocations: 233.5 kB / 2.201 GB, free: 240.4 MB / 1.151 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_latest_Buildings_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 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_FMU.o Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_FMU.c In file included from Buildings_latest_Buildings_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 Buildings_latest_Buildings_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=Buildings_latest_Buildings_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 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube.o Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube.c In file included from Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube.c:7: In file included from ./Buildings_latest_Buildings_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=Buildings_latest_Buildings_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 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.o Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.c In file included from Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.c:1: In file included from ./Buildings_latest_Buildings_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); ^ Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.c:915: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_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.o] Error 1