Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.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.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8355/0.8355, allocations: 143.4 MB / 158.3 MB, free: 5.77 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.00111/0.00111, allocations: 176.7 kB / 191.5 MB, free: 5.758 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.396/1.396, allocations: 223.2 MB / 447.7 MB, free: 4.809 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.0009163/0.0009163, allocations: 91.55 kB / 0.5188 GB, free: 1.172 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001647/0.001647, allocations: 272.9 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006809/0.0006809, allocations: 12 kB / 0.6929 GB, free: 59.65 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.169, allocations: 82.8 MB / 0.7737 GB, free: 13.83 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6554/0.8244, allocations: 360.2 MB / 1.126 GB, free: 10.03 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.8247, allocations: 104.1 kB / 1.126 GB, free: 9.973 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.8723/1.697, allocations: 308.3 MB / 1.427 GB, free: 25.66 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.643e-06/1.697, allocations: 3.938 kB / 1.427 GB, free: 25.66 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.918e-05/1.697, allocations: 27.98 kB / 1.427 GB, free: 25.63 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002425/1.7, allocations: 1.407 MB / 1.428 GB, free: 24.16 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/1.7, allocations: 12.03 kB / 1.428 GB, free: 24.15 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/1.7, allocations: 118.7 kB / 1.428 GB, free: 24.04 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/1.701, allocations: 0.6833 MB / 1.429 GB, free: 23.31 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.442e-05/1.701, allocations: 49.31 kB / 1.429 GB, free: 23.26 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.774e-05/1.701, allocations: 67.91 kB / 1.429 GB, free: 23.19 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009257/1.702, allocations: 0.6937 MB / 1.43 GB, free: 22.46 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/1.702, allocations: 7.938 kB / 1.43 GB, free: 22.45 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.38e-05/1.702, allocations: 24 kB / 1.43 GB, free: 22.43 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/1.702, allocations: 12 kB / 1.43 GB, free: 22.41 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007168/1.703, allocations: 472.9 kB / 1.43 GB, free: 21.95 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.003008/1.706, allocations: 2.612 MB / 1.433 GB, free: 19.21 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006906/1.707, allocations: 408.8 kB / 1.433 GB, free: 18.8 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002412/1.707, allocations: 344.4 kB / 1.433 GB, free: 18.39 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004694/1.707, allocations: 357.7 kB / 1.434 GB, free: 18.01 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=37): time 1.904e-06/1.707, allocations: 0 / 1.434 GB, free: 18.01 MB / 0.7136 GB Notification: Performance of matching and sorting (n=37): time 0.001423/1.709, allocations: 0.8892 MB / 1.435 GB, free: 17.09 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/1.709, allocations: 243.8 kB / 1.435 GB, free: 16.8 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006854/1.71, allocations: 0.7341 MB / 1.436 GB, free: 16.04 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.019e-05/1.71, allocations: 38.25 kB / 1.436 GB, free: 16 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.000242/1.71, allocations: 440.3 kB / 1.436 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 7.611e-05/1.71, allocations: 122.2 kB / 1.436 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.15e-05/1.71, allocations: 16 kB / 1.436 GB, free: 15.43 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.112e-05/1.71, allocations: 326 kB / 1.436 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003785/1.71, allocations: 229.1 kB / 1.437 GB, free: 14.88 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004629/1.711, allocations: 424.7 kB / 1.437 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004091/1.711, allocations: 283.6 kB / 1.437 GB, free: 14.11 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/1.711, allocations: 3.953 kB / 1.437 GB, free: 14.1 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001182/1.713, allocations: 0.7993 MB / 1.438 GB, free: 13.29 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002483/1.713, allocations: 1.083 MB / 1.439 GB, free: 12.12 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/1.713, allocations: 4 kB / 1.439 GB, free: 12.12 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/1.713, allocations: 4 kB / 1.439 GB, free: 12.11 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008745/1.714, allocations: 167.7 kB / 1.439 GB, free: 11.95 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006765/1.714, allocations: 1.774 MB / 1.441 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007556/1.715, allocations: 131.5 kB / 1.441 GB, free: 9.977 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.762e-05/1.715, allocations: 31.98 kB / 1.441 GB, free: 9.945 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 7.564e-06/1.715, allocations: 4 kB / 1.441 GB, free: 9.941 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00108/1.716, allocations: 0.7089 MB / 1.442 GB, free: 9.227 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/1.716, allocations: 3.984 kB / 1.442 GB, free: 9.223 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.274e-06/1.716, allocations: 11.95 kB / 1.442 GB, free: 9.211 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004964/1.717, allocations: 136.1 kB / 1.442 GB, free: 9.078 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/1.717, allocations: 7.938 kB / 1.442 GB, free: 9.07 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006218/1.718, allocations: 119.4 kB / 1.442 GB, free: 8.953 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.904e-05/1.718, allocations: 31.98 kB / 1.442 GB, free: 8.922 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003434/1.718, allocations: 353.4 kB / 1.443 GB, free: 8.562 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.485e-05/1.718, allocations: 90.88 kB / 1.443 GB, free: 8.473 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00127/1.719, allocations: 0.7482 MB / 1.443 GB, free: 7.707 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/1.719, allocations: 8 kB / 1.443 GB, free: 7.699 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/1.719, allocations: 4 kB / 1.443 GB, free: 7.695 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/1.719, allocations: 0 / 1.443 GB, free: 7.695 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001963/1.721, allocations: 1.645 MB / 1.445 GB, free: 5.977 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/1.721, allocations: 0 / 1.445 GB, free: 5.977 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003938/1.722, allocations: 103.9 kB / 1.445 GB, free: 5.875 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/1.722, allocations: 8.062 kB / 1.445 GB, free: 5.867 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/1.722, allocations: 23.92 kB / 1.445 GB, free: 5.844 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004563/1.722, allocations: 1.758 MB / 1.447 GB, free: 4.016 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/1.722, allocations: 4.031 kB / 1.447 GB, free: 4.012 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001428/1.724, allocations: 1.275 MB / 1.448 GB, free: 2.684 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002793/1.724, allocations: 235.7 kB / 1.448 GB, free: 2.434 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/1.724, allocations: 16 kB / 1.448 GB, free: 2.418 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006147/1.725, allocations: 75.89 kB / 1.448 GB, free: 2.344 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/1.725, allocations: 51.92 kB / 1.448 GB, free: 2.293 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.944e-05/1.725, allocations: 23.98 kB / 1.449 GB, free: 2.27 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0005451/1.725, allocations: 0.5631 MB / 1.449 GB, free: 1.695 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.1e-07/1.725, allocations: 0 / 1.449 GB, free: 1.695 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001359/1.727, allocations: 0.5031 MB / 1.45 GB, free: 1.191 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007682/1.728, allocations: 485.2 kB / 1.45 GB, free: 0.7188 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.3033/2.031, allocations: 1.012 MB / 1.451 GB, free: 177.3 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 8.195e-06/2.031, allocations: 1.938 kB / 1.451 GB, free: 177.3 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0007132/2.032, allocations: 366.5 kB / 1.451 GB, free: 177.3 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/2.034, allocations: 355.5 kB / 1.452 GB, free: 177.3 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002312/2.036, allocations: 1.72 MB / 1.453 GB, free: 176.5 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004108/2.036, allocations: 1.024 MB / 1.454 GB, free: 175.8 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0006374/2.037, allocations: 151 kB / 1.455 GB, free: 175.8 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/2.037, allocations: 68.64 kB / 1.455 GB, free: 175.8 MB / 0.7136 GB Notification: Performance of SimCode: time 8.52e-07/2.037, allocations: 3.094 kB / 1.455 GB, free: 175.8 MB / 0.7136 GB Notification: Performance of Templates: time 0.02988/2.067, allocations: 16.97 MB / 1.471 GB, free: 175.6 MB / 0.7136 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)