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/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_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.481/1.481, allocations: 252 MB / 267.6 MB, free: 10.92 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.001241/0.001241, allocations: 188.6 kB / 327.3 MB, free: 2.207 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.051/2.051, allocations: 205.4 MB / 0.5783 GB, free: 20.51 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.001029/0.001029, allocations: 98.16 kB / 0.6829 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003794/0.0003794, allocations: 10.12 kB / 0.797 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2421, allocations: 106.4 MB / 0.9008 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04048/0.2827, allocations: 49.17 MB / 0.9488 GB, free: 14.97 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.02274/0.3055, allocations: 16.6 MB / 0.9651 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003502/0.309, allocations: 71.5 kB / 0.9651 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.003422/0.3125, allocations: 0.8001 MB / 0.9659 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.006173/0.3187, allocations: 1.868 MB / 0.9677 GB, free: 11.59 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.008673/0.3274, allocations: 2.719 MB / 0.9704 GB, free: 8.895 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.007903/0.3353, allocations: 5.16 MB / 0.9754 GB, free: 3.715 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003292/0.3386, allocations: 1.222 MB / 0.9766 GB, free: 2.469 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004324/0.343, allocations: 1.536 MB / 0.9781 GB, free: 0.9258 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003136/0.3461, allocations: 1.256 MB / 0.9793 GB, free: 15.66 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0006778/0.3469, allocations: 68 kB / 0.9794 GB, free: 15.59 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004608/0.3515, allocations: 1.501 MB / 0.9809 GB, free: 14.09 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.001025/0.3525, allocations: 422.2 kB / 0.9813 GB, free: 13.68 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.3537, allocations: 404.6 kB / 0.9817 GB, free: 13.27 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.004536/0.3582, allocations: 2.478 MB / 0.9841 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.3583, allocations: 8 kB / 0.9841 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.835e-06/0.3583, allocations: 0 / 0.9841 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.073e-05/0.3584, allocations: 0 / 0.9841 GB, free: 10.79 MB / 0.6355 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.004588/0.363, allocations: 2.237 MB / 0.9863 GB, free: 8.48 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.363, allocations: 12.03 kB / 0.9863 GB, free: 8.469 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002272/0.3653, allocations: 484.9 kB / 0.9868 GB, free: 7.992 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003346/0.3687, allocations: 1.587 MB / 0.9883 GB, free: 6.355 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003989/0.3691, allocations: 158.2 kB / 0.9885 GB, free: 6.199 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001907/0.3693, allocations: 127.9 kB / 0.9886 GB, free: 6.074 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002749/0.372, allocations: 1.387 MB / 0.9899 GB, free: 4.59 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.015e-05/0.3721, allocations: 7.938 kB / 0.9899 GB, free: 4.582 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001121/0.3722, allocations: 44 kB / 0.99 GB, free: 4.539 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.312e-05/0.3723, allocations: 32 kB / 0.99 GB, free: 4.508 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002662/0.3749, allocations: 1.128 MB / 0.9911 GB, free: 3.371 MB / 0.6355 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.00979/0.3847, allocations: 6.999 MB / 0.9979 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002644/0.3874, allocations: 1.441 MB / 0.9994 GB, free: 10.28 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.3885, allocations: 434.3 kB / 0.9998 GB, free: 9.852 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005188/0.3937, allocations: 3.079 MB / 1.003 GB, free: 6.43 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/0.3948, allocations: 470.8 kB / 1.003 GB, free: 5.961 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006024/0.3954, allocations: 83.34 kB / 1.003 GB, free: 5.879 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=60): time 3.556e-06/0.3954, allocations: 0 / 1.003 GB, free: 5.879 MB / 0.6511 GB Notification: Performance of matching and sorting (n=60): time 0.003419/0.3989, allocations: 1.295 MB / 1.005 GB, free: 4.555 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.212e-05/0.399, allocations: 141.1 kB / 1.005 GB, free: 4.387 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002161/0.4011, allocations: 1.57 MB / 1.006 GB, free: 2.816 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.503e-05/0.4012, allocations: 37.7 kB / 1.006 GB, free: 2.773 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007239/0.402, allocations: 0.8958 MB / 1.007 GB, free: 1.867 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001863/0.4022, allocations: 212.9 kB / 1.007 GB, free: 1.656 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-05/0.4022, allocations: 20 kB / 1.007 GB, free: 1.637 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.4024, allocations: 349.9 kB / 1.008 GB, free: 1.289 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009484/0.4033, allocations: 389.8 kB / 1.008 GB, free: 0.9102 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/0.4046, allocations: 0.7931 MB / 1.009 GB, free: 15.93 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.4057, allocations: 0.4927 MB / 1.009 GB, free: 15.43 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.357e-06/0.4057, allocations: 11.95 kB / 1.009 GB, free: 15.42 MB / 0.6667 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002982/0.4087, allocations: 1.329 MB / 1.011 GB, free: 14.08 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003305/0.4091, allocations: 441.5 kB / 1.011 GB, free: 13.48 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.46e-05/0.4091, allocations: 16 kB / 1.011 GB, free: 13.47 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.882e-05/0.4091, allocations: 16 kB / 1.011 GB, free: 13.45 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.4102, allocations: 267.6 kB / 1.011 GB, free: 13.19 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.66e-05/0.4102, allocations: 23.88 kB / 1.011 GB, free: 13.17 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/0.4117, allocations: 136.4 kB / 1.011 GB, free: 13.04 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.4118, allocations: 51.98 kB / 1.012 GB, free: 12.98 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 9.348e-06/0.4118, allocations: 6.812 kB / 1.012 GB, free: 12.98 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0025/0.4143, allocations: 1.165 MB / 1.013 GB, free: 11.81 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.167e-05/0.4143, allocations: 15.95 kB / 1.013 GB, free: 11.79 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.4144, allocations: 16 kB / 1.013 GB, free: 11.78 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009875/0.4154, allocations: 271.8 kB / 1.013 GB, free: 11.51 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.106e-05/0.4154, allocations: 23.92 kB / 1.013 GB, free: 11.49 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.4169, allocations: 124.5 kB / 1.013 GB, free: 11.37 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.784e-05/0.417, allocations: 55.97 kB / 1.013 GB, free: 11.31 MB / 0.6667 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.0009398/0.4179, allocations: 485.5 kB / 1.014 GB, free: 10.83 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002655/0.4182, allocations: 165.9 kB / 1.014 GB, free: 10.66 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002748/0.421, allocations: 1.171 MB / 1.015 GB, free: 9.48 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.477e-05/0.421, allocations: 4 kB / 1.015 GB, free: 9.477 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.421, allocations: 7.984 kB / 1.015 GB, free: 9.469 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001989/0.423, allocations: 0.9939 MB / 1.016 GB, free: 8.422 MB / 0.6667 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.004711/0.4277, allocations: 2.449 MB / 1.018 GB, free: 5.91 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.4277, allocations: 0 / 1.018 GB, free: 5.91 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008232/0.4286, allocations: 155.8 kB / 1.018 GB, free: 5.758 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002013/0.4288, allocations: 36.83 kB / 1.018 GB, free: 5.719 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.589e-05/0.4289, allocations: 19.98 kB / 1.019 GB, free: 5.699 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001293/0.4302, allocations: 1.37 MB / 1.02 GB, free: 4.199 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4302, allocations: 0 / 1.02 GB, free: 4.199 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00356/0.4337, allocations: 1.624 MB / 1.021 GB, free: 2.547 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007853/0.4345, allocations: 346.7 kB / 1.022 GB, free: 2.188 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002276/0.4348, allocations: 19.98 kB / 1.022 GB, free: 2.168 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.4358, allocations: 119.7 kB / 1.022 GB, free: 2.051 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.436, allocations: 56.48 kB / 1.022 GB, free: 1.992 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.062e-05/0.436, allocations: 27.97 kB / 1.022 GB, free: 1.965 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001741/0.4378, allocations: 1.114 MB / 1.023 GB, free: 0.8281 MB / 0.6667 GB Notification: Performance of sort global known variables: time 2.2e-07/0.4378, allocations: 0 / 1.023 GB, free: 0.8281 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.00289/0.4407, allocations: 0.9162 MB / 1.024 GB, free: 15.91 MB / 0.6823 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.001733/0.4424, allocations: 0.7276 MB / 1.025 GB, free: 15.29 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003826/0.4463, allocations: 1.722 MB / 1.026 GB, free: 13.55 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.63e-05/0.4463, allocations: 64 / 1.026 GB, free: 13.55 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.4476, allocations: 0.5798 MB / 1.027 GB, free: 12.95 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003698/0.4513, allocations: 0.7379 MB / 1.028 GB, free: 12.21 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00637/0.4577, allocations: 3.845 MB / 1.031 GB, free: 8.32 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009992/0.4588, allocations: 1.376 MB / 1.033 GB, free: 6.914 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005639/0.4593, allocations: 147.4 kB / 1.033 GB, free: 6.77 MB / 0.6823 GB Notification: Performance of SimCode: time 1.132e-06/0.4594, allocations: 0 / 1.033 GB, free: 6.77 MB / 0.6823 GB Notification: Performance of Templates: time 0.4334/0.8927, allocations: 33.95 MB / 1.066 GB, free: 141.7 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (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)