Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.213/2.213, allocations: 248.6 MB / 255.9 MB, free: 7.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001667/0.001667, allocations: 188.2 kB / 315.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.86/1.86, allocations: 205.1 MB / 0.5658 GB, free: 468 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001281/0.00128, allocations: 87.38 kB / 0.67 GB, free: 5.656 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.431/0.4323, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.6183, allocations: 106.2 MB / 0.8835 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.224/6.842, allocations: 2.503 GB / 3.386 GB, free: 186.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/6.842, allocations: 94.39 kB / 3.386 GB, free: 186.7 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Fluid/Movers/BaseClasses/IdealSource.mo:14:3-22:27:writable] Error: The conditional expression control_m_flow could not be evaluated. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3533 * Number of variables: 3533 Notification: Performance of Generate backend data structure: time 54.75/61.59, allocations: 11.25 GB / 14.64 GB, free: 52.82 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 6.64e-05/61.59, allocations: 12.56 kB / 14.64 GB, free: 52.82 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06277/61.65, allocations: 4.129 MB / 14.64 GB, free: 51.78 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1511/61.8, allocations: 35.99 MB / 14.68 GB, free: 49.41 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001077/61.8, allocations: 441.4 kB / 14.68 GB, free: 49.41 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008685/61.81, allocations: 0.8194 MB / 14.68 GB, free: 49.4 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.08933/61.9, allocations: 22.19 MB / 14.7 GB, free: 49.35 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09357/62, allocations: 23.32 MB / 14.72 GB, free: 48.35 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001328/62, allocations: 37.58 kB / 14.72 GB, free: 48.35 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01089/62.01, allocations: 9.281 kB / 14.72 GB, free: 48.35 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001341/62.01, allocations: 0.6189 MB / 14.72 GB, free: 48.32 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3015/62.31, allocations: 102 MB / 14.82 GB, free: 32.12 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02796/62.34, allocations: 9.079 MB / 14.83 GB, free: 32.07 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02479/62.36, allocations: 9.673 MB / 14.84 GB, free: 31.94 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002702/62.37, allocations: 1.179 MB / 14.84 GB, free: 30.81 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0256/62.39, allocations: 8.397 MB / 14.85 GB, free: 30.57 MB / 1.042 GB Notification: Performance of pre-optimization done (n=796): time 1.949e-05/62.39, allocations: 0 / 14.85 GB, free: 30.57 MB / 1.042 GB Notification: Performance of matching and sorting (n=809): time 0.1599/62.55, allocations: 37.06 MB / 14.89 GB, free: 23.07 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003644/62.55, allocations: 325 kB / 14.89 GB, free: 22.78 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05668/62.61, allocations: 15.28 MB / 14.9 GB, free: 22.17 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 0.004174/62.61, allocations: 38.86 kB / 14.9 GB, free: 22.14 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0175/62.63, allocations: 5.397 MB / 14.91 GB, free: 19.57 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 0.02609/62.66, allocations: 2.805 MB / 14.91 GB, free: 17.77 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003266/62.66, allocations: 0.6875 kB / 14.91 GB, free: 17.77 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.002151/62.66, allocations: 0.7111 MB / 14.91 GB, free: 17.45 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01988/62.68, allocations: 6.908 MB / 14.92 GB, free: 15.02 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02322/62.71, allocations: 9.643 MB / 14.93 GB, free: 6.734 MB / 1.042 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: hex.hexReg[1].ele[1,1].vol2.dynBal.medium.p = 101325.0 (sin_2.p = 101325.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.2107/62.92, allocations: 27.65 MB / 14.96 GB, free: 2.285 MB / 1.057 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000174/62.92, allocations: 12 kB / 14.96 GB, free: 2.273 MB / 1.057 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.1065/63.02, allocations: 18.6 MB / 14.97 GB, free: 7.23 MB / 1.073 GB Notification: Performance of prepare postOptimizeDAE: time 1.231/64.26, allocations: 29.31 MB / 15 GB, free: 162.5 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003036/64.26, allocations: 47.56 kB / 15 GB, free: 162.5 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001657/64.26, allocations: 92.56 kB / 15 GB, free: 162.5 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02164/64.28, allocations: 2.173 MB / 15 GB, free: 162.5 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001301/64.28, allocations: 1.321 MB / 15.01 GB, free: 161.4 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02713/64.31, allocations: 1.49 MB / 15.01 GB, free: 161.4 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003251/64.31, allocations: 354.2 kB / 15.01 GB, free: 161.4 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/64.31, allocations: 3.656 kB / 15.01 GB, free: 161.4 MB / 1.089 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04986/64.36, allocations: 15.87 MB / 15.02 GB, free: 161.2 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001763/64.36, allocations: 46.44 kB / 15.02 GB, free: 161.2 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001447/64.36, allocations: 92.03 kB / 15.02 GB, free: 161.2 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02101/64.38, allocations: 2.157 MB / 15.03 GB, free: 161.2 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002142/64.38, allocations: 118.8 kB / 15.03 GB, free: 161.2 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02772/64.41, allocations: 1.458 MB / 15.03 GB, free: 161.2 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003493/64.41, allocations: 354.3 kB / 15.03 GB, free: 161.2 MB / 1.089 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: hex.hexReg[1].ele[1,1].vol2.dynBal.medium.p = 101325.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 213 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1086): * Single equations (assignments): 1083 * 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: 0 * 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: Performance of prepare postOptimizeDAE: time 0.006426/64.42, allocations: 357.6 kB / 15.03 GB, free: 161.1 MB / 1.089 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007064/64.43, allocations: 1.263 MB / 15.03 GB, free: 161.1 MB / 1.089 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05703/64.48, allocations: 16.35 MB / 15.04 GB, free: 160.7 MB / 1.089 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-05/64.48, allocations: 77.59 kB / 15.04 GB, free: 160.7 MB / 1.089 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.756e-05/64.48, allocations: 4.875 kB / 15.04 GB, free: 160.7 MB / 1.089 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04191/64.53, allocations: 13.44 MB / 15.06 GB, free: 160.2 MB / 1.089 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1406/64.67, allocations: 42.52 MB / 15.1 GB, free: 157.7 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.653e-05/64.67, allocations: 19.19 kB / 15.1 GB, free: 157.7 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02158/64.69, allocations: 2.114 MB / 15.1 GB, free: 157.7 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001695/64.69, allocations: 47.25 kB / 15.1 GB, free: 157.7 MB / 1.089 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002627/64.69, allocations: 170.5 kB / 15.1 GB, free: 157.7 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007869/64.69, allocations: 1.238 MB / 15.1 GB, free: 156.6 MB / 1.089 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-05/64.69, allocations: 28.12 kB / 15.1 GB, free: 156.6 MB / 1.089 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06971/64.76, allocations: 31.42 MB / 15.13 GB, free: 149.2 MB / 1.089 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.09282/64.85, allocations: 42.98 MB / 15.18 GB, free: 141.4 MB / 1.089 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01899/64.87, allocations: 4.122 MB / 15.18 GB, free: 141.1 MB / 1.089 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01033/64.88, allocations: 130.4 kB / 15.18 GB, free: 141.1 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.03714/64.92, allocations: 1.36 MB / 15.18 GB, free: 141.1 MB / 1.089 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004612/64.93, allocations: 471 kB / 15.18 GB, free: 141 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002902/64.93, allocations: 304.1 kB / 15.18 GB, free: 141 MB / 1.089 GB Notification: Performance of sort global known variables: time 0.04019/64.97, allocations: 12.19 MB / 15.19 GB, free: 140.7 MB / 1.089 GB Notification: Performance of remove unused functions: time 0.05462/65.02, allocations: 8.728 MB / 15.2 GB, free: 140.7 MB / 1.089 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 50 (temSen.T,hex.hexReg[1].ele[1,1].vol1.dynBal.U,hex.hexReg[1].ele[1,1].vol2.dynBal.U,hex.hexReg[1].ele[1,1].vol2.dynBal.mXi[1],hex.hexReg[1].ele[1,1].mas.T,hex.hexReg[1].ele[1,2].vol1.dynBal.U,hex.hexReg[1].ele[1,2].vol2.dynBal.U,hex.hexReg[1].ele[1,2].vol2.dynBal.mXi[1],hex.hexReg[1].ele[1,2].mas.T,hex.hexReg[1].ele[1,3].vol1.dynBal.U,hex.hexReg[1].ele[1,3].vol2.dynBal.U,hex.hexReg[1].ele[1,3].vol2.dynBal.mXi[1],hex.hexReg[1].ele[1,3].mas.T,hex.hexReg[2].ele[1,1].vol1.dynBal.U,hex.hexReg[2].ele[1,1].vol2.dynBal.U,hex.hexReg[2].ele[1,1].vol2.dynBal.mXi[1],hex.hexReg[2].ele[1,1].mas.T,hex.hexReg[2].ele[1,2].vol1.dynBal.U,hex.hexReg[2].ele[1,2].vol2.dynBal.U,hex.hexReg[2].ele[1,2].vol2.dynBal.mXi[1],hex.hexReg[2].ele[1,2].mas.T,hex.hexReg[2].ele[1,3].vol1.dynBal.U,hex.hexReg[2].ele[1,3].vol2.dynBal.U,hex.hexReg[2].ele[1,3].vol2.dynBal.mXi[1],hex.hexReg[2].ele[1,3].mas.T,hex.hexReg[3].ele[1,1].vol1.dynBal.U,hex.hexReg[3].ele[1,1].vol2.dynBal.U,hex.hexReg[3].ele[1,1].vol2.dynBal.mXi[1],hex.hexReg[3].ele[1,1].mas.T,hex.hexReg[3].ele[1,2].vol1.dynBal.U,hex.hexReg[3].ele[1,2].vol2.dynBal.U,hex.hexReg[3].ele[1,2].vol2.dynBal.mXi[1],hex.hexReg[3].ele[1,2].mas.T,hex.hexReg[3].ele[1,3].vol1.dynBal.U,hex.hexReg[3].ele[1,3].vol2.dynBal.U,hex.hexReg[3].ele[1,3].vol2.dynBal.mXi[1],hex.hexReg[3].ele[1,3].mas.T,hex.hexReg[4].ele[1,1].vol1.dynBal.U,hex.hexReg[4].ele[1,1].vol2.dynBal.U,hex.hexReg[4].ele[1,1].vol2.dynBal.mXi[1],hex.hexReg[4].ele[1,1].mas.T,hex.hexReg[4].ele[1,2].vol1.dynBal.U,hex.hexReg[4].ele[1,2].vol2.dynBal.U,hex.hexReg[4].ele[1,2].vol2.dynBal.mXi[1],hex.hexReg[4].ele[1,2].mas.T,hex.hexReg[4].ele[1,3].vol1.dynBal.U,hex.hexReg[4].ele[1,3].vol2.dynBal.U,hex.hexReg[4].ele[1,3].vol2.dynBal.mXi[1],hex.hexReg[4].ele[1,3].mas.T,mot.int.y) * Number of discrete variables: 8 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1,mot.uppHys.y,mot.lowHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (815): * Single equations (assignments): 808 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * 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: Performance of Backend phase and start with SimCode phase: time 0.01276/65.04, allocations: 5.279 MB / 15.21 GB, free: 138.6 MB / 1.089 GB Notification: Performance of simCode: created initialization part: time 0.06498/65.1, allocations: 24.04 MB / 15.23 GB, free: 138.4 MB / 1.089 GB Notification: Performance of simCode: created event and clocks part: time 3.63e-05/65.1, allocations: 13.91 kB / 15.23 GB, free: 138.4 MB / 1.089 GB Notification: Performance of simCode: created simulation system equations: time 0.01912/65.12, allocations: 7.622 MB / 15.24 GB, free: 138.3 MB / 1.089 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.07516/65.2, allocations: 8.852 MB / 15.25 GB, free: 138.2 MB / 1.089 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1756/65.37, allocations: 46.08 MB / 15.29 GB, free: 131.2 MB / 1.089 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.05439/65.43, allocations: 15.99 MB / 15.31 GB, free: 121.8 MB / 1.089 GB Notification: Performance of SimCode: time 1.673e-06/65.43, allocations: 0 / 15.31 GB, free: 121.8 MB / 1.089 GB