Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/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) 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 Buildings with version 8.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.79/1.79, allocations: 293 MB / 309 MB, free: 4.82 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 179.9 kB / 378.7 MB, free: 1.043 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.937/1.937, allocations: 205.4 MB / 0.6383 GB, free: 9.09 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007789/0.0007789, allocations: 94.86 kB / 0.7527 GB, free: 62.19 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004538/0.0004538, allocations: 16 kB / 0.8768 GB, free: 10.57 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.2999, allocations: 116.4 MB / 0.9905 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.684/1.984, allocations: 403.9 MB / 1.385 GB, free: 272.6 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/1.985, allocations: 98.89 kB / 1.385 GB, free: 272.6 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 0.5917/2.576, allocations: 300.6 MB / 1.679 GB, free: 54.43 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.574e-06/2.576, allocations: 0 / 1.679 GB, free: 54.43 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0001404/2.576, allocations: 36.08 kB / 1.679 GB, free: 54.39 MB / 0.9323 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.004002/2.58, allocations: 1.393 MB / 1.68 GB, free: 52.94 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/2.581, allocations: 8.031 kB / 1.68 GB, free: 52.93 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005534/2.581, allocations: 119.5 kB / 1.68 GB, free: 52.81 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002073/2.583, allocations: 0.7038 MB / 1.681 GB, free: 52.07 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.405e-05/2.583, allocations: 49.69 kB / 1.681 GB, free: 52.02 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000239/2.584, allocations: 64.38 kB / 1.681 GB, free: 51.96 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/2.585, allocations: 0.7019 MB / 1.682 GB, free: 51.22 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/2.585, allocations: 7.938 kB / 1.682 GB, free: 51.21 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.948e-05/2.585, allocations: 24 kB / 1.682 GB, free: 51.19 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/2.585, allocations: 12 kB / 1.682 GB, free: 51.18 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009117/2.586, allocations: 464.9 kB / 1.682 GB, free: 50.72 MB / 0.9323 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.004234/2.59, allocations: 2.6 MB / 1.685 GB, free: 47.99 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007608/2.591, allocations: 416.3 kB / 1.685 GB, free: 47.57 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000338/2.591, allocations: 218.3 kB / 1.685 GB, free: 47.36 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000287/2.592, allocations: 352.4 kB / 1.685 GB, free: 46.94 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004961/2.592, allocations: 361.1 kB / 1.686 GB, free: 46.55 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 3.496e-06/2.592, allocations: 4 kB / 1.686 GB, free: 46.55 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.001478/2.594, allocations: 0.7981 MB / 1.687 GB, free: 45.74 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.604e-05/2.594, allocations: 239.6 kB / 1.687 GB, free: 45.45 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008611/2.595, allocations: 0.8281 MB / 1.688 GB, free: 44.6 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 6.779e-05/2.595, allocations: 45.69 kB / 1.688 GB, free: 44.55 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002604/2.595, allocations: 440.9 kB / 1.688 GB, free: 44.11 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 8.341e-05/2.595, allocations: 122.3 kB / 1.688 GB, free: 43.99 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/2.595, allocations: 16 kB / 1.688 GB, free: 43.98 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 6.939e-05/2.595, allocations: 337.8 kB / 1.689 GB, free: 43.64 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003665/2.596, allocations: 225.1 kB / 1.689 GB, free: 43.42 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004529/2.596, allocations: 424.8 kB / 1.689 GB, free: 42.93 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007272/2.597, allocations: 0.5743 MB / 1.69 GB, free: 42.3 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/2.597, allocations: 0 / 1.69 GB, free: 42.3 MB / 0.9323 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001202/2.598, allocations: 0.8034 MB / 1.691 GB, free: 41.49 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 9.44e-05/2.598, allocations: 204.4 kB / 1.691 GB, free: 41.24 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/2.598, allocations: 0 / 1.691 GB, free: 41.24 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/2.598, allocations: 11.98 kB / 1.691 GB, free: 41.23 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009814/2.599, allocations: 191.7 kB / 1.691 GB, free: 41.04 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006633/2.6, allocations: 1.785 MB / 1.693 GB, free: 39.19 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007692/2.601, allocations: 123.4 kB / 1.693 GB, free: 39.07 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.1e-05/2.601, allocations: 31.98 kB / 1.693 GB, free: 39.04 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 9.057e-06/2.601, allocations: 4 kB / 1.693 GB, free: 39.03 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001063/2.602, allocations: 0.7169 MB / 1.694 GB, free: 38.31 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/2.602, allocations: 4 kB / 1.694 GB, free: 38.31 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.641e-06/2.602, allocations: 4 kB / 1.694 GB, free: 38.3 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004553/2.602, allocations: 135.8 kB / 1.694 GB, free: 38.17 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/2.602, allocations: 8 kB / 1.694 GB, free: 38.16 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007075/2.603, allocations: 119.5 kB / 1.694 GB, free: 38.05 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-05/2.603, allocations: 31.98 kB / 1.694 GB, free: 38.02 MB / 0.9323 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.0004908/2.604, allocations: 348.2 kB / 1.694 GB, free: 37.66 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/2.604, allocations: 90.88 kB / 1.694 GB, free: 37.57 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001344/2.605, allocations: 0.7591 MB / 1.695 GB, free: 36.8 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/2.605, allocations: 4 kB / 1.695 GB, free: 36.79 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/2.605, allocations: 0 / 1.695 GB, free: 36.79 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/2.605, allocations: 7.984 kB / 1.695 GB, free: 36.79 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002178/2.607, allocations: 1.618 MB / 1.697 GB, free: 35.09 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/2.607, allocations: 4 kB / 1.697 GB, free: 35.09 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000394/2.608, allocations: 107.9 kB / 1.697 GB, free: 34.98 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/2.608, allocations: 0 / 1.697 GB, free: 34.98 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.665e-05/2.608, allocations: 16 kB / 1.697 GB, free: 34.97 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005152/2.608, allocations: 1.774 MB / 1.698 GB, free: 33.12 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/2.608, allocations: 4.031 kB / 1.698 GB, free: 33.12 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/2.61, allocations: 1.232 MB / 1.7 GB, free: 31.86 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004346/2.61, allocations: 231.8 kB / 1.7 GB, free: 31.61 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002054/2.61, allocations: 19.94 kB / 1.7 GB, free: 31.59 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000699/2.611, allocations: 75.89 kB / 1.7 GB, free: 31.52 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/2.611, allocations: 55.86 kB / 1.7 GB, free: 31.46 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.712e-05/2.611, allocations: 20 kB / 1.7 GB, free: 31.45 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0008924/2.612, allocations: 0.5549 MB / 1.701 GB, free: 30.88 MB / 0.9323 GB Notification: Performance of sort global known variables: time 1.41e-07/2.612, allocations: 0 / 1.701 GB, free: 30.88 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.002217/2.615, allocations: 0.4953 MB / 1.701 GB, free: 30.38 MB / 0.9323 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.001351/2.616, allocations: 487.2 kB / 1.701 GB, free: 29.91 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.002309/2.618, allocations: 1.047 MB / 1.703 GB, free: 28.84 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/2.618, allocations: 4 kB / 1.703 GB, free: 28.84 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0005933/2.619, allocations: 376.1 kB / 1.703 GB, free: 28.46 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002223/2.621, allocations: 382.3 kB / 1.703 GB, free: 28.09 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002707/2.624, allocations: 1.709 MB / 1.705 GB, free: 26.34 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004581/2.624, allocations: 1.001 MB / 1.706 GB, free: 25.31 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.0007313/2.625, allocations: 149.9 kB / 1.706 GB, free: 25.16 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001779/2.625, allocations: 67.42 kB / 1.706 GB, free: 25.09 MB / 0.9323 GB Notification: Performance of SimCode: time 7.51e-07/2.625, allocations: 0 / 1.706 GB, free: 25.09 MB / 0.9323 GB Notification: Performance of Templates: time 0.02908/2.654, allocations: 17.43 MB / 1.723 GB, free: 7.809 MB / 0.9323 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)