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.001096/0.001096, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.00125, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.31/1.31, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002055/0.002055, allocations: 283.1 kB / 290.7 MB, free: 1.973 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9585/0.9585, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 104 kB / 0.5952 GB, free: 28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1818, allocations: 86.97 MB / 0.6802 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.4475/0.6294, allocations: 112.6 MB / 0.7902 GB, free: 32.5 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02391/0.6533, allocations: 20.25 MB / 0.8099 GB, free: 31.98 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00453/0.6579, allocations: 107.8 kB / 0.81 GB, free: 31.98 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003742/0.6617, allocations: 1.28 MB / 0.8113 GB, free: 31.7 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01101/0.6728, allocations: 3.686 MB / 0.8149 GB, free: 30.37 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.007701/0.6805, allocations: 3.084 MB / 0.8179 GB, free: 29.1 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.01075/0.6912, allocations: 7.2 MB / 0.8249 GB, free: 25.84 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004119/0.6954, allocations: 2.572 MB / 0.8274 GB, free: 24.68 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006716/0.7021, allocations: 2.793 MB / 0.8302 GB, free: 23.5 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004657/0.7068, allocations: 2.139 MB / 0.8323 GB, free: 22.42 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001047/0.7079, allocations: 253.9 kB / 0.8325 GB, free: 22.42 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004556/0.7124, allocations: 1.642 MB / 0.8341 GB, free: 21.69 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0009199/0.7134, allocations: 0.6872 MB / 0.8348 GB, free: 21.16 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002506/0.7159, allocations: 1.519 MB / 0.8363 GB, free: 20.14 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004998/0.7209, allocations: 4.345 MB / 0.8405 GB, free: 17.27 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.7209, allocations: 0 / 0.8405 GB, free: 17.27 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.883e-06/0.7209, allocations: 0 / 0.8405 GB, free: 17.27 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001328/0.7211, allocations: 0 / 0.8405 GB, free: 17.27 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.00465/0.7257, allocations: 3.232 MB / 0.8437 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.7258, allocations: 9.469 kB / 0.8437 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007473/0.7265, allocations: 334 kB / 0.844 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003001/0.7295, allocations: 2.098 MB / 0.846 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.63e-05/0.7296, allocations: 124.2 kB / 0.8462 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000197/0.7298, allocations: 169.5 kB / 0.8463 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/0.732, allocations: 1.606 MB / 0.8479 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.134e-05/0.732, allocations: 10.69 kB / 0.8479 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.7321, allocations: 64.78 kB / 0.848 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.021e-05/0.7322, allocations: 43.06 kB / 0.848 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001702/0.7339, allocations: 1.146 MB / 0.8491 GB, free: 11.47 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.008107/0.742, allocations: 7.972 MB / 0.8569 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006633/0.7427, allocations: 474.3 kB / 0.8574 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004145/0.7431, allocations: 332.2 kB / 0.8577 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004348/0.7435, allocations: 0.7509 MB / 0.8584 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.7436, allocations: 44.38 kB / 0.8584 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=60): time 2.024e-06/0.7436, allocations: 0 / 0.8584 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of matching and sorting (n=60): time 0.001713/0.7453, allocations: 0.9935 MB / 0.8594 GB, free: 2.84 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.318e-05/0.7453, allocations: 55.97 kB / 0.8595 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002168/0.7475, allocations: 2.339 MB / 0.8618 GB, free: 432 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.911e-05/0.7476, allocations: 49.64 kB / 0.8618 GB, free: 376 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009121/0.7485, allocations: 1.154 MB / 0.8629 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001919/0.7487, allocations: 222.4 kB / 0.8631 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003545/0.7491, allocations: 258.5 kB / 0.8634 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001308/0.7492, allocations: 349.9 kB / 0.8637 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006275/0.7498, allocations: 357.9 kB / 0.8641 GB, free: 14.06 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009451/0.7508, allocations: 0.7463 MB / 0.8648 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001411/0.7522, allocations: 0.9824 MB / 0.8657 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.7522, allocations: 4 kB / 0.8658 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002284/0.7545, allocations: 1.295 MB / 0.867 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.7546, allocations: 8 kB / 0.867 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.7546, allocations: 8 kB / 0.867 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.611e-05/0.7546, allocations: 15.98 kB / 0.867 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009298/0.7556, allocations: 255.6 kB / 0.8673 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.098e-05/0.7556, allocations: 19.92 kB / 0.8673 GB, free: 10.49 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001406/0.757, allocations: 162.6 kB / 0.8675 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.241e-05/0.7571, allocations: 55.98 kB / 0.8675 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001324/0.7584, allocations: 0.757 MB / 0.8683 GB, free: 9.512 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008737/0.7593, allocations: 0.7388 MB / 0.869 GB, free: 8.613 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001327/0.7606, allocations: 0.9529 MB / 0.8699 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.011e-06/0.7607, allocations: 4 kB / 0.8699 GB, free: 7.543 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002408/0.7631, allocations: 1.251 MB / 0.8711 GB, free: 6.281 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.7631, allocations: 12 kB / 0.8711 GB, free: 6.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.7631, allocations: 8 kB / 0.8712 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.7631, allocations: 12 kB / 0.8712 GB, free: 6.25 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008938/0.764, allocations: 251.6 kB / 0.8714 GB, free: 6.004 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.075e-05/0.7641, allocations: 23.92 kB / 0.8714 GB, free: 5.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/0.7656, allocations: 123.6 kB / 0.8715 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.672e-05/0.7657, allocations: 55.98 kB / 0.8716 GB, free: 5.805 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.0002832/0.7659, allocations: 244.6 kB / 0.8718 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003453/0.7663, allocations: 240.9 kB / 0.8721 GB, free: 5.32 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00175/0.7681, allocations: 0.8885 MB / 0.8729 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.7681, allocations: 7.984 kB / 0.8729 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.7681, allocations: 4 kB / 0.8729 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009321/0.769, allocations: 0.6814 MB / 0.8736 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004019/0.7731, allocations: 2.59 MB / 0.8761 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.7731, allocations: 0 / 0.8761 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000513/0.7736, allocations: 119.9 kB / 0.8762 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/0.7736, allocations: 11.92 kB / 0.8763 GB, free: 0.9219 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.033e-05/0.7737, allocations: 16 kB / 0.8763 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.7737, allocations: 0 / 0.8763 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.7737, allocations: 7.938 kB / 0.8763 GB, free: 0.8984 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002053/0.7757, allocations: 1.31 MB / 0.8776 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007495/0.7765, allocations: 422.2 kB / 0.878 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002468/0.7768, allocations: 12 kB / 0.878 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009041/0.7777, allocations: 51.94 kB / 0.878 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.7778, allocations: 44.44 kB / 0.8781 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.94e-05/0.7779, allocations: 31.97 kB / 0.8781 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00213/0.78, allocations: 1.569 MB / 0.8796 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.482e-06/0.78, allocations: 0 / 0.8796 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002886/0.7829, allocations: 1.107 MB / 0.8807 GB, free: 12.3 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.001586/0.7845, allocations: 0.7615 MB / 0.8815 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002776/0.7873, allocations: 1.453 MB / 0.8829 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.217e-06/0.7873, allocations: 4 kB / 0.8829 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005106/0.7878, allocations: 323 kB / 0.8832 GB, free: 9.949 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006162/0.794, allocations: 1.392 MB / 0.8845 GB, free: 8.613 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005854/0.7999, allocations: 3.732 MB / 0.8882 GB, free: 4.859 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001112/0.801, allocations: 1.594 MB / 0.8897 GB, free: 3.23 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002072/0.8031, allocations: 498.3 kB / 0.8902 GB, free: 2.746 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003902/0.8035, allocations: 175.4 kB / 0.8904 GB, free: 2.578 MB / 0.5919 GB Notification: Performance of SimCode: time 6.51e-07/0.8035, allocations: 0 / 0.8904 GB, free: 2.578 MB / 0.5919 GB Notification: Performance of Templates: time 0.07444/0.8779, allocations: 46.9 MB / 0.9362 GB, free: 4.414 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)