Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.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.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.667/1.667, allocations: 288.4 MB / 303.4 MB, free: 8.109 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.001195/0.001195, allocations: 184.5 kB / 372 MB, free: 10.26 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.448/1.448, allocations: 205.4 MB / 0.6307 GB, free: 10 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007878/0.0007876, allocations: 88.81 kB / 0.7441 GB, free: 5.938 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006573/0.0006574, allocations: 16.09 kB / 0.867 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2876, allocations: 115.3 MB / 0.9796 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.09276/0.3804, allocations: 61.81 MB / 1.04 GB, free: 13.69 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.03021/0.4107, allocations: 18.16 MB / 1.058 GB, free: 11.5 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003295/0.414, allocations: 83.44 kB / 1.058 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.003747/0.4178, allocations: 0.8153 MB / 1.059 GB, free: 10.59 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.007095/0.4249, allocations: 2.104 MB / 1.061 GB, free: 8.48 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.008967/0.4339, allocations: 2.784 MB / 1.063 GB, free: 5.719 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.4305/0.8644, allocations: 5.975 MB / 1.069 GB, free: 21.29 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003443/0.8679, allocations: 1.356 MB / 1.07 GB, free: 21.18 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004179/0.8721, allocations: 1.679 MB / 1.072 GB, free: 21.17 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003065/0.8752, allocations: 1.369 MB / 1.073 GB, free: 21.16 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0004382/0.8756, allocations: 75.38 kB / 1.074 GB, free: 21.16 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004636/0.8803, allocations: 1.566 MB / 1.075 GB, free: 21.16 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0008288/0.8811, allocations: 436.7 kB / 1.075 GB, free: 21.16 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.001084/0.8822, allocations: 443.8 kB / 1.076 GB, free: 21.13 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.00631/0.8886, allocations: 2.742 MB / 1.079 GB, free: 21.02 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 6.994e-06/0.8886, allocations: 0 / 1.079 GB, free: 21.02 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.454e-06/0.8886, allocations: 0.9688 kB / 1.079 GB, free: 21.02 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.641e-05/0.8887, allocations: 0 / 1.079 GB, free: 21.02 MB / 0.6823 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.00598/0.8947, allocations: 2.355 MB / 1.081 GB, free: 19.72 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.8947, allocations: 9.281 kB / 1.081 GB, free: 19.72 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001901/0.8967, allocations: 394.3 kB / 1.081 GB, free: 19.59 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004227/0.9009, allocations: 1.733 MB / 1.083 GB, free: 19.17 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004346/0.9014, allocations: 166 kB / 1.083 GB, free: 19.16 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002605/0.9016, allocations: 138 kB / 1.083 GB, free: 19.16 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003214/0.9049, allocations: 1.471 MB / 1.085 GB, free: 18.89 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.355e-05/0.9049, allocations: 3.844 kB / 1.085 GB, free: 18.89 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001301/0.905, allocations: 51.25 kB / 1.085 GB, free: 18.89 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-05/0.9051, allocations: 33.08 kB / 1.085 GB, free: 18.89 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002628/0.9077, allocations: 1.131 MB / 1.086 GB, free: 18.87 MB / 0.6823 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.01041/0.9182, allocations: 7.389 MB / 1.093 GB, free: 14.66 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002331/0.9205, allocations: 1.362 MB / 1.094 GB, free: 14.06 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001064/0.9216, allocations: 461.9 kB / 1.095 GB, free: 14.04 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004701/0.9263, allocations: 2.607 MB / 1.097 GB, free: 12.67 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00112/0.9275, allocations: 0.5 MB / 1.098 GB, free: 12.58 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000804/0.9283, allocations: 87.14 kB / 1.098 GB, free: 12.55 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=63): time 4.659e-06/0.9283, allocations: 6.719 kB / 1.098 GB, free: 12.54 MB / 0.6823 GB Notification: Performance of matching and sorting (n=63): time 0.003298/0.9316, allocations: 1.286 MB / 1.099 GB, free: 12.28 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.481e-05/0.9317, allocations: 197.3 kB / 1.099 GB, free: 12.06 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002398/0.9341, allocations: 1.5 MB / 1.101 GB, free: 11.89 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 9.271e-05/0.9342, allocations: 46.52 kB / 1.101 GB, free: 11.86 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006822/0.9349, allocations: 0.8951 MB / 1.102 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002031/0.9351, allocations: 228.1 kB / 1.102 GB, free: 11.39 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.847e-05/0.9352, allocations: 16.19 kB / 1.102 GB, free: 11.39 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.932e-05/0.9353, allocations: 355.1 kB / 1.102 GB, free: 11.08 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009321/0.9362, allocations: 387.9 kB / 1.103 GB, free: 11.08 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.9373, allocations: 0.7696 MB / 1.104 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009791/0.9383, allocations: 0.5017 MB / 1.104 GB, free: 10.56 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.9383, allocations: 3.094 kB / 1.104 GB, free: 10.56 MB / 0.6823 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.003347/0.9416, allocations: 1.319 MB / 1.105 GB, free: 10.39 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002653/0.9419, allocations: 405.9 kB / 1.106 GB, free: 9.914 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.458e-05/0.9419, allocations: 10.31 kB / 1.106 GB, free: 9.914 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.845e-05/0.942, allocations: 16.03 kB / 1.106 GB, free: 9.914 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.943, allocations: 260.7 kB / 1.106 GB, free: 9.91 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.475e-05/0.9431, allocations: 18.89 kB / 1.106 GB, free: 9.91 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00191/0.945, allocations: 147.6 kB / 1.106 GB, free: 9.891 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/0.9451, allocations: 55.42 kB / 1.106 GB, free: 9.887 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.9452, allocations: 3.875 kB / 1.106 GB, free: 9.887 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002357/0.9475, allocations: 1.159 MB / 1.107 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.877e-05/0.9476, allocations: 10.91 kB / 1.107 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.9476, allocations: 16.16 kB / 1.107 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009319/0.9485, allocations: 252 kB / 1.108 GB, free: 9.828 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.015e-05/0.9485, allocations: 25.89 kB / 1.108 GB, free: 9.828 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001531/0.9501, allocations: 132.3 kB / 1.108 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-05/0.9502, allocations: 50.59 kB / 1.108 GB, free: 9.816 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (123): * Single equations (assignments): 119 * 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.001046/0.9512, allocations: 0.4903 MB / 1.108 GB, free: 9.617 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002735/0.9515, allocations: 174.7 kB / 1.108 GB, free: 9.523 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00235/0.9539, allocations: 1.108 MB / 1.109 GB, free: 9.43 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.85e-05/0.9539, allocations: 13.41 kB / 1.11 GB, free: 9.43 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.9539, allocations: 3.594 kB / 1.11 GB, free: 9.43 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001649/0.9556, allocations: 0.8143 MB / 1.11 GB, free: 9.34 MB / 0.6823 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.004406/0.96, allocations: 2.709 MB / 1.113 GB, free: 8.75 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.96, allocations: 2.75 kB / 1.113 GB, free: 8.75 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007207/0.9607, allocations: 159.1 kB / 1.113 GB, free: 8.746 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000182/0.9609, allocations: 41.22 kB / 1.113 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.784e-05/0.961, allocations: 27 kB / 1.113 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008317/0.9618, allocations: 1.38 MB / 1.115 GB, free: 7.473 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.9619, allocations: 0 / 1.115 GB, free: 7.473 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003107/0.965, allocations: 1.64 MB / 1.116 GB, free: 7.125 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007613/0.9658, allocations: 370.4 kB / 1.116 GB, free: 6.926 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002744/0.966, allocations: 24.39 kB / 1.117 GB, free: 6.926 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.9672, allocations: 118.1 kB / 1.117 GB, free: 6.914 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.9673, allocations: 61.5 kB / 1.117 GB, free: 6.91 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.993e-05/0.9674, allocations: 36.48 kB / 1.117 GB, free: 6.91 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001664/0.9691, allocations: 1.088 MB / 1.118 GB, free: 6.762 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.41e-07/0.9691, allocations: 0 / 1.118 GB, free: 6.762 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.00324/0.9723, allocations: 0.9944 MB / 1.119 GB, free: 6.617 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (74): * Single equations (assignments): 66 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001233/0.9736, allocations: 0.5258 MB / 1.119 GB, free: 6.441 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003527/0.9771, allocations: 1.71 MB / 1.121 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.9771, allocations: 0.9062 kB / 1.121 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.9783, allocations: 0.575 MB / 1.121 GB, free: 6.102 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004696/0.983, allocations: 0.8713 MB / 1.122 GB, free: 6.023 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006826/0.9899, allocations: 3.916 MB / 1.126 GB, free: 4.09 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/0.9912, allocations: 1.407 MB / 1.128 GB, free: 19.34 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002544/0.9938, allocations: 427.9 kB / 1.128 GB, free: 19.22 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004816/0.9943, allocations: 146.7 kB / 1.128 GB, free: 19.21 MB / 0.698 GB Notification: Performance of SimCode: time 1.362e-06/0.9943, allocations: 0 / 1.128 GB, free: 19.21 MB / 0.698 GB Notification: Performance of Templates: time 0.05685/1.051, allocations: 33.9 MB / 1.161 GB, free: 13.19 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)