Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.563/4.563, allocations: 0.5623 GB / 0.5775 GB, free: 66.93 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002727/0.002727, allocations: 364 kB / 0.6446 GB, free: 21.35 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.147/4.147, allocations: 410.7 MB / 1.113 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001877/0.001877, allocations: 189.7 kB / 1.226 GB, free: 11.62 MB / 0.7292 GB Notification: Performance of FrontEnd - loaded program: time 0.0005406/0.0005407, allocations: 11.72 kB / 1.349 GB, free: 320.2 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2066, allocations: 115.3 MB / 1.461 GB, free: 220.7 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.147/1.353, allocations: 402.6 MB / 1.854 GB, free: 26.78 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003401/1.354, allocations: 99.58 kB / 1.855 GB, free: 26.73 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.717/3.071, allocations: 300.2 MB / 2.148 GB, free: 259.7 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.876e-06/3.071, allocations: 0 / 2.148 GB, free: 259.7 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001017/3.071, allocations: 30.98 kB / 2.148 GB, free: 259.7 MB / 0.948 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.00403/3.076, allocations: 1.407 MB / 2.149 GB, free: 258.3 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/3.076, allocations: 8.75 kB / 2.149 GB, free: 258.3 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004448/3.076, allocations: 126.5 kB / 2.149 GB, free: 258.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002119/3.078, allocations: 0.6785 MB / 2.15 GB, free: 257.4 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.533e-05/3.078, allocations: 57.23 kB / 2.15 GB, free: 257.4 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001587/3.078, allocations: 64 kB / 2.15 GB, free: 257.3 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001684/3.08, allocations: 0.6898 MB / 2.151 GB, free: 256.6 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.058e-05/3.08, allocations: 0 / 2.151 GB, free: 256.6 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.839e-05/3.08, allocations: 27.94 kB / 2.151 GB, free: 256.6 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/3.08, allocations: 15.95 kB / 2.151 GB, free: 256.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/3.082, allocations: 476.9 kB / 2.151 GB, free: 256.1 MB / 0.948 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.005608/3.087, allocations: 2.596 MB / 2.154 GB, free: 253.4 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/3.089, allocations: 414.3 kB / 2.154 GB, free: 252.9 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006274/3.09, allocations: 220.7 kB / 2.154 GB, free: 252.7 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003273/3.09, allocations: 345.4 kB / 2.155 GB, free: 252.3 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008289/3.091, allocations: 350.7 kB / 2.155 GB, free: 251.9 MB / 0.948 GB Notification: Performance of pre-optimization done (n=37): time 2.865e-06/3.091, allocations: 0 / 2.155 GB, free: 251.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=37): time 0.002634/3.093, allocations: 0.8045 MB / 2.156 GB, free: 251.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.716e-05/3.094, allocations: 243.8 kB / 2.156 GB, free: 250.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001456/3.095, allocations: 0.8243 MB / 2.157 GB, free: 250 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002124/3.095, allocations: 41.7 kB / 2.157 GB, free: 249.9 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004365/3.096, allocations: 446.3 kB / 2.157 GB, free: 249.5 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/3.096, allocations: 118 kB / 2.157 GB, free: 249.4 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.432e-05/3.096, allocations: 12 kB / 2.157 GB, free: 249.4 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.834e-05/3.096, allocations: 326.5 kB / 2.158 GB, free: 249.1 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000767/3.097, allocations: 229.1 kB / 2.158 GB, free: 248.8 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008669/3.098, allocations: 424.7 kB / 2.158 GB, free: 248.3 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007869/3.099, allocations: 294.4 kB / 2.159 GB, free: 248.1 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.752e-06/3.099, allocations: 0 / 2.159 GB, free: 248.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002389/3.101, allocations: 0.8071 MB / 2.159 GB, free: 247.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/3.101, allocations: 198.5 kB / 2.16 GB, free: 247 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/3.101, allocations: 7.938 kB / 2.16 GB, free: 247 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.539e-05/3.101, allocations: 4 kB / 2.16 GB, free: 247 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001987/3.103, allocations: 187.7 kB / 2.16 GB, free: 246.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/3.104, allocations: 1.785 MB / 2.162 GB, free: 244.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/3.106, allocations: 135.2 kB / 2.162 GB, free: 244.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002036/3.106, allocations: 32 kB / 2.162 GB, free: 244.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/3.106, allocations: 4 kB / 2.162 GB, free: 244.8 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002048/3.108, allocations: 0.7092 MB / 2.162 GB, free: 244.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/3.108, allocations: 8.031 kB / 2.162 GB, free: 244.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/3.108, allocations: 4 kB / 2.162 GB, free: 244.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/3.109, allocations: 139 kB / 2.163 GB, free: 243.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-05/3.109, allocations: 7.938 kB / 2.163 GB, free: 243.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/3.111, allocations: 119.3 kB / 2.163 GB, free: 243.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/3.111, allocations: 32 kB / 2.163 GB, free: 243.8 MB / 0.948 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.0007082/3.112, allocations: 350.7 kB / 2.163 GB, free: 243.4 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002605/3.112, allocations: 98.86 kB / 2.163 GB, free: 243.3 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002385/3.114, allocations: 0.7542 MB / 2.164 GB, free: 242.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/3.114, allocations: 4 kB / 2.164 GB, free: 242.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/3.114, allocations: 4 kB / 2.164 GB, free: 242.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/3.114, allocations: 3.984 kB / 2.164 GB, free: 242.5 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003766/3.118, allocations: 1.615 MB / 2.165 GB, free: 240.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/3.118, allocations: 0 / 2.165 GB, free: 240.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0015/3.12, allocations: 111.1 kB / 2.166 GB, free: 240.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-05/3.12, allocations: 4 kB / 2.166 GB, free: 240.8 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000182/3.12, allocations: 19.92 kB / 2.166 GB, free: 240.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008419/3.121, allocations: 1.766 MB / 2.167 GB, free: 238.9 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/3.121, allocations: 4.031 kB / 2.167 GB, free: 238.9 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002924/3.124, allocations: 1.235 MB / 2.169 GB, free: 237.6 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006655/3.125, allocations: 231.8 kB / 2.169 GB, free: 237.4 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002339/3.125, allocations: 16 kB / 2.169 GB, free: 237.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/3.126, allocations: 75.89 kB / 2.169 GB, free: 237.3 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/3.126, allocations: 55.88 kB / 2.169 GB, free: 237.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.082e-05/3.126, allocations: 27.86 kB / 2.169 GB, free: 237.2 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001036/3.127, allocations: 0.5549 MB / 2.169 GB, free: 236.6 MB / 0.948 GB Notification: Performance of sort global known variables: time 4.31e-07/3.127, allocations: 0 / 2.169 GB, free: 236.6 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002411/3.13, allocations: 0.4915 MB / 2.17 GB, free: 236.2 MB / 0.948 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.001393/3.131, allocations: 488.2 kB / 2.17 GB, free: 235.7 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003859/3.135, allocations: 1.047 MB / 2.171 GB, free: 234.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/3.135, allocations: 4 kB / 2.171 GB, free: 234.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001081/3.136, allocations: 364.1 kB / 2.172 GB, free: 234.3 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003779/3.14, allocations: 383.2 kB / 2.172 GB, free: 233.9 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003938/3.144, allocations: 1.713 MB / 2.174 GB, free: 232.2 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005438/3.145, allocations: 1.021 MB / 2.175 GB, free: 231.1 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.001132/3.146, allocations: 153.9 kB / 2.175 GB, free: 231 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002936/3.146, allocations: 67.41 kB / 2.175 GB, free: 230.9 MB / 0.948 GB Notification: Performance of SimCode: time 1.252e-06/3.146, allocations: 0 / 2.175 GB, free: 230.9 MB / 0.948 GB Notification: Performance of Templates: time 0.04961/3.196, allocations: 17.21 MB / 2.192 GB, free: 214 MB / 0.948 GB