Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7586/0.7586, allocations: 140.1 MB / 156 MB, free: 8.387 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009274/0.0009275, allocations: 184.5 kB / 188.5 MB, free: 8.977 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.397/1.397, allocations: 205.4 MB / 426.3 MB, free: 8.109 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007372/0.0007373, allocations: 90.25 kB / 0.4945 GB, free: 8.027 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001577/0.001577, allocations: 271.9 kB / 0.5728 GB, free: 66.11 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006976/0.0006977, allocations: 20 kB / 0.662 GB, free: 6.695 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4215/0.4222, allocations: 79.29 MB / 0.7395 GB, free: 46.29 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6945/1.117, allocations: 370.6 MB / 1.101 GB, free: 6.109 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002683/1.117, allocations: 107.2 kB / 1.101 GB, free: 6.051 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 1.497/2.614, allocations: 428 MB / 1.519 GB, free: 130.1 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.865e-06/2.614, allocations: 0 / 1.519 GB, free: 130.1 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0002184/2.615, allocations: 35.59 kB / 1.519 GB, free: 130.1 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.004275/2.619, allocations: 1.499 MB / 1.521 GB, free: 128.6 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/2.619, allocations: 8.031 kB / 1.521 GB, free: 128.6 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007286/2.62, allocations: 147.4 kB / 1.521 GB, free: 128.4 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001807/2.622, allocations: 0.8755 MB / 1.522 GB, free: 127.5 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.142e-05/2.622, allocations: 81.69 kB / 1.522 GB, free: 127.4 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001838/2.622, allocations: 120.4 kB / 1.522 GB, free: 127.3 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009294/2.623, allocations: 0.6284 MB / 1.523 GB, free: 126.7 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/2.623, allocations: 7.938 kB / 1.523 GB, free: 126.7 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.917e-05/2.623, allocations: 24 kB / 1.523 GB, free: 126.6 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/2.623, allocations: 20 kB / 1.523 GB, free: 126.6 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007673/2.624, allocations: 468.9 kB / 1.523 GB, free: 126.2 MB / 0.6667 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.003995/2.628, allocations: 3.082 MB / 1.526 GB, free: 123 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005219/2.628, allocations: 327.1 kB / 1.527 GB, free: 122.6 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002577/2.629, allocations: 165.1 kB / 1.527 GB, free: 122.5 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002676/2.629, allocations: 351 kB / 1.527 GB, free: 122.1 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/2.629, allocations: 34.84 kB / 1.527 GB, free: 122 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=33): time 3.687e-06/2.629, allocations: 0 / 1.527 GB, free: 122 MB / 0.6667 GB Notification: Performance of matching and sorting (n=33): time 0.001099/2.63, allocations: 0.568 MB / 1.528 GB, free: 121.4 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.625e-05/2.63, allocations: 55.41 kB / 1.528 GB, free: 121.4 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007911/2.631, allocations: 0.887 MB / 1.529 GB, free: 120.5 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001181/2.631, allocations: 53.7 kB / 1.529 GB, free: 120.4 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003565/2.631, allocations: 0.5489 MB / 1.529 GB, free: 119.9 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 6.946e-05/2.631, allocations: 120.8 kB / 1.529 GB, free: 119.7 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.559e-05/2.631, allocations: 8 kB / 1.529 GB, free: 119.7 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 5.513e-05/2.631, allocations: 338 kB / 1.53 GB, free: 119.4 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000316/2.632, allocations: 173.2 kB / 1.53 GB, free: 119.2 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001238/2.633, allocations: 1.44 MB / 1.531 GB, free: 117.4 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006461/2.634, allocations: 455.4 kB / 1.532 GB, free: 116.9 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/2.634, allocations: 0 / 1.532 GB, free: 116.9 MB / 0.6667 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001018/2.635, allocations: 0.6501 MB / 1.532 GB, free: 116.3 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 6.148e-05/2.635, allocations: 167.5 kB / 1.532 GB, free: 116.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/2.635, allocations: 0 / 1.532 GB, free: 116.1 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/2.635, allocations: 8 kB / 1.532 GB, free: 116.1 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/2.636, allocations: 244.4 kB / 1.533 GB, free: 115.8 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009914/2.637, allocations: 2.969 MB / 1.536 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002959/2.64, allocations: 0.9171 MB / 1.536 GB, free: 111.8 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-05/2.64, allocations: 27.98 kB / 1.536 GB, free: 111.8 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.837e-06/2.64, allocations: 4 kB / 1.536 GB, free: 111.8 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008127/2.641, allocations: 0.5011 MB / 1.537 GB, free: 111.3 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/2.641, allocations: 3.984 kB / 1.537 GB, free: 111.3 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.023e-06/2.641, allocations: 8 kB / 1.537 GB, free: 111.3 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005748/2.642, allocations: 160 kB / 1.537 GB, free: 111.1 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/2.642, allocations: 4 kB / 1.537 GB, free: 111.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002823/2.644, allocations: 0.9016 MB / 1.538 GB, free: 110.2 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.206e-05/2.645, allocations: 31.98 kB / 1.538 GB, free: 110.2 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000498/2.645, allocations: 329.9 kB / 1.538 GB, free: 109.9 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/2.645, allocations: 94.78 kB / 1.538 GB, free: 109.8 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009617/2.646, allocations: 0.5341 MB / 1.539 GB, free: 109.2 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/2.646, allocations: 7.984 kB / 1.539 GB, free: 109.2 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/2.646, allocations: 0 / 1.539 GB, free: 109.2 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/2.646, allocations: 3.938 kB / 1.539 GB, free: 109.2 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001681/2.648, allocations: 1.273 MB / 1.54 GB, free: 107.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/2.648, allocations: 0 / 1.54 GB, free: 107.9 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004875/2.648, allocations: 126 kB / 1.54 GB, free: 107.8 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/2.648, allocations: 12.06 kB / 1.54 GB, free: 107.8 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/2.648, allocations: 11.62 kB / 1.54 GB, free: 107.8 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007296/2.649, allocations: 2.938 MB / 1.543 GB, free: 104.7 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/2.649, allocations: 7.969 kB / 1.543 GB, free: 104.7 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006743/2.65, allocations: 0.5932 MB / 1.544 GB, free: 104.1 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003039/2.65, allocations: 223.7 kB / 1.544 GB, free: 103.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.792e-05/2.65, allocations: 11.94 kB / 1.544 GB, free: 103.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005033/2.651, allocations: 67.92 kB / 1.544 GB, free: 103.8 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/2.651, allocations: 27.91 kB / 1.544 GB, free: 103.7 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.827e-05/2.651, allocations: 15.98 kB / 1.544 GB, free: 103.7 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0005703/2.651, allocations: 0.5884 MB / 1.545 GB, free: 103.1 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.3e-07/2.651, allocations: 0 / 1.545 GB, free: 103.1 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001747/2.653, allocations: 0.6049 MB / 1.545 GB, free: 102.5 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007906/2.654, allocations: 0.5051 MB / 1.546 GB, free: 102.1 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002359/2.656, allocations: 0.8679 MB / 1.547 GB, free: 101.2 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/2.656, allocations: 4 kB / 1.547 GB, free: 101.2 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.000489/2.657, allocations: 232 kB / 1.547 GB, free: 101 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002321/2.659, allocations: 490.2 kB / 1.547 GB, free: 100.5 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002299/2.662, allocations: 1.775 MB / 1.549 GB, free: 98.67 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/2.662, allocations: 1.021 MB / 1.55 GB, free: 97.62 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.001351/2.663, allocations: 209.4 kB / 1.55 GB, free: 97.43 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/2.663, allocations: 79.41 kB / 1.55 GB, free: 97.36 MB / 0.6667 GB Notification: Performance of SimCode: time 6.81e-07/2.663, allocations: 0 / 1.55 GB, free: 97.36 MB / 0.6667 GB Notification: Performance of Templates: time 0.03836/2.702, allocations: 28.31 MB / 1.578 GB, free: 69.77 MB / 0.6667 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)