Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.383/1.383, allocations: 285.5 MB / 292.8 MB, free: 10.45 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.0009662/0.0009662, allocations: 189.2 kB / 361.1 MB, free: 7.086 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.152/1.152, allocations: 205.1 MB / 0.6195 GB, free: 10.28 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.0009191/0.0009192, allocations: 89.12 kB / 0.7325 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2303/0.2313, allocations: 121.4 MB / 0.8511 GB, free: 2.887 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5332/0.7645, allocations: 115.3 MB / 0.9638 GB, free: 78.35 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.94/4.705, allocations: 2.385 GB / 3.349 GB, free: 131.4 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000199/4.705, allocations: 93.17 kB / 3.349 GB, free: 131.3 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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 34.55/39.25, allocations: 11.53 GB / 14.88 GB, free: 28.43 MB / 1.073 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/39.25, allocations: 8 kB / 14.88 GB, free: 28.42 MB / 1.073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03046/39.28, allocations: 4.125 MB / 14.88 GB, free: 24.27 MB / 1.073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08801/39.37, allocations: 35.85 MB / 14.92 GB, free: 4.387 MB / 1.089 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009992/39.37, allocations: 439.9 kB / 14.92 GB, free: 3.957 MB / 1.089 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007568/39.38, allocations: 0.8124 MB / 14.92 GB, free: 3.145 MB / 1.089 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.9847/40.37, allocations: 22.07 MB / 14.94 GB, free: 154.8 MB / 1.104 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05587/40.42, allocations: 23.21 MB / 14.97 GB, free: 153.8 MB / 1.104 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000591/40.42, allocations: 38.64 kB / 14.97 GB, free: 153.8 MB / 1.104 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004595/40.43, allocations: 15.12 kB / 14.97 GB, free: 153.8 MB / 1.104 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004707/40.43, allocations: 0.6124 MB / 14.97 GB, free: 153.8 MB / 1.104 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1839/40.61, allocations: 101.9 MB / 15.07 GB, free: 123 MB / 1.104 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01853/40.63, allocations: 9.047 MB / 15.07 GB, free: 123 MB / 1.104 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01576/40.65, allocations: 9.713 MB / 15.08 GB, free: 122.9 MB / 1.104 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001772/40.65, allocations: 1.184 MB / 15.08 GB, free: 121.7 MB / 1.104 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0144/40.66, allocations: 8.38 MB / 15.09 GB, free: 121.5 MB / 1.104 GB Notification: Performance of pre-optimization done (n=796): time 1.307e-05/40.66, allocations: 2.562 kB / 15.09 GB, free: 121.5 MB / 1.104 GB Notification: Performance of matching and sorting (n=809): time 0.1005/40.76, allocations: 37.17 MB / 15.13 GB, free: 114.5 MB / 1.104 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001709/40.76, allocations: 320.3 kB / 15.13 GB, free: 114.2 MB / 1.104 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03546/40.8, allocations: 15.18 MB / 15.14 GB, free: 113.7 MB / 1.104 GB Notification: Performance of collectPreVariables (initialization): time 0.002834/40.8, allocations: 42.64 kB / 15.14 GB, free: 113.6 MB / 1.104 GB Notification: Performance of collectInitialEqns (initialization): time 0.01396/40.82, allocations: 5.371 MB / 15.15 GB, free: 111.8 MB / 1.104 GB Notification: Performance of collectInitialBindings (initialization): time 0.01287/40.83, allocations: 2.804 MB / 15.15 GB, free: 110 MB / 1.104 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001741/40.83, allocations: 2.094 kB / 15.15 GB, free: 110 MB / 1.104 GB Notification: Performance of setup shared object (initialization): time 0.0008602/40.83, allocations: 0.7162 MB / 15.15 GB, free: 109.7 MB / 1.104 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01031/40.84, allocations: 6.95 MB / 15.16 GB, free: 109.7 MB / 1.104 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01341/40.85, allocations: 9.689 MB / 15.17 GB, free: 107.1 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.09/40.94, allocations: 27.94 MB / 15.2 GB, free: 106.8 MB / 1.104 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001017/40.94, allocations: 11.22 kB / 15.2 GB, free: 106.8 MB / 1.104 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.03739/40.98, allocations: 17.25 MB / 15.21 GB, free: 106 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 0.005459/40.99, allocations: 29.31 MB / 15.24 GB, free: 75.48 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002194/40.99, allocations: 45.47 kB / 15.24 GB, free: 75.48 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001854/40.99, allocations: 101.7 kB / 15.24 GB, free: 75.47 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01308/41, allocations: 2.177 MB / 15.24 GB, free: 75.47 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/41, allocations: 1.317 MB / 15.25 GB, free: 74.3 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01892/41.02, allocations: 1.482 MB / 15.25 GB, free: 74.21 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003356/41.02, allocations: 352.7 kB / 15.25 GB, free: 74.21 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/41.02, allocations: 9.25 kB / 15.25 GB, free: 74.2 MB / 1.104 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03577/41.06, allocations: 15.95 MB / 15.26 GB, free: 74.04 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002441/41.06, allocations: 45.41 kB / 15.26 GB, free: 74.04 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001566/41.06, allocations: 94.28 kB / 15.26 GB, free: 74.04 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01138/41.07, allocations: 2.174 MB / 15.27 GB, free: 74.04 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002117/41.07, allocations: 119.7 kB / 15.27 GB, free: 74.04 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01947/41.09, allocations: 1.451 MB / 15.27 GB, free: 73.95 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003111/41.1, allocations: 353.3 kB / 15.27 GB, free: 73.95 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.005781/41.1, allocations: 350.7 kB / 15.27 GB, free: 73.79 MB / 1.104 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00642/41.11, allocations: 1.257 MB / 15.27 GB, free: 73.14 MB / 1.104 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03816/41.15, allocations: 16.43 MB / 15.28 GB, free: 72.78 MB / 1.104 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001046/41.15, allocations: 76.78 kB / 15.28 GB, free: 72.78 MB / 1.104 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.796e-05/41.15, allocations: 2.312 kB / 15.28 GB, free: 72.78 MB / 1.104 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02414/41.17, allocations: 13.53 MB / 15.3 GB, free: 72.27 MB / 1.104 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09494/41.27, allocations: 42.57 MB / 15.34 GB, free: 41.58 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.398e-05/41.27, allocations: 16 kB / 15.34 GB, free: 41.57 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01122/41.28, allocations: 2.121 MB / 15.34 GB, free: 39.95 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001595/41.28, allocations: 51.23 kB / 15.34 GB, free: 39.9 MB / 1.104 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001843/41.28, allocations: 168.5 kB / 15.34 GB, free: 39.77 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005475/41.28, allocations: 1.24 MB / 15.34 GB, free: 38.5 MB / 1.104 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-05/41.28, allocations: 23.22 kB / 15.34 GB, free: 38.49 MB / 1.104 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03773/41.32, allocations: 31.55 MB / 15.37 GB, free: 9.574 MB / 1.104 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 1.132/42.45, allocations: 44.43 MB / 15.42 GB, free: 150.7 MB / 1.104 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01722/42.47, allocations: 4.016 MB / 15.42 GB, free: 150.7 MB / 1.104 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00689/42.47, allocations: 127.4 kB / 15.42 GB, free: 150.7 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0179/42.49, allocations: 1.341 MB / 15.42 GB, free: 150.7 MB / 1.104 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002555/42.49, allocations: 473.9 kB / 15.42 GB, free: 150.6 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002345/42.5, allocations: 311.1 kB / 15.42 GB, free: 150.6 MB / 1.104 GB Notification: Performance of sort global known variables: time 0.02744/42.52, allocations: 12.08 MB / 15.44 GB, free: 150.3 MB / 1.104 GB Notification: Performance of remove unused functions: time 0.04303/42.57, allocations: 8.705 MB / 15.44 GB, free: 150.3 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.009055/42.58, allocations: 5.28 MB / 15.45 GB, free: 148.3 MB / 1.104 GB Notification: Performance of simCode: created initialization part: time 0.03764/42.61, allocations: 24.18 MB / 15.47 GB, free: 148 MB / 1.104 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-05/42.61, allocations: 10.19 kB / 15.47 GB, free: 148 MB / 1.104 GB Notification: Performance of simCode: created simulation system equations: time 0.01212/42.63, allocations: 7.666 MB / 15.48 GB, free: 148 MB / 1.104 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04562/42.67, allocations: 8.835 MB / 15.49 GB, free: 147.8 MB / 1.104 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1114/42.78, allocations: 45.9 MB / 15.53 GB, free: 142.2 MB / 1.104 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03702/42.82, allocations: 15.89 MB / 15.55 GB, free: 141.1 MB / 1.104 GB Notification: Performance of SimCode: time 9.02e-07/42.82, allocations: 0 / 15.55 GB, free: 141.1 MB / 1.104 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe 2>&1)