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.001229/0.001229, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001911/0.001911, allocations: 194.7 kB / 16.25 MB, free: 6.621 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.585/1.585, allocations: 205.1 MB / 222.1 MB, free: 4.672 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.778/1.778, allocations: 292.2 MB / 0.5485 GB, free: 13.63 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.001528/0.001528, allocations: 69.27 kB / 0.671 GB, free: 26.33 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3688, allocations: 114.6 MB / 0.7829 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1318/0.5007, allocations: 112.2 MB / 0.8924 GB, free: 13.34 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.04253/0.5433, allocations: 23.95 MB / 0.9158 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006939/0.5503, allocations: 111.1 kB / 0.9159 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.005005/0.5554, allocations: 1.092 MB / 0.917 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0129/0.5683, allocations: 3.402 MB / 0.9203 GB, free: 0.7188 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.5116/1.08, allocations: 2.825 MB / 0.9231 GB, free: 37.92 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.01047/1.09, allocations: 7.154 MB / 0.9301 GB, free: 37.91 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004195/1.095, allocations: 2.52 MB / 0.9325 GB, free: 37.64 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007627/1.102, allocations: 2.784 MB / 0.9352 GB, free: 37.64 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004762/1.107, allocations: 2.178 MB / 0.9374 GB, free: 37.3 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.001147/1.108, allocations: 249.8 kB / 0.9376 GB, free: 37.3 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006206/1.114, allocations: 1.647 MB / 0.9392 GB, free: 37.3 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.001769/1.116, allocations: 0.6844 MB / 0.9399 GB, free: 37.2 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.004151/1.12, allocations: 1.49 MB / 0.9413 GB, free: 36.77 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0118/1.132, allocations: 4.318 MB / 0.9456 GB, free: 36.33 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/1.132, allocations: 1.125 kB / 0.9456 GB, free: 36.33 MB / 0.7325 GB Notification: Performance of FrontEnd: time 5.741e-06/1.132, allocations: 3.141 kB / 0.9456 GB, free: 36.33 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0002219/1.133, allocations: 0 / 0.9456 GB, free: 36.33 MB / 0.7325 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.01056/1.143, allocations: 3.178 MB / 0.9487 GB, free: 34.86 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.836e-05/1.143, allocations: 8.844 kB / 0.9487 GB, free: 34.86 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001313/1.145, allocations: 319.8 kB / 0.949 GB, free: 34.7 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004844/1.149, allocations: 2.13 MB / 0.9511 GB, free: 34.12 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/1.15, allocations: 124.1 kB / 0.9512 GB, free: 34.11 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002966/1.15, allocations: 169.6 kB / 0.9513 GB, free: 34.11 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003106/1.153, allocations: 1.607 MB / 0.9529 GB, free: 33.91 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.955e-05/1.153, allocations: 8.516 kB / 0.9529 GB, free: 33.91 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000132/1.153, allocations: 61.88 kB / 0.953 GB, free: 33.91 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.768e-05/1.153, allocations: 39.78 kB / 0.953 GB, free: 33.91 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002291/1.155, allocations: 1.148 MB / 0.9541 GB, free: 33.89 MB / 0.7325 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.0118/1.167, allocations: 7.86 MB / 0.9618 GB, free: 30.18 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007555/1.168, allocations: 481.9 kB / 0.9623 GB, free: 30.15 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004672/1.169, allocations: 318.1 kB / 0.9626 GB, free: 30.14 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004463/1.169, allocations: 0.7525 MB / 0.9633 GB, free: 29.3 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/1.169, allocations: 44.09 kB / 0.9633 GB, free: 29.25 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=60): time 2.635e-06/1.169, allocations: 0 / 0.9633 GB, free: 29.25 MB / 0.7325 GB Notification: Performance of matching and sorting (n=60): time 0.002215/1.171, allocations: 0.9852 MB / 0.9643 GB, free: 29.08 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/1.171, allocations: 62.25 kB / 0.9644 GB, free: 29.02 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002959/1.174, allocations: 2.264 MB / 0.9666 GB, free: 28.77 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0002187/1.175, allocations: 43.14 kB / 0.9666 GB, free: 28.74 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008264/1.175, allocations: 1.155 MB / 0.9677 GB, free: 28.39 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002516/1.176, allocations: 209.8 kB / 0.9679 GB, free: 28.26 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003633/1.176, allocations: 253.3 kB / 0.9682 GB, free: 28.23 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 7.817e-05/1.176, allocations: 349.9 kB / 0.9685 GB, free: 27.93 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006015/1.177, allocations: 359.2 kB / 0.9689 GB, free: 27.92 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008156/1.178, allocations: 0.7494 MB / 0.9696 GB, free: 27.49 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/1.179, allocations: 0.9757 MB / 0.9705 GB, free: 27.18 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/1.179, allocations: 6.781 kB / 0.9706 GB, free: 27.17 MB / 0.7325 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002356/1.181, allocations: 1.283 MB / 0.9718 GB, free: 27.02 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/1.181, allocations: 9.688 kB / 0.9718 GB, free: 27.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/1.181, allocations: 9.062 kB / 0.9718 GB, free: 27.02 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.782e-05/1.181, allocations: 16.47 kB / 0.9718 GB, free: 27.01 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009496/1.182, allocations: 261.9 kB / 0.9721 GB, free: 27.01 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.159e-05/1.182, allocations: 19.48 kB / 0.9721 GB, free: 27.01 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002311/1.185, allocations: 251.5 kB / 0.9723 GB, free: 26.91 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.887e-05/1.185, allocations: 54.31 kB / 0.9724 GB, free: 26.91 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001465/1.186, allocations: 0.7599 MB / 0.9731 GB, free: 26.82 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008122/1.187, allocations: 0.7291 MB / 0.9739 GB, free: 26.39 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001218/1.188, allocations: 0.9591 MB / 0.9748 GB, free: 26.06 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.911e-05/1.188, allocations: 3.625 kB / 0.9748 GB, free: 26.06 MB / 0.7325 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002437/1.191, allocations: 1.257 MB / 0.976 GB, free: 25.88 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/1.191, allocations: 8.344 kB / 0.976 GB, free: 25.88 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/1.191, allocations: 11.09 kB / 0.976 GB, free: 25.88 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/1.191, allocations: 14.03 kB / 0.9761 GB, free: 25.88 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008792/1.192, allocations: 254.2 kB / 0.9763 GB, free: 25.88 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.221e-05/1.192, allocations: 24.61 kB / 0.9763 GB, free: 25.88 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002336/1.194, allocations: 180.1 kB / 0.9765 GB, free: 25.83 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.936e-05/1.194, allocations: 58.22 kB / 0.9765 GB, free: 25.82 MB / 0.7325 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.0003963/1.194, allocations: 247.1 kB / 0.9768 GB, free: 25.64 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004414/1.195, allocations: 229.1 kB / 0.977 GB, free: 25.52 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001772/1.197, allocations: 0.8834 MB / 0.9779 GB, free: 25.42 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/1.197, allocations: 11.56 kB / 0.9779 GB, free: 25.42 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/1.197, allocations: 3.938 kB / 0.9779 GB, free: 25.42 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008467/1.198, allocations: 0.6827 MB / 0.9785 GB, free: 25.25 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004211/1.202, allocations: 2.556 MB / 0.981 GB, free: 24.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/1.202, allocations: 0 / 0.981 GB, free: 24.81 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005159/1.202, allocations: 129.5 kB / 0.9812 GB, free: 24.8 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.114e-06/1.202, allocations: 2.562 kB / 0.9812 GB, free: 24.8 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.294e-05/1.202, allocations: 20.81 kB / 0.9812 GB, free: 24.79 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/1.202, allocations: 3.438 kB / 0.9812 GB, free: 24.79 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/1.202, allocations: 2.469 kB / 0.9812 GB, free: 24.79 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/1.204, allocations: 1.307 MB / 0.9825 GB, free: 24.14 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000994/1.205, allocations: 407.3 kB / 0.9829 GB, free: 23.85 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002608/1.206, allocations: 10.91 kB / 0.9829 GB, free: 23.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/1.207, allocations: 120.2 kB / 0.983 GB, free: 23.81 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.707e-05/1.207, allocations: 38.78 kB / 0.983 GB, free: 23.8 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.645e-05/1.207, allocations: 34.7 kB / 0.9831 GB, free: 23.8 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002105/1.209, allocations: 1.511 MB / 0.9845 GB, free: 23.23 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.4e-07/1.209, allocations: 0 / 0.9845 GB, free: 23.23 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003496/1.213, allocations: 1.102 MB / 0.9856 GB, free: 23 MB / 0.7325 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.001872/1.214, allocations: 0.7341 MB / 0.9863 GB, free: 22.74 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.003029/1.217, allocations: 1.45 MB / 0.9877 GB, free: 22.34 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/1.218, allocations: 3.938 kB / 0.9877 GB, free: 22.33 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000458/1.218, allocations: 327.2 kB / 0.9881 GB, free: 22.23 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00595/1.224, allocations: 1.406 MB / 0.9894 GB, free: 21.67 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005503/1.229, allocations: 4.463 MB / 0.9938 GB, free: 18.73 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008171/1.23, allocations: 1.585 MB / 0.9953 GB, free: 17.61 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002243/1.233, allocations: 494 kB / 0.9958 GB, free: 17.39 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003648/1.233, allocations: 177.3 kB / 0.996 GB, free: 17.35 MB / 0.7325 GB Notification: Performance of SimCode: time 1.172e-06/1.233, allocations: 0 / 0.996 GB, free: 17.35 MB / 0.7325 GB Notification: Performance of Templates: time 0.06993/1.303, allocations: 46.29 MB / 1.041 GB, free: 5.68 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 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)