Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.566/2.566, allocations: 284.8 MB / 292.1 MB, free: 10.76 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.001684/0.001684, allocations: 187.4 kB / 360.3 MB, free: 7.535 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.78/1.78, allocations: 205.1 MB / 0.6187 GB, free: 13.2 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.001266/0.001266, allocations: 92.75 kB / 0.7317 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2672/0.2685, allocations: 121.4 MB / 0.8502 GB, free: 3.922 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6377/0.9063, allocations: 115.2 MB / 0.9627 GB, free: 78.34 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.407/6.313, allocations: 2.385 GB / 3.348 GB, free: 65.08 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003109/6.314, allocations: 92.31 kB / 3.348 GB, free: 65.04 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 54.95/61.26, allocations: 11.53 GB / 14.88 GB, free: 2.102 MB / 1.073 GB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/61.26, allocations: 12 kB / 14.88 GB, free: 2.09 MB / 1.073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0437/61.31, allocations: 4.113 MB / 14.88 GB, free: 13.95 MB / 1.089 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.372/62.68, allocations: 35.86 MB / 14.92 GB, free: 142.9 MB / 1.104 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001181/62.68, allocations: 440.1 kB / 14.92 GB, free: 142.9 MB / 1.104 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009064/62.69, allocations: 0.8138 MB / 14.92 GB, free: 142.9 MB / 1.104 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.07796/62.77, allocations: 22.07 MB / 14.94 GB, free: 142.8 MB / 1.104 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1059/62.87, allocations: 23.22 MB / 14.96 GB, free: 141.8 MB / 1.104 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001272/62.87, allocations: 40.08 kB / 14.96 GB, free: 141.8 MB / 1.104 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008129/62.88, allocations: 14.38 kB / 14.96 GB, free: 141.8 MB / 1.104 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008847/62.88, allocations: 0.6088 MB / 14.96 GB, free: 141.8 MB / 1.104 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2677/63.15, allocations: 101.8 MB / 15.06 GB, free: 111.1 MB / 1.104 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02509/63.18, allocations: 9.046 MB / 15.07 GB, free: 111 MB / 1.104 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02715/63.2, allocations: 9.715 MB / 15.08 GB, free: 110.9 MB / 1.104 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002669/63.21, allocations: 1.178 MB / 15.08 GB, free: 109.8 MB / 1.104 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02575/63.23, allocations: 8.378 MB / 15.09 GB, free: 109.5 MB / 1.104 GB Notification: Performance of pre-optimization done (n=796): time 2.108e-05/63.23, allocations: 2.312 kB / 15.09 GB, free: 109.5 MB / 1.104 GB Notification: Performance of matching and sorting (n=809): time 0.1505/63.38, allocations: 37.17 MB / 15.13 GB, free: 102.6 MB / 1.104 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001607/63.38, allocations: 320.4 kB / 15.13 GB, free: 102.3 MB / 1.104 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0498/63.43, allocations: 15.18 MB / 15.14 GB, free: 101.7 MB / 1.104 GB Notification: Performance of collectPreVariables (initialization): time 0.003433/63.44, allocations: 44.52 kB / 15.14 GB, free: 101.7 MB / 1.104 GB Notification: Performance of collectInitialEqns (initialization): time 0.0168/63.45, allocations: 5.371 MB / 15.15 GB, free: 99.88 MB / 1.104 GB Notification: Performance of collectInitialBindings (initialization): time 0.01866/63.47, allocations: 2.807 MB / 15.15 GB, free: 98.08 MB / 1.104 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003118/63.47, allocations: 0 / 15.15 GB, free: 98.08 MB / 1.104 GB Notification: Performance of setup shared object (initialization): time 0.001465/63.48, allocations: 0.7173 MB / 15.15 GB, free: 97.76 MB / 1.104 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01886/63.5, allocations: 6.953 MB / 15.16 GB, free: 97.73 MB / 1.104 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02333/63.52, allocations: 9.689 MB / 15.17 GB, free: 95.19 MB / 1.104 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.1848/63.7, allocations: 27.93 MB / 15.2 GB, free: 94.83 MB / 1.104 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001247/63.7, allocations: 13.25 kB / 15.2 GB, free: 94.83 MB / 1.104 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.05771/63.76, allocations: 17.25 MB / 15.21 GB, free: 94 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 0.006455/63.77, allocations: 29.31 MB / 15.24 GB, free: 63.52 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003465/63.77, allocations: 46.81 kB / 15.24 GB, free: 63.52 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002253/63.77, allocations: 97.72 kB / 15.24 GB, free: 63.52 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02922/63.8, allocations: 2.178 MB / 15.24 GB, free: 63.52 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00159/63.8, allocations: 1.314 MB / 15.24 GB, free: 62.36 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04214/63.84, allocations: 1.488 MB / 15.25 GB, free: 62.25 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004539/63.85, allocations: 353.1 kB / 15.25 GB, free: 62.25 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/63.85, allocations: 3.188 kB / 15.25 GB, free: 62.25 MB / 1.104 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07191/63.92, allocations: 15.95 MB / 15.26 GB, free: 62.09 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002741/63.92, allocations: 45.5 kB / 15.26 GB, free: 62.09 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002118/63.92, allocations: 94.44 kB / 15.26 GB, free: 62.09 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02146/63.94, allocations: 2.166 MB / 15.26 GB, free: 62.09 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002672/63.94, allocations: 115.6 kB / 15.26 GB, free: 62.09 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02804/63.97, allocations: 1.449 MB / 15.27 GB, free: 62 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003702/63.97, allocations: 355.9 kB / 15.27 GB, free: 62 MB / 1.104 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.007035/63.98, allocations: 370.8 kB / 15.27 GB, free: 61.83 MB / 1.104 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007504/63.99, allocations: 1.252 MB / 15.27 GB, free: 61.18 MB / 1.104 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0599/64.05, allocations: 16.43 MB / 15.28 GB, free: 55.98 MB / 1.104 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.192e-05/64.05, allocations: 83.89 kB / 15.28 GB, free: 55.91 MB / 1.104 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.573e-05/64.05, allocations: 6.016 kB / 15.28 GB, free: 55.91 MB / 1.104 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04157/64.09, allocations: 13.53 MB / 15.3 GB, free: 47.13 MB / 1.104 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1439/64.23, allocations: 42.57 MB / 15.34 GB, free: 12.06 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.982e-05/64.23, allocations: 22.58 kB / 15.34 GB, free: 12.04 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02232/64.25, allocations: 2.116 MB / 15.34 GB, free: 10.42 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001732/64.26, allocations: 55.81 kB / 15.34 GB, free: 10.38 MB / 1.104 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002965/64.26, allocations: 169.9 kB / 15.34 GB, free: 10.24 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007563/64.26, allocations: 1.241 MB / 15.34 GB, free: 8.98 MB / 1.104 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.387e-05/64.26, allocations: 27.88 kB / 15.34 GB, free: 8.961 MB / 1.104 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 1.551/65.81, allocations: 33.04 MB / 15.37 GB, free: 138.2 MB / 1.104 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.09546/65.91, allocations: 43.19 MB / 15.42 GB, free: 130.4 MB / 1.104 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01887/65.92, allocations: 4.014 MB / 15.42 GB, free: 130.4 MB / 1.104 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0077/65.93, allocations: 130.5 kB / 15.42 GB, free: 130.4 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02518/65.96, allocations: 1.341 MB / 15.42 GB, free: 130.4 MB / 1.104 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003244/65.96, allocations: 473.8 kB / 15.42 GB, free: 130.3 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002643/65.96, allocations: 305.2 kB / 15.42 GB, free: 130.3 MB / 1.104 GB Notification: Performance of sort global known variables: time 0.03561/66, allocations: 12.09 MB / 15.43 GB, free: 130 MB / 1.104 GB Notification: Performance of remove unused functions: time 0.05628/66.06, allocations: 8.707 MB / 15.44 GB, free: 130 MB / 1.104 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.0123/66.07, allocations: 5.29 MB / 15.45 GB, free: 128 MB / 1.104 GB Notification: Performance of simCode: created initialization part: time 0.06312/66.13, allocations: 24.17 MB / 15.47 GB, free: 127.7 MB / 1.104 GB Notification: Performance of simCode: created event and clocks part: time 3.844e-05/66.13, allocations: 13.44 kB / 15.47 GB, free: 127.7 MB / 1.104 GB Notification: Performance of simCode: created simulation system equations: time 0.02045/66.15, allocations: 7.668 MB / 15.48 GB, free: 127.6 MB / 1.104 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.07948/66.23, allocations: 8.833 MB / 15.49 GB, free: 127.6 MB / 1.104 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1753/66.41, allocations: 45.88 MB / 15.53 GB, free: 122 MB / 1.104 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.05408/66.46, allocations: 15.9 MB / 15.55 GB, free: 120.9 MB / 1.104 GB Notification: Performance of SimCode: time 1.873e-06/66.46, allocations: 0 / 15.55 GB, free: 120.9 MB / 1.104 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe 2>&1)