Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.Validation.HeatExchangerDynamics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Validation.HeatExchangerDynamics,fileNamePrefix="Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Validation.HeatExchangerDynamics,fileNamePrefix="Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.658/1.658, allocations: 289.9 MB / 297.4 MB, free: 6.367 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001629/0.001629, allocations: 188.8 kB / 366.7 MB, free: 1.613 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.63/1.63, allocations: 205.2 MB / 0.626 GB, free: 7.145 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008427/0.0008427, allocations: 85.39 kB / 0.74 GB, free: 39.52 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.991e-05/2.002e-05, allocations: 4 kB / 0.8598 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.749/0.749, allocations: 116.3 MB / 0.9733 GB, free: 76.1 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.208/1.957, allocations: 426.6 MB / 1.39 GB, free: 130.4 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003265/1.957, allocations: 88.08 kB / 1.39 GB, free: 130.3 MB / 0.8542 GB Error: Variable tanSte.m_flow_nominal in package Buildings.Fluid.Storage.Validation.HeatExchangerDynamics is not constant. Notification: Performance of FrontEnd - DAE generated: time 11/12.96, allocations: 2.792 GB / 4.182 GB, free: 36.42 MB / 1.01 GB Notification: Performance of FrontEnd: time 1.653e-06/12.96, allocations: 0 / 4.182 GB, free: 36.42 MB / 1.01 GB Notification: Performance of Transformations before backend: time 0.002692/12.96, allocations: 416.5 kB / 4.182 GB, free: 36.05 MB / 1.01 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3345 * Number of variables: 3345 Notification: Performance of Generate backend data structure: time 0.05275/13.02, allocations: 13.75 MB / 4.196 GB, free: 22.3 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 5.822e-05/13.02, allocations: 8.031 kB / 4.196 GB, free: 22.29 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01456/13.03, allocations: 1.915 MB / 4.198 GB, free: 20.36 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04887/13.08, allocations: 18.75 MB / 4.216 GB, free: 1.816 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009965/13.08, allocations: 420 kB / 4.216 GB, free: 1.406 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007639/13.09, allocations: 0.7886 MB / 4.217 GB, free: 0.6211 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04751/13.14, allocations: 15.84 MB / 4.233 GB, free: 0.7734 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.9521/14.09, allocations: 16.85 MB / 4.249 GB, free: 84.62 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009401/14.09, allocations: 42.92 kB / 4.249 GB, free: 84.62 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005864/14.1, allocations: 20.91 kB / 4.249 GB, free: 84.62 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004108/14.1, allocations: 389.4 kB / 4.25 GB, free: 84.62 MB / 1.026 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.1671/14.26, allocations: 80.69 MB / 4.328 GB, free: 53.37 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02673/14.29, allocations: 12.29 MB / 4.34 GB, free: 53.23 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01489/14.3, allocations: 6.866 MB / 4.347 GB, free: 53.16 MB / 1.026 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 evalFunc (simulation): time 0.07352/14.38, allocations: 26.9 MB / 4.373 GB, free: 46.7 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01791/14.4, allocations: 5.621 MB / 4.379 GB, free: 46.49 MB / 1.026 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01104/14.41, allocations: 0.6288 MB / 4.379 GB, free: 46.25 MB / 1.026 GB Notification: Performance of pre-optimization done (n=772): time 7.374e-05/14.41, allocations: 0 / 4.379 GB, free: 46.25 MB / 1.026 GB Notification: Performance of matching and sorting (n=772): time 0.03534/14.44, allocations: 12.04 MB / 4.391 GB, free: 45.43 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/14.44, allocations: 160.3 kB / 4.391 GB, free: 45.33 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03143/14.47, allocations: 10.43 MB / 4.402 GB, free: 60.73 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 0.003279/14.48, allocations: 33.58 kB / 4.402 GB, free: 60.7 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 0.01171/14.49, allocations: 6.779 MB / 4.408 GB, free: 57.92 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 0.005732/14.49, allocations: 2.621 MB / 4.411 GB, free: 56.23 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003394/14.5, allocations: 0 / 4.411 GB, free: 56.23 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.002103/14.5, allocations: 0.8285 MB / 4.412 GB, free: 55.9 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01466/14.52, allocations: 6.195 MB / 4.418 GB, free: 55.87 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01856/14.53, allocations: 9.545 MB / 4.427 GB, free: 52.06 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02759/14.56, allocations: 10.39 MB / 4.437 GB, free: 51.92 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002986/14.56, allocations: 28.28 kB / 4.437 GB, free: 51.92 MB / 1.042 GB Notification: Performance of matching and sorting (n=1642) (initialization): time 0.06741/14.63, allocations: 20.39 MB / 4.457 GB, free: 51.02 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 0.02605/14.66, allocations: 52.57 MB / 4.508 GB, free: 44.02 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006301/14.66, allocations: 97.03 kB / 4.508 GB, free: 44.02 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01102/14.67, allocations: 3.175 MB / 4.512 GB, free: 43.36 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01378/14.68, allocations: 2.787 MB / 4.514 GB, free: 43.27 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0208/14.7, allocations: 16.19 MB / 4.53 GB, free: 31.54 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01995/14.72, allocations: 0.8912 MB / 4.531 GB, free: 31.45 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005284/14.73, allocations: 0.5594 MB / 4.532 GB, free: 31.35 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/14.73, allocations: 3.688 kB / 4.532 GB, free: 31.35 MB / 1.089 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05822/14.79, allocations: 19.21 MB / 4.55 GB, free: 25.4 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005963/14.79, allocations: 98.28 kB / 4.55 GB, free: 25.4 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01007/14.8, allocations: 3.193 MB / 4.554 GB, free: 24.73 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01575/14.81, allocations: 2.782 MB / 4.556 GB, free: 24.64 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02526/14.84, allocations: 16.21 MB / 4.572 GB, free: 28.88 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01818/14.86, allocations: 0.8378 MB / 4.573 GB, free: 28.82 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004456/14.86, allocations: 0.5633 MB / 4.573 GB, free: 28.71 MB / 1.104 GB Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: tanDyn.m_flow_nominal:VARIABLE(unit = "kg/s" ) = tanDyn.m_flow_nominal "Nominal mass flow rate" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: tanSte.m_flow_nominal:VARIABLE(unit = "kg/s" ) = tanSte.m_flow_nominal "Nominal mass flow rate" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 448 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.mHex_flow_in.T_start,mHex_flow_in.T_start,$PRE.mHex_flow_in.count,mHex_flow_in.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1454): * Single equations (assignments): 1448 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 1 {16 144} Notification: Performance of prepare postOptimizeDAE: time 0.007089/14.87, allocations: 446.2 kB / 4.574 GB, free: 28.36 MB / 1.104 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03977/14.91, allocations: 12.01 MB / 4.586 GB, free: 23.98 MB / 1.104 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008194/14.92, allocations: 1.072 MB / 4.587 GB, free: 23.41 MB / 1.104 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04153/14.96, allocations: 13.22 MB / 4.6 GB, free: 18.69 MB / 1.104 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00013/14.96, allocations: 79.8 kB / 4.6 GB, free: 18.68 MB / 1.104 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.744e-05/14.96, allocations: 6.844 kB / 4.6 GB, free: 18.68 MB / 1.104 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03067/14.99, allocations: 11.18 MB / 4.611 GB, free: 14.73 MB / 1.104 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 postOpt removeSimpleEquations (simulation): time 0.08894/15.08, allocations: 27.36 MB / 4.637 GB, free: 3.434 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.431e-05/15.08, allocations: 7.469 kB / 4.637 GB, free: 3.43 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007389/15.08, allocations: 1.254 MB / 4.638 GB, free: 2.395 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01068/15.09, allocations: 2.928 MB / 4.641 GB, free: 200 kB / 1.104 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002532/15.1, allocations: 95.53 kB / 4.641 GB, free: 128 kB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.009/16.11, allocations: 10.32 MB / 4.652 GB, free: 156 MB / 1.104 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.414e-05/16.11, allocations: 5.062 kB / 4.652 GB, free: 156 MB / 1.104 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04629/16.15, allocations: 20.23 MB / 4.671 GB, free: 154.6 MB / 1.104 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01292/16.17, allocations: 2.892 MB / 4.674 GB, free: 154.2 MB / 1.104 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008168/16.17, allocations: 34.19 kB / 4.674 GB, free: 154.2 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01613/16.19, allocations: 0.6302 MB / 4.675 GB, free: 154.2 MB / 1.104 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003399/16.19, allocations: 461.1 kB / 4.675 GB, free: 154.2 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002972/16.2, allocations: 318.7 kB / 4.676 GB, free: 154.2 MB / 1.104 GB Notification: Performance of sorting global known variables: time 0.02216/16.22, allocations: 7.767 MB / 4.683 GB, free: 153.9 MB / 1.104 GB Notification: Performance of sort global known variables: time 3.31e-07/16.22, allocations: 0 / 4.683 GB, free: 153.9 MB / 1.104 GB Notification: Performance of remove unused functions: time 0.06362/16.28, allocations: 8.18 MB / 4.691 GB, free: 153.3 MB / 1.104 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 30 (tanDyn.vol[1].dynBal.U,tanDyn.vol[2].dynBal.U,tanDyn.vol[3].dynBal.U,tanDyn.vol[4].dynBal.U,tanDyn.vol[5].dynBal.U,tanDyn.vol[6].dynBal.U,tanDyn.vol[7].dynBal.U,tanDyn.indTanHex.vol[1].dynBal.U,tanDyn.indTanHex.vol[2].dynBal.U,tanDyn.indTanHex.vol[3].dynBal.U,tanDyn.indTanHex.vol[4].dynBal.U,tanDyn.indTanHex.vol[5].dynBal.U,tanDyn.indTanHex.vol[6].dynBal.U,tanDyn.indTanHex.vol[7].dynBal.U,tanDyn.indTanHex.vol[8].dynBal.U,tanDyn.indTanHex.cap[1].T,tanDyn.indTanHex.cap[2].T,tanDyn.indTanHex.cap[3].T,tanDyn.indTanHex.cap[4].T,tanDyn.indTanHex.cap[5].T,tanDyn.indTanHex.cap[6].T,tanDyn.indTanHex.cap[7].T,tanDyn.indTanHex.cap[8].T,tanSte.vol[1].dynBal.U,tanSte.vol[2].dynBal.U,tanSte.vol[3].dynBal.U,tanSte.vol[4].dynBal.U,tanSte.vol[5].dynBal.U,tanSte.vol[6].dynBal.U,tanSte.vol[7].dynBal.U) * Number of discrete variables: 3 ($whenCondition1,mHex_flow_in.T_start,mHex_flow_in.count) * Number of discrete states: 1 (mHex_flow_in.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (609): * Single equations (assignments): 596 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 1 {16 144} Notification: Performance of Backend phase and start with SimCode phase: time 0.07006/16.35, allocations: 22.56 MB / 4.713 GB, free: 150.4 MB / 1.104 GB Notification: Performance of simCode: created initialization part: time 0.06572/16.42, allocations: 22.96 MB / 4.736 GB, free: 149.5 MB / 1.104 GB Notification: Performance of simCode: created event and clocks part: time 3.089e-05/16.42, allocations: 8.562 kB / 4.736 GB, free: 149.5 MB / 1.104 GB Notification: Performance of simCode: created simulation system equations: time 0.01527/16.43, allocations: 5.545 MB / 4.741 GB, free: 149.2 MB / 1.104 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03817/16.47, allocations: 5.414 MB / 4.746 GB, free: 149.1 MB / 1.104 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1228/16.59, allocations: 32.04 MB / 4.778 GB, free: 144.2 MB / 1.104 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01853/16.61, allocations: 10.22 MB / 4.788 GB, free: 143.2 MB / 1.104 GB Notification: Performance of simCode: alias equations: time 0.03907/16.65, allocations: 9.051 MB / 4.796 GB, free: 142.7 MB / 1.104 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01568/16.67, allocations: 6.077 MB / 4.802 GB, free: 142.7 MB / 1.104 GB Notification: Performance of SimCode: time 2.655e-06/16.67, allocations: 0 / 4.802 GB, free: 142.7 MB / 1.104 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.509/18.18, allocations: 364.2 MB / 5.158 GB, free: 146.8 MB / 1.104 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002218/18.18, allocations: 186.8 kB / 5.158 GB, free: 146.6 MB / 1.104 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. -DOMC_MODEL_PREFIX=Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=7 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_FMU.o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_FMU.c In file included from Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_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_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_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. -DOMC_MODEL_PREFIX=Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=7 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics.o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics.c In file included from Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics.c:7: In file included from ./Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_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. -DOMC_MODEL_PREFIX=Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=7 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_functions.o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_functions.c In file included from Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_functions.c:1: In file included from ./Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_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); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=7 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_records.o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_records.c In file included from Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_records.c: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); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=7 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_01exo.o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_01exo.c In file included from Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_01exo.c:2: In file included from ./Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_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. -DOMC_MODEL_PREFIX=Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=7 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_02nls.o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_02nls.c In file included from Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_02nls.c:2: In file included from ./Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_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. -DOMC_MODEL_PREFIX=Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=7 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_03lsy.o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_03lsy.c In file included from Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_03lsy.c:2: In file included from ./Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_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. -DOMC_MODEL_PREFIX=Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=7 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_04set.o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_04set.c In file included from Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_04set.c:2: In file included from ./Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_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. -DOMC_MODEL_PREFIX=Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=7 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_05evt.o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_05evt.c In file included from Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_05evt.c:2: In file included from ./Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_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. -DOMC_MODEL_PREFIX=Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=7 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_06inz.o Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_06inz.c In file included from Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_06inz.c:2: In file included from ./Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_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); ^ Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_06inz.c:2880:45: error: use of undeclared identifier '$PtanDyn$PQHex_flow_nominal' data->simulationInfo->realParameter[88] = $PtanDyn$PQHex_flow_nominal; ^ Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_06inz.c:3127:46: error: use of undeclared identifier '$PtanSte$PQHex_flow_nominal' data->simulationInfo->realParameter[782] = $PtanSte$PQHex_flow_nominal; ^ 2 warnings and 2 errors generated. make: *** [: Buildings_8_Buildings_Fluid_Storage_Validation_HeatExchangerDynamics_06inz.o] Error 1