Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.286/1.286, allocations: 252 MB / 267.9 MB, free: 10.95 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001042/0.001042, allocations: 183.2 kB / 327.6 MB, free: 2.172 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.401/1.401, allocations: 205.4 MB / 0.5785 GB, free: 20.18 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008194/0.0008193, allocations: 88.53 kB / 0.6831 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003349/0.0003349, allocations: 15.38 kB / 0.7974 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.166, allocations: 106.3 MB / 0.9012 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7307/0.8967, allocations: 440.6 MB / 1.332 GB, free: 7.992 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/0.897, allocations: 101.4 kB / 1.332 GB, free: 7.938 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.64/4.537, allocations: 1.097 GB / 2.429 GB, free: 126.2 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.214e-06/4.537, allocations: 5.953 kB / 2.429 GB, free: 126.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002228/4.537, allocations: 54.7 kB / 2.429 GB, free: 126.2 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.006149/4.544, allocations: 2.656 MB / 2.431 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/4.544, allocations: 9.562 kB / 2.431 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001612/4.545, allocations: 376.3 kB / 2.432 GB, free: 125.4 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005671/4.551, allocations: 2.428 MB / 2.434 GB, free: 124.9 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/4.551, allocations: 101 kB / 2.434 GB, free: 124.9 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002282/4.551, allocations: 138 kB / 2.434 GB, free: 124.9 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002667/4.554, allocations: 1.422 MB / 2.436 GB, free: 124.6 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.751e-05/4.554, allocations: 6.75 kB / 2.436 GB, free: 124.6 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/4.554, allocations: 53.31 kB / 2.436 GB, free: 124.6 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.04e-05/4.554, allocations: 36.05 kB / 2.436 GB, free: 124.6 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002209/4.556, allocations: 1.031 MB / 2.437 GB, free: 124.6 MB / 0.8855 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.008472/4.565, allocations: 7.096 MB / 2.444 GB, free: 120.6 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/4.567, allocations: 1.289 MB / 2.445 GB, free: 120 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007028/4.567, allocations: 403.4 kB / 2.446 GB, free: 120 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003105/4.57, allocations: 2.23 MB / 2.448 GB, free: 118.7 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008125/4.571, allocations: 442.4 kB / 2.448 GB, free: 118.6 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005949/4.572, allocations: 82.06 kB / 2.448 GB, free: 118.6 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=68): time 3.326e-06/4.572, allocations: 2.969 kB / 2.448 GB, free: 118.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=68): time 0.00256/4.574, allocations: 1.282 MB / 2.449 GB, free: 118.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.147e-05/4.575, allocations: 166.7 kB / 2.45 GB, free: 118.1 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001951/4.576, allocations: 1.433 MB / 2.451 GB, free: 117.9 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.17e-05/4.577, allocations: 45.33 kB / 2.451 GB, free: 117.9 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006549/4.577, allocations: 0.8998 MB / 2.452 GB, free: 117.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/4.577, allocations: 240.2 kB / 2.452 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-05/4.577, allocations: 15.69 kB / 2.452 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.234e-05/4.578, allocations: 345.8 kB / 2.453 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006135/4.578, allocations: 349.1 kB / 2.453 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007749/4.579, allocations: 0.7222 MB / 2.454 GB, free: 116.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/4.58, allocations: 1.042 MB / 2.455 GB, free: 116.4 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/4.58, allocations: 3.906 kB / 2.455 GB, free: 116.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001896/4.582, allocations: 1.226 MB / 2.456 GB, free: 116.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.000156/4.582, allocations: 394.3 kB / 2.456 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.118e-05/4.582, allocations: 11.19 kB / 2.456 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.516e-05/4.582, allocations: 14.91 kB / 2.456 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008246/4.583, allocations: 245.8 kB / 2.456 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.873e-05/4.583, allocations: 28.61 kB / 2.456 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/4.585, allocations: 129.5 kB / 2.457 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.87e-05/4.585, allocations: 52.69 kB / 2.457 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.652e-06/4.585, allocations: 3.969 kB / 2.457 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001645/4.586, allocations: 1.052 MB / 2.458 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/4.586, allocations: 10.78 kB / 2.458 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/4.586, allocations: 22.86 kB / 2.458 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007571/4.587, allocations: 240.1 kB / 2.458 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.421e-05/4.587, allocations: 20.83 kB / 2.458 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009947/4.588, allocations: 132.7 kB / 2.458 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.679e-05/4.588, allocations: 51.64 kB / 2.458 GB, free: 115.8 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 117 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009381/4.589, allocations: 498 kB / 2.459 GB, free: 115.6 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001901/4.589, allocations: 172.8 kB / 2.459 GB, free: 115.5 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001955/4.591, allocations: 1.167 MB / 2.46 GB, free: 115.3 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/4.591, allocations: 7.156 kB / 2.46 GB, free: 115.3 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/4.591, allocations: 3.812 kB / 2.46 GB, free: 115.3 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001264/4.593, allocations: 0.8606 MB / 2.461 GB, free: 115.1 MB / 0.8855 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.003459/4.596, allocations: 2.434 MB / 2.463 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/4.596, allocations: 5.812 kB / 2.463 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006391/4.597, allocations: 151 kB / 2.463 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001427/4.597, allocations: 31.97 kB / 2.463 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-05/4.597, allocations: 23.66 kB / 2.463 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006882/4.598, allocations: 1.295 MB / 2.465 GB, free: 113.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/4.598, allocations: 0 / 2.465 GB, free: 113.4 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002186/4.6, allocations: 1.593 MB / 2.466 GB, free: 113 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005152/4.6, allocations: 327.5 kB / 2.466 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/4.601, allocations: 22.38 kB / 2.466 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008296/4.601, allocations: 110.8 kB / 2.467 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/4.602, allocations: 56.83 kB / 2.467 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.929e-05/4.602, allocations: 35.16 kB / 2.467 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001076/4.603, allocations: 0.9562 MB / 2.468 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/4.603, allocations: 0 / 2.468 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.00291/4.606, allocations: 1.085 MB / 2.469 GB, free: 112.5 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001666/4.607, allocations: 1.118 MB / 2.47 GB, free: 112.3 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002545/4.61, allocations: 1.592 MB / 2.471 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/4.61, allocations: 4 kB / 2.471 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0008405/4.611, allocations: 0.5398 MB / 2.472 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003201/4.614, allocations: 0.7539 MB / 2.473 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004997/4.619, allocations: 3.823 MB / 2.476 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/4.62, allocations: 1.403 MB / 2.478 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002162/4.622, allocations: 424.1 kB / 2.478 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004161/4.623, allocations: 133.2 kB / 2.478 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of SimCode: time 1.273e-06/4.623, allocations: 0.5 kB / 2.478 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of Templates: time 0.0549/4.677, allocations: 36.21 MB / 2.514 GB, free: 108.2 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)