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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 1.02/1.02, allocations: 143.4 MB / 158.3 MB, free: 5.785 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 181 kB / 191.5 MB, free: 5.766 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.2 MB / 447.7 MB, free: 4.824 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009113/0.0009111, allocations: 92.33 kB / 0.5188 GB, free: 1.176 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001833/0.001833, allocations: 265.5 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004457/0.0004457, allocations: 12.81 kB / 0.6929 GB, free: 59.56 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.2, allocations: 82.8 MB / 0.7737 GB, free: 13.85 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.446/1.646, allocations: 390.3 MB / 1.155 GB, free: 195 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003906/1.647, allocations: 112.3 kB / 1.155 GB, free: 195 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.011/4.658, allocations: 0.9931 GB / 2.148 GB, free: 77.62 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.705e-06/4.658, allocations: 0 / 2.148 GB, free: 77.62 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002942/4.658, allocations: 84.62 kB / 2.148 GB, free: 77.59 MB / 0.7136 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.006987/4.665, allocations: 3.036 MB / 2.151 GB, free: 75.96 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/4.665, allocations: 8.719 kB / 2.151 GB, free: 75.96 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001098/4.666, allocations: 326.7 kB / 2.151 GB, free: 75.8 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005036/4.671, allocations: 2.442 MB / 2.154 GB, free: 75.2 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.88e-05/4.672, allocations: 132.1 kB / 2.154 GB, free: 75.19 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002408/4.672, allocations: 178.7 kB / 2.154 GB, free: 75.19 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002493/4.674, allocations: 1.558 MB / 2.156 GB, free: 74.98 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.547e-05/4.674, allocations: 3.719 kB / 2.156 GB, free: 74.98 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/4.674, allocations: 58.97 kB / 2.156 GB, free: 74.98 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.922e-05/4.675, allocations: 39.56 kB / 2.156 GB, free: 74.98 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001719/4.676, allocations: 1.117 MB / 2.157 GB, free: 74.96 MB / 0.7136 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.00982/4.686, allocations: 8.006 MB / 2.165 GB, free: 71.14 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006953/4.687, allocations: 461.6 kB / 2.165 GB, free: 71.11 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005006/4.687, allocations: 0.754 MB / 2.166 GB, free: 70.26 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/4.687, allocations: 40.88 kB / 2.166 GB, free: 70.22 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=60): time 3.046e-06/4.687, allocations: 2.875 kB / 2.166 GB, free: 70.22 MB / 0.7136 GB Notification: Performance of matching and sorting (n=60): time 0.001852/4.689, allocations: 1.01 MB / 2.167 GB, free: 70.04 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/4.689, allocations: 62.03 kB / 2.167 GB, free: 69.98 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002438/4.692, allocations: 2.067 MB / 2.169 GB, free: 69.6 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001185/4.692, allocations: 46.64 kB / 2.169 GB, free: 69.57 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007317/4.693, allocations: 1.138 MB / 2.17 GB, free: 68.81 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/4.693, allocations: 221 kB / 2.17 GB, free: 68.62 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.714e-05/4.693, allocations: 22.81 kB / 2.17 GB, free: 68.61 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.505e-05/4.693, allocations: 345 kB / 2.171 GB, free: 68.27 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000515/4.693, allocations: 346 kB / 2.171 GB, free: 68.1 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007111/4.694, allocations: 0.8084 MB / 2.172 GB, free: 67.35 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006532/4.695, allocations: 468.1 kB / 2.172 GB, free: 67.12 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/4.695, allocations: 2.594 kB / 2.172 GB, free: 67.12 MB / 0.7136 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00206/4.697, allocations: 1.258 MB / 2.173 GB, free: 66.49 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005233/4.697, allocations: 3.197 MB / 2.177 GB, free: 63.06 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/4.697, allocations: 6.438 kB / 2.177 GB, free: 63.06 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/4.697, allocations: 17.23 kB / 2.177 GB, free: 63.06 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009801/4.698, allocations: 268 kB / 2.177 GB, free: 63 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.782e-05/4.698, allocations: 16.03 kB / 2.177 GB, free: 62.99 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002033/4.7, allocations: 265.2 kB / 2.177 GB, free: 62.85 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.577e-05/4.701, allocations: 56.77 kB / 2.177 GB, free: 62.84 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 8.856e-06/4.701, allocations: 3.844 kB / 2.177 GB, free: 62.84 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001418/4.702, allocations: 1.009 MB / 2.178 GB, free: 62.34 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/4.702, allocations: 7.375 kB / 2.178 GB, free: 62.34 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/4.702, allocations: 20.14 kB / 2.178 GB, free: 62.34 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009243/4.703, allocations: 254.1 kB / 2.178 GB, free: 62.28 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/4.703, allocations: 20.16 kB / 2.178 GB, free: 62.28 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/4.705, allocations: 245.5 kB / 2.179 GB, free: 62.15 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-05/4.705, allocations: 53.36 kB / 2.179 GB, free: 62.14 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (138): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00113/4.706, allocations: 0.5783 MB / 2.179 GB, free: 61.71 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003227/4.706, allocations: 231 kB / 2.18 GB, free: 61.59 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001461/4.708, allocations: 0.9408 MB / 2.18 GB, free: 61.07 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/4.708, allocations: 10.73 kB / 2.18 GB, free: 61.06 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/4.708, allocations: 0 / 2.18 GB, free: 61.06 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008425/4.709, allocations: 0.7216 MB / 2.181 GB, free: 60.62 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003766/4.712, allocations: 2.674 MB / 2.184 GB, free: 58.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/4.712, allocations: 0 / 2.184 GB, free: 58.8 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000556/4.713, allocations: 157.6 kB / 2.184 GB, free: 58.76 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.782e-06/4.713, allocations: 3.75 kB / 2.184 GB, free: 58.76 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.907e-05/4.713, allocations: 11.91 kB / 2.184 GB, free: 58.75 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/4.713, allocations: 9.281 kB / 2.184 GB, free: 58.75 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/4.713, allocations: 0 / 2.184 GB, free: 58.75 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/4.715, allocations: 1.394 MB / 2.185 GB, free: 57.91 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008079/4.716, allocations: 471.9 kB / 2.186 GB, free: 57.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002336/4.716, allocations: 19.31 kB / 2.186 GB, free: 57.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/4.717, allocations: 165.5 kB / 2.186 GB, free: 57.42 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.697e-05/4.717, allocations: 45.75 kB / 2.186 GB, free: 57.4 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.747e-05/4.717, allocations: 33.19 kB / 2.186 GB, free: 57.39 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001921/4.719, allocations: 1.57 MB / 2.188 GB, free: 56.53 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.5e-07/4.719, allocations: 1.031 kB / 2.188 GB, free: 56.53 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.003024/4.722, allocations: 1.215 MB / 2.189 GB, free: 56.25 MB / 0.7136 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002072/4.724, allocations: 1.277 MB / 2.19 GB, free: 55.7 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002182/4.726, allocations: 1.373 MB / 2.191 GB, free: 54.41 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/4.726, allocations: 0 / 2.191 GB, free: 54.41 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0004446/4.727, allocations: 335 kB / 2.192 GB, free: 54.08 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0064/4.733, allocations: 1.495 MB / 2.193 GB, free: 52.67 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005223/4.739, allocations: 4.405 MB / 2.197 GB, free: 48.23 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008338/4.739, allocations: 1.644 MB / 2.199 GB, free: 46.56 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002158/4.742, allocations: 0.5007 MB / 2.199 GB, free: 46.1 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004122/4.742, allocations: 179.4 kB / 2.2 GB, free: 45.92 MB / 0.7136 GB Notification: Performance of SimCode: time 7.12e-07/4.742, allocations: 0 / 2.2 GB, free: 45.92 MB / 0.7136 GB Notification: Performance of Templates: time 0.06873/4.811, allocations: 51.52 MB / 2.25 GB, free: 11.32 MB / 0.7292 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)