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.0008223/0.0008223, allocations: 88.41 kB / 15.36 MB, free: 0.7383 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.005632/0.005632, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.342/1.342, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001824/0.001824, allocations: 275.1 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9312/0.9312, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004241/0.0004241, allocations: 15 kB / 0.5987 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1476, allocations: 88.55 MB / 0.6851 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.3976/0.5452, allocations: 110.1 MB / 0.7927 GB, free: 25.53 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02826/0.5735, allocations: 20.13 MB / 0.8123 GB, free: 21.14 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004274/0.5778, allocations: 95 kB / 0.8124 GB, free: 21.1 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003471/0.5813, allocations: 1.041 MB / 0.8134 GB, free: 20.49 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.01055/0.5919, allocations: 3.373 MB / 0.8167 GB, free: 18.5 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.007193/0.5991, allocations: 2.868 MB / 0.8195 GB, free: 16.88 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01026/0.6094, allocations: 9.53 MB / 0.8288 GB, free: 11.71 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002822/0.6122, allocations: 2.086 MB / 0.8309 GB, free: 10.42 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004229/0.6165, allocations: 2.319 MB / 0.8331 GB, free: 9.133 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002846/0.6193, allocations: 2.031 MB / 0.8351 GB, free: 7.969 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002792/0.6196, allocations: 86.78 kB / 0.8352 GB, free: 7.969 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003237/0.6229, allocations: 1.448 MB / 0.8366 GB, free: 7.188 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004315/0.6233, allocations: 0.5231 MB / 0.8371 GB, free: 6.812 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001317/0.6246, allocations: 1.33 MB / 0.8384 GB, free: 5.941 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.004433/0.6291, allocations: 4.158 MB / 0.8425 GB, free: 3.066 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.6291, allocations: 0 / 0.8425 GB, free: 3.066 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.465e-06/0.6291, allocations: 0 / 0.8425 GB, free: 3.066 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.973e-05/0.6292, allocations: 0 / 0.8425 GB, free: 3.066 MB / 0.545 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.003981/0.6332, allocations: 2.696 MB / 0.8451 GB, free: 1.055 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.6332, allocations: 9.938 kB / 0.8451 GB, free: 1.055 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005684/0.6338, allocations: 321.8 kB / 0.8454 GB, free: 0.8945 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002911/0.6367, allocations: 2.159 MB / 0.8475 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.089e-05/0.6368, allocations: 127 kB / 0.8477 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002299/0.637, allocations: 168 kB / 0.8478 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00259/0.6396, allocations: 1.612 MB / 0.8494 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/0.6397, allocations: 3.938 kB / 0.8494 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001298/0.6398, allocations: 67.98 kB / 0.8495 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.651e-05/0.6399, allocations: 40 kB / 0.8495 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001956/0.6418, allocations: 1.163 MB / 0.8506 GB, free: 11.89 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.01023/0.6521, allocations: 7.9 MB / 0.8583 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007527/0.6529, allocations: 481.9 kB / 0.8588 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004918/0.6534, allocations: 330.9 kB / 0.8591 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006749/0.654, allocations: 0.7602 MB / 0.8599 GB, free: 1.758 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.6541, allocations: 43.12 kB / 0.8599 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=60): time 5.561e-06/0.6541, allocations: 0 / 0.8599 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of matching and sorting (n=60): time 0.001955/0.6561, allocations: 1.007 MB / 0.8609 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.6561, allocations: 59.97 kB / 0.8609 GB, free: 0.6211 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002895/0.659, allocations: 2.316 MB / 0.8632 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001006/0.6591, allocations: 45.7 kB / 0.8632 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000872/0.66, allocations: 1.153 MB / 0.8644 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001893/0.6602, allocations: 209 kB / 0.8646 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.6604, allocations: 105.7 kB / 0.8647 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.6605, allocations: 353.9 kB / 0.865 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006128/0.6611, allocations: 354.5 kB / 0.8654 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009288/0.662, allocations: 0.754 MB / 0.8661 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/0.6634, allocations: 0.9941 MB / 0.8671 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.6634, allocations: 7.938 kB / 0.8671 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002043/0.6655, allocations: 1.311 MB / 0.8683 GB, free: 8.727 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001932/0.6657, allocations: 338.7 kB / 0.8687 GB, free: 8.273 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.6657, allocations: 8 kB / 0.8687 GB, free: 8.266 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.53e-05/0.6657, allocations: 16 kB / 0.8687 GB, free: 8.25 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009581/0.6667, allocations: 255.6 kB / 0.8689 GB, free: 8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.04e-05/0.6667, allocations: 15.94 kB / 0.869 GB, free: 7.984 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/0.6685, allocations: 250.2 kB / 0.8692 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.555e-05/0.6685, allocations: 51.98 kB / 0.8692 GB, free: 7.688 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 6.702e-06/0.6686, allocations: 4 kB / 0.8692 GB, free: 7.684 MB / 0.5762 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001612/0.6702, allocations: 1.035 MB / 0.8703 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.6702, allocations: 11.94 kB / 0.8703 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.6702, allocations: 12 kB / 0.8703 GB, free: 6.629 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008978/0.6711, allocations: 252.1 kB / 0.8705 GB, free: 6.383 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.751e-05/0.6712, allocations: 23.92 kB / 0.8705 GB, free: 6.359 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/0.6727, allocations: 218.6 kB / 0.8707 GB, free: 6.145 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.555e-05/0.6728, allocations: 51.98 kB / 0.8708 GB, free: 6.094 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.0009584/0.6737, allocations: 0.58 MB / 0.8714 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003106/0.6741, allocations: 236.9 kB / 0.8716 GB, free: 5.27 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001597/0.6757, allocations: 0.9006 MB / 0.8725 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.6757, allocations: 8 kB / 0.8725 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.6757, allocations: 0 / 0.8725 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009955/0.6767, allocations: 0.7009 MB / 0.8732 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003838/0.6805, allocations: 2.582 MB / 0.8757 GB, free: 0.9648 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.6806, allocations: 0 / 0.8757 GB, free: 0.9648 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005314/0.6811, allocations: 127.8 kB / 0.8758 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.997e-06/0.6811, allocations: 7.984 kB / 0.8758 GB, free: 0.832 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.985e-05/0.6812, allocations: 16 kB / 0.8758 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.6812, allocations: 8.094 kB / 0.8758 GB, free: 0.8086 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.6812, allocations: 4 kB / 0.8758 GB, free: 0.8047 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001981/0.6832, allocations: 1.325 MB / 0.8771 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008188/0.684, allocations: 457.8 kB / 0.8776 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002249/0.6842, allocations: 16 kB / 0.8776 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.6854, allocations: 115.7 kB / 0.8777 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.242e-05/0.6855, allocations: 44.5 kB / 0.8777 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.408e-05/0.6856, allocations: 31.98 kB / 0.8778 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002227/0.6878, allocations: 1.558 MB / 0.8793 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6878, allocations: 0 / 0.8793 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003044/0.6909, allocations: 1.099 MB / 0.8804 GB, free: 12.11 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.001742/0.6926, allocations: 0.7309 MB / 0.8811 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002561/0.6952, allocations: 1.369 MB / 0.8824 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.6952, allocations: 5.375 kB / 0.8824 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000552/0.6958, allocations: 335.2 kB / 0.8827 GB, free: 9.816 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007444/0.7032, allocations: 1.388 MB / 0.8841 GB, free: 8.453 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006223/0.7095, allocations: 4.6 MB / 0.8886 GB, free: 3.816 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00116/0.7107, allocations: 1.594 MB / 0.8901 GB, free: 2.191 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002124/0.7128, allocations: 0.5035 MB / 0.8906 GB, free: 1.691 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003643/0.7132, allocations: 167.4 kB / 0.8908 GB, free: 1.527 MB / 0.5919 GB Notification: Performance of SimCode: time 5.81e-07/0.7132, allocations: 0 / 0.8908 GB, free: 1.527 MB / 0.5919 GB Notification: Performance of Templates: time 0.07196/0.7851, allocations: 45.06 MB / 0.9348 GB, free: 5.082 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)