Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.61/1.61, allocations: 289.9 MB / 297.4 MB, free: 6.426 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.001156/0.001156, allocations: 180.8 kB / 366.7 MB, free: 1.691 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.746/1.746, allocations: 205.2 MB / 0.626 GB, free: 7.172 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000987/0.0009869, allocations: 87.34 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.738e-05/1.74e-05, allocations: 4 kB / 0.8597 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7833/0.7833, allocations: 116.3 MB / 0.9732 GB, free: 76.41 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.204/1.987, allocations: 448.3 MB / 1.411 GB, free: 109.3 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003018/1.988, allocations: 98.14 kB / 1.411 GB, free: 109.3 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.181/6.169, allocations: 1.128 GB / 2.539 GB, free: 147.6 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.352e-06/6.169, allocations: 0 / 2.539 GB, free: 147.6 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0002293/6.169, allocations: 59.17 kB / 2.539 GB, free: 147.6 MB / 0.948 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.004602/6.174, allocations: 2.179 MB / 2.541 GB, free: 146.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/6.174, allocations: 7.344 kB / 2.541 GB, free: 146.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001598/6.176, allocations: 382.8 kB / 2.542 GB, free: 146.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00541/6.181, allocations: 2.466 MB / 2.544 GB, free: 145 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.219e-05/6.181, allocations: 40.06 kB / 2.544 GB, free: 145 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/6.181, allocations: 81.47 kB / 2.544 GB, free: 145 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001512/6.183, allocations: 0.8605 MB / 2.545 GB, free: 144.6 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001733/6.185, allocations: 1.18 MB / 2.546 GB, free: 144 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.451e-05/6.185, allocations: 3.531 kB / 2.546 GB, free: 144 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.865e-05/6.185, allocations: 3.781 kB / 2.546 GB, free: 144 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-05/6.185, allocations: 37.75 kB / 2.546 GB, free: 144 MB / 0.948 GB Warning: The model contains alias variables with conflicting start and/or 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.007626/6.192, allocations: 6.94 MB / 2.553 GB, free: 138.4 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/6.194, allocations: 1.181 MB / 2.554 GB, free: 137.5 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004195/6.194, allocations: 336.9 kB / 2.554 GB, free: 137.3 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00312/6.197, allocations: 2.241 MB / 2.557 GB, free: 135.2 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005043/6.198, allocations: 366.1 kB / 2.557 GB, free: 135 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006003/6.198, allocations: 72.25 kB / 2.557 GB, free: 135 MB / 0.948 GB Notification: Performance of pre-optimization done (n=68): time 3.347e-06/6.198, allocations: 2.562 kB / 2.557 GB, free: 135 MB / 0.948 GB Notification: Performance of matching and sorting (n=68): time 0.001821/6.2, allocations: 0.8139 MB / 2.558 GB, free: 134.6 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.768e-05/6.2, allocations: 170.7 kB / 2.558 GB, free: 134.4 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/6.202, allocations: 1.19 MB / 2.559 GB, free: 133.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 6.914e-05/6.202, allocations: 28.86 kB / 2.559 GB, free: 133.7 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006568/6.202, allocations: 0.8865 MB / 2.56 GB, free: 132.9 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000152/6.203, allocations: 240 kB / 2.56 GB, free: 132.7 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.259e-05/6.203, allocations: 0 / 2.56 GB, free: 132.7 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.493e-05/6.203, allocations: 344.5 kB / 2.561 GB, free: 132.4 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003667/6.203, allocations: 282.3 kB / 2.561 GB, free: 132.3 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005341/6.204, allocations: 0.6533 MB / 2.561 GB, free: 131.6 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/6.205, allocations: 470 kB / 2.562 GB, free: 131.4 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/6.205, allocations: 3.938 kB / 2.562 GB, free: 131.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002012/6.207, allocations: 1.108 MB / 2.563 GB, free: 130.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007799/6.208, allocations: 3.735 MB / 2.567 GB, free: 126.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.372e-05/6.208, allocations: 11.25 kB / 2.567 GB, free: 126.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.31e-05/6.208, allocations: 14.34 kB / 2.567 GB, free: 126.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008989/6.209, allocations: 259.8 kB / 2.567 GB, free: 126.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.75e-05/6.209, allocations: 22.92 kB / 2.567 GB, free: 126.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001374/6.21, allocations: 109.2 kB / 2.567 GB, free: 126.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/6.21, allocations: 61.48 kB / 2.567 GB, free: 126.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 8.806e-06/6.21, allocations: 3.031 kB / 2.567 GB, free: 126.8 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001738/6.212, allocations: 0.8923 MB / 2.568 GB, free: 126.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/6.212, allocations: 7 kB / 2.568 GB, free: 126.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/6.212, allocations: 15.59 kB / 2.568 GB, free: 126.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008282/6.213, allocations: 253.6 kB / 2.568 GB, free: 126.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/6.213, allocations: 15.72 kB / 2.568 GB, free: 126.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/6.214, allocations: 115.5 kB / 2.568 GB, free: 126.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.734e-05/6.214, allocations: 49.39 kB / 2.568 GB, free: 126.3 MB / 0.948 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 () * 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.0002417/6.214, allocations: 142.5 kB / 2.569 GB, free: 126.1 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002214/6.215, allocations: 168.3 kB / 2.569 GB, free: 126 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002112/6.217, allocations: 0.974 MB / 2.57 GB, free: 125.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/6.217, allocations: 18.09 kB / 2.57 GB, free: 125.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/6.217, allocations: 0 / 2.57 GB, free: 125.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001134/6.218, allocations: 0.6991 MB / 2.57 GB, free: 125.1 MB / 0.948 GB Warning: The model contains alias variables with conflicting start and/or 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.003653/6.222, allocations: 2.135 MB / 2.572 GB, free: 123.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/6.222, allocations: 0 / 2.572 GB, free: 123.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006962/6.222, allocations: 158.5 kB / 2.573 GB, free: 123.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001721/6.223, allocations: 31.73 kB / 2.573 GB, free: 123.7 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.837e-05/6.223, allocations: 15.73 kB / 2.573 GB, free: 123.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007378/6.223, allocations: 1.264 MB / 2.574 GB, free: 122.4 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/6.223, allocations: 6.312 kB / 2.574 GB, free: 122.4 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001935/6.225, allocations: 1.392 MB / 2.575 GB, free: 121.6 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006453/6.226, allocations: 348.6 kB / 2.576 GB, free: 121.3 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001728/6.226, allocations: 7.391 kB / 2.576 GB, free: 121.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009102/6.227, allocations: 87.53 kB / 2.576 GB, free: 121.2 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/6.227, allocations: 61.44 kB / 2.576 GB, free: 121.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.996e-05/6.227, allocations: 38.22 kB / 2.576 GB, free: 121.2 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001198/6.228, allocations: 0.8978 MB / 2.577 GB, free: 120.7 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.4e-07/6.228, allocations: 0 / 2.577 GB, free: 120.7 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003322/6.232, allocations: 1.088 MB / 2.578 GB, free: 120.4 MB / 0.948 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) * 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.002023/6.234, allocations: 1.148 MB / 2.579 GB, free: 120 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001981/6.236, allocations: 1.421 MB / 2.58 GB, free: 119.3 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/6.236, allocations: 0 / 2.58 GB, free: 119.3 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.000639/6.236, allocations: 476 kB / 2.581 GB, free: 119 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00335/6.24, allocations: 0.7438 MB / 2.581 GB, free: 118.7 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004165/6.244, allocations: 2.327 MB / 2.584 GB, free: 117.5 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008136/6.245, allocations: 1.449 MB / 2.585 GB, free: 116.4 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002433/6.247, allocations: 0.5511 MB / 2.586 GB, free: 116.2 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002583/6.248, allocations: 121.9 kB / 2.586 GB, free: 116.1 MB / 0.948 GB Notification: Performance of SimCode: time 1.373e-06/6.248, allocations: 0 / 2.586 GB, free: 116.1 MB / 0.948 GB Notification: Performance of Templates: time 0.05424/6.302, allocations: 35.65 MB / 2.621 GB, free: 84.54 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)