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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008862/0.0008865, allocations: 91.06 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.001141/0.001141, 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.631/1.631, allocations: 205.4 MB / 222.1 MB, free: 5.746 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.597/1.597, allocations: 252 MB / 0.5102 GB, free: 4.758 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.0007644/0.0007647, allocations: 24 kB / 0.6243 GB, free: 1.105 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5661/0.5668, allocations: 106.3 MB / 0.7281 GB, free: 11.4 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06027/0.6272, allocations: 61.84 MB / 0.7885 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02697/0.6542, allocations: 18.12 MB / 0.8062 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003131/0.6574, allocations: 75.5 kB / 0.8063 GB, free: 11.16 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002828/0.6602, allocations: 0.8269 MB / 0.8071 GB, free: 10.33 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.006308/0.6665, allocations: 2.101 MB / 0.8091 GB, free: 8.219 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.008838/0.6754, allocations: 2.751 MB / 0.8118 GB, free: 5.492 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.01099/0.6864, allocations: 5.979 MB / 0.8177 GB, free: 15.49 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002922/0.6894, allocations: 1.352 MB / 0.819 GB, free: 14.11 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004023/0.6934, allocations: 1.661 MB / 0.8206 GB, free: 12.45 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002671/0.6961, allocations: 1.373 MB / 0.8219 GB, free: 11.07 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0003581/0.6965, allocations: 76 kB / 0.822 GB, free: 10.99 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003853/0.7003, allocations: 1.552 MB / 0.8235 GB, free: 9.438 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0006441/0.701, allocations: 430.2 kB / 0.8239 GB, free: 9.016 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0009267/0.7019, allocations: 440.6 kB / 0.8244 GB, free: 8.578 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.004446/0.7064, allocations: 2.728 MB / 0.827 GB, free: 5.844 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.7064, allocations: 0 / 0.827 GB, free: 5.844 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.445e-06/0.7064, allocations: 0 / 0.827 GB, free: 5.844 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 7.952e-05/0.7065, allocations: 0 / 0.827 GB, free: 5.844 MB / 0.6387 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.005162/0.7117, allocations: 2.353 MB / 0.8293 GB, free: 3.418 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.7118, allocations: 12.03 kB / 0.8293 GB, free: 3.406 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001741/0.7135, allocations: 393 kB / 0.8297 GB, free: 3.02 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003674/0.7172, allocations: 1.718 MB / 0.8314 GB, free: 1.254 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003425/0.7176, allocations: 170.3 kB / 0.8315 GB, free: 1.086 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000236/0.7178, allocations: 143.9 kB / 0.8317 GB, free: 0.9453 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002741/0.7206, allocations: 1.458 MB / 0.8331 GB, free: 15.39 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.208e-05/0.7206, allocations: 11.88 kB / 0.8331 GB, free: 15.38 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001343/0.7207, allocations: 52 kB / 0.8332 GB, free: 15.33 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.347e-05/0.7208, allocations: 32 kB / 0.8332 GB, free: 15.3 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002473/0.7233, allocations: 1.133 MB / 0.8343 GB, free: 14.16 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 preOpt removeSimpleEquations (simulation): time 0.009219/0.7325, allocations: 7.377 MB / 0.8415 GB, free: 6.207 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002142/0.7347, allocations: 1.359 MB / 0.8428 GB, free: 4.734 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009254/0.7356, allocations: 466.5 kB / 0.8433 GB, free: 4.273 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004127/0.7398, allocations: 2.596 MB / 0.8458 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001006/0.7408, allocations: 0.4947 MB / 0.8463 GB, free: 0.9336 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004908/0.7413, allocations: 83.34 kB / 0.8464 GB, free: 0.8516 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=63): time 2.545e-06/0.7413, allocations: 0 / 0.8464 GB, free: 0.8516 MB / 0.6544 GB Notification: Performance of matching and sorting (n=63): time 0.003022/0.7443, allocations: 1.284 MB / 0.8476 GB, free: 15.54 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.7444, allocations: 196.5 kB / 0.8478 GB, free: 15.31 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001959/0.7464, allocations: 1.502 MB / 0.8493 GB, free: 13.81 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 7.437e-05/0.7465, allocations: 45.69 kB / 0.8493 GB, free: 13.76 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008032/0.7473, allocations: 0.8997 MB / 0.8502 GB, free: 12.85 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002451/0.7476, allocations: 224.8 kB / 0.8504 GB, free: 12.62 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.7477, allocations: 20 kB / 0.8504 GB, free: 12.61 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0002184/0.7479, allocations: 341.9 kB / 0.8508 GB, free: 12.27 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008432/0.7488, allocations: 385.8 kB / 0.8511 GB, free: 11.89 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.7501, allocations: 0.7693 MB / 0.8519 GB, free: 10.95 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000985/0.7511, allocations: 0.4923 MB / 0.8524 GB, free: 10.45 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.7511, allocations: 4 kB / 0.8524 GB, free: 10.45 MB / 0.67 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002564/0.7537, allocations: 1.315 MB / 0.8537 GB, free: 9.121 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002652/0.754, allocations: 409.2 kB / 0.8541 GB, free: 8.578 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.116e-05/0.754, allocations: 16 kB / 0.8541 GB, free: 8.562 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.968e-05/0.754, allocations: 19.98 kB / 0.8541 GB, free: 8.543 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.7551, allocations: 255.6 kB / 0.8543 GB, free: 8.293 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.607e-05/0.7551, allocations: 27.92 kB / 0.8544 GB, free: 8.266 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.7563, allocations: 136.4 kB / 0.8545 GB, free: 8.133 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.351e-05/0.7564, allocations: 51.98 kB / 0.8545 GB, free: 8.082 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 8.656e-06/0.7564, allocations: 4 kB / 0.8545 GB, free: 8.078 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002276/0.7587, allocations: 1.151 MB / 0.8557 GB, free: 6.914 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.7587, allocations: 8 kB / 0.8557 GB, free: 6.906 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.7587, allocations: 16 kB / 0.8557 GB, free: 6.891 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009558/0.7597, allocations: 260.2 kB / 0.8559 GB, free: 6.637 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.7597, allocations: 15.94 kB / 0.8559 GB, free: 6.621 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.7609, allocations: 140.4 kB / 0.8561 GB, free: 6.484 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.51e-05/0.761, allocations: 51.98 kB / 0.8561 GB, free: 6.434 MB / 0.67 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 (122): * Single equations (assignments): 118 * 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.0008958/0.7619, allocations: 492.7 kB / 0.8566 GB, free: 5.941 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002162/0.7621, allocations: 165.9 kB / 0.8568 GB, free: 5.777 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002447/0.7645, allocations: 1.108 MB / 0.8578 GB, free: 4.66 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.7646, allocations: 11.95 kB / 0.8579 GB, free: 4.648 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.7646, allocations: 3.984 kB / 0.8579 GB, free: 4.645 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001756/0.7663, allocations: 0.8238 MB / 0.8587 GB, free: 3.805 MB / 0.67 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.004947/0.7713, allocations: 2.693 MB / 0.8613 GB, free: 1.023 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.7713, allocations: 7.938 kB / 0.8613 GB, free: 1.016 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007245/0.7721, allocations: 164 kB / 0.8615 GB, free: 0.8555 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002084/0.7723, allocations: 36.83 kB / 0.8615 GB, free: 0.8164 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.714e-05/0.7723, allocations: 23.98 kB / 0.8615 GB, free: 0.793 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001353/0.7737, allocations: 1.382 MB / 0.8629 GB, free: 15.28 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.7737, allocations: 0 / 0.8629 GB, free: 15.28 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003101/0.7768, allocations: 1.635 MB / 0.8645 GB, free: 13.6 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008417/0.7777, allocations: 374.5 kB / 0.8648 GB, free: 13.21 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002553/0.778, allocations: 12 kB / 0.8648 GB, free: 13.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.779, allocations: 127.7 kB / 0.865 GB, free: 13.07 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/0.7791, allocations: 64.42 kB / 0.865 GB, free: 13.01 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.76e-05/0.7792, allocations: 35.97 kB / 0.865 GB, free: 12.97 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001634/0.7809, allocations: 1.083 MB / 0.8661 GB, free: 11.87 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.5e-07/0.7809, allocations: 0 / 0.8661 GB, free: 11.87 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002798/0.7837, allocations: 0.9745 MB / 0.8671 GB, free: 10.89 MB / 0.6856 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.001211/0.7849, allocations: 0.5213 MB / 0.8676 GB, free: 10.37 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003685/0.7886, allocations: 1.697 MB / 0.8692 GB, free: 8.645 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.7886, allocations: 1.438 kB / 0.8692 GB, free: 8.645 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.7898, allocations: 0.5841 MB / 0.8698 GB, free: 8.051 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004255/0.7941, allocations: 0.8772 MB / 0.8707 GB, free: 7.18 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006847/0.801, allocations: 3.898 MB / 0.8745 GB, free: 3.223 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001274/0.8023, allocations: 1.416 MB / 0.8758 GB, free: 1.773 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.002046/0.8043, allocations: 422.8 kB / 0.8762 GB, free: 1.355 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005089/0.8049, allocations: 143.4 kB / 0.8764 GB, free: 1.215 MB / 0.6856 GB Notification: Performance of SimCode: time 1.032e-06/0.8049, allocations: 0 / 0.8764 GB, free: 1.215 MB / 0.6856 GB Notification: Performance of Templates: time 0.0595/0.8644, allocations: 33.65 MB / 0.9092 GB, free: 28 kB / 0.7169 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: