Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001264/0.001264, allocations: 107.3 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.001186/0.001186, allocations: 191 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002156/0.002155, allocations: 286.9 kB / 290.4 MB, free: 2.098 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9942/0.9942, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 93.88 kB / 0.5947 GB, free: 28.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1958/0.1974, allocations: 86.98 MB / 0.6796 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.4175/0.615, allocations: 111.6 MB / 0.7886 GB, free: 32.22 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02571/0.6408, allocations: 20.11 MB / 0.8083 GB, free: 31.75 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005049/0.6459, allocations: 102 kB / 0.8084 GB, free: 31.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00407/0.65, allocations: 1.099 MB / 0.8094 GB, free: 31.72 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01185/0.6619, allocations: 3.427 MB / 0.8128 GB, free: 30.6 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.007695/0.6696, allocations: 2.869 MB / 0.8156 GB, free: 29.38 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.01087/0.6805, allocations: 7.271 MB / 0.8227 GB, free: 26.07 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004402/0.6849, allocations: 2.533 MB / 0.8252 GB, free: 24.93 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007193/0.6921, allocations: 2.823 MB / 0.8279 GB, free: 23.72 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00456/0.6967, allocations: 2.202 MB / 0.8301 GB, free: 22.92 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.00098/0.6977, allocations: 257.9 kB / 0.8303 GB, free: 22.91 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004463/0.7022, allocations: 1.655 MB / 0.8319 GB, free: 22.42 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0008286/0.703, allocations: 0.6943 MB / 0.8326 GB, free: 21.89 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002221/0.7053, allocations: 1.508 MB / 0.8341 GB, free: 20.88 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005516/0.7108, allocations: 4.365 MB / 0.8383 GB, free: 18 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.7108, allocations: 0 / 0.8383 GB, free: 18 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.863e-06/0.7109, allocations: 0 / 0.8383 GB, free: 18 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.11e-05/0.7109, allocations: 0 / 0.8383 GB, free: 18 MB / 0.5606 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.005253/0.7162, allocations: 3.241 MB / 0.8415 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.7163, allocations: 9.438 kB / 0.8415 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009245/0.7172, allocations: 329.1 kB / 0.8418 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003013/0.7202, allocations: 2.146 MB / 0.8439 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.999e-05/0.7203, allocations: 122.6 kB / 0.844 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002106/0.7205, allocations: 164.8 kB / 0.8442 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002395/0.7229, allocations: 1.615 MB / 0.8458 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.867e-05/0.723, allocations: 7.844 kB / 0.8458 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/0.7231, allocations: 62.59 kB / 0.8458 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-05/0.7232, allocations: 47.56 kB / 0.8459 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.7249, allocations: 1.147 MB / 0.847 GB, free: 12.16 MB / 0.5606 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.008339/0.7332, allocations: 7.879 MB / 0.8547 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000665/0.7339, allocations: 468.8 kB / 0.8551 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004032/0.7343, allocations: 329 kB / 0.8555 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004135/0.7347, allocations: 0.7585 MB / 0.8562 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.7348, allocations: 44 kB / 0.8562 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=60): time 1.743e-06/0.7348, allocations: 0 / 0.8562 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of matching and sorting (n=60): time 0.00168/0.7365, allocations: 0.9845 MB / 0.8572 GB, free: 3.676 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.2e-05/0.7365, allocations: 61.78 kB / 0.8573 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002178/0.7387, allocations: 2.318 MB / 0.8595 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 8.917e-05/0.7388, allocations: 49.7 kB / 0.8596 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005889/0.7394, allocations: 1.156 MB / 0.8607 GB, free: 276 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.7395, allocations: 216.1 kB / 0.8609 GB, free: 60 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00037/0.7399, allocations: 261.4 kB / 0.8612 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.74, allocations: 341.9 kB / 0.8615 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006192/0.7407, allocations: 365.9 kB / 0.8618 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009192/0.7416, allocations: 0.7463 MB / 0.8626 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001367/0.743, allocations: 0.9824 MB / 0.8635 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.743, allocations: 4 kB / 0.8635 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002355/0.7454, allocations: 1.295 MB / 0.8648 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.7454, allocations: 8 kB / 0.8648 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.7454, allocations: 12.06 kB / 0.8648 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/0.7454, allocations: 12 kB / 0.8648 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009632/0.7464, allocations: 251.6 kB / 0.8651 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.787e-05/0.7464, allocations: 19.92 kB / 0.8651 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/0.7483, allocations: 250.2 kB / 0.8653 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.7484, allocations: 47.98 kB / 0.8654 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001428/0.7499, allocations: 0.7648 MB / 0.8661 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000958/0.7508, allocations: 0.7271 MB / 0.8668 GB, free: 9.594 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001439/0.7523, allocations: 0.96 MB / 0.8678 GB, free: 8.516 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.782e-06/0.7523, allocations: 0 / 0.8678 GB, free: 8.516 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002274/0.7546, allocations: 1.266 MB / 0.869 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.7546, allocations: 8 kB / 0.869 GB, free: 7.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.7546, allocations: 8 kB / 0.869 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.7547, allocations: 16 kB / 0.869 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009266/0.7556, allocations: 247.6 kB / 0.8693 GB, free: 6.965 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.538e-05/0.7556, allocations: 19.92 kB / 0.8693 GB, free: 6.945 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/0.7575, allocations: 183.4 kB / 0.8695 GB, free: 6.766 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.546e-05/0.7576, allocations: 47.98 kB / 0.8695 GB, free: 6.719 MB / 0.5762 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.0003065/0.7579, allocations: 256.5 kB / 0.8697 GB, free: 6.461 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005316/0.7584, allocations: 240.9 kB / 0.87 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001936/0.7604, allocations: 0.8841 MB / 0.8708 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/0.7604, allocations: 8 kB / 0.8708 GB, free: 5.324 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.7604, allocations: 3.938 kB / 0.8709 GB, free: 5.32 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001016/0.7614, allocations: 0.6894 MB / 0.8715 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004854/0.7663, allocations: 2.563 MB / 0.874 GB, free: 1.977 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/0.7663, allocations: 3.984 kB / 0.874 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005281/0.7669, allocations: 123.8 kB / 0.8742 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.067e-05/0.7669, allocations: 12.08 kB / 0.8742 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.337e-05/0.767, allocations: 19.98 kB / 0.8742 GB, free: 1.82 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.767, allocations: 7.938 kB / 0.8742 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.767, allocations: 0 / 0.8742 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002165/0.7691, allocations: 1.317 MB / 0.8755 GB, free: 476 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009957/0.7702, allocations: 417.9 kB / 0.8759 GB, free: 36 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004978/0.7707, allocations: 12 kB / 0.8759 GB, free: 24 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/0.7721, allocations: 115.7 kB / 0.876 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.7722, allocations: 44.44 kB / 0.876 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.391e-05/0.7723, allocations: 35.97 kB / 0.8761 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002502/0.7748, allocations: 1.546 MB / 0.8776 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.5e-07/0.7748, allocations: 8 kB / 0.8776 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003401/0.7782, allocations: 1.091 MB / 0.8787 GB, free: 13.18 MB / 0.5919 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.00201/0.7803, allocations: 0.7296 MB / 0.8794 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003077/0.7834, allocations: 1.452 MB / 0.8808 GB, free: 11.18 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.7834, allocations: 4.75 kB / 0.8808 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005702/0.784, allocations: 331 kB / 0.8811 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006392/0.7904, allocations: 1.381 MB / 0.8825 GB, free: 9.516 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00718/0.7976, allocations: 4.534 MB / 0.8869 GB, free: 4.961 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001557/0.7991, allocations: 1.594 MB / 0.8884 GB, free: 3.332 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002351/0.8015, allocations: 496.6 kB / 0.8889 GB, free: 2.852 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005267/0.802, allocations: 183.3 kB / 0.8891 GB, free: 2.672 MB / 0.5919 GB Notification: Performance of SimCode: time 1.403e-06/0.8021, allocations: 0 / 0.8891 GB, free: 2.672 MB / 0.5919 GB Notification: Performance of Templates: time 0.08213/0.8842, allocations: 46.14 MB / 0.9341 GB, free: 5.277 MB / 0.6387 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)