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.00137/0.00137, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.00202/0.002021, allocations: 194.1 kB / 16.25 MB, free: 6.629 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.441/1.441, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002474/0.002474, allocations: 282.9 kB / 290.4 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.08/1.08, allocations: 178.6 MB / 0.5069 GB, free: 4.734 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002874/0.002874, allocations: 108.1 kB / 0.6059 GB, free: 24.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.2017, allocations: 89.15 MB / 0.693 GB, free: 4.691 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.4624/0.6641, allocations: 111.6 MB / 0.802 GB, free: 18.41 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02937/0.6935, allocations: 20.11 MB / 0.8216 GB, free: 4.055 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005448/0.699, allocations: 99.94 kB / 0.8217 GB, free: 4.012 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.004253/0.7033, allocations: 1.102 MB / 0.8228 GB, free: 3.371 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.01185/0.7152, allocations: 3.428 MB / 0.8261 GB, free: 0.9453 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.009286/0.7245, allocations: 2.872 MB / 0.829 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0125/0.737, allocations: 7.271 MB / 0.8361 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004524/0.7415, allocations: 2.531 MB / 0.8385 GB, free: 9.043 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009029/0.7506, allocations: 2.82 MB / 0.8413 GB, free: 7.367 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005504/0.7561, allocations: 2.197 MB / 0.8434 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001042/0.7572, allocations: 251.3 kB / 0.8437 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005151/0.7623, allocations: 1.662 MB / 0.8453 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001092/0.7635, allocations: 0.6892 MB / 0.846 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002881/0.7663, allocations: 1.515 MB / 0.8474 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.006357/0.7727, allocations: 4.359 MB / 0.8517 GB, free: 300 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.7727, allocations: 0 / 0.8517 GB, free: 300 kB / 0.5606 GB Notification: Performance of FrontEnd: time 1.272e-06/0.7728, allocations: 4 kB / 0.8517 GB, free: 296 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.97e-05/0.7728, allocations: 0 / 0.8517 GB, free: 296 kB / 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.005933/0.7788, allocations: 3.226 MB / 0.8549 GB, free: 13 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 6.029e-05/0.7788, allocations: 11.97 kB / 0.8549 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001212/0.7801, allocations: 328.7 kB / 0.8552 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005258/0.7853, allocations: 2.147 MB / 0.8573 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.7855, allocations: 126.9 kB / 0.8574 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003211/0.7858, allocations: 171.9 kB / 0.8576 GB, free: 10.15 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003005/0.7889, allocations: 1.616 MB / 0.8591 GB, free: 8.469 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.662e-05/0.7889, allocations: 0 / 0.8591 GB, free: 8.469 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000183/0.7891, allocations: 64 kB / 0.8592 GB, free: 8.406 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-05/0.7892, allocations: 43.94 kB / 0.8592 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002146/0.7913, allocations: 1.147 MB / 0.8604 GB, free: 7.211 MB / 0.5762 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.01247/0.8038, allocations: 7.889 MB / 0.8681 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000846/0.8047, allocations: 474 kB / 0.8685 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005258/0.8052, allocations: 328 kB / 0.8688 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007574/0.806, allocations: 0.7601 MB / 0.8696 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/0.8061, allocations: 47.12 kB / 0.8696 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=60): time 4.118e-06/0.8061, allocations: 3.984 kB / 0.8696 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of matching and sorting (n=60): time 0.002229/0.8083, allocations: 0.9843 MB / 0.8706 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/0.8084, allocations: 55.97 kB / 0.8706 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003418/0.8118, allocations: 2.316 MB / 0.8729 GB, free: 9.652 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001898/0.812, allocations: 45.7 kB / 0.8729 GB, free: 9.602 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001137/0.8131, allocations: 1.149 MB / 0.8741 GB, free: 8.441 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002664/0.8134, allocations: 224.9 kB / 0.8743 GB, free: 8.219 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000395/0.8138, allocations: 254.6 kB / 0.8745 GB, free: 7.961 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001657/0.814, allocations: 345.9 kB / 0.8748 GB, free: 7.617 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006762/0.8147, allocations: 365.9 kB / 0.8752 GB, free: 7.258 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.8157, allocations: 0.7463 MB / 0.8759 GB, free: 6.355 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001475/0.8172, allocations: 0.9785 MB / 0.8769 GB, free: 5.27 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.8172, allocations: 0 / 0.8769 GB, free: 5.27 MB / 0.5919 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002685/0.8199, allocations: 1.295 MB / 0.8781 GB, free: 3.961 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.8199, allocations: 8 kB / 0.8782 GB, free: 3.953 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.82, allocations: 12 kB / 0.8782 GB, free: 3.941 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.667e-05/0.82, allocations: 12 kB / 0.8782 GB, free: 3.93 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009993/0.821, allocations: 251.6 kB / 0.8784 GB, free: 3.684 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.575e-05/0.821, allocations: 20.48 kB / 0.8784 GB, free: 3.664 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/0.8231, allocations: 242.2 kB / 0.8787 GB, free: 3.426 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.951e-05/0.8232, allocations: 59.91 kB / 0.8787 GB, free: 3.367 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00143/0.8246, allocations: 0.7524 MB / 0.8795 GB, free: 2.609 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001059/0.8257, allocations: 0.7388 MB / 0.8802 GB, free: 1.711 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001486/0.8272, allocations: 0.9601 MB / 0.8811 GB, free: 0.6367 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.881e-06/0.8272, allocations: 4 kB / 0.8811 GB, free: 0.6328 MB / 0.5919 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002499/0.8297, allocations: 1.251 MB / 0.8823 GB, free: 15.37 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.8298, allocations: 17.75 kB / 0.8824 GB, free: 15.36 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.8298, allocations: 12.09 kB / 0.8824 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.8298, allocations: 12 kB / 0.8824 GB, free: 15.33 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009415/0.8308, allocations: 255.6 kB / 0.8826 GB, free: 15.08 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.374e-05/0.8308, allocations: 23.92 kB / 0.8826 GB, free: 15.06 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001872/0.8327, allocations: 171.2 kB / 0.8828 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.245e-05/0.8328, allocations: 55.98 kB / 0.8829 GB, free: 14.84 MB / 0.6075 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.0003401/0.8331, allocations: 248.5 kB / 0.8831 GB, free: 14.59 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005922/0.8337, allocations: 240.9 kB / 0.8833 GB, free: 14.35 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001974/0.8357, allocations: 0.8858 MB / 0.8842 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/0.8357, allocations: 4 kB / 0.8842 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.8357, allocations: 4 kB / 0.8842 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001094/0.8368, allocations: 0.6852 MB / 0.8849 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004437/0.8413, allocations: 2.574 MB / 0.8874 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.86e-06/0.8413, allocations: 4 kB / 0.8874 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005619/0.8419, allocations: 123.8 kB / 0.8875 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.038e-05/0.8419, allocations: 7.984 kB / 0.8875 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.407e-05/0.842, allocations: 16 kB / 0.8875 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.842, allocations: 4 kB / 0.8875 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.842, allocations: 4 kB / 0.8875 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002226/0.8442, allocations: 1.313 MB / 0.8888 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008495/0.8451, allocations: 417.9 kB / 0.8892 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002589/0.8453, allocations: 20 kB / 0.8892 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.8465, allocations: 111.7 kB / 0.8893 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.8466, allocations: 40.45 kB / 0.8894 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.087e-05/0.8467, allocations: 35.97 kB / 0.8894 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.00236/0.8491, allocations: 1.55 MB / 0.8909 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8491, allocations: 0 / 0.8909 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002818/0.8519, allocations: 1.091 MB / 0.892 GB, free: 5.297 MB / 0.6075 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.002179/0.8541, allocations: 0.7364 MB / 0.8927 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003014/0.8571, allocations: 1.451 MB / 0.8941 GB, free: 3.25 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.8571, allocations: 0 / 0.8941 GB, free: 3.25 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0005736/0.8577, allocations: 332.4 kB / 0.8945 GB, free: 2.93 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005934/0.8636, allocations: 1.398 MB / 0.8958 GB, free: 1.59 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006813/0.8705, allocations: 4.529 MB / 0.9002 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001361/0.8719, allocations: 1.59 MB / 0.9018 GB, free: 11.39 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002312/0.8742, allocations: 0.4956 MB / 0.9023 GB, free: 10.9 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004267/0.8746, allocations: 175.3 kB / 0.9024 GB, free: 10.73 MB / 0.6231 GB Notification: Performance of SimCode: time 7.42e-07/0.8746, allocations: 0 / 0.9024 GB, free: 10.73 MB / 0.6231 GB Notification: Performance of Templates: time 0.08882/0.9635, allocations: 46.14 MB / 0.9475 GB, free: 13.24 MB / 0.67 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)