Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube,fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.328/2.328, allocations: 387.4 MB / 394.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 176.8 kB / 487.4 MB, free: 5.035 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 221.5 MB / 0.7824 GB, free: 0.9766 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008953/0.0008954, allocations: 89.58 kB / 0.9219 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.017e-05/2.026e-05, allocations: 4 kB / 1.067 GB, free: 185.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2892, allocations: 142.4 MB / 1.206 GB, free: 43.8 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.145/1.434, allocations: 423.7 MB / 1.62 GB, free: 13.46 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003811/1.435, allocations: 125 kB / 1.62 GB, free: 13.39 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 1.704/3.139, allocations: 487.9 MB / 2.096 GB, free: 106.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.693e-06/3.139, allocations: 0 / 2.096 GB, free: 106.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001498/3.139, allocations: 47.92 kB / 2.096 GB, free: 106.1 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.004125/3.143, allocations: 1.931 MB / 2.098 GB, free: 104.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/3.143, allocations: 8.031 kB / 2.098 GB, free: 104.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004998/3.144, allocations: 210 kB / 2.099 GB, free: 103.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002879/3.146, allocations: 1.707 MB / 2.1 GB, free: 102.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.599e-05/3.147, allocations: 32 kB / 2.1 GB, free: 102.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/3.147, allocations: 67.98 kB / 2.1 GB, free: 102 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0012/3.148, allocations: 0.7187 MB / 2.101 GB, free: 101.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/3.149, allocations: 0.9053 MB / 2.102 GB, free: 100.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.984e-05/3.149, allocations: 7.938 kB / 2.102 GB, free: 100.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.928e-05/3.149, allocations: 0 / 2.102 GB, free: 100.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/3.149, allocations: 24 kB / 2.102 GB, free: 100.3 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.006674/3.156, allocations: 6.247 MB / 2.108 GB, free: 93.47 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007233/3.157, allocations: 0.5055 MB / 2.109 GB, free: 92.96 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000358/3.157, allocations: 318.6 kB / 2.109 GB, free: 92.64 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008223/3.158, allocations: 1.271 MB / 2.11 GB, free: 91.09 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/3.158, allocations: 43.12 kB / 2.11 GB, free: 91.04 MB / 1.151 GB Notification: Performance of pre-optimization done (n=68): time 3.236e-06/3.158, allocations: 0 / 2.11 GB, free: 91.04 MB / 1.151 GB Notification: Performance of matching and sorting (n=68): time 0.001684/3.16, allocations: 0.753 MB / 2.111 GB, free: 90.27 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/3.16, allocations: 81.67 kB / 2.111 GB, free: 90.18 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001348/3.161, allocations: 1.137 MB / 2.112 GB, free: 89.03 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.642e-05/3.161, allocations: 25.7 kB / 2.112 GB, free: 89 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004177/3.162, allocations: 0.7194 MB / 2.113 GB, free: 88.27 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000166/3.162, allocations: 240.4 kB / 2.113 GB, free: 88.04 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.357e-05/3.162, allocations: 0 / 2.113 GB, free: 88.04 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.52e-05/3.162, allocations: 338 kB / 2.113 GB, free: 87.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003256/3.162, allocations: 254.6 kB / 2.114 GB, free: 87.45 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004466/3.163, allocations: 457.4 kB / 2.114 GB, free: 86.93 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009936/3.164, allocations: 416.5 kB / 2.114 GB, free: 86.52 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/3.164, allocations: 0 / 2.114 GB, free: 86.52 MB / 1.151 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001761/3.166, allocations: 0.9801 MB / 2.115 GB, free: 85.52 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002852/3.166, allocations: 1.346 MB / 2.117 GB, free: 84.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/3.166, allocations: 8 kB / 2.117 GB, free: 84.09 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002609/3.166, allocations: 69.69 kB / 2.117 GB, free: 84.02 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005842/3.167, allocations: 179.7 kB / 2.117 GB, free: 83.84 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/3.168, allocations: 2.878 MB / 2.12 GB, free: 80.74 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/3.17, allocations: 103.2 kB / 2.12 GB, free: 80.64 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-05/3.17, allocations: 35.98 kB / 2.12 GB, free: 80.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.786e-06/3.17, allocations: 4 kB / 2.12 GB, free: 80.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001576/3.171, allocations: 0.7927 MB / 2.121 GB, free: 79.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/3.171, allocations: 8 kB / 2.121 GB, free: 79.79 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001194/3.171, allocations: 70.31 kB / 2.121 GB, free: 79.71 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005411/3.172, allocations: 183.7 kB / 2.121 GB, free: 79.54 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/3.173, allocations: 2.871 MB / 2.124 GB, free: 76.43 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/3.175, allocations: 83.39 kB / 2.124 GB, free: 76.35 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.112e-05/3.175, allocations: 39.98 kB / 2.124 GB, free: 76.31 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.0002094/3.175, allocations: 128.7 kB / 2.124 GB, free: 76.18 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001468/3.176, allocations: 0.7448 MB / 2.125 GB, free: 75.42 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/3.176, allocations: 138.3 kB / 2.125 GB, free: 75.28 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001899/3.178, allocations: 0.9645 MB / 2.126 GB, free: 74.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/3.178, allocations: 8 kB / 2.126 GB, free: 74.29 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/3.178, allocations: 0 / 2.126 GB, free: 74.29 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001182/3.18, allocations: 0.7934 MB / 2.126 GB, free: 73.46 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004333/3.184, allocations: 2.476 MB / 2.129 GB, free: 70.85 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/3.184, allocations: 0 / 2.129 GB, free: 70.85 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005483/3.185, allocations: 135.8 kB / 2.129 GB, free: 70.72 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002224/3.185, allocations: 74.06 kB / 2.129 GB, free: 70.64 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.419e-05/3.185, allocations: 15.94 kB / 2.129 GB, free: 70.62 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00167/3.187, allocations: 2.864 MB / 2.132 GB, free: 67.53 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/3.187, allocations: 11.88 kB / 2.132 GB, free: 67.52 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002176/3.189, allocations: 1.526 MB / 2.133 GB, free: 65.84 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007576/3.189, allocations: 362.9 kB / 2.134 GB, free: 65.46 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003403/3.19, allocations: 4 kB / 2.134 GB, free: 65.46 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008557/3.191, allocations: 35.91 kB / 2.134 GB, free: 65.43 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.157e-05/3.191, allocations: 56.48 kB / 2.134 GB, free: 65.37 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.431e-05/3.191, allocations: 35.94 kB / 2.134 GB, free: 65.34 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001465/3.192, allocations: 0.8521 MB / 2.135 GB, free: 64.48 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.71e-07/3.192, allocations: 4 kB / 2.135 GB, free: 64.48 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004589/3.197, allocations: 1.193 MB / 2.136 GB, free: 63.29 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.00615/3.203, allocations: 4.03 MB / 2.14 GB, free: 59.15 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002473/3.206, allocations: 1.584 MB / 2.141 GB, free: 57.51 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/3.206, allocations: 0 / 2.141 GB, free: 57.51 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005831/3.206, allocations: 0.5659 MB / 2.142 GB, free: 56.93 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003509/3.21, allocations: 0.608 MB / 2.143 GB, free: 56.33 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007062/3.217, allocations: 2.699 MB / 2.145 GB, free: 53.54 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009637/3.218, allocations: 1.307 MB / 2.146 GB, free: 52.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002113/3.22, allocations: 451 kB / 2.147 GB, free: 51.76 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007238/3.221, allocations: 0.5959 MB / 2.147 GB, free: 51.17 MB / 1.151 GB Notification: Performance of SimCode: time 8.81e-07/3.221, allocations: 4 kB / 2.147 GB, free: 51.16 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09464/3.315, allocations: 47.45 MB / 2.194 GB, free: 4.051 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/3.316, allocations: 241.2 kB / 2.194 GB, free: 3.754 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_9_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_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_FMU.o Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_FMU.c In file included from Buildings_9_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_9_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_9_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_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube.o Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube.c In file included from Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube.c:7: In file included from ./Buildings_9_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_9_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_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.o Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.c In file included from Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.c:1: In file included from ./Buildings_9_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_9_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_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube_functions.o] Error 1