Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000949/0.0009488, allocations: 90.75 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009533/0.0009534, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.609/1.609, allocations: 205.4 MB / 222.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.499/1.499, allocations: 252 MB / 0.5102 GB, free: 4.746 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006198/0.00062, allocations: 12 kB / 0.6243 GB, free: 1.109 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6197/0.6204, allocations: 106.3 MB / 0.7281 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.0476/0.668, allocations: 49.17 MB / 0.7761 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02515/0.6932, allocations: 16.6 MB / 0.7924 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003954/0.6972, allocations: 75.5 kB / 0.7924 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.003699/0.7009, allocations: 0.7977 MB / 0.7932 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.007433/0.7084, allocations: 1.877 MB / 0.795 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.008587/0.717, allocations: 2.718 MB / 0.7977 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.008859/0.7258, allocations: 5.152 MB / 0.8027 GB, free: 14.85 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003933/0.7298, allocations: 1.237 MB / 0.8039 GB, free: 13.59 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004751/0.7346, allocations: 1.528 MB / 0.8054 GB, free: 12.05 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002946/0.7376, allocations: 1.26 MB / 0.8067 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0006845/0.7383, allocations: 71.83 kB / 0.8067 GB, free: 10.72 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004825/0.7431, allocations: 1.501 MB / 0.8082 GB, free: 9.215 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001001/0.7441, allocations: 414.2 kB / 0.8086 GB, free: 8.809 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001188/0.7454, allocations: 404.6 kB / 0.809 GB, free: 8.406 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.004608/0.75, allocations: 2.49 MB / 0.8114 GB, free: 5.91 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.75, allocations: 0 / 0.8114 GB, free: 5.91 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.814e-06/0.75, allocations: 0 / 0.8114 GB, free: 5.91 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001264/0.7501, allocations: 4 kB / 0.8114 GB, free: 5.906 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.005359/0.7555, allocations: 2.237 MB / 0.8136 GB, free: 3.602 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.7556, allocations: 8.031 kB / 0.8136 GB, free: 3.594 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002249/0.7578, allocations: 492.9 kB / 0.8141 GB, free: 3.109 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003841/0.7617, allocations: 1.571 MB / 0.8156 GB, free: 1.488 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003797/0.7621, allocations: 162.1 kB / 0.8158 GB, free: 1.328 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003269/0.7624, allocations: 119.9 kB / 0.8159 GB, free: 1.211 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003081/0.7655, allocations: 1.392 MB / 0.8172 GB, free: 15.72 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.435e-05/0.7656, allocations: 3.938 kB / 0.8172 GB, free: 15.71 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001329/0.7657, allocations: 48 kB / 0.8173 GB, free: 15.67 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.738e-05/0.7658, allocations: 28 kB / 0.8173 GB, free: 15.64 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002845/0.7686, allocations: 1.132 MB / 0.8184 GB, free: 14.5 MB / 0.6387 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.01074/0.7794, allocations: 7.003 MB / 0.8252 GB, free: 6.961 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/0.782, allocations: 1.434 MB / 0.8266 GB, free: 5.414 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009877/0.783, allocations: 435.8 kB / 0.8271 GB, free: 4.988 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005195/0.7882, allocations: 3.078 MB / 0.8301 GB, free: 1.566 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001074/0.7893, allocations: 470.8 kB / 0.8305 GB, free: 1.098 MB / 0.6387 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007278/0.7901, allocations: 79.34 kB / 0.8306 GB, free: 1.02 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=60): time 5.841e-06/0.7901, allocations: 8 kB / 0.8306 GB, free: 1.012 MB / 0.6387 GB Notification: Performance of matching and sorting (n=60): time 0.003168/0.7933, allocations: 1.287 MB / 0.8319 GB, free: 15.7 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.262e-05/0.7934, allocations: 137.1 kB / 0.832 GB, free: 15.54 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002655/0.796, allocations: 1.57 MB / 0.8335 GB, free: 13.96 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 9.706e-05/0.7962, allocations: 45.7 kB / 0.8336 GB, free: 13.91 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.001029/0.7972, allocations: 0.8957 MB / 0.8344 GB, free: 13.01 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002821/0.7975, allocations: 216.9 kB / 0.8346 GB, free: 12.79 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.249e-05/0.7976, allocations: 16 kB / 0.8347 GB, free: 12.78 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0002156/0.7978, allocations: 341.9 kB / 0.835 GB, free: 12.44 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009981/0.7988, allocations: 397.8 kB / 0.8354 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.8, allocations: 0.7931 MB / 0.8361 GB, free: 11.07 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.8012, allocations: 0.5005 MB / 0.8366 GB, free: 10.56 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.8013, allocations: 3.953 kB / 0.8366 GB, free: 10.56 MB / 0.6544 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00287/0.8041, allocations: 1.329 MB / 0.8379 GB, free: 9.215 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003411/0.8045, allocations: 443.6 kB / 0.8384 GB, free: 8.621 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-05/0.8045, allocations: 12 kB / 0.8384 GB, free: 8.609 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.473e-05/0.8046, allocations: 16 kB / 0.8384 GB, free: 8.594 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.8057, allocations: 267.6 kB / 0.8386 GB, free: 8.332 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.854e-05/0.8057, allocations: 23.94 kB / 0.8387 GB, free: 8.309 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/0.8071, allocations: 136.4 kB / 0.8388 GB, free: 8.176 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001363/0.8073, allocations: 51.98 kB / 0.8388 GB, free: 8.125 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.8073, allocations: 7.938 kB / 0.8388 GB, free: 8.117 MB / 0.6544 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002563/0.8099, allocations: 1.161 MB / 0.84 GB, free: 6.949 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.332e-05/0.8099, allocations: 20.08 kB / 0.84 GB, free: 6.93 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/0.81, allocations: 16 kB / 0.84 GB, free: 6.914 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009433/0.8109, allocations: 263.6 kB / 0.8403 GB, free: 6.656 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.401e-05/0.811, allocations: 23.92 kB / 0.8403 GB, free: 6.633 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.8123, allocations: 120.5 kB / 0.8404 GB, free: 6.516 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.8124, allocations: 55.98 kB / 0.8405 GB, free: 6.461 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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.000834/0.8133, allocations: 485.5 kB / 0.8409 GB, free: 5.977 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003172/0.8136, allocations: 165.9 kB / 0.8411 GB, free: 5.812 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00279/0.8164, allocations: 1.174 MB / 0.8422 GB, free: 4.625 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/0.8164, allocations: 8 kB / 0.8422 GB, free: 4.617 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.8164, allocations: 4 kB / 0.8422 GB, free: 4.613 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001888/0.8183, allocations: 1.006 MB / 0.8432 GB, free: 3.555 MB / 0.6544 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.005053/0.8234, allocations: 2.449 MB / 0.8456 GB, free: 1.039 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.8234, allocations: 0 / 0.8456 GB, free: 1.039 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00071/0.8241, allocations: 151.9 kB / 0.8458 GB, free: 0.8906 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002043/0.8243, allocations: 36.78 kB / 0.8458 GB, free: 0.8516 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.877e-05/0.8244, allocations: 23.98 kB / 0.8458 GB, free: 0.8281 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001733/0.8262, allocations: 1.363 MB / 0.8471 GB, free: 15.34 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.8262, allocations: 7.969 kB / 0.8472 GB, free: 15.33 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003192/0.8294, allocations: 1.62 MB / 0.8487 GB, free: 13.68 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008363/0.8302, allocations: 354.6 kB / 0.8491 GB, free: 13.31 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000397/0.8306, allocations: 16 kB / 0.8491 GB, free: 13.3 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.8318, allocations: 119.8 kB / 0.8492 GB, free: 13.18 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.832, allocations: 52.48 kB / 0.8493 GB, free: 13.12 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.701e-05/0.832, allocations: 31.98 kB / 0.8493 GB, free: 13.09 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002103/0.8341, allocations: 1.114 MB / 0.8504 GB, free: 11.96 MB / 0.67 GB Notification: Performance of sort global known variables: time 2e-07/0.8342, allocations: 0 / 0.8504 GB, free: 11.96 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003356/0.8375, allocations: 0.9122 MB / 0.8513 GB, free: 11.04 MB / 0.67 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.outCon.T) * 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 (69): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.002102/0.8396, allocations: 0.7331 MB / 0.852 GB, free: 10.44 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.004019/0.8437, allocations: 1.718 MB / 0.8537 GB, free: 8.695 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.8437, allocations: 4 kB / 0.8537 GB, free: 8.691 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001257/0.8449, allocations: 0.5724 MB / 0.8542 GB, free: 8.109 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003908/0.8489, allocations: 0.7415 MB / 0.8549 GB, free: 7.371 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007231/0.8561, allocations: 3.779 MB / 0.8586 GB, free: 3.551 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001383/0.8575, allocations: 1.372 MB / 0.86 GB, free: 2.148 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.002045/0.8596, allocations: 422.2 kB / 0.8604 GB, free: 1.73 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005391/0.8601, allocations: 135.4 kB / 0.8605 GB, free: 1.598 MB / 0.67 GB Notification: Performance of SimCode: time 7.11e-07/0.8602, allocations: 0 / 0.8605 GB, free: 1.598 MB / 0.67 GB Notification: Performance of Templates: time 0.0559/0.9161, allocations: 30.96 MB / 0.8907 GB, free: 3.051 MB / 0.7012 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1) Environment - environmentSimulation: