Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.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 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 107.7 kB / 16.35 MB, free: 5.879 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.001713/0.001713, allocations: 197.2 kB / 17.29 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.1 MB / 223.2 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.711/1.711, allocations: 292.3 MB / 0.5496 GB, free: 12.76 MB / 462.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.001462/0.001462, allocations: 72.02 kB / 0.6729 GB, free: 25.87 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2274, allocations: 114.5 MB / 0.7848 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1217/0.3492, allocations: 113.2 MB / 0.8953 GB, free: 11.16 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.5445/0.8937, allocations: 24.01 MB / 0.9188 GB, free: 35.08 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006513/0.9003, allocations: 123.8 kB / 0.9189 GB, free: 35.08 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.005182/0.9056, allocations: 1.278 MB / 0.9202 GB, free: 35.06 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.01235/0.918, allocations: 3.641 MB / 0.9237 GB, free: 34.92 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.008997/0.927, allocations: 3.071 MB / 0.9267 GB, free: 34.83 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01165/0.9387, allocations: 7.11 MB / 0.9337 GB, free: 34.81 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004847/0.9436, allocations: 2.545 MB / 0.9361 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01024/0.9538, allocations: 2.787 MB / 0.9389 GB, free: 34.28 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007163/0.961, allocations: 2.105 MB / 0.9409 GB, free: 33.91 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.001459/0.9625, allocations: 252.3 kB / 0.9412 GB, free: 33.91 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00636/0.9689, allocations: 1.638 MB / 0.9428 GB, free: 33.88 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.001809/0.9707, allocations: 0.6857 MB / 0.9434 GB, free: 33.77 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.004779/0.9755, allocations: 1.492 MB / 0.9449 GB, free: 33.35 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.01061/0.9862, allocations: 4.348 MB / 0.9491 GB, free: 32.26 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.9862, allocations: 0 / 0.9491 GB, free: 32.26 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.967e-06/0.9863, allocations: 1.125 kB / 0.9491 GB, free: 32.26 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.000242/0.9865, allocations: 0 / 0.9491 GB, free: 32.26 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.009817/0.9963, allocations: 3.182 MB / 0.9522 GB, free: 30.31 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.579e-05/0.9964, allocations: 8.531 kB / 0.9522 GB, free: 30.31 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001406/0.9978, allocations: 319.6 kB / 0.9526 GB, free: 30.16 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004642/1.002, allocations: 2.069 MB / 0.9546 GB, free: 29.07 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001387/1.003, allocations: 126.2 kB / 0.9547 GB, free: 29.01 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003055/1.003, allocations: 166.3 kB / 0.9549 GB, free: 28.96 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00319/1.006, allocations: 1.606 MB / 0.9564 GB, free: 28.23 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.244e-05/1.006, allocations: 5.312 kB / 0.9564 GB, free: 28.23 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/1.006, allocations: 62.84 kB / 0.9565 GB, free: 28.18 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-05/1.006, allocations: 44.62 kB / 0.9565 GB, free: 28.18 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002237/1.009, allocations: 1.151 MB / 0.9577 GB, free: 27.75 MB / 0.7169 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.01193/1.021, allocations: 7.893 MB / 0.9654 GB, free: 21.65 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008667/1.022, allocations: 487.3 kB / 0.9658 GB, free: 21.41 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004521/1.022, allocations: 325 kB / 0.9661 GB, free: 21.25 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004813/1.022, allocations: 0.7504 MB / 0.9669 GB, free: 20.38 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.197e-05/1.023, allocations: 48.25 kB / 0.9669 GB, free: 20.32 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=60): time 3.136e-06/1.023, allocations: 0 / 0.9669 GB, free: 20.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=60): time 0.002403/1.025, allocations: 0.9844 MB / 0.9679 GB, free: 19.82 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/1.025, allocations: 59.38 kB / 0.9679 GB, free: 19.76 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00311/1.028, allocations: 2.279 MB / 0.9702 GB, free: 18.55 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002714/1.028, allocations: 46.86 kB / 0.9702 GB, free: 18.5 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008216/1.029, allocations: 1.142 MB / 0.9713 GB, free: 17.5 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002283/1.03, allocations: 212.5 kB / 0.9715 GB, free: 17.32 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003849/1.03, allocations: 259 kB / 0.9718 GB, free: 17.17 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.416e-05/1.03, allocations: 346.8 kB / 0.9721 GB, free: 16.84 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006351/1.031, allocations: 362.6 kB / 0.9724 GB, free: 16.66 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008508/1.031, allocations: 0.7468 MB / 0.9732 GB, free: 16 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00125/1.033, allocations: 0.9761 MB / 0.9741 GB, free: 15.32 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/1.033, allocations: 2.375 kB / 0.9741 GB, free: 15.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002539/1.035, allocations: 1.295 MB / 0.9754 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/1.035, allocations: 8.406 kB / 0.9754 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/1.035, allocations: 8.781 kB / 0.9754 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.158e-05/1.035, allocations: 13.69 kB / 0.9754 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009473/1.036, allocations: 248.7 kB / 0.9757 GB, free: 14.62 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.683e-05/1.036, allocations: 27.16 kB / 0.9757 GB, free: 14.61 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002088/1.039, allocations: 175.6 kB / 0.9759 GB, free: 14.48 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/1.039, allocations: 49.89 kB / 0.9759 GB, free: 14.47 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001498/1.04, allocations: 0.757 MB / 0.9766 GB, free: 14.02 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008033/1.041, allocations: 0.7418 MB / 0.9774 GB, free: 13.36 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00114/1.042, allocations: 0.9546 MB / 0.9783 GB, free: 12.65 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.959e-06/1.042, allocations: 3.406 kB / 0.9783 GB, free: 12.65 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002296/1.044, allocations: 1.26 MB / 0.9795 GB, free: 12.01 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/1.044, allocations: 12.34 kB / 0.9795 GB, free: 12.01 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/1.044, allocations: 8.719 kB / 0.9795 GB, free: 12.01 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/1.044, allocations: 13.44 kB / 0.9796 GB, free: 12.01 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008974/1.045, allocations: 252.4 kB / 0.9798 GB, free: 11.95 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.098e-05/1.045, allocations: 26.17 kB / 0.9798 GB, free: 11.94 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002144/1.048, allocations: 117.2 kB / 0.9799 GB, free: 11.87 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-05/1.048, allocations: 54.05 kB / 0.98 GB, free: 11.85 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003636/1.048, allocations: 247.3 kB / 0.9802 GB, free: 11.62 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004851/1.049, allocations: 233.9 kB / 0.9804 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001687/1.05, allocations: 0.8846 MB / 0.9813 GB, free: 10.99 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/1.05, allocations: 9.344 kB / 0.9813 GB, free: 10.99 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/1.05, allocations: 0 / 0.9813 GB, free: 10.99 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008681/1.051, allocations: 0.6817 MB / 0.982 GB, free: 10.57 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004104/1.055, allocations: 2.565 MB / 0.9845 GB, free: 8.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.902e-06/1.055, allocations: 4.094 kB / 0.9845 GB, free: 8.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005324/1.056, allocations: 129.3 kB / 0.9846 GB, free: 8.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-06/1.056, allocations: 2.812 kB / 0.9846 GB, free: 8.773 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.04e-05/1.056, allocations: 17.92 kB / 0.9846 GB, free: 8.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/1.056, allocations: 3.281 kB / 0.9846 GB, free: 8.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/1.056, allocations: 2.375 kB / 0.9846 GB, free: 8.762 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002036/1.058, allocations: 1.308 MB / 0.9859 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/1.059, allocations: 409.7 kB / 0.9863 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002815/1.059, allocations: 13.28 kB / 0.9863 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009479/1.06, allocations: 49.81 kB / 0.9864 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/1.06, allocations: 42.72 kB / 0.9864 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-05/1.06, allocations: 33.3 kB / 0.9864 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002208/1.063, allocations: 1.531 MB / 0.9879 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.7e-07/1.063, allocations: 0 / 0.9879 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0035/1.066, allocations: 1.104 MB / 0.989 GB, free: 6.527 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00189/1.068, allocations: 0.7562 MB / 0.9898 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002272/1.07, allocations: 1.354 MB / 0.9911 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/1.07, allocations: 7.938 kB / 0.9911 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004646/1.071, allocations: 320.3 kB / 0.9914 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006052/1.077, allocations: 1.407 MB / 0.9928 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005672/1.083, allocations: 3.621 MB / 0.9963 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001397/1.084, allocations: 1.588 MB / 0.9979 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002408/1.087, allocations: 490.6 kB / 0.9983 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004966/1.087, allocations: 175.4 kB / 0.9985 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of SimCode: time 1.383e-06/1.087, allocations: 0 / 0.9985 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of Templates: time 0.07594/1.163, allocations: 44.63 MB / 1.042 GB, free: 1.297 MB / 0.7637 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)