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 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.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.7552/0.7552, allocations: 143.4 MB / 158.3 MB, free: 5.629 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.001107/0.001107, allocations: 191 kB / 191.5 MB, free: 5.645 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.361/1.361, 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.0008406/0.0008406, allocations: 96.3 kB / 0.5188 GB, free: 1.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001632/0.001632, allocations: 269.1 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003967/0.0003967, allocations: 13.47 kB / 0.6929 GB, free: 59.62 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1287, allocations: 82.79 MB / 0.7737 GB, free: 13.85 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6355/0.7642, allocations: 358.8 MB / 1.124 GB, free: 11.29 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.7645, allocations: 104.3 kB / 1.124 GB, free: 11.24 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.376/2.141, allocations: 438.9 MB / 1.553 GB, free: 165.6 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.142e-06/2.141, allocations: 0 / 1.553 GB, free: 165.6 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 8.641e-05/2.141, allocations: 40.84 kB / 1.553 GB, free: 165.6 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002626/2.143, allocations: 1.517 MB / 1.554 GB, free: 164.7 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/2.143, allocations: 11.62 kB / 1.554 GB, free: 164.7 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002627/2.144, allocations: 151.2 kB / 1.555 GB, free: 164.7 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001654/2.145, allocations: 0.8387 MB / 1.555 GB, free: 164.2 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.016e-05/2.145, allocations: 86.09 kB / 1.555 GB, free: 164.2 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001836/2.146, allocations: 121.2 kB / 1.556 GB, free: 164.2 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008937/2.147, allocations: 0.6245 MB / 1.556 GB, free: 164 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/2.147, allocations: 0 / 1.556 GB, free: 164 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.045e-05/2.147, allocations: 27.31 kB / 1.556 GB, free: 164 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/2.147, allocations: 14.06 kB / 1.556 GB, free: 164 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007691/2.147, allocations: 479.4 kB / 1.557 GB, free: 163.9 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.003963/2.151, allocations: 3.079 MB / 1.56 GB, free: 162 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005205/2.152, allocations: 328.5 kB / 1.56 GB, free: 162 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002604/2.152, allocations: 349.1 kB / 1.56 GB, free: 161.6 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/2.152, allocations: 33.84 kB / 1.56 GB, free: 161.5 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=33): time 1.613e-06/2.152, allocations: 2.906 kB / 1.56 GB, free: 161.5 MB / 0.7136 GB Notification: Performance of matching and sorting (n=33): time 0.001161/2.153, allocations: 0.5608 MB / 1.561 GB, free: 161.4 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.529e-05/2.153, allocations: 55.19 kB / 1.561 GB, free: 161.3 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007356/2.154, allocations: 0.7874 MB / 1.562 GB, free: 161.1 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001298/2.154, allocations: 61.27 kB / 1.562 GB, free: 161 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003832/2.155, allocations: 0.5616 MB / 1.562 GB, free: 160.8 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 6.789e-05/2.155, allocations: 105.2 kB / 1.562 GB, free: 160.7 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.957e-05/2.155, allocations: 17.16 kB / 1.562 GB, free: 160.7 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.496e-05/2.155, allocations: 327.5 kB / 1.563 GB, free: 160.4 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003304/2.155, allocations: 183.2 kB / 1.563 GB, free: 160.3 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00122/2.157, allocations: 1.425 MB / 1.564 GB, free: 159.2 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004766/2.157, allocations: 319.4 kB / 1.565 GB, free: 159.1 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/2.157, allocations: 3.094 kB / 1.565 GB, free: 159.1 MB / 0.7136 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001078/2.158, allocations: 0.6531 MB / 1.565 GB, free: 159 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.000161/2.158, allocations: 0.8132 MB / 1.566 GB, free: 158.1 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/2.158, allocations: 3.438 kB / 1.566 GB, free: 158.1 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/2.158, allocations: 3.719 kB / 1.566 GB, free: 158.1 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/2.159, allocations: 206.9 kB / 1.566 GB, free: 158.1 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/2.161, allocations: 2.956 MB / 1.569 GB, free: 155.1 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003129/2.164, allocations: 0.9106 MB / 1.57 GB, free: 154.8 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.615e-05/2.164, allocations: 28.77 kB / 1.57 GB, free: 154.8 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.999e-06/2.164, allocations: 2.844 kB / 1.57 GB, free: 154.8 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000869/2.165, allocations: 0.5115 MB / 1.571 GB, free: 154.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/2.165, allocations: 3.844 kB / 1.571 GB, free: 154.7 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.814e-06/2.165, allocations: 9.719 kB / 1.571 GB, free: 154.7 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006609/2.165, allocations: 161.6 kB / 1.571 GB, free: 154.7 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/2.165, allocations: 3.312 kB / 1.571 GB, free: 154.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002919/2.168, allocations: 0.9055 MB / 1.572 GB, free: 154.4 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.124e-05/2.168, allocations: 25.48 kB / 1.572 GB, free: 154.4 MB / 0.7136 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.0005159/2.169, allocations: 331.6 kB / 1.572 GB, free: 154.2 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/2.169, allocations: 95.56 kB / 1.572 GB, free: 154.1 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009797/2.17, allocations: 0.5432 MB / 1.573 GB, free: 154 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/2.17, allocations: 7.453 kB / 1.573 GB, free: 154 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/2.17, allocations: 2.812 kB / 1.573 GB, free: 154 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/2.17, allocations: 7.922 kB / 1.573 GB, free: 154 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001763/2.172, allocations: 1.279 MB / 1.574 GB, free: 153.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/2.172, allocations: 0 / 1.574 GB, free: 153.4 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005044/2.172, allocations: 121.5 kB / 1.574 GB, free: 153.4 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/2.172, allocations: 2.25 kB / 1.574 GB, free: 153.4 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.81e-05/2.172, allocations: 18.45 kB / 1.574 GB, free: 153.3 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008014/2.173, allocations: 2.943 MB / 1.577 GB, free: 150.4 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/2.173, allocations: 0 / 1.577 GB, free: 150.4 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007353/2.174, allocations: 0.6394 MB / 1.578 GB, free: 150.1 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002715/2.174, allocations: 226.8 kB / 1.578 GB, free: 149.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.786e-05/2.174, allocations: 14.45 kB / 1.578 GB, free: 149.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005605/2.175, allocations: 67.77 kB / 1.578 GB, free: 149.9 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.189e-05/2.175, allocations: 22.34 kB / 1.578 GB, free: 149.9 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/2.175, allocations: 21.84 kB / 1.578 GB, free: 149.8 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0006105/2.176, allocations: 0.5991 MB / 1.578 GB, free: 149.6 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.5e-07/2.176, allocations: 0 / 1.578 GB, free: 149.6 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001718/2.177, allocations: 0.6151 MB / 1.579 GB, free: 149.6 MB / 0.7136 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.000781/2.178, allocations: 0.5031 MB / 1.58 GB, free: 149.4 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001956/2.18, allocations: 0.8269 MB / 1.58 GB, free: 149.2 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/2.18, allocations: 0 / 1.58 GB, free: 149.2 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0004856/2.181, allocations: 238.7 kB / 1.581 GB, free: 149.2 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00204/2.183, allocations: 481 kB / 1.581 GB, free: 149.1 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001995/2.185, allocations: 1.79 MB / 1.583 GB, free: 148 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/2.185, allocations: 1.046 MB / 1.584 GB, free: 147.2 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0009823/2.186, allocations: 218.6 kB / 1.584 GB, free: 147.1 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/2.186, allocations: 76.62 kB / 1.584 GB, free: 147.1 MB / 0.7136 GB Notification: Performance of SimCode: time 3.2e-07/2.186, allocations: 6.188 kB / 1.584 GB, free: 147.1 MB / 0.7136 GB Notification: Performance of Templates: time 0.03467/2.221, allocations: 27.49 MB / 1.611 GB, free: 122.3 MB / 0.7136 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)